:root {
    --opt-bg: #05020a;
    --opt-bg-2: #0d0622;
    --opt-surface: rgba(255, 255, 255, 0.045);
    --opt-surface-strong: rgba(255, 255, 255, 0.075);
    --opt-border: rgba(255, 255, 255, 0.1);
    --opt-text: #f8fafc;
    --opt-muted: #9ca3af;
    --opt-purple: #8b5cf6;
    --opt-blue: #38bdf8;
    --opt-pink: #ec4899;
    --opt-green: #22c55e;
    --opt-amber: #f59e0b;
    --opt-red: #ef4444;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background:
        radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.16), transparent 26rem),
        radial-gradient(circle at 84% 8%, rgba(236, 72, 153, 0.14), transparent 24rem),
        linear-gradient(135deg, var(--opt-bg) 0%, var(--opt-bg-2) 54%, #020105 100%);
    color: var(--opt-text);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 75%);
    z-index: -2;
}

.orbital-field {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.orbital-field span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.95);
    animation: floatNode 11s ease-in-out infinite;
}

.orbital-field span:nth-child(1) { left: 9%; top: 22%; animation-delay: -2s; }
.orbital-field span:nth-child(2) { left: 24%; top: 76%; animation-delay: -6s; }
.orbital-field span:nth-child(3) { left: 48%; top: 12%; animation-delay: -4s; }
.orbital-field span:nth-child(4) { left: 73%; top: 27%; animation-delay: -8s; }
.orbital-field span:nth-child(5) { left: 88%; top: 68%; animation-delay: -1s; }
.orbital-field span:nth-child(6) { left: 63%; top: 84%; animation-delay: -5s; }

@keyframes floatNode {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
    50% { transform: translate3d(28px, -34px, 0) scale(1.8); opacity: 0.9; }
}

.glass-panel,
.glass-card {
    background: var(--opt-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--opt-border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 40%, #38bdf8 74%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-button {
    background: linear-gradient(135deg, var(--opt-purple), var(--opt-blue) 48%, var(--opt-pink));
    box-shadow: 0 18px 50px rgba(139, 92, 246, 0.28);
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.premium-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 22px 70px rgba(56, 189, 248, 0.24);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.tech-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.tech-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% -20%;
    height: 120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 66%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.tech-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.45);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.035));
}

.tech-card:hover::after {
    opacity: 1;
}

.countdown-cell {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    min-height: 74px;
}

.capacity-ring {
    --ring: 0deg;
    --ring-color: var(--opt-green);
    width: 190px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #080412 0 58%, transparent 59%),
        conic-gradient(var(--ring-color) var(--ring), rgba(255, 255, 255, 0.08) 0);
    box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.045), 0 0 70px color-mix(in srgb, var(--ring-color) 30%, transparent);
}

.field {
    width: 100%;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    padding: 0.82rem 0.95rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field:focus {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
    background: rgba(0, 0, 0, 0.45);
}

.option-card input:checked + .option-inner,
.course-option input:checked + .option-inner {
    border-color: rgba(56, 189, 248, 0.72);
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(139, 92, 246, 0.12));
    box-shadow: 0 18px 50px rgba(56, 189, 248, 0.12);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.55);
    border-radius: 999px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .orbital-field span,
    .reveal {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* Academy-wide light theme override: keeps existing Tailwind-heavy pages bright,
   premium, readable, and consistent across registration, student, checkout, and admin. */
:root {
    --opt-bg: #f6f8fc;
    --opt-bg-2: #eef4fb;
    --opt-surface: rgba(255, 255, 255, 0.92);
    --opt-surface-strong: #ffffff;
    --opt-border: rgba(15, 23, 42, 0.12);
    --opt-text: #0f172a;
    --opt-muted: #536173;
    --opt-purple: #5b5df7;
    --opt-blue: #2563eb;
    --opt-pink: #db2777;
    --opt-green: #059669;
    --opt-amber: #d97706;
    --opt-red: #dc2626;
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.12), transparent 26rem),
        radial-gradient(circle at 84% 12%, rgba(8, 167, 165, 0.12), transparent 24rem),
        linear-gradient(180deg, #ffffff 0%, #f7f9fd 44%, #eef4fb 100%) !important;
    color: var(--opt-text) !important;
}

body::before,
.orbital-field {
    display: none !important;
}

.glass-panel,
.glass-card,
.tech-card,
.countdown-cell,
.field,
.option-inner {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: var(--opt-text) !important;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.field {
    background: #ffffff !important;
}

.field:focus {
    border-color: rgba(37, 99, 235, 0.62) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.ghost-button {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.premium-button {
    background: linear-gradient(135deg, #0f766e, #2563eb 52%, #5b5df7) !important;
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.18) !important;
}

.capacity-ring {
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(var(--ring-color) var(--ring), #e2e8f0 0) !important;
}

.text-white,
.text-gray-300,
.text-gray-400,
.text-gray-500,
.text-purple-400,
.text-sky-300,
.text-purple-300 {
    color: #0f172a !important;
}

.text-gray-400,
.text-gray-500 {
    color: #64748b !important;
}

.bg-black\/20,
.bg-black\/40,
.bg-white\/5,
.bg-white\/\[0\.02\],
.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.88) !important;
}

.border-white\/5,
.border-white\/10,
.border-white\/\[0\.05\] {
    border-color: rgba(15, 23, 42, 0.12) !important;
}

.divide-white\/5 > :not([hidden]) ~ :not([hidden]) {
    border-color: rgba(15, 23, 42, 0.08) !important;
}

.swal2-popup {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}
