@import url('background.css');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --fo-bg: #060a12;
    --fo-panel: rgba(10, 16, 28, 0.88);
    --fo-panel-solid: rgba(10, 16, 28, 0.95);
    --fo-border: rgba(8, 145, 178, 0.35);
    --fo-border-muted: rgba(30, 42, 61, 0.95);
    --fo-cyan: #0891b2;
    --fo-cyan-bright: #22d3ee;
    --fo-cyan-glow: rgba(34, 211, 238, 0.35);
    --fo-text: #e2e8f0;
    --fo-muted: #64748b;
    --fo-subtle: #94a3b8;
    --fo-btn-solid-text: #0f172a;
    --fo-input-placeholder: #94a3b8;
    --fo-radius: 10px;
    --fo-radius-sm: 6px;
    --fo-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --fo-glow: 0 0 30px rgba(8, 145, 178, 0.15);
}

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

body.landing-page {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    background: var(--fo-bg);
    color: var(--fo-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-size: cover;
    background-position: center top;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(8, 145, 178, 0.12), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(120, 40, 20, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(6, 10, 18, 0.4) 0%, rgba(6, 10, 18, 0.88) 55%, rgba(6, 10, 18, 0.96) 100%);
    pointer-events: none;
}

.landing-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    margin: 0 auto;
    padding: 16px 20px 40px;
    animation: pageFadeIn 0.7s ease-out;
}

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

/* ── HEADER ── */
.landing-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0 20px;
    margin-bottom: 12px;
    position: relative;
    z-index: 50;
    min-height: 110px;
}

.landing-logo {
    flex-shrink: 0;
    text-align: center;
}

.landing-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
}

.landing-logo img {
    height: 120px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}

.landing-header-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.btn-header-login,
.btn-header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 9px 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border-radius: var(--fo-radius-sm);
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-header-login {
    color: var(--fo-btn-solid-text);
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.35);
}

.btn-header-login:hover {
    background: linear-gradient(135deg, #0ea5c5 0%, #0891b2 100%);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.45);
    transform: translateY(-1px);
}

.btn-header-register {
    color: #67e8f9;
    background: transparent;
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.btn-header-register:hover {
    color: #e2e8f0;
    background: rgba(8, 145, 178, 0.15);
    border-color: rgba(34, 211, 238, 0.55);
    transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
    position: relative;
    border: 1px solid var(--fo-border);
    border-radius: var(--fo-radius);
    margin-bottom: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.08) 0%, rgba(10, 16, 28, 0.92) 50%, rgba(6, 10, 18, 0.95) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--fo-shadow), 0 0 40px rgba(8, 145, 178, 0.1);
    min-height: 340px;
}

.hero-bg-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(8, 145, 178, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    min-height: 340px;
}

.hero-content {
    flex: 1;
    max-width: 720px;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--fo-border-muted);
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--fo-subtle);
    margin-bottom: 18px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(16, 185, 129, 0.7); }
    50% { opacity: 0.75; box-shadow: 0 0 16px rgba(16, 185, 129, 1); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 0 30px rgba(34, 211, 238, 0.3);
}

