:root {
    --primary-color: #007BFF;
    --secondary-color: #333;
    --background-color: #f8f9fa;
    --card-background: #fff;
    --text-color: #495057;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
}

.main-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.content-card {
    max-width: 800px;
    width: 100%;
    background-color: var(--card-background);
    padding: 7rem 6rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-and-text-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    justify-content: center;
}

.logo {
    max-width: 180px;
    height: auto;
    flex-shrink: 0;
}

.text-block {
    flex-grow: 1;
    text-align: left;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    line-height: 1.2;
}

p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 180px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--card-background);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--card-background);
    transform: translateY(-3px);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e3e3e3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.redirect-info {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-text {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 0.01em;
}

#countdown {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3em;
    transition: color 0.2s;
}

.footer-minimal {
    width: 100%;
    text-align: center;
    padding: 1.2rem 0 0.7rem 0;
    font-size: 0.98rem;
    color: #888;
    background: none;
    letter-spacing: 0.01em;
    margin-top: auto;
}

.footer-minimal a {
    color: #888;
    text-decoration: none;
    margin: 0 0.3em;
    transition: color 0.2s;
}

.footer-minimal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-sep {
    margin: 0 0.3em;
    color: #ccc;
}

@media (max-width: 768px) {
    .logo-and-text-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 1.5rem;
        max-width: 150px;
    }

    .text-block {
        text-align: center;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
