:root {
    --bg-black: #050C18;
    --bg-dark-prussian: #030B15;
    --bg-mid-prussian: #0A192F;
    --bg-light-prussian: #0E2443;
    --bg-card: #0A1424;
    --gold-bright: #FFD700;
    --gold-mid: #F4C430;
    --gold-dark: #DAA520;
    --gold-glow: rgba(255, 215, 0, 0.25);
    --gold-border: rgba(218, 165, 32, 0.35);
    --text-white: #FFFFFF;
    --text-gold-light: #FFF8DC;
    --text-muted: #A0B4CB;
    --text-dim: #647B96;
    --glass-bg: rgba(3, 11, 21, 0.88);
    --glass-border: rgba(255, 215, 0, 0.2);
    --danger: #ff8b8b;
    --ok: #b6f3c4;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark-prussian); border-left: 1px solid rgba(255, 215, 0, 0.12); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-dark), var(--gold-bright)); border-radius: 6px; border: 2px solid var(--bg-dark-prussian); }
* { scrollbar-width: thin; scrollbar-color: var(--gold-dark) var(--bg-dark-prussian); margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
body {
    background-color: var(--bg-black);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(10, 25, 47, 0.85) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(14, 36, 67, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(3, 11, 21, 0.98) 0%, transparent 100%);
    background-attachment: fixed;
}
#stars-container { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.floating-star { position: absolute; bottom: -50px; color: var(--gold-bright); opacity: 0; user-select: none; animation: floatStarUp linear infinite; }
@keyframes floatStarUp {
    0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 0; }
    15% { opacity: 0.95; text-shadow: 0 0 12px var(--gold-bright); }
    85% { opacity: 0.85; }
    100% { transform: translateY(-112vh) scale(1.3) rotate(360deg); opacity: 0; }
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; }
.page-loader { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), #fff); box-shadow: 0 0 15px var(--gold-bright); z-index: 9999; transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease; pointer-events: none; }
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
body.has-ribbon .header { top: 38px; }
.demo-ribbon { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(90deg, #1a1400, #3a2d00); color: var(--gold-bright); font-size: 0.82rem; border-bottom: 1px solid var(--gold-dark); }
.demo-ribbon span { background: var(--gold-bright); color: #111; border-radius: 99px; padding: 1px 8px; font-weight: 800; font-size: 0.72rem; }
.nav-container { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; height: 75px; position: relative; }
.logo-container { display: flex; align-items: center; gap: 12px; z-index: 1002; }
.logo-badge { width: 45px; height: 45px; background: linear-gradient(135deg, var(--bg-mid-prussian), var(--bg-light-prussian)); border: 2px solid var(--gold-bright); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 16px var(--gold-glow); transition: var(--transition); }
.logo-container:hover .logo-badge { transform: scale(1.08) rotate(4deg); box-shadow: 0 0 24px rgba(255, 215, 0, 0.5); }
.logo-img { width: 90%; height: 90%; object-fit: cover; }
.logo-text { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(110deg, #fff 20%, var(--gold-bright) 50%, #fff 80%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: goldGlowShimmer 4s linear infinite; }
@keyframes goldGlowShimmer { to { background-position: 200% center; } }
.nav-menu { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); padding: 0.5rem 0.2rem; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--gold-bright); }
.dropdown-arrow { font-size: 0.65rem; transition: transform 0.3s ease; }
@media (min-width: 901px) {
    .dropdown-menu { position: absolute; top: 100%; opacity: 0; visibility: hidden; transform: translateY(12px); background: rgba(6, 16, 32, 0.96); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 20px 45px rgba(0,0,0,.85), 0 0 25px var(--gold-glow); transition: var(--transition); z-index: 1100; padding: 1rem; }
    .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(6px); }
    .has-dropdown:hover .mega-menu, .has-dropdown:focus-within .mega-menu { transform: translateX(-50%) translateY(6px); }
    .has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); color: var(--gold-bright); }
    .mega-menu { left: 50%; transform: translateX(-50%) translateY(12px); width: 780px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.25rem; }
    .simple-menu { left: 0; width: 210px; display: flex; flex-direction: column; gap: 4px; }
}
.solution-card { background: rgba(14, 36, 67, 0.35); border: 1px solid rgba(218, 165, 32, 0.2); border-radius: 12px; padding: 1rem; display: flex; flex-direction: column; gap: 5px; transition: var(--transition); margin: 5px; }
.solution-card:hover { background: rgba(14, 36, 67, 0.85); border-color: var(--gold-bright); transform: translateY(-3px); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-icon { width: 38px; height: 38px; background: linear-gradient(135deg, var(--bg-mid-prussian), var(--bg-dark-prussian)); border: 1px solid var(--gold-dark); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--gold-bright); flex-shrink: 0; }
.card-title { font-size: 0.98rem; font-weight: 700; }
.card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.card-action { font-size: 0.75rem; font-weight: 600; color: var(--gold-mid); margin-top: auto; }
.dropdown-link { padding: 0.65rem 0.9rem; border-radius: 8px; font-size: 0.9rem; color: var(--text-muted); transition: var(--transition); }
.dropdown-link:hover { background: rgba(255, 215, 0, 0.1); color: var(--gold-bright); padding-left: 1.2rem; }
.account-btn { background: linear-gradient(135deg, rgba(255,215,0,.12), rgba(10,25,47,.9)); border: 1px solid var(--gold-dark); color: var(--gold-bright); padding: 0.45rem 1rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.account-btn:hover { background: var(--gold-bright); color: var(--bg-black); transform: translateY(-2px); }
.account-btn:hover .avatar-letter { color: var(--bg-black); border-color: var(--bg-black); }
.menu-toggle { display: none; font-size: 1.8rem; color: var(--gold-bright); padding: 0.4rem; z-index: 1002; }
.nav-overlay { position: fixed; inset: 0; background: rgba(3,11,21,.85); backdrop-filter: blur(8px); z-index: 998; opacity: 0; visibility: hidden; transition: var(--transition); }
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-menu { position: fixed; top: 75px; right: -100%; width: 320px; max-width: 85vw; height: calc(100vh - 75px); background: rgba(3,11,21,.98); border-left: 1px solid var(--glass-border); flex-direction: column; align-items: flex-start; padding: 1.5rem 1.25rem 2.5rem; overflow-y: auto; z-index: 999; transition: right .35s ease; }
    body.has-ribbon .nav-menu { top: 113px; height: calc(100vh - 113px); }
    .nav-menu.mobile-open { right: 0; }
    .nav-overlay.mobile-open { opacity: 1; visibility: visible; }
    .nav-list { flex-direction: column; align-items: flex-start; width: 100%; gap: 0.4rem; }
    .nav-item { width: 100%; flex-direction: column; align-items: flex-start; }
    .nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .dropdown-menu { display: none; width: 100%; padding: 0.6rem 0; background: transparent; box-shadow: none; border: none; }
    .has-dropdown.mobile-expanded > .dropdown-menu { display: flex !important; flex-direction: column !important; }
    .has-dropdown.mobile-expanded > .mega-menu { display: grid !important; grid-template-columns: 1fr !important; }
    .has-dropdown.mobile-expanded > .nav-link .dropdown-arrow { transform: rotate(180deg); color: var(--gold-bright); }
    .account-item { margin-top: 1rem; width: 100%; }
    .account-btn { width: 100%; justify-content: center; }
}
.hero { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 150px 1.5rem 40px; text-align: center; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-badge, .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,215,0,.12); border: 1px solid var(--gold-dark); color: var(--gold-bright); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 1.1rem; text-transform: uppercase; }
.hero-title { font-size: 3.4rem; font-weight: 800; line-height: 1.12; margin-bottom: 1.1rem; letter-spacing: -1px; }
.hero-title-accent { background: linear-gradient(120deg, #fff 0%, var(--gold-bright) 50%, var(--gold-dark) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc, .lede { font-size: 1.08rem; color: var(--text-muted); max-width: 760px; line-height: 1.65; margin-bottom: 1.6rem; }
.ilsearch-container { width: 100%; max-width: 800px; margin: 0 auto; }
.ilsearch-box { background: rgba(6,16,32,.94); border: 2px solid var(--gold-dark); border-radius: 50px; padding: 6px 8px 6px 24px; display: flex; align-items: center; box-shadow: 0 12px 35px rgba(0,0,0,.8), 0 0 30px var(--gold-glow); transition: var(--transition); }
.ilsearch-box:focus-within { border-color: var(--gold-bright); transform: translateY(-2px); }
.ilsearch-input, .input, .select { width: 100%; background: transparent; border: none; outline: none; color: #fff; font-size: 1.02rem; padding: 0.7rem 0.5rem; }
.input, .select, textarea.input { background: rgba(6,16,32,.75); border: 1px solid var(--gold-border); border-radius: 12px; padding: 0.75rem 0.9rem; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(255,215,0,.12); }
.select { appearance: none; }
textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }
.ilsearch-input::placeholder, .input::placeholder { color: var(--text-dim); }
.ilsearch-btn, .btn { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark)); color: var(--bg-black); border-radius: 40px; padding: 0.8rem 1.5rem; font-weight: 800; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.btn { border-radius: 12px; }
.ilsearch-btn:hover, .btn:hover { transform: translateY(-2px); box-shadow: 0 0 22px var(--gold-bright); }
.btn.ghost, .btn-ghost { background: transparent; color: var(--gold-bright); border: 1px solid var(--gold-dark); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid rgba(255,139,139,.45); }
.btn-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(5,12,24,.18), rgba(255,255,255,.42)); pointer-events: none; }
.btn-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; }
.btn.is-busy { cursor: progress; }
.btn.danger .btn-fill { background: linear-gradient(90deg, rgba(120,20,20,.35), rgba(255,180,180,.45)); }
.upload-meter { display: flex; flex-direction: column; gap: .35rem; }
.upload-meter-bar { height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid var(--gold-border); }
.upload-meter-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a6a12, #ffd700 70%, #fff4b0); }
.upload-meter-label { margin: 0; color: var(--gold-bright); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.attach-list { margin: .8rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.attach-list a { color: var(--gold-bright); }
.dash-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(218, 165, 32, .45);
    background: rgba(255, 215, 0, .08);
    color: var(--gold-bright);
    font-size: 1rem;
    line-height: 1;
}
.dash-toggle:hover { background: var(--gold-bright); color: #111; }
.dash-toggle-mob { display: none; }
.install-progress { display: flex; flex-direction: column; gap: .35rem; }
.install-progress-bar { height: 12px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid var(--gold-border); }
.install-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8a6a12, #ffd700 70%, #fff4b0); transition: width .2s ease; }
.install-progress p { margin: 0; color: var(--gold-bright); font-size: .82rem; font-weight: 800; }
.install-status { margin: 0; border-radius: 12px; padding: .85rem 1rem; line-height: 1.45; }
.install-status.error { background: rgba(120, 24, 24, .35); border: 1px solid rgba(255,139,139,.55); color: #ffd0d0; }
.install-status.ok { background: rgba(20, 80, 40, .35); border: 1px solid rgba(182,243,196,.45); color: var(--ok); }
.install-status.loading { background: rgba(255,215,0,.08); border: 1px solid var(--gold-border); color: var(--gold-bright); }
.rate-row { display: grid; grid-template-columns: 92px 1fr 130px auto; gap: .5rem; align-items: center; }
.port-shot { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; border: 1px solid var(--gold-border); background: #000; margin-bottom: .7rem; }
.port-thumb { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gold-border); }
.profile-grid { display: grid; grid-template-columns: 160px 1fr; gap: .35rem .8rem; margin: 0; }
.profile-grid dt { color: var(--text-dim); }
.profile-grid dd { margin: 0; }
.btn.small, .btn-small { padding: 0.45rem 0.8rem; font-size: 0.8rem; border-radius: 9px; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.ilsearch-subtext { font-size: 0.85rem; color: var(--text-dim); margin-top: 1rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ilsearch-terminal { margin-top: 1.4rem; background: rgba(3,11,21,.96); border: 1px solid var(--gold-border); border-radius: 16px; padding: 1.1rem; text-align: left; display: none; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px);} to { opacity: 1; transform: none;} }
.terminal-header { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 8px; margin-bottom: 10px; color: var(--gold-bright); font-family: ui-monospace, monospace; font-size: 0.8rem; }
.terminal-body { font-family: ui-monospace, monospace; font-size: 0.84rem; color: var(--text-muted); }
.terminal-line { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.pulse-dot { width: 8px; height: 8px; background: var(--gold-bright); border-radius: 50%; animation: pulseGlow .9s infinite alternate; }
@keyframes pulseGlow { from { opacity: .3; transform: scale(.8);} to { opacity: 1; transform: scale(1.2);} }
.results-list, .stack { display: flex; flex-direction: column; gap: 0.8rem; }
.result-card, .item-card, .panel, .card-block { background: rgba(10,25,47,.72); border: 1px solid rgba(218,165,32,.2); border-radius: 14px; padding: 1rem 1.05rem; transition: var(--transition); }
.result-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.result-card:hover, .item-card:hover { border-color: var(--gold-bright); transform: translateY(-2px); }
.result-category, .kicker { font-size: 0.74rem; color: var(--gold-mid); letter-spacing: .4px; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.result-title { font-weight: 800; margin-bottom: 4px; }
.result-snippet, .muted { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.footer { position: relative; z-index: 2; border-top: 1px solid var(--glass-border); margin-top: auto; padding: 1.5rem; color: var(--text-dim); font-size: 0.88rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.2rem; list-style: none; }
.footer-links a:hover { color: var(--gold-bright); }
.page { position: relative; z-index: 2; flex: 1; padding: 120px 0 64px; animation: fadeUp .45s ease; }
body.has-ribbon .page, body.has-ribbon .hero { padding-top: 158px; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 2rem)); }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.6px; line-height: 1.15; margin-bottom: .6rem; }
h2 { font-size: 1.25rem; margin: .2rem 0 .8rem; }
h3 { margin: 1rem 0 .4rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.item-card { display: flex; flex-direction: column; gap: .55rem; min-height: 220px; }
.item-card .emoji { font-size: 1.6rem; }
.price { color: var(--gold-bright); font-weight: 800; font-size: 1.15rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.prose { color: var(--text-muted); line-height: 1.7; }
.prose p, .prose ul { margin: 0 0 .9rem; }
.prose a { color: var(--gold-bright); }
.prose ul { padding-left: 1.1rem; }
.stack-form, .stack { display: flex; flex-direction: column; gap: .85rem; }
label {margin: 5px;}
.stack-form label, .field { display: flex; flex-direction: column; gap: .35rem; font-size: .86rem; color: var(--text-gold-light); font-weight: 600; }
.check { flex-direction: row !important; align-items: center; gap: .6rem !important; color: var(--text-muted); font-weight: 500; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.detail { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1.2rem; align-items: start; }
.buy-card { position: sticky; top: 110px; }
.toast-stack { position: fixed; top: 92px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100% - 24px)); }
.toast { background: rgba(8,16,32,.96); border: 1px solid var(--gold-border); color: white; border-radius: 14px; padding: .85rem 1rem; box-shadow: 0 12px 40px rgba(0,0,0,.45); animation: fadeUp .3s ease; display: flex; gap: .6rem; align-items: flex-start; }
.toast.success { border-color: rgba(182,243,196,.5); }
.toast.error { border-color: rgba(255,139,139,.6); }
.toast.loading { border-color: var(--gold-bright); }
.toast.hide { opacity: 0; transform: translateX(12px); transition: .3s ease; }
.dash-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 1.15rem; align-items: start; transition: grid-template-columns .24s ease; }
.dash-main { min-width: 0; }
.dash-overlay { display: none; }
.dash-side {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    max-height: calc(100vh - 114px);
    overflow: auto;
    padding: .85rem .7rem .9rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 24, 44, .98), rgba(6, 14, 28, .96));
    border: 1px solid rgba(218, 165, 32, .28);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}
.dash-side-head { display: flex; align-items: center; justify-content: space-between; gap: .45rem; padding: .15rem .2rem .75rem; margin-bottom: .2rem; border-bottom: 1px solid rgba(255, 215, 0, .14); }
.dash-brand { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: 0; margin: 0; border: 0; }
.dash-brand-text { min-width: 0; }
.dash-brand-text strong, .dash-brand-text small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-mark { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 215, 0, .1); border: 1px solid var(--gold-border); color: var(--gold-bright); font-weight: 800; flex-shrink: 0; }
.dash-brand-text strong, .dash-brand strong { font-size: .92rem; line-height: 1.2; }
.dash-brand-text small, .dash-brand small { color: var(--text-dim); font-size: .72rem; }
.dash-kicker { margin: .45rem .45rem .15rem; color: var(--text-dim); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.side-link { display: flex; flex-direction: column; gap: .15rem; }
.side-link a, .dash-logout, .dash-exit {
    position: relative;
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .62rem .7rem;
    border-radius: 11px;
    color: #c5d4e8;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 650;
    font-size: .92rem;
    text-align: left;
}
.nav-ico { width: 1.45rem; text-align: center; flex-shrink: 0; font-size: 1.02rem; }
.nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { margin-left: auto; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; border-radius: 99px; background: var(--gold-bright); color: #111; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side-link a.active { color: var(--gold-bright); background: rgba(255, 215, 0, .1); font-weight: 800; }
.side-link a.active::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold-bright); }
.side-link a:hover:not(.active), .dash-logout:hover, .dash-exit:hover { color: var(--gold-bright); background: rgba(255, 215, 0, .06); }
.dash-logout, .dash-exit { margin-top: .7rem; }
.tab-btn { display: flex; align-items: center; gap: .45rem; padding: .68rem .75rem; border-radius: 12px; color: var(--text-muted); border: 1px solid transparent; }
.tab-btn.active { color: var(--gold-bright); background: rgba(255,215,0,.08); border-color: rgba(218,165,32,.28); }
@media (min-width: 981px) {
    .dash-shell.is-mini { grid-template-columns: 86px minmax(0, 1fr); }
    .dash-shell.is-mini .dash-brand-text,
    .dash-shell.is-mini .dash-kicker,
    .dash-shell.is-mini .nav-label { display: none; }
    .dash-shell.is-mini .dash-side-head { justify-content: center; }
    .dash-shell.is-mini .side-link a,
    .dash-shell.is-mini .dash-logout,
    .dash-shell.is-mini .dash-exit { justify-content: center; padding-left: .35rem; padding-right: .35rem; }
    .dash-shell.is-mini .nav-count { position: absolute; top: 4px; right: 6px; margin: 0; min-width: 1rem; height: 1rem; font-size: .62rem; }
    .dash-shell.is-mini .side-link a.active::before { left: 0; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; }
.stat strong { display: block; font-size: 1.5rem; color: var(--gold-bright); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .7rem .55rem; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
th { color: var(--text-dim); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-dark); }
.avatar-letter { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--gold-dark); color: var(--gold-bright); font-size: .8rem; font-weight: 800; }
.progress { height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright)); }
.msg-layout { display: grid; grid-template-columns: 180px 280px 1fr; gap: .7rem; min-height: 460px; }
.msg-list button, .folder-btn { width: 100%; text-align: left; padding: .65rem .7rem; border-radius: 10px; color: var(--text-muted); }
.msg-list button.active, .folder-btn.active, .msg-list button:hover, .folder-btn:hover { background: rgba(255,215,0,.08); color: white; }
.unread { color: var(--gold-bright); font-weight: 800; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--gold-border); color: var(--gold-mid); border-radius: 99px; padding: .1rem .5rem; font-size: .72rem; }
.badge.warn { color: #ffd0d0; border-color: rgba(255,139,139,.4); }
.fm-item { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.crumbs { display: flex; gap: .4rem; flex-wrap: wrap; color: var(--text-dim); font-size: .85rem; }
.crumbs button { color: var(--gold-mid); }
.player { background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--gold-border); }
.player video, .player iframe, .player embed { width: 100%; min-height: 420px; border: 0; background: #000; }
.lesson-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .7rem .2rem; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--text-muted); }
.lesson-list a.active { color: var(--gold-bright); }
.cert { background: radial-gradient(circle at 20% 0%, rgba(255,215,0,.18), transparent 40%), #07111f; border: 2px solid var(--gold-bright); border-radius: 18px; padding: 2.2rem 1.6rem; text-align: center; box-shadow: 0 0 40px rgba(255,215,0,.15); }
.cert h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--gold-bright); }
.ref { font-family: ui-monospace, monospace; letter-spacing: .08em; color: white; }
.steps { display: flex; gap: .5rem; margin-bottom: 1rem; }
.step-pill { padding: .3rem .7rem; border-radius: 99px; border: 1px solid var(--gold-border); color: var(--text-dim); font-size: .78rem; }
.step-pill.on { color: #111; background: var(--gold-bright); border-color: var(--gold-bright); }
.camera-box { background: #000; border-radius: 16px; overflow: hidden; border: 1px solid var(--gold-border); position: relative; aspect-ratio: 4/3; }
.camera-box video, .camera-box canvas, .camera-box img { width: 100%; height: 100%; object-fit: cover; }
.pay-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.pay-tabs button { border: 1px solid var(--gold-border); border-radius: 999px; padding: .45rem .8rem; color: var(--text-muted); }
.pay-tabs button.on { background: var(--gold-bright); color: #111; }
.notice { border: 1px dashed var(--gold-border); border-radius: 12px; padding: .8rem 1rem; color: var(--text-muted); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; }
pre { background: rgba(0,0,0,.35); border: 1px solid var(--gold-border); border-radius: 12px; padding: 1rem; overflow: auto; color: var(--text-gold-light); }
.code-block { position: relative; margin: .2rem 0 1rem; }
.code-block pre { margin: 0; padding-top: 2.5rem; white-space: pre-wrap; }
.code-copy {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 1;
  border: 1px solid var(--gold-border);
  background: rgba(5, 12, 24, .9);
  color: var(--gold-bright);
  border-radius: 8px;
  padding: .28rem .7rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
}
.code-copy:hover, .code-copy.copied { background: var(--gold-bright); color: #111; border-color: var(--gold-bright); }
.editor { min-height: 280px; font-family: ui-monospace, monospace; font-size: .85rem; }
.hidden { display: none !important; }
@media (max-width: 980px) {
    .detail, .msg-layout { grid-template-columns: 1fr; }
    .buy-card { position: static; }
    .hero-title { font-size: 2.2rem; }
    .split, .rate-row, .profile-grid { grid-template-columns: 1fr; }
    .player video, .player iframe { min-height: 240px; }
    .dash-shell { display: block; }
    .dash-toggle-desk { display: none; }
    .dash-toggle-mob {
        display: inline-flex;
        position: fixed;
        top: 84px;
        left: 12px;
        z-index: 1610;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        box-shadow: 0 8px 22px rgba(0,0,0,.35);
    }
    body.has-ribbon .dash-toggle-mob { top: 122px; }
    .dash-side {
        position: fixed;
        z-index: 1500;
        top: 75px;
        left: 0;
        bottom: 0;
        width: min(300px, 88vw);
        max-height: none;
        height: auto;
        margin: 0;
        border-radius: 0 18px 0 0;
        transform: translateX(-105%);
        transition: transform .28s cubic-bezier(.16, 1, .3, 1);
        overflow: auto;
        padding: .75rem .8rem 1.2rem;
    }
    body.has-ribbon .dash-side { top: 113px; }
    .dash-side.open { transform: translateX(0); box-shadow: 18px 0 50px rgba(0,0,0,.45); }
    .dash-side-head { padding-left: 48px; min-height: 46px; }
    .dash-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 14, .55);
        z-index: 1490;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .25s ease, visibility .25s ease;
    }
    .dash-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
    body.dash-nav-open { overflow: hidden; }
    .side-link a, .dash-logout, .dash-exit { width: 100%; }
    .msg-layout { min-height: 0; }
}
@media print {
    .header, .footer, .demo-ribbon, #stars-container, .page-loader, .no-print { display: none !important; }
    body { background: white; color: #111; }
    .page { padding: 0; }
    .cert { box-shadow: none; }
}
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: 1rem; }
.choice-card { display: flex; flex-direction: column; gap: .35rem; color: inherit; }
.choice-card strong { color: var(--gold-bright); }
.thread { display: flex; flex-direction: column; gap: .7rem; }
.thread-item { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: .8rem .9rem; background: rgba(0,0,0,.18); }
.thread-item.mine { border-color: rgba(255,215,0,.35); }
.note-tools { display: flex; flex-wrap: wrap; gap: .45rem; }
.note-preview { width: min(100%, 360px); max-height: 420px; border-radius: 16px; background: #000; border: 1px solid var(--gold-border); }
.note-player video { min-height: 220px; }
audio { width: min(100%, 420px); margin-top: .4rem; }