.hero-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: var(--fo-subtle);
    margin: 0 auto 28px;
    max-width: 480px;
    text-align: center;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.hero-cta .btn-primary-glow {
    width: 100%;
    min-width: 220px;
    max-width: 280px;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fo-btn-solid-text);
    background: linear-gradient(135deg, #0891b2 0%, #0369a1 50%, #0891b2 100%);
    background-size: 200% auto;
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: var(--fo-radius-sm);
    box-shadow: 0 4px 24px rgba(8, 145, 178, 0.45), 0 0 20px rgba(34, 211, 238, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-glow:hover {
    background-position: right center;
    box-shadow: 0 6px 32px rgba(8, 145, 178, 0.55), 0 0 30px rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
}

.btn-outline-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: var(--fo-radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-outline-glow:hover {
    color: #e2e8f0;
    background: rgba(8, 145, 178, 0.15);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

.hero-ship {
    display: none;
}

/* ── STATS BAR ── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--fo-panel);
    border: 1px solid var(--fo-border-muted);
    border-radius: var(--fo-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.stat-item:hover {
    border-color: var(--fo-border);
    box-shadow: var(--fo-glow);
    transform: translateY(-2px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(8, 145, 178, 0.35);
    color: var(--fo-cyan-bright);
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
    transition: all 0.25s ease;
}

.stat-item:hover .stat-icon {
    background: rgba(8, 145, 178, 0.22);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
}

.stat-icon.online { color: #22c55e; border-color: rgba(34, 197, 94, 0.4); }
.stat-icon.offline { color: #ef4444; border-color: rgba(239, 68, 68, 0.4); }

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value-sm {
    font-size: 11px;
    letter-spacing: 0.3px;
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--fo-muted);
}

/* ── GLASS PANELS ── */
.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.glass-panel {
    background: var(--fo-panel);
    border: 1px solid var(--fo-border-muted);
    border-radius: var(--fo-radius);
    padding: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--fo-shadow);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fo-cyan), var(--fo-cyan-bright), var(--fo-cyan), transparent);
    opacity: 0.6;
}

.glass-panel:hover {
    border-color: var(--fo-border);
    box-shadow: var(--fo-shadow), var(--fo-glow);
}

.panel-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--fo-cyan-bright);
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(30, 42, 61, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.panel-title.left {
    justify-content: flex-start;
    text-align: left;
}

/* Features */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(30, 42, 61, 0.8);
    border-radius: var(--fo-radius-sm);
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(8, 145, 178, 0.35);
    background: rgba(8, 145, 178, 0.06);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(8, 145, 178, 0.3);
    color: var(--fo-cyan-bright);
    font-size: 14px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.feature-text strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f1f5f9;
    text-transform: uppercase;
}

.feature-text span {
    font-size: 11px;
    color: var(--fo-muted);
    line-height: 1.4;
}

/* Gallery */
#gallery.gallery-panel-video-only {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#gallery.gallery-panel-video-only .panel-title {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.gallery-video-block {
    width: 100%;
    flex: 1 1 auto;
    min-height: 160px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(30, 42, 61, 0.8);
    border-radius: var(--fo-radius-sm);
    overflow: hidden;
    background: #000;
}

#gallery.gallery-panel-video-only .gallery-video-block {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
}

.gallery-video-block video,
.gallery-video-block iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #000;
    object-fit: contain;
}

#gallery.gallery-panel-video-only .gallery-video-block video,
#gallery.gallery-panel-video-only .gallery-video-block iframe {
    min-height: 0;
}

#gallery.gallery-panel-video-only .gallery-download-link {
    flex-shrink: 0;
    margin-top: 10px;
}

.gallery-video-block-embed iframe {
    aspect-ratio: 16 / 9;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.gallery-strip-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-strip-vertical .gallery-item {
    min-height: 90px;
    aspect-ratio: auto;
}

.gallery-item {
    aspect-ratio: 1;
    min-height: 72px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(30, 42, 61, 0.8);
    border-radius: var(--fo-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.25s ease;
}

.gallery-item:hover {
    border-color: var(--fo-border);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}

.gallery-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.2));
}

.gallery-download-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--fo-cyan-bright);
    border: 1px solid rgba(8, 145, 178, 0.35);
    border-radius: var(--fo-radius-sm);
    background: rgba(8, 145, 178, 0.06);
    transition: all 0.25s ease;
}

.gallery-download-link:hover {
    background: rgba(8, 145, 178, 0.15);
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.2);
}

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(30, 42, 61, 0.8);
    border-radius: var(--fo-radius-sm);
    transition: all 0.25s ease;
}

.event-item:hover {
    border-color: rgba(8, 145, 178, 0.3);
}

.event-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.25);
    color: var(--fo-cyan-bright);
    font-size: 12px;
    flex-shrink: 0;
}

.event-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.event-body p {
    font-size: 12px;
    color: var(--fo-subtle);
    line-height: 1.45;
    margin: 0;
}

.event-body strong {
    color: #f1f5f9;
}

.event-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-status.active {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.event-status.inactive {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ── AUTH MODALS ── */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 8, 16, 0.88);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.auth-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.auth-modal-content {
    width: 92%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 24px;
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background:
        linear-gradient(165deg, rgba(12, 20, 36, 0.98) 0%, rgba(8, 14, 26, 0.96) 100%);
    box-shadow:
        0 0 0 1px rgba(8, 145, 178, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.65),
        0 0 50px rgba(8, 145, 178, 0.12);
    animation: authModalIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-modal-content--register {
    max-width: 560px;
}

.auth-modal-content.glass-panel {
    margin: 0;
    padding-bottom: 24px;
}

.auth-modal-content.glass-panel::before {
    display: none;
}

.auth-modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--fo-cyan), var(--fo-cyan-bright), var(--fo-cyan), transparent);
    opacity: 0.85;
    pointer-events: none;
}

