:root {
    --bg: #06090f;
    --panel: rgba(13, 20, 33, 0.72);
    --panel-strong: rgba(16, 26, 43, 0.92);
    --line: rgba(255, 255, 255, 0.11);
    --text: #f5f8ff;
    --muted: #9aa8ba;
    --accent: #19d28f;
    --accent-2: #f6c44f;
    --danger: #ff5d6c;
    --blue: #4da3ff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: radial-gradient(circle at 20% 10%, rgba(25, 210, 143, 0.14), transparent 28%),
                radial-gradient(circle at 80% 10%, rgba(77, 163, 255, 0.13), transparent 30%),
                var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
#trade-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.62;
}

.premium-nav {
    background: rgba(4, 8, 15, 0.76);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}
.navbar-toggler { filter: invert(1); }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--blue));
    color: #03100b;
    box-shadow: 0 12px 32px rgba(25, 210, 143, 0.25);
}
.nav-link { color: rgba(245, 248, 255, 0.78); }
.nav-link:hover, .nav-link:focus { color: var(--accent); }
.profile-pill { border: 1px solid var(--line); border-radius: 999px; padding-inline: 14px !important; }

.page-content { min-height: 100vh; }
.flash-stack { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: 760px; }
.glass-alert { background: rgba(14, 24, 39, 0.92); color: var(--text); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.btn { border-radius: 8px; font-weight: 750; }
.btn-accent {
    background: linear-gradient(135deg, var(--accent), #7cf2bd);
    border: 0;
    color: #04100b;
    box-shadow: 0 12px 36px rgba(25, 210, 143, 0.28);
}
.btn-accent:hover { color: #03100b; transform: translateY(-1px); }
.form-control, .form-select {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
}
.form-control:focus, .form-select:focus {
    background: rgba(255,255,255,.08);
    color: var(--text);
    border-color: var(--accent);
    box-shadow: 0 0 0 .2rem rgba(25, 210, 143, .12);
}
.form-control::placeholder { color: rgba(245,248,255,.45); }
.form-select option { color: #0a0f18; }
.form-label { color: #d7e0ec; font-weight: 650; }

.hero-section { position: relative; overflow: hidden; }
.hero-section h1, .inner-hero h1 {
    font-size: clamp(2.8rem, 7vw, 6.8rem);
    line-height: .92;
    font-weight: 900;
    max-width: 980px;
}
.hero-subtitle { font-size: clamp(1.25rem, 2.4vw, 2rem); color: #dce6f2; margin-top: 24px; }
.hero-copy, .inner-hero p, .section-heading p { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-2);
    font-size: .82rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}
.eyebrow span {
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-2), transparent);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.signal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; max-width: 650px; }
.signal-row div, .terminal-card, .feature-card, .tool-card, .offer-card, .auth-card, .form-panel, .table-panel, .stat-card, .empty-state, .student-sidebar, .dashboard-topbar, .section-mini, .contact-card, .policy-content, .video-card, .stats-strip {
    background: var(--panel);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0,0,0,.32);
    border-radius: 8px;
}
.signal-row div { padding: 16px; }
.signal-row strong { display: block; color: var(--text); font-size: 1.2rem; }
.signal-row span { color: var(--muted); font-size: .9rem; }

.terminal-card { padding: 20px; transform: perspective(900px) rotateY(-8deg); }
.terminal-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 14px; color: var(--muted); }
.terminal-head span { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.terminal-head span:nth-child(2) { background: var(--accent-2); }
.terminal-head span:nth-child(3) { background: var(--accent); }
.terminal-head small { margin-left: auto; }
.market-board { padding: 24px 0 4px; }
.ticker { display: flex; justify-content: space-between; padding: 16px; margin-bottom: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 8px; }
.ticker strong { color: var(--blue); }
.ticker.up strong { color: var(--accent); }
.sparkline { height: 160px; border-radius: 8px; background: linear-gradient(160deg, rgba(25,210,143,.18), rgba(77,163,255,.08)), repeating-linear-gradient(90deg, transparent 0 28px, rgba(255,255,255,.05) 29px 30px); position: relative; overflow: hidden; }
.sparkline::after { content: ""; position: absolute; inset: 35% -10% auto; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); transform: rotate(-8deg); box-shadow: 0 0 24px var(--accent); }

.content-band { padding: 96px 0; }
.section-heading { margin-bottom: 36px; }
.section-heading h2, .tools-header h2, .form-panel h2, .table-panel h2, .section-mini h2 { font-weight: 850; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card, .tool-card, .offer-card, .form-panel, .table-panel, .stat-card, .empty-state { padding: 24px; }
.feature-card i, .empty-state i, .stat-card i { color: var(--accent); font-size: 1.8rem; }
.feature-card h3, .tool-card h3, .offer-card h2 { font-size: 1.25rem; margin-top: 16px; font-weight: 820; }
.feature-card p, .tool-card p, .offer-card p, .empty-state p { color: var(--muted); }
.tool-card { transition: transform .2s ease, border-color .2s ease; }
.tool-card:hover { transform: translateY(-4px); border-color: rgba(25,210,143,.45); }
.category-chip, .offer-label {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(25,210,143,.13);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
}
.tool-meta { color: var(--muted); font-size: .9rem; }
.offer-card { border-color: rgba(246,196,79,.32); }
.offer-label { background: rgba(246,196,79,.16); color: var(--accent-2); }
.offer-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 18px; border: 1px solid var(--line); }
.offer-video { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin: 18px 0; background: #000; }
.offer-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.inner-hero { padding: 160px 0 70px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; }
.stats-strip div { padding: 24px; border-right: 1px solid var(--line); }
.stats-strip div:last-child { border-right: 0; }
.stats-strip strong { display: block; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 920; color: var(--accent); line-height: 1; }
.stats-strip span { display: block; color: var(--muted); margin-top: 8px; font-weight: 700; }
.contact-card { padding: 28px; }
.contact-card i { font-size: 2.2rem; color: var(--accent); }
.contact-card h2 { margin-top: 18px; font-weight: 850; }
.contact-card p { color: var(--muted); }
.policy-content { padding: 32px; color: #dbe5ef; line-height: 1.8; font-size: 1.05rem; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.video-card { overflow: hidden; }
.video-frame { aspect-ratio: 16/9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-body { padding: 22px; }
.video-body h2 { font-size: 1.25rem; font-weight: 850; margin-top: 14px; }
.video-body p { color: var(--muted); margin-bottom: 0; }

.auth-page, .auth-wrap { min-height: 100vh; }
.auth-wrap { display: grid; place-items: center; padding: 96px 16px 32px; }
.auth-card { width: min(100%, 470px); padding: 34px; }
.auth-card h1 { text-align: center; font-size: 2rem; font-weight: 880; }
.auth-card p, .auth-alt { text-align: center; color: var(--muted); }
.auth-alt { margin-top: 18px; }
.auth-alt a { color: var(--accent); font-weight: 800; }

.dashboard-shell { display: grid; grid-template-columns: 290px 1fr; gap: 24px; padding: 112px 24px 48px; min-height: 100vh; }
.student-sidebar { padding: 18px; position: sticky; top: 92px; height: calc(100vh - 120px); overflow: auto; }
.sidebar-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.sidebar-head small { display: block; color: var(--muted); }
.filter-btn {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid transparent;
    color: #dbe5ef;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    text-align: left;
}
.filter-btn:hover, .filter-btn.active { background: rgba(25,210,143,.12); border-color: rgba(25,210,143,.32); color: var(--accent); }
.dashboard-topbar { padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dashboard-topbar h1 { font-weight: 890; margin: 0; }
.dashboard-search { position: relative; width: min(100%, 460px); }
.dashboard-search i, .admin-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.dashboard-search input, .admin-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px 0 42px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
    color: var(--text);
}
.section-mini { margin-top: 18px; padding: 18px; }
.mini-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.mini-tool { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.05); }
.mini-tool span { display: block; color: var(--muted); font-size: .88rem; }
.tools-header { margin: 26px 0 14px; display: flex; justify-content: space-between; align-items: center; }
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.loading-card { grid-column: 1/-1; color: var(--muted); padding: 24px; border: 1px solid var(--line); border-radius: 8px; }

.admin-shell { background: #070b12; color: var(--text); }
.admin-layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.admin-sidebar { background: rgba(9,14,24,.96); border-right: 1px solid var(--line); padding: 24px; position: sticky; top: 0; height: 100vh; }
.admin-menu { display: grid; gap: 8px; }
.admin-menu a { padding: 12px; border-radius: 8px; color: #cfdae7; display: flex; align-items: center; gap: 10px; }
.admin-menu a:hover { background: rgba(25,210,143,.1); color: var(--accent); }
.admin-main { padding: 28px; overflow: hidden; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-head h1 { font-weight: 890; margin: 0; }
.admin-user, .status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.status.active { color: var(--accent); }
.status.inactive { color: var(--accent-2); }
.status.suspended { color: var(--blue); }
.status.blocked { color: var(--danger); }
.stat-card span { display: block; color: var(--muted); margin-top: 12px; }
.stat-card strong { display: block; font-size: 2rem; font-weight: 900; }
.admin-shell .form-control,
.admin-shell .form-select,
.admin-shell textarea,
.admin-shell input,
.admin-shell select {
    background-color: rgba(11, 18, 31, .94) !important;
    color: #f5f8ff !important;
    border-color: rgba(255,255,255,.16) !important;
}
.admin-shell .form-control::placeholder,
.admin-shell input::placeholder,
.admin-shell textarea::placeholder { color: rgba(245,248,255,.48) !important; }
.admin-shell .form-select option,
.admin-shell select option {
    background-color: #0b1220;
    color: #f5f8ff;
}
.admin-shell .form-control:disabled,
.admin-shell .form-select:disabled,
.admin-shell input:disabled,
.admin-shell select:disabled {
    background-color: rgba(20, 29, 45, .92) !important;
    color: #9aa8ba !important;
    opacity: 1;
}
.premium-table {
    --bs-table-bg: transparent;
    --bs-table-color: #e9eff7;
    --bs-table-border-color: rgba(255,255,255,.12);
    --bs-table-striped-bg: rgba(255,255,255,.04);
    --bs-table-striped-color: #f5f8ff;
    --bs-table-hover-bg: rgba(25,210,143,.08);
    --bs-table-hover-color: #f5f8ff;
    color: #e9eff7;
    margin: 0;
}
.premium-table thead, .premium-table tbody, .premium-table tr, .premium-table th, .premium-table td {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}
.premium-table th { color: #9aa8ba !important; border-color: var(--line); }
.premium-table td { color: #e9eff7 !important; border-color: var(--line); vertical-align: middle; }
.admin-search { position: relative; width: min(100%, 320px); }
.switch-line { display: flex; align-items: center; gap: 10px; color: #d8e2ed; font-weight: 700; }
.premium-accordion .accordion-item { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text); }
.premium-accordion .accordion-button { background: rgba(255,255,255,.03); color: var(--text); gap: 10px; }
.premium-accordion .accordion-button span { color: var(--muted); font-size: .9rem; margin-left: auto; }
.premium-accordion .accordion-button:not(.collapsed) { background: rgba(25,210,143,.1); color: var(--accent); }
.premium-accordion .accordion-body { color: var(--text); }
.site-footer { padding: 56px 0 26px; border-top: 1px solid var(--line); background: rgba(3, 7, 13, .86); backdrop-filter: blur(18px); }
.site-footer p, .footer-muted { color: var(--muted); }
.site-footer h3 { font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); margin-bottom: 14px; }
.site-footer a { display: block; color: #d7e3ef; margin-bottom: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.footer-contact a { margin: 0; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

@media (max-width: 1100px) {
    .tools-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-shell, .admin-layout { grid-template-columns: 1fr; }
    .student-sidebar, .admin-sidebar { position: relative; top: auto; height: auto; }
    .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
    .hero-section h1, .inner-hero h1 { font-size: 2.6rem; line-height: 1; }
    .signal-row, .tools-grid, .feature-grid, .stats-strip, .video-grid { grid-template-columns: 1fr; }
    .dashboard-shell { padding: 92px 14px 32px; }
    .dashboard-topbar, .admin-head { align-items: stretch; flex-direction: column; }
    .terminal-card { transform: none; }
    .content-band { padding: 64px 0; }
    .admin-main { padding: 18px; }
}
