:root {
    --bg-color: #030305;
    --card-bg: rgba(10, 11, 16, 0.65);
    --border-color: rgba(255, 255, 255, 0.15);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-glow: #0a84ff;
    --accent-gradient: linear-gradient(90deg, transparent 0%, #0a84ff 50%, transparent 100%);
}

/* Fixed: changed '-' to '*' */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Adapts to mobile browser toolbars */
    overflow: hidden;
    overscroll-behavior: none; /* Prevents rubber-band bounce scrolling on iOS/Android */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#canvas-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.ambient-aurora {
    position: fixed;
    /* Responsive sizing so it never exceeds mobile screen width */
    width: min(700px, 140vw);
    height: min(700px, 140vw);
    background: radial-gradient(circle, rgba(10, 132, 255, 0.14) 0%, rgba(175, 82, 222, 0.06) 45%, transparent 75%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    filter: blur(100px);
    animation: auroraPulse 14s ease-in-out infinite alternate;
}

@keyframes auroraPulse {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 440px;
    padding: 20px;
    perspective: 1200px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 26px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Subtle top-to-bottom fading glass edge border */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 26px;
    padding: 1px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(10, 132, 255, 0.25) 45%, rgba(255, 255, 255, 0.08) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.logo-container img {
    width: 150px;
    height: 85px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .logo-container img {
    transform: scale(1.05);
}

.brand {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
    color: #ffffff;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* Thin glowing divider line */
.progress-bar {
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: visible;
    margin-bottom: 32px;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    box-shadow: 0 0 12px rgba(10, 132, 255, 0.8);
    transform: translateX(-50%);
    animation: expandFromCenter 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes expandFromCenter {
    0% { width: 15%; opacity: 0.3; }
    50% { width: 95%; opacity: 1; }
    100% { width: 15%; opacity: 0.3; }
}

/* Clean, borderless status indicator */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #8e8e93;
    margin-bottom: 24px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #30d158;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(48, 209, 88, 0.9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.75; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 16px rgba(48, 209, 88, 1); }
    100% { transform: scale(0.95); opacity: 0.75; }
}

.footer-info {
    font-size: 12px;
    color: #6e6e73;
    letter-spacing: -0.1px;
}

/* Compact spacing for small mobile screens */
@media (max-width: 480px) {
    .card {
        padding: 36px 24px;
        border-radius: 22px;
    }

    h1 {
        font-size: 22px;
    }

    p {
        font-size: 14px;
        margin-bottom: 28px;
    }
}