.auth-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(34, 211, 238, 0.55);
    border-style: solid;
    pointer-events: none;
    z-index: 3;
}

.auth-corner-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.auth-corner-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.auth-corner-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.auth-corner-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

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

.auth-modal-header {
    text-align: center;
    padding: 28px 28px 8px;
    border-bottom: 1px solid rgba(30, 42, 61, 0.55);
    margin-bottom: 20px;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(8, 145, 178, 0.1), transparent 70%);
}

.auth-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--fo-cyan-bright);
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
}

.auth-modal-icon--register {
    background: rgba(34, 211, 238, 0.1);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
}

.auth-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--fo-cyan-bright);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: var(--fo-subtle);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
}

.auth-modal-close:hover {
    border-color: var(--fo-cyan-bright);
    color: var(--fo-cyan-bright);
    background: rgba(8, 145, 178, 0.18);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

.auth-form {
    padding: 0 28px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.auth-field-full {
    grid-column: 1 / -1;
}

.auth-field-hint {
    display: block;
    margin-top: 6px;
    color: var(--fo-muted);
    font-size: 11px;
}

.auth-optional-label {
    color: var(--fo-muted);
    font-size: 11px;
    font-weight: 400;
}

.registration-rules-link {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 5px 10px;
    margin-top: 8px;
    padding: 11px 13px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: var(--fo-radius-sm);
    background: linear-gradient(120deg, rgba(8, 145, 178, 0.09), rgba(0, 0, 0, 0.2));
}

.registration-rules-link > i {
    grid-row: span 2;
    color: var(--fo-cyan-bright);
    font-size: 17px;
}

.registration-rules-link span {
    color: var(--fo-muted);
    font-size: 11px;
    line-height: 1.45;
}

.registration-rules-link button {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fo-cyan-bright);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.registration-rules-link button:hover {
    color: #a5f3fc;
    text-decoration: underline;
}

.rules-modal {
    z-index: 1110;
}

.rules-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 96%;
    max-width: 900px;
    height: 88vh;
    max-height: 88vh;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(8, 145, 178, 0.14), transparent 38%),
        linear-gradient(160deg, #0c1424 0%, #080e1a 100%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.75), 0 0 45px rgba(8, 145, 178, 0.12);
    animation: authModalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-client .rules-modal {
    padding: 12px;
}

.game-client .rules-modal-content {
    width: 100%;
    height: calc(100vh - 24px);
    max-height: none;
}

.game-client .rules-modal-body {
    -webkit-overflow-scrolling: touch;
}

.rules-modal-content::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--fo-cyan), var(--fo-cyan-bright), var(--fo-cyan), transparent);
    content: '';
}

.rules-modal-content .auth-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.rules-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 64px 22px 30px;
    border-bottom: 1px solid rgba(30, 42, 61, 0.9);
}

.rules-modal-icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 16px;
    background: rgba(8, 145, 178, 0.14);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.12);
    color: var(--fo-cyan-bright);
    font-size: 22px;
}

.rules-modal-eyebrow {
    margin: 0 0 5px;
    color: var(--fo-cyan-bright);
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
}

.rules-modal-header h2 {
    margin: 0;
    color: var(--fo-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 19px;
    letter-spacing: 0.5px;
}

.rules-modal-header > div > p:last-child {
    margin: 7px 0 0;
    color: var(--fo-muted);
    font-size: 12px;
    line-height: 1.5;
}

.rules-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 30px 24px;
    scrollbar-color: rgba(34, 211, 238, 0.4) rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
}

.rules-document-preamble {
    margin: 0 0 6px;
    padding: 19px 21px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(8, 145, 178, 0.1), rgba(0, 0, 0, 0.12));
}

.rules-document-preamble h3 {
    margin: 0 0 9px;
    color: var(--fo-cyan-bright);
    font-size: 14px;
    font-weight: 700;
}

.rules-document-preamble p {
    margin: 0;
    color: #aab8ca;
    font-size: 12px;
    line-height: 1.7;
}

.rules-document-preamble p + p {
    margin-top: 8px;
}

.rules-document-section {
    padding: 19px 0 17px;
    border-bottom: 1px solid rgba(30, 42, 61, 0.75);
}

