/* ==========================================================================
   National Science Bowl Pakistan (NSBP)
   NASA Space Apps Inspired Design System (#5ce1e6)
   ========================================================================== */

:root {
    --nsbp-cyan: #5ce1e6;
    --nsbp-cyan-hover: #48cad0;
    --nsbp-cyan-subtle: rgba(92, 225, 230, 0.12);
    --nsbp-cyan-border: rgba(92, 225, 230, 0.3);
    --nsbp-cyan-glow: 0 0 18px rgba(92, 225, 230, 0.4);
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global Font Settings */
body {
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .font-display, .navbar-brand {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Atmospheric Deep Space Void (NASA Space Apps Palette)
   ========================================================================== */

:root, html, body {
    --bs-body-bg: #030712 !important;
    --bs-body-bg-rgb: 3, 7, 18 !important;
    --bs-body-color: #f8fafc !important;
    --bs-tertiary-bg: #0d1733 !important;
    --bs-card-bg: #091228 !important;
    --bs-border-color: rgba(92, 225, 230, 0.18) !important;
    --bs-border-color-subtle: rgba(92, 225, 230, 0.25) !important;
    --space-deep: #030712;
    --space-navy: #091124;
    --space-card: #0c1633;
    --space-border: rgba(92, 225, 230, 0.22);
}

html, body {
    background-color: #030712 !important;
    color: #f8fafc !important;
    background-image: 
        radial-gradient(ellipse 90% 60% at 50% -15%, rgba(14, 165, 233, 0.25), transparent 75%),
        radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.2), transparent 45%),
        radial-gradient(circle at 12% 70%, rgba(6, 182, 212, 0.18), transparent 45%),
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 120px, rgba(92, 225, 230, 0.9), rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 150px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 240px 190px, rgba(92, 225, 230, 0.8), rgba(0,0,0,0)),
        radial-gradient(1px 1px at 320px 250px, #ffffff, rgba(0,0,0,0)),
        linear-gradient(180deg, #030712 0%, #081024 35%, #050b1a 70%, #030712 100%) !important;
    background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat !important;
    background-size: auto, auto, auto, 250px 250px, 350px 350px, 300px 300px, 400px 400px, 200px 200px, 100% 100% !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

/* Force dark styling on standard bootstrap utilities */
.bg-body, .bg-body-tertiary {
    background-color: rgba(13, 23, 51, 0.85) !important;
    color: #f8fafc !important;
}

.bg-body-secondary {
    background-color: rgba(9, 17, 36, 0.9) !important;
}

.text-body {
    color: #f8fafc !important;
}

.text-body-secondary {
    color: #94a3b8 !important;
}

/* ==========================================================================
   Space Section Separation & Rhythm (Alternating Visual Tempos)
   ========================================================================== */

.space-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}

.space-section-alt {
    background: linear-gradient(180deg, rgba(13, 23, 51, 0.7) 0%, rgba(9, 17, 36, 0.9) 100%);
    border-top: 1px solid rgba(92, 225, 230, 0.18);
    border-bottom: 1px solid rgba(92, 225, 230, 0.18);
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.4);
}

.space-section-darker {
    background: radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, rgba(3, 7, 18, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Space Apps Editorial Typography & Visual Accents */
.hero-logo-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-logo-img {
    width: 100%;
    max-width: 440px;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 28px rgba(92, 225, 230, 0.25));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-logo-wrapper:hover .hero-logo-img {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 40px rgba(92, 225, 230, 0.45));
}

@media (max-width: 991.98px) {
    .hero-logo-img {
        max-width: 260px;
        max-height: 220px;
    }
}

@media (max-width: 576px) {
    .hero-logo-img {
        max-width: 200px;
        max-height: 160px;
    }
}

.hero-headline {
    font-size: clamp(2.2rem, 3.8vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero-headline .text-accent {
    color: var(--nsbp-cyan);
    position: relative;
    display: inline-block;
}

.hero-subhead {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 650px;
}

/* ==========================================================================
   Buttons with Crisp Borders & Cyber Glow
   ========================================================================== */

.btn {
    border-radius: 10px;
    font-weight: 600;
    border-width: 1.5px !important;
    border-style: solid !important;
    transition: all 0.18s ease;
}

.btn-cyan {
    background-color: var(--nsbp-cyan);
    color: #060a14 !important;
    font-family: var(--font-display);
    border-color: #22d3ee !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.btn-cyan:hover, .btn-cyan:focus {
    background-color: var(--nsbp-cyan-hover);
    color: #000000 !important;
    border-color: #67e8f9 !important;
    box-shadow: 0 6px 18px rgba(92, 225, 230, 0.35);
    transform: translateY(-1px);
}

.btn-cyan-outline {
    background-color: rgba(92, 225, 230, 0.06);
    color: var(--nsbp-cyan) !important;
    font-family: var(--font-display);
    border-color: var(--nsbp-cyan) !important;
    box-shadow: none;
}

.btn-cyan-outline:hover, .btn-cyan-outline:focus {
    background-color: var(--nsbp-cyan);
    color: #060a14 !important;
    border-color: #67e8f9 !important;
    box-shadow: 0 4px 16px rgba(92, 225, 230, 0.3);
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #0284c7;
    border-color: #38bdf8 !important;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0369a1;
    border-color: #7dd3fc !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border-color: rgba(92, 225, 230, 0.3) !important;
    color: #f1f5f9;
}

.btn-outline-secondary:hover {
    border-color: var(--nsbp-cyan) !important;
    color: var(--nsbp-cyan) !important;
    background-color: var(--nsbp-cyan-subtle);
}

.btn-danger {
    background-color: #dc2626;
    border-color: #f87171 !important;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #fca5a5 !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.btn-outline-danger {
    border-color: #ef4444 !important;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-success {
    background-color: #059669;
    border-color: #34d399 !important;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
    background-color: #047857;
    border-color: #6ee7b7 !important;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.btn-outline-success {
    border-color: #10b981 !important;
    color: #10b981;
}

.btn-outline-success:hover {
    background-color: #10b981;
    color: #ffffff;
}

/* ==========================================================================
   Floating Glassmorphic Island Navbar
   ========================================================================== */

.navbar-space-wrapper {
    padding-top: 10px;
    padding-bottom: 6px;
}

.navbar-space {
    margin: 0 auto;
    max-width: 1240px;
    width: calc(100% - 24px);
    border-radius: 9999px;
    padding: 8px 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.25s ease;
    background-color: rgba(9, 16, 35, 0.94) !important;
    border: 1.5px solid rgba(92, 225, 230, 0.25) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 991.98px) {
    .navbar-space {
        border-radius: 20px;
        padding: 10px 16px;
    }
}

.navbar-brand {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.nav-link {
    font-weight: 500;
    padding: 0.45rem 0.95rem !important;
    border-radius: 9999px;
    color: #e2e8f0 !important;
    transition: all 0.15s ease;
}

.nav-link:hover {
    color: var(--nsbp-cyan) !important;
    background-color: var(--nsbp-cyan-subtle);
}

/* Modern Space Dropdown Menu */
.dropdown-menu {
    border-radius: 16px;
    padding: 8px;
    border: 1.5px solid var(--nsbp-cyan-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    background-color: rgba(9, 16, 35, 0.98) !important;
}

.dropdown-item {
    border-radius: 8px;
    padding: 7px 14px;
    font-weight: 500;
    color: #e2e8f0;
    transition: all 0.12s ease;
}

.dropdown-item:hover {
    background-color: var(--nsbp-cyan-subtle);
    color: var(--nsbp-cyan);
    padding-left: 18px;
}

/* ==========================================================================
   Centered Rounded Cards (Login, Signup, New Team, etc.)
   ========================================================================== */

.space-card-centered {
    max-width: 680px;
    margin: 2rem auto;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    background: rgba(11, 19, 41, 0.94) !important;
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(92, 225, 230, 0.25) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

/* Standard Space Cards */
.space-card {
    background-color: var(--space-card);
    border: 1.5px solid var(--space-border);
    border-radius: 18px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.space-card:hover {
    border-color: rgba(92, 225, 230, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.space-card-interactive {
    cursor: pointer;
}

/* ==========================================================================
   Flashed Messages & Priority Notification Sections
   ========================================================================== */

#alerts {
    max-width: 1240px;
    width: calc(100% - 24px);
    margin: 0 auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.flash-card {
    border-radius: 14px;
    background: rgba(11, 19, 41, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(92, 225, 230, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.25s ease;
    color: #f1f5f9;
}

.flash-card.alert-dismissible {
    padding-right: 1.25rem !important;
}

@media (min-width: 768px) {
    .flash-card.alert-dismissible {
        padding-right: 1.5rem !important;
    }
}

.flash-card .btn-close {
    position: static !important;
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    padding: 0.5rem !important;
    align-self: center !important;
    flex-shrink: 0 !important;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.65;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.flash-card .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.flash-card .btn-close:focus {
    box-shadow: none !important;
    outline: none !important;
}

.flash-card.flash-success {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(11, 19, 41, 0.96) 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

.flash-card.flash-danger {
    border-color: rgba(239, 68, 68, 0.45);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(11, 19, 41, 0.96) 100%);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.flash-card.flash-warning {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(11, 19, 41, 0.96) 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.flash-card.flash-info {
    border-color: rgba(92, 225, 230, 0.4);
    background: linear-gradient(90deg, rgba(92, 225, 230, 0.12) 0%, rgba(11, 19, 41, 0.96) 100%);
    box-shadow: 0 8px 24px rgba(92, 225, 230, 0.12);
}

[data-bs-theme="light"] .flash-card {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .flash-card .btn-close {
    filter: none;
    opacity: 0.6;
}

[data-bs-theme="light"] .flash-card.flash-success {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%);
}

[data-bs-theme="light"] .flash-card.flash-danger {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, #ffffff 100%);
}

[data-bs-theme="light"] .flash-card.flash-warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, #ffffff 100%);
}

[data-bs-theme="light"] .flash-card.flash-info {
    background: linear-gradient(90deg, rgba(92, 225, 230, 0.08) 0%, #ffffff 100%);
}

/* Color & Text Utilities */
.text-cyan {
    color: var(--nsbp-cyan) !important;
}

a.text-cyan:hover {
    color: var(--nsbp-cyan-hover) !important;
    text-decoration: underline !important;
}

.hover-cyan {
    transition: color 0.15s ease;
}

.hover-cyan:hover {
    color: var(--nsbp-cyan) !important;
}

.bg-cyan {
    background-color: var(--nsbp-cyan) !important;
    color: #070b12 !important;
}

.border-cyan {
    border-color: var(--nsbp-cyan-border) !important;
}

/* Countdown HUD Tiles */
.countdown-tile {
    background: linear-gradient(180deg, #0c152d 0%, #060b18 100%);
    border: 1.5px solid rgba(92, 225, 230, 0.25);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 1.6rem 1.6rem;
    min-width: 120px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 576px) {
    .countdown-tile {
        padding: 1.2rem 1rem;
        min-width: 76px;
        border-radius: 14px;
    }
    .countdown-num {
        font-size: 2rem !important;
    }
}

.countdown-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(92, 225, 230, 0.5);
}

.countdown-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.85rem;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.countdown-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--nsbp-cyan);
    margin-top: 0.6rem;
}

/* Badges */
.badge-cyber {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1.5px solid var(--nsbp-cyan-border);
    background-color: var(--nsbp-cyan-subtle);
    color: var(--nsbp-cyan);
}

.countdown-badge {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: rgba(9, 16, 35, 0.85);
    border: 1.5px solid rgba(92, 225, 230, 0.3);
    color: var(--nsbp-cyan);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Form Controls with Cyber Accent */
.form-control, .form-select {
    border-radius: 10px;
    border-width: 1.5px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--nsbp-cyan);
    box-shadow: 0 0 0 0.25rem rgba(92, 225, 230, 0.25);
}

[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select {
    background-color: #0a101f;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus {
    background-color: #0e162a;
    border-color: var(--nsbp-cyan);
}

/* International Phone Input */
.iti {
    width: 100% !important;
    display: block !important;
    position: relative;
    --iti-spacer-horizontal: 14px;
    --iti-arrow-padding: 8px;
}

.iti:has(.form-control-lg) {
    --iti-spacer-horizontal: 16px;
}

.iti input.form-control {
    width: 100% !important;
}

/* Match input rounding on the country selector so hover doesn't show a square box */
.iti__country-container {
    border-top-left-radius: 8.5px;
    border-bottom-left-radius: 8.5px;
    overflow: hidden;
}

.iti__selected-country {
    border-top-left-radius: 8.5px;
    border-bottom-left-radius: 8.5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.iti__selected-country-primary {
    border-top-left-radius: 8.5px;
    border-bottom-left-radius: 8.5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transition: background-color 0.15s ease;
}

button.iti__selected-country:focus {
    outline: none;
}

button.iti__selected-country:focus-visible {
    outline: 1.5px solid var(--nsbp-cyan);
    border-radius: 8.5px 0 0 8.5px;
}

/* Dark mode theme variables and dropdown styling */
[data-bs-theme="dark"] .iti,
.iti.dark {
    --iti-border-color: #334155;
    --iti-dialcode-color: #94a3b8;
    --iti-dropdown-bg: #0b1122;
    --iti-arrow-color: #94a3b8;
    --iti-hover-color: rgba(92, 225, 230, 0.12);
    --iti-path-globe-1x: url("path/to/globe_light.webp");
    --iti-path-globe-2x: url("path/to/globe_light@2x.webp");
}

/* Polished dropdown menu */
.iti__dropdown-content {
    border-radius: 12px !important;
    border: 1.5px solid rgba(92, 225, 230, 0.25) !important;
    background-color: #0b1122 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
    z-index: 1050 !important;
}

.iti__search-input {
    background-color: #0e162a !important;
    color: #f1f5f9 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.iti__country {
    padding: 8px 14px !important;
    color: #f1f5f9;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: rgba(92, 225, 230, 0.15) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   NASA Space Apps Inspired Accents: Gold / High-Contrast CTA & Announcement
   ========================================================================== */

.btn-space-gold {
    background-color: #ffd200 !important;
    color: #0b0f19 !important;
    font-family: var(--font-display);
    font-weight: 700;
    border-color: #eab308 !important;
    box-shadow: 0 4px 18px rgba(255, 210, 0, 0.35);
    transition: all 0.2s ease;
}

.btn-space-gold:hover, .btn-space-gold:focus {
    background-color: #ffdc2e !important;
    color: #000000 !important;
    border-color: #facc15 !important;
    box-shadow: 0 6px 26px rgba(255, 210, 0, 0.55);
    transform: translateY(-2px);
}

.announcement-banner {
    background: rgba(13, 23, 51, 0.85);
    border: 1.5px solid rgba(92, 225, 230, 0.28);
    border-radius: 9999px;
    padding: 0.45rem 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Space Accordion for Rules and FAQ */
.space-accordion .accordion-item {
    background-color: var(--bs-card-bg);
    border: 1.5px solid var(--bs-border-color);
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

[data-bs-theme="dark"] .space-accordion .accordion-item {
    border-color: rgba(255, 255, 255, 0.1);
}

.space-accordion .accordion-button {
    background-color: transparent;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--bs-body-color);
    box-shadow: none;
    padding: 1.1rem 1.25rem;
}

.space-accordion .accordion-button:not(.collapsed) {
    background-color: var(--nsbp-cyan-subtle);
    color: var(--nsbp-cyan);
}

.space-accordion .accordion-button:focus {
    box-shadow: none;
}

/* Subject discipline tag cards */
.discipline-card {
    border-radius: 20px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1.5px solid rgba(92, 225, 230, 0.2);
    background: linear-gradient(180deg, rgba(16, 28, 59, 0.8) 0%, rgba(9, 16, 35, 0.95) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.discipline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--nsbp-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discipline-card:hover {
    border-color: var(--nsbp-cyan);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(92, 225, 230, 0.25);
}

.discipline-card:hover::before {
    opacity: 1;
}

/* Stat strip metric card */
.stat-metric-card {
    background: linear-gradient(180deg, #0f1c3d 0%, #081024 100%);
    border: 1.5px solid rgba(92, 225, 230, 0.25);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    transition: all 0.25s ease;
}

.stat-metric-card:hover {
    border-color: var(--nsbp-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(92, 225, 230, 0.15);
}

.stat-metric-card .metric-val {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--nsbp-cyan);
}

/* Tournament Stage Cards */
.stage-card {
    background: linear-gradient(180deg, #0d1733 0%, #070e20 100%);
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stage-card:hover {
    border-color: rgba(92, 225, 230, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 25px rgba(92, 225, 230, 0.15);
}

/* ==========================================================================
   Notyf Toast Notification Overlay (Space Neutral Theme)
   ========================================================================== */

.notyf {
    z-index: 99999 !important;
}

.notyf__toast {
    background-color: #0c1633 !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75) !important;
    color: #f8fafc !important;
    padding: 14px 48px 14px 16px !important;
    max-width: 440px !important;
    font-family: var(--font-body) !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

/* Urgency Accent Stripes on the Left */
.notyf__toast--success {
    border-left: 4px solid #10b981 !important;
}

.notyf__toast--error, .notyf__toast--danger {
    border-left: 4px solid #ef4444 !important;
}

.notyf__toast--warning {
    border-left: 4px solid #f59e0b !important;
}

.notyf__toast--info {
    border-left: 4px solid #5ce1e6 !important;
}

.notyf__message {
    padding: 0 6px !important;
    line-height: 1.45 !important;
    color: #f1f5f9 !important;
}

.notyf__icon {
    margin-right: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Refined Circular Close Button */
.notyf__dismiss {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    height: auto !important;
    width: auto !important;
    margin: 0 !important;
}

.notyf__dismiss-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 50% !important;
    width: 26px !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.75 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    padding: 0 !important;
}

.notyf__dismiss-btn:before,
.notyf__dismiss-btn:after {
    content: "" !important;
    height: 11px !important;
    width: 1.5px !important;
    background: #e2e8f0 !important;
    border-radius: 1px !important;
    position: absolute !important;
    left: calc(50% - 0.75px) !important;
    top: calc(50% - 5.5px) !important;
}

.notyf__dismiss-btn:after {
    transform: rotate(-45deg) !important;
}

.notyf__dismiss-btn:before {
    transform: rotate(45deg) !important;
}

.notyf__dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(92, 225, 230, 0.5) !important;
    opacity: 1 !important;
    transform: scale(1.08) !important;
}

@media (max-width: 576px) {
    .notyf__toast {
        max-width: calc(100vw - 24px) !important;
        margin: 0 12px 10px 12px !important;
    }
}

/* ==========================================================================
   Space Glassmorphic Modals & Inner Cards
   ========================================================================== */

.modal-content {
    background: rgba(11, 20, 44, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1.5px solid rgba(92, 225, 230, 0.3) !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 20px rgba(92, 225, 230, 0.15) !important;
    color: #f8fafc !important;
}

.modal-header {
    border-bottom: 1px solid rgba(92, 225, 230, 0.15) !important;
    padding: 1.25rem 1.5rem !important;
}

.modal-footer {
    border-top: 1px solid rgba(92, 225, 230, 0.15) !important;
    padding: 1rem 1.5rem !important;
}

.modal-backdrop.show {
    opacity: 0.7 !important;
    backdrop-filter: blur(4px) !important;
}

.space-inner-card {
    background: rgba(15, 27, 60, 0.6) !important;
    border: 1px solid rgba(92, 225, 230, 0.18) !important;
    border-radius: 14px !important;
}