*, *::before, *::after { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #020B2A;
    color: #F4F7FB;
    font-family: 'Inter', 'Space Grotesk', sans-serif;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

#app { height: 100%; }

/* ── Loading screen ── */
.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #010615 0%, #020B2A 25%, #071B5A 65%, #005CFF 100%);
    gap: 16px;
}

.loading-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #1495FF;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(20,149,255,0.5);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(20,149,255,0.15);
    border-top-color: #1495FF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 12px rgba(20,149,255,0.3);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Neon pulse animation ── */
@keyframes neonPulse {
    0%   { box-shadow: 0 0 8px rgba(20,149,255,0.25); }
    50%  { box-shadow: 0 0 24px rgba(20,149,255,0.55); }
    100% { box-shadow: 0 0 8px rgba(20,149,255,0.25); }
}

/* ── Floating animation ── */
@keyframes floating {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

/* ── Glassmorphism card ── */
.zx-glass {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.zx-glass:hover {
    border-color: rgba(20,149,255,0.35);
    box-shadow: 0 0 25px rgba(20,149,255,0.15);
}

/* ── Auth card ── */
.zx-auth-card {
    background: rgba(7,27,90,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(20,149,255,0.2);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow:
        0 0 40px rgba(0,92,255,0.15),
        0 10px 40px rgba(0,0,0,0.4);
    animation: fadeInUp 0.4s ease forwards;
}

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

/* ── MudBlazor overrides ── */
.mud-main-content {
    height: calc(100vh - 56px);
    overflow-y: auto;
}

/* ── Blazor error UI ── */
#blazor-error-ui {
    background: #9B0030;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    position: fixed;
    z-index: 9999;
    display: none;
    color: white;
    font-size: 14px;
}

#blazor-error-ui .reload { color: white; font-weight: bold; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