.rules-document-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rules-document-heading > span {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 10px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--fo-cyan-bright);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
}

.rules-document-heading h3 {
    margin: 6px 0 0;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.rules-document-section ul {
    display: grid;
    gap: 8px;
    margin: 13px 0 0 46px;
    padding: 0;
    color: #aab8ca;
    font-size: 12px;
    line-height: 1.65;
    list-style: none;
}

.rules-document-section li {
    position: relative;
    padding-left: 16px;
}

.rules-document-section li::before {
    position: absolute;
    top: 0.68em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fo-cyan-bright);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.55);
    content: '';
}

.rules-document-closing {
    padding: 20px 0 8px 46px;
    color: #aab8ca;
    font-size: 12px;
    line-height: 1.65;
}

.rules-document-closing strong {
    color: var(--fo-cyan-bright);
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
}

.rules-document-closing p {
    margin: 7px 0 0;
}

.rules-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 30px;
    border-top: 1px solid rgba(30, 42, 61, 0.9);
    background: rgba(0, 0, 0, 0.2);
}

.rules-modal-footer > span {
    color: var(--fo-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    letter-spacing: 1.5px;
}

.rules-modal-footer > span i {
    margin-right: 6px;
    color: var(--fo-cyan-bright);
}

.rules-modal-footer button {
    min-width: 100px;
    padding: 9px 16px;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: rgba(34, 211, 238, 0.55);
    pointer-events: none;
    z-index: 1;
}

.auth-input-wrap input {
    padding-left: 40px !important;
}

.auth-modal-switch {
    margin: 18px 28px 0;
    padding-top: 16px;
    border-top: 1px solid rgba(30, 42, 61, 0.6);
    text-align: center;
    font-size: 12px;
    color: var(--fo-muted);
}

.auth-modal-switch a {
    color: var(--fo-cyan-bright);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.auth-modal-switch a:hover {
    color: #67e8f9;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

.auth-actions-split {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.auth-actions-split .btn-outline-glow,
.auth-actions-split .btn-primary-glow {
    flex: 1 1 140px;
    min-height: 44px;
}

.auth-submit-btn {
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 11px !important;
    letter-spacing: 2px !important;
}

.auth-submit-btn i {
    font-size: 14px;
    opacity: 0.9;
}

.auth-forgot-link {
    margin-top: 12px;
    text-align: center;
}

.auth-forgot-link a {
    font-size: 11px;
    color: var(--fo-muted);
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.auth-forgot-link a:hover {
    color: var(--fo-cyan-bright);
}

.auth-alert.error {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font-size: 12px;
    line-height: 1.5;
}

#gccc {
    display: flex;
    justify-content: center;
    margin: 12px 0 6px;
    min-height: 78px;
    grid-column: 1 / -1;
}

.captcha-group {
    grid-column: 1 / -1;
}

.recaptcha-client-note {
    margin: 10px 0 4px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(8, 145, 178, 0.35);
    background: rgba(8, 145, 178, 0.08);
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

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

.auth-subtitle {
    font-size: 12px;
    color: var(--fo-subtle);
    margin-bottom: 0;
    letter-spacing: 0.3px;
    line-height: 1.55;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--fo-muted);
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(30, 42, 61, 0.95);
    border-radius: var(--fo-radius-sm);
    background: rgba(0, 0, 0, 0.35);
    color: var(--fo-text);
    caret-color: var(--fo-cyan-bright);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:hover {
    border-color: rgba(8, 145, 178, 0.35);
    background: rgba(8, 145, 178, 0.04);
}

.form-group input:focus {
    border-color: var(--fo-cyan);
    background: rgba(8, 145, 178, 0.06);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15), 0 0 12px rgba(34, 211, 238, 0.12);
}

.form-group input::placeholder {
    color: var(--fo-input-placeholder);
    opacity: 1;
    font-size: 12px;
}

.captcha-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-img {
    width: 120px;
    height: 42px;
    border: 1px solid rgba(30, 42, 61, 0.95);
    border-radius: var(--fo-radius-sm);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    object-fit: cover;
    flex-shrink: 0;
}

.captcha-img:hover {
    border-color: var(--fo-cyan);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.captcha-row input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.terms-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(30, 42, 61, 0.7);
    border-radius: var(--fo-radius-sm);
    background: rgba(0, 0, 0, 0.2);
    margin-top: 4px;
    margin-bottom: 8px;
}

.terms-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--fo-cyan);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-row label {
    font-size: 11px;
    color: var(--fo-muted);
    cursor: pointer;
    line-height: 1.5;
}

.terms-row a {
    color: var(--fo-cyan-bright);
    text-decoration: none;
}

.terms-row a:hover {
    text-decoration: underline;
}

.auth-actions {
    margin-top: 8px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    max-width: 400px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border: 1px solid rgba(34, 211, 238, 0.45);
    border-radius: var(--fo-radius-sm);
    color: var(--fo-btn-solid-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    color: var(--fo-btn-solid-text);
    background: linear-gradient(135deg, #0ea5c5 0%, #0891b2 100%);
    box-shadow: 0 4px 24px rgba(8, 145, 178, 0.45), 0 0 16px rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.forgot-link {
    display: inline-block;
    margin-top: 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    color: var(--fo-cyan-bright);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.forgot-link:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}

/* ── FOOTER ── */
.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: var(--fo-panel);
    border: 1px solid var(--fo-border-muted);
    border-radius: var(--fo-radius);
    padding: 16px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--fo-subtle);
    text-transform: uppercase;
}

.footer-copy {
    font-size: 11px;
    color: var(--fo-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-links a {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    color: var(--fo-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--fo-cyan-bright);
}

.footer-links a i {
    font-size: 18px;
}

/* ── DOWNLOAD POPUP ── */
.download-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 10, 18, 0.92);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.download-popup.active {
    display: flex;
}

.popup-content {
    background: var(--fo-panel-solid);
    border: 1px solid var(--fo-border);
    border-radius: var(--fo-radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), var(--fo-glow);
    padding: 40px;
    width: 92%;
    max-width: 560px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(30, 42, 61, 0.95);
    border-radius: var(--fo-radius-sm);
    background: rgba(0, 0, 0, 0.3);
    color: var(--fo-muted);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup-close:hover {
    border-color: var(--fo-cyan);
    color: var(--fo-cyan-bright);
    background: rgba(8, 145, 178, 0.12);
}

.popup-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--fo-cyan-bright);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.popup-subtitle {
    color: var(--fo-muted);
    font-size: 10px;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.download-grid {
    display: flex;
    gap: 14px;
}

.download-card {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(30, 42, 61, 0.95);
    border-radius: var(--fo-radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.download-card:hover {
    border-color: var(--fo-border);
    background: rgba(8, 145, 178, 0.08);
    box-shadow: var(--fo-glow);
    transform: translateY(-2px);
}

.download-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--fo-cyan-bright);
    background: rgba(8, 145, 178, 0.12);
    border-radius: 50%;
    border: 2px solid rgba(8, 145, 178, 0.4);
    transition: all 0.25s ease;
}

.download-card:hover .download-icon {
    background: var(--fo-cyan);
    color: #fff;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

.download-name {
    color: var(--fo-text);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.download-desc {
    color: var(--fo-muted);
    font-size: 9px;
    letter-spacing: 0.5px;
}

/* ── TOAST ── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    background: rgba(10, 16, 28, 0.98);
    border: 1px solid var(--fo-border-muted);
    border-radius: var(--fo-radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: currentColor;
    opacity: 0.6;
    animation: toastProgress 4s linear;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

.toast.success {
    border-left: 3px solid #10b981;
    color: #10b981;
}

.toast.error {
    border-left: 3px solid #ef4444;
    color: #ef4444;
}

.toast-icon {
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid currentColor;
    border-radius: var(--fo-radius-sm);
}

.toast.success .toast-icon { background: rgba(16, 185, 129, 0.12); }
.toast.error .toast-icon { background: rgba(239, 68, 68, 0.12); }

.toast-content { flex: 1; }

.toast-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
    color: var(--fo-text);
}

.toast-message {
    font-size: 12px;
    color: var(--fo-subtle);
    line-height: 1.4;
}

.toast-close {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(30, 42, 61, 0.95);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--fo-muted);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(30, 42, 61, 0.6);
    color: var(--fo-text);
}

.toast.removing {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

/* ── RESPONSIVE ── */
@media screen and (max-width: 1100px) {
    .landing-grid {
        grid-template-columns: 1fr 1fr;
    }

    .landing-grid .glass-panel:last-child {
        grid-column: 1 / -1;
    }

    .hero-inner {
        padding: 36px 28px;
    }
}

@media screen and (max-width: 900px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-grid {
        grid-template-columns: 1fr;
    }

    .landing-grid .glass-panel:last-child {
        grid-column: auto;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }


    .form-row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 600px) {
    .landing-wrapper {
        padding: 12px 12px 28px;
    }

    .landing-header {
        min-height: 0;
        padding-top: 8px;
        padding-bottom: 56px;
    }

    .landing-header-actions {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .landing-logo img {
        height: 88px;
        max-width: 320px;
    }

    .hero-cta .btn-primary-glow {
        width: 100%;
        max-width: 280px;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-item {
        padding: 14px 16px;
    }

    .hero-title {
        font-size: 20px;
        letter-spacing: 1px;
    }


    .auth-modal-content {
        max-width: 100%;
    }

    .auth-modal-header,
    .auth-form,
    .auth-modal-switch {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-modal-header {
        padding-top: 24px;
    }

    .auth-form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-modal-switch {
        margin-left: 18px;
        margin-right: 18px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .auth-actions-split {
        flex-direction: column;
    }

    .auth-actions-split .btn-outline-glow,
    .auth-actions-split .btn-primary-glow {
        width: 100%;
        flex: none;
    }

    .landing-footer {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .download-grid {
        flex-direction: column;
    }

    .toast-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .captcha-row {
        flex-wrap: wrap;
    }

    .captcha-img {
        width: 100%;
        height: 44px;
    }

    .btn-header-login,
    .btn-header-register {
        padding: 8px 14px;
        font-size: 9px;
    }

    .rules-modal {
        padding: 10px;
    }

    .rules-modal-content {
        width: 100%;
        height: 94vh;
        max-height: 94vh;
        border-radius: 12px;
    }

    .rules-modal-header {
        gap: 12px;
        padding: 23px 52px 17px 17px;
    }

    .rules-modal-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 18px;
    }

    .rules-modal-header h2 {
        font-size: 15px;
    }

    .rules-modal-header > div > p:last-child {
        font-size: 11px;
    }

    .rules-modal-content .auth-modal-close {
        top: 12px;
        right: 12px;
    }

    .rules-modal-body {
        padding: 14px 17px 18px;
    }

    .rules-document-preamble {
        padding: 15px;
    }

    .rules-document-preamble h3 {
        font-size: 13px;
    }

    .rules-document-preamble p {
        font-size: 11px;
        line-height: 1.6;
    }

    .rules-document-section {
        padding: 15px 0;
    }

    .rules-document-heading {
        gap: 9px;
    }

    .rules-document-heading > span {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .rules-document-heading h3 {
        margin-top: 4px;
        font-size: 12px;
    }

    .rules-document-section ul {
        margin: 10px 0 0 39px;
        font-size: 11px;
        line-height: 1.6;
    }

    .rules-document-closing {
        padding-left: 39px;
        font-size: 11px;
    }

    .rules-modal-footer {
        padding: 12px 17px;
    }
}

@media screen and (max-width: 380px) {
    .stat-value {
        font-size: 13px;
    }
}

/* ── STANDALONE AUTH PAGES (recovery, reset_password) ── */
.auth-page-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.auth-page-panel {
    width: 100%;
    max-width: 520px;
    padding: 32px 28px 24px;
}

.auth-page-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-page-logo a {
    display: inline-block;
    line-height: 0;
}

.auth-page-logo img {
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.35));
}

.auth-alert {
    display: none;
    padding: 12px 16px;
    border-radius: var(--fo-radius-sm);
    font-size: 12px;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.auth-alert.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #4ade80;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Language selector (landing) */
.landing-lang.ds-lang {
    position: relative;
    z-index: 300;
}

.landing-lang .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(8, 145, 178, 0.35);
    border-radius: 4px;
    color: #e2e8f0;
    cursor: pointer;
    font-size: 12px;
}

.landing-lang .dropdown-toggle img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.landing-lang .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    margin: 0;
    background: #0e1420;
    border: 1px solid rgba(8, 145, 178, 0.35);
    border-radius: 6px;
    list-style: none;
    min-width: 160px;
    display: none;
    z-index: 9999;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.landing-lang.open .dropdown-menu { display: block; }

.landing-lang .dropdown-menu li { list-style: none; margin: 0; padding: 0; }

.landing-lang .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
}

.landing-lang .dropdown-menu a img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.landing-lang .dropdown-menu a:hover {
    background: rgba(8, 145, 178, 0.15);
    color: #22d3ee;
}

.landing-empty {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--fo-muted);
}
