/* Mod Pilot "Flight Deck" theme (2026).
   Loaded LAST on every page, after site.css / home.css / dashboard.css. It only re-tunes the shared design tokens and
   the shared components, so every page and every dashboard module picks it up without touching their own CSS or JS.
   Palette comes from the logo: deep navy, amber-gold shield, white wings. Light theme keeps its own colours. */

/* ------------------------------------------------------------------ tokens (dark) */
:root:not([data-theme="light"]),
:root:not([data-theme="light"]) body.dash {
  --sky: #090e1a;          /* page */
  --deck: #101829;         /* cards */
  --panel: #172238;        /* raised / hover */
  --line: #223150;         /* borders */
  --line-soft: #1a2741;
  --flap: #070b15;         /* header */
  --runway: #eef2f9;       /* text */
  --muted: #95a3bb;        /* secondary text */
  --amber: #ffb84d;
  --amber-ink: #241500;
  --accent-2: #f59f1d;
  --blue: #5b8cff;
  --green: #2ecc80;
  --red: #ff5d6c;
  --warn: #ffc94d;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --ring: 0 0 0 3px rgba(255, 184, 77, .35);
  --shadow-1: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -16px rgba(0,0,0,.7);
  --shadow-2: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -24px rgba(0,0,0,.8);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root { --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --ring: 0 0 0 3px rgba(245, 159, 29, .3); --ease: cubic-bezier(.2,.8,.2,1); }

/* ------------------------------------------------------------------ page */
:root:not([data-theme="light"]) body {
  background:
    radial-gradient(1100px 620px at 85% -10%, rgba(91, 140, 255, .10), transparent 60%),
    radial-gradient(900px 520px at 0% 0%, rgba(255, 184, 77, .06), transparent 60%),
    var(--sky);
  background-attachment: fixed;
}
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(255, 184, 77, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: 3px; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 3px solid var(--sky); }
::-webkit-scrollbar-thumb:hover { background: #2f4268; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------------ header */
:root:not([data-theme="light"]) .hdr,
:root:not([data-theme="light"]) body.dash .hdr,
:root:not([data-theme="light"]) body.dash .topbar {
  background: color-mix(in srgb, var(--flap) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.hdr-brand { font-weight: 700; letter-spacing: -.03em; }
.hdr-brand img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -6px rgba(255, 184, 77, .35); }

/* ------------------------------------------------------------------ buttons */
.btn { border-radius: var(--r-sm); font-weight: 650; letter-spacing: -.005em;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease), color .18s; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--amber); color: var(--amber-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px -12px rgba(255, 184, 77, .8); }
.btn-primary:hover { filter: none; background: #ffc56e; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 30px -12px rgba(255, 184, 77, .9); }
.btn-ghost { background: color-mix(in srgb, var(--deck) 70%, transparent); border-color: var(--line); }
.btn-ghost:hover { border-color: #3a5180; background: var(--panel); }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }

/* ------------------------------------------------------------------ surfaces */
.feat, .card, .pcard, .ov-card, .ov-panel, .server-card, .panel, .notice, .tour, .preview, .faq details, .price, .plan {
  border-radius: var(--r-md);
}
:root:not([data-theme="light"]) .feat,
:root:not([data-theme="light"]) .card,
:root:not([data-theme="light"]) .server-card,
:root:not([data-theme="light"]) body.dash .pcard,
:root:not([data-theme="light"]) body.dash .ov-card,
:root:not([data-theme="light"]) body.dash .ov-panel {
  background: linear-gradient(180deg, color-mix(in srgb, var(--deck) 100%, #fff 2%), var(--deck));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1);
}
.feat, .pcard, .server-card { transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
:root:not([data-theme="light"]) .feat:hover,
:root:not([data-theme="light"]) body.dash .pcard:hover,
:root:not([data-theme="light"]) .server-card:hover {
  border-color: color-mix(in srgb, var(--amber) 40%, var(--line));
  box-shadow: var(--shadow-2), 0 0 0 1px color-mix(in srgb, var(--amber) 10%, transparent);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------------ form controls */
.input, select, textarea, input[type="text"], input[type="number"], input[type="search"], input[type="url"] {
  border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
:root:not([data-theme="light"]) .input,
:root:not([data-theme="light"]) select,
:root:not([data-theme="light"]) textarea {
  background: #0c1322; border-color: var(--line);
}
.input:focus, select:focus, textarea:focus { border-color: var(--amber) !important; box-shadow: var(--ring); outline: none; }
.tgl { width: 44px; height: 24px; border-radius: 999px; background: #26365a; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.tgl i { top: 3px; left: 3px; width: 18px; height: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: left .2s var(--ease), background-color .2s; }
.tgl[aria-checked="true"] { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 184, 77, .15); }
.tgl[aria-checked="true"] i { left: 23px; }
.tgl:focus-visible { outline: none; box-shadow: var(--ring); }

/* tabs */
.tabs { gap: 2px; border-bottom-color: var(--line-soft); }
.tabs button { border-radius: 8px 8px 0 0; transition: color .15s, background-color .15s, border-color .15s; }
.tabs button:hover { background: color-mix(in srgb, var(--panel) 60%, transparent); }
.tabs button[aria-selected="true"] { border-bottom-width: 2px; }

/* badges / pills */
.ptag, .badge-p { border-radius: 999px; padding: 5px 9px; }
code { border-radius: 6px; }

/* ------------------------------------------------------------------ home page */
.home .hero { padding-top: clamp(40px, 7vw, 96px); }
:root:not([data-theme="light"]) .home .hero::before {
  background:
    radial-gradient(620px 380px at 78% 40%, rgba(255, 184, 77, .14), transparent 70%),
    radial-gradient(520px 340px at 20% 10%, rgba(91, 140, 255, .12), transparent 70%);
}
.home .hero h1 { font-size: clamp(46px, 7vw, 86px); line-height: .98; letter-spacing: -.045em; }
.home .hero h1 .accent {
  background: linear-gradient(180deg, #ffd27f 0%, var(--amber) 55%, #f39a1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home .hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: #b4c0d4; max-width: 38ch; }
.status-pill { background: color-mix(in srgb, var(--deck) 80%, transparent); border-color: var(--line); font-weight: 600; }
.stats div { border-radius: var(--r-md) !important; }
:root:not([data-theme="light"]) .stats div { background: var(--deck) !important; border: 1px solid var(--line-soft) !important; box-shadow: var(--shadow-1); }
.stats dd { font-size: 26px; }
.st-ico { border-radius: 10px !important; background: rgba(255, 184, 77, .12) !important; color: var(--amber) !important; }
:root:not([data-theme="light"]) .preview { background: #0d1424; border: 1px solid var(--line); box-shadow: var(--shadow-2), 0 40px 90px -40px rgba(91, 140, 255, .35); }

.sec { padding-top: clamp(56px, 8vw, 112px); }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
.sec-head .sub { color: #a7b3c8; font-size: 17px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--amber); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .8; }

.feat { padding: 22px 22px 20px; gap: 8px; }
.feat h3 { font-size: 19px; letter-spacing: -.02em; }
.feat p { font-size: 14.5px; line-height: 1.55; color: #a3b0c6; }
.feat .fi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
  background: rgba(255, 184, 77, .12); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 184, 77, .22); }
.feat .fi svg { width: 21px; height: 21px; }
.feat-prem .fi { background: rgba(91, 140, 255, .14); color: #8fb0ff; box-shadow: inset 0 0 0 1px rgba(91, 140, 255, .3); }
.feat-ai .fi { background: rgba(46, 204, 128, .13); color: #5fe0a2; box-shadow: inset 0 0 0 1px rgba(46, 204, 128, .28); }
.feat code { background: #0c1322; border: 1px solid var(--line-soft); }

/* ------------------------------------------------------------------ dashboard */
:root:not([data-theme="light"]) body.dash { background:
  radial-gradient(1000px 560px at 100% -20%, rgba(91, 140, 255, .08), transparent 60%), var(--sky); }
body.dash .gnav { background: var(--deck); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
body.dash .gswitch { background: #0c1322; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }
body.dash .gnav-list button { border-radius: 8px; position: relative; transition: background-color .15s, color .15s; }
body.dash .gnav-list button:hover { background: var(--panel); }
body.dash .gnav-list button[aria-current="page"] { background: color-mix(in srgb, var(--amber) 12%, var(--panel)); color: var(--runway); }
body.dash .gnav-list button[aria-current="page"]::before { display: block; content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
body.dash .gnav-group { color: #7f8ca5; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
body.dash .ov-card b { font-size: 28px; letter-spacing: -.02em; }
body.dash .pcard .picon { border-radius: 12px; }
body.dash .notice { border-radius: var(--r-sm); }
.server-card .ico { border-radius: 14px; box-shadow: 0 0 0 1px var(--line-soft); }
.server-card:hover .sc-go { box-shadow: 0 8px 18px -8px rgba(255, 184, 77, .8); }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  .feat, .pcard, .server-card, .btn, .tgl i { transition: none !important; }
  .feat:hover, .pcard:hover, .server-card:hover { transform: none !important; }
}

/* ------------------------------------------------------------------ server picker: no cut-off names or labels */
.server-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.server-card { gap: 14px; padding: 14px; min-height: 76px; }
.server-card b { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-height: 1.25; overflow-wrap: anywhere; margin-bottom: 5px; }
.server-card small { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 4px; column-gap: 8px; line-height: 1.3; }
.server-card.add small { color: var(--amber); font-weight: 600; }

/* League > Add a team: link box with a "+" to attach a picture instead */
.lg-logo-row { display: flex; gap: 8px; align-items: stretch; }
.lg-logo-row .input { flex: 1; min-width: 0; }
.lg-logo-add { flex: none; width: 42px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; line-height: 1; padding: 0; cursor: pointer; }
.linkish { background: none; border: 0; padding: 0; color: var(--amber); font: inherit; cursor: pointer; text-decoration: underline; }
