:root {
    --bg-color: #000000;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent-color: #0a84ff;
    /* iOS Blue-ish */
    --danger-color: #ff453a;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* Dynamic Animated Background */
.background-mesh {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 10% 20%, rgba(10, 132, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(94, 92, 230, 0.15), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(48, 209, 88, 0.05), transparent 60%);
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: rotateMesh 20s linear infinite;
    filter: blur(80px);
}

@keyframes rotateMesh {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Glassmorphism Container */
.glass-container {
    width: 90%;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 3rem;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px var(--glass-highlight);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-container:hover {
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    transform: scale(1.01);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.logo {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.status-badge {
    background: rgba(255, 69, 58, 0.1);
    color: var(--danger-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 69, 58, 0.2);
    box-shadow: 0 0 20px rgba(255, 69, 58, 0.1);
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--danger-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Main Content */
.lock-icon {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
    font-weight: 200;
}

/* Countdown Grid */
.countdown-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 3rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.value {
    font-size: 3.5rem;
    font-weight: 200;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
    font-weight: 600;
}

.separator {
    font-size: 3rem;
    font-weight: 200;
    line-height: 0.8;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-top: -5px;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 0.6;
    }
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color), #5e5ce6);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.4);
    transition: width 1s linear;
}

/* Footer */
footer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-top: 2rem;
}

/* Hidden Content */
.hidden-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 100;
    color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-container {
        width: 90%;
        padding: 2rem;
    }

    .title {
        font-size: 2rem;
    }

    .value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .glass-container {
        width: 95%;
        padding: 1.5rem 1rem;
        border-radius: 30px;
    }

    header {
        margin-bottom: 2rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .lock-icon svg {
        width: 48px;
        height: 48px;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .countdown-grid {
        gap: 0.25rem;
        margin-bottom: 2rem;
    }

    .time-unit {
        width: 55px;
    }

    .value {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }

    .label {
        font-size: 0.6rem;
    }

    .separator {
        font-size: 1.5rem;
        margin-top: 0;
        width: 10px;
    }
}

/* Landscape Mobile Fix */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
        overflow-y: auto;
    }

    .glass-container {
        margin: 2rem 0;
    }
}