/* YesOnline — Under Maintenance screen */
.maintenance-page {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, #312e81 0%, #0f172a 45%, #020617 100%);
    color: #e2e8f0;
    font-family: Inter, system-ui, sans-serif;
}

.maintenance-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.maintenance-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 2rem 1.75rem 1.65rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: maintenance-float-in 0.45s ease-out;
}

@keyframes maintenance-float-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.maintenance-gear {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
    animation: maintenance-spin 4s linear infinite;
}

@keyframes maintenance-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.maintenance-title {
    margin: 0 0 0.5rem;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f8fafc, #c7d2fe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.maintenance-lead {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #94a3b8;
}

.maintenance-timer-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.maintenance-timer {
    font-size: 2.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: #a5b4fc;
    margin-bottom: 0.85rem;
    text-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
}

.maintenance-hint {
    margin: 0 0 1.1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #cbd5e1;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.maintenance-retry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.maintenance-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.45);
}

.maintenance-retry:active { transform: translateY(0); }

.maintenance-status-line {
    margin-top: 0.85rem;
    font-size: 0.75rem;
    color: #64748b;
}

.maintenance-status-line.is-trying { color: #a5b4fc; }

/* Global overlay (injected by maintenance.js on any page) */
#yesonline-maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#yesonline-maintenance-overlay[hidden] {
    display: none !important;
}

#yesonline-maintenance-overlay .maintenance-card {
    max-width: 400px;
}
