:root {
    --bg-color: #0A0A12;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --accent-color: #6C63FF;
    --accent-glow: rgba(108, 99, 255, 0.4);
    --digit-bg: rgba(255, 255, 255, 0.05);
    --digit-shadow: 0 0 30px rgba(108, 99, 255, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 210, 255, 0.05) 0%, transparent 40%);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.live-indicator {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-color);
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 1.5s infinite;
}

main {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.counter-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.digital-counter {
    display: flex;
    gap: 12px;
    perspective: 1000px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.digit-group {
    display: flex;
    gap: 8px;
}

.digit-group:not(:last-child)::after {
    content: "";
    display: block;
    width: 4px;
    margin: 0 10px;
    background-color: #e2e8f0;
    border-radius: 2px;
}

.digit {
    width: 90px;
    height: 140px;
    background: var(--digit-bg);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    text-shadow: 0 0 20px var(--accent-glow);
    box-shadow: var(--digit-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.digit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.sub-label {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Digit transition effect */
.digit span {
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.digit.changed span {
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    0% { transform: translateY(20%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .digit {
        width: 50px;
        height: 80px;
        font-size: 3rem;
    }
    .digital-counter { gap: 6px; }
    .digit-group::after { margin: 0 4px; }
}

.about-section {
    max-width: 600px;
    margin-top: 50px;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Auth Styles */
.auth-actions {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.7s backwards;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--text-primary);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--accent-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: white;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

.hidden {
    display: none !important;
}
