/* BMW Lovers Support: blue-on-black motorsport look (Saira + Barlow, speed lines, tachometer art). No emojis: icons are inline SVG (.ic). */
:root {
  --bg: #03060d;
  --panel: rgba(10, 18, 34, .72);
  --panel-solid: #0a1222;
  --panel-2: #0f1a2e;
  --line: rgba(64, 140, 255, .16);
  --line-2: rgba(64, 140, 255, .34);
  --text: #eaf2ff;
  --muted: #8c9bb8;
  --dim: #5b6884;
  --blue: #1c69d4;
  --blue-hi: #3d8bff;
  --cyan: #4fc3ff;
  --accent-hi: #8cc8ff;
  --indigo: #4b4fc7;
  --crimson: #ff4d6a;
  --green: #3ddc97;
  --amber: #ffc857;
  --glow: 0 0 22px rgba(61, 139, 255, .45);
  --radius: 14px;
  --mono: ui-monospace, "JetBrains Mono", Consolas, monospace;
  --head: "Saira", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text);
  font: 15.5px/1.55 Barlow, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  /* diagonal speed lines + faint grid */
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(28, 105, 212, .28), transparent 65%),
    radial-gradient(700px 500px at -10% 110%, rgba(79, 195, 255, .08), transparent 60%),
    repeating-linear-gradient(115deg, rgba(64, 140, 255, .035) 0 1px, transparent 1px 90px),
    linear-gradient(rgba(64, 140, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 140, 255, .03) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
  min-height: 100vh;
}
[hidden] { display: none !important; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: .02em; margin: 0 0 .6em; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
h3 { font-size: 16px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .mono { font-family: var(--mono); } .dim { color: var(--dim); }
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } }
@keyframes pulse { 50% { opacity: .3; } }

/* ===================== top bar ===================== */
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(3, 7, 16, .75); backdrop-filter: blur(14px); }
.topbar-in, main { width: min(1160px, 100%); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font: italic 700 20px var(--head); letter-spacing: .14em; text-shadow: var(--glow); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--glow); }
.brand .accent { color: var(--accent-hi); }
.top-links { display: flex; gap: 4px; flex: 1; }
.top-links a, .top-links button { display: inline-flex; align-items: center; gap: 7px; font: 500 14.5px Barlow, system-ui, sans-serif; color: var(--muted); background: none; border: 0; padding: 8px 14px; border-radius: 9px; cursor: pointer; transition: color .15s, background .15s; text-transform: none; letter-spacing: 0; }
.top-links a:hover, .top-links button:hover { color: var(--text); background: rgba(61, 139, 255, .1); text-decoration: none; }
.top-links a.on { color: #fff; background: rgba(61, 139, 255, .18); box-shadow: inset 0 -2px 0 var(--blue-hi); }
#who { display: flex; align-items: center; gap: 10px; }

.account { position: relative; }
.account summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-weight: 600; }
.account summary::-webkit-details-marker { display: none; }
.account summary:hover { border-color: var(--blue-hi); }
.account[open] summary .ic { transform: rotate(180deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-solid); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), var(--glow); animation: fade .15s ease-out; z-index: 30; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none; font: 500 14px Barlow, system-ui, sans-serif; color: var(--text); cursor: pointer; text-align: left; text-transform: none; letter-spacing: 0; }
.menu a:hover, .menu button:hover { background: rgba(61, 139, 255, .14); text-decoration: none; }
.menu .danger-item { color: var(--crimson); }
.menu .danger-item:hover { background: rgba(255, 77, 106, .1); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--line-2); }

.subnav { border-bottom: 1px solid var(--line); background: rgba(3, 7, 16, .55); }
.subnav-in { width: min(1160px, 100%); margin: 0 auto; padding: 0 24px; display: flex; gap: 2px; overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.subnav a:hover { color: var(--text); text-decoration: none; }
.subnav a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--blue-hi); }
.subnav .ic { width: 16px; height: 16px; }

main { padding-top: 28px; padding-bottom: 80px; }
main:focus { outline: none; }

/* ===================== buttons & forms ===================== */
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 14px Barlow, system-ui, sans-serif; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 10px;
  transition: transform .1s, filter .15s, border-color .15s, background .15s;
}
button:hover, .btn:hover { border-color: var(--blue-hi); text-decoration: none; }
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary {
  color: #fff; background: linear-gradient(135deg, #3d8bff, #1550b8); border-color: rgba(140, 200, 255, .4);
  box-shadow: 0 4px 18px rgba(28, 105, 212, .4), inset 0 1px 0 rgba(255, 255, 255, .18);
}
button.primary:hover, .btn.primary:hover { filter: brightness(1.12); }
button.danger { border-color: rgba(255, 77, 106, .55); color: #ffb3c0; }
button.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.lg, button.lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }
button:disabled { opacity: .45; cursor: not-allowed; }

input, select, textarea { font: inherit; background: rgba(3, 6, 13, .8); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(61, 139, 255, .18); }
textarea { min-height: 90px; resize: vertical; }
select[multiple] { min-height: 120px; }
label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.field + .field { margin-top: 12px; }
input[type=checkbox] { width: auto; accent-color: var(--blue-hi); }

/* ===================== layout bits ===================== */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(8px); }
.section-title { font: 600 13px var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 32px 0 12px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--accent-hi); margin-bottom: 10px; }
.empty { padding: 30px; text-align: center; color: var(--dim); }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 600 11.5px var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: 9px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.link { cursor: pointer; } tr.link:hover td { background: rgba(61, 139, 255, .07); }
.table-wrap { overflow-x: auto; }

.chip { display: inline-flex; align-items: center; gap: 5px; font: 700 11.5px Barlow, system-ui, sans-serif; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; text-transform: capitalize; }
.chip .ic { width: 13px; height: 13px; }
.chip.blue { color: var(--accent-hi); border-color: rgba(61, 139, 255, .5); background: rgba(61, 139, 255, .1); }
.chip.indigo { color: #b8bcff; border-color: rgba(120, 125, 255, .45); background: rgba(120, 125, 255, .08); }
.chip.green { color: var(--green); border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .08); }
.chip.amber { color: var(--amber); border-color: rgba(255, 200, 87, .45); background: rgba(255, 200, 87, .08); }
.chip.red { color: var(--crimson); border-color: rgba(255, 77, 106, .45); background: rgba(255, 77, 106, .08); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { padding: 6px 12px; font-size: 13px; text-transform: capitalize; }
.chips button.on { border-color: var(--blue-hi); color: #fff; background: rgba(61, 139, 255, .18); }

.notice { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--panel); }
.notice.ok { border-color: rgba(61, 220, 151, .5); } .notice.bad { border-color: rgba(255, 77, 106, .55); } .notice.warn { border-color: rgba(255, 200, 87, .5); }
ol.steps { padding-left: 18px; margin: 8px 0; } ol.steps li { margin: 4px 0; }

/* gauges / stats */
.gauge { margin: 14px 0; }
.gauge .num { font: 700 30px var(--head); }
.gauge .num small { font-size: 16px; color: var(--dim); }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); box-shadow: var(--glow); }
.bar.done > i { background: var(--green); box-shadow: none; }
.stat { font: 700 22px var(--head); }
.stat-label { font: 600 11px var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.spark { width: 100%; height: 34px; margin-top: 6px; }
.spark polyline { fill: none; stroke: var(--cyan); stroke-width: 1.5; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--dim); flex-shrink: 0; }
.status-dot.online { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-dot.restarting { background: var(--amber); animation: pulse 1s infinite; }
.status-dot.degraded, .status-dot.starting { background: var(--crimson); box-shadow: 0 0 10px rgba(255, 77, 106, .7); }

/* transcript */
.msg { padding: 12px 14px; border-left: 3px solid var(--line-2); background: var(--panel); border-radius: 0 10px 10px 0; }
.msg + .msg { margin-top: 8px; }
.msg.staff { border-left-color: var(--blue-hi); }
.msg.system { display: flex; align-items: center; gap: 8px; border-left-color: var(--dim); background: none; color: var(--muted); font-size: 13px; padding: 6px 14px; }
.msg.internal { border-left-color: var(--amber); background: rgba(255, 200, 87, .06); }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.body { white-space: pre-wrap; word-break: break-word; }

/* console */
.console { background: #01030a; border: 1px solid var(--line); border-radius: 12px; height: 420px; overflow: auto; font: 12px/1.55 var(--mono); padding: 10px 12px; }
.console div { white-space: pre-wrap; word-break: break-all; }
.console .warn { color: var(--amber); } .console .error { color: #ff8095; } .console .info { color: #c7d4ea; }
pre.out { background: #01030a; border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow: auto; max-height: 360px; font: 12px var(--mono); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 500; }
.tabs a.on { color: #fff; box-shadow: inset 0 -2px 0 var(--blue-hi); }
.tabs a:hover { text-decoration: none; color: var(--text); }

.matrix th.rot { writing-mode: vertical-rl; transform: rotate(180deg); height: 130px; vertical-align: bottom; white-space: nowrap; }
.matrix td { text-align: center; padding: 6px; } .matrix td:first-child { text-align: left; white-space: nowrap; }

dialog { background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-2); border-radius: 16px; padding: 0; width: min(560px, 94vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), var(--glow); }
dialog::backdrop { background: rgba(1, 3, 8, .78); backdrop-filter: blur(3px); }
#modal-body { padding: 24px; }
#modal-body h3 { display: flex; align-items: center; gap: 10px; }

#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--panel-solid); border: 1px solid var(--line-2); border-left: 3px solid var(--blue-hi); padding: 10px 14px; border-radius: 10px; max-width: 360px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.toast.err { border-left-color: var(--crimson); }

/* ===================== landing (main page) ===================== */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; padding: 60px 0 56px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; animation: rise .6s cubic-bezier(.2, .8, .2, 1); }
.pill-badge { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: 13px; }
.pill-badge img { width: 24px; height: 24px; border-radius: 50%; }
.hero-title { font: 700 clamp(38px, 6vw, 64px)/1.04 var(--head); margin: 0; letter-spacing: .01em; }
.grad { background: linear-gradient(90deg, #8cc8ff, #3d8bff 45%, #4fc3ff); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-sub { margin: 0; max-width: 540px; font-size: 17px; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats b { display: flex; align-items: center; gap: 8px; font: 700 24px var(--head); }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; animation: rise .8s .1s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-art::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(28, 105, 212, .5), transparent 65%); filter: blur(20px); }
.orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(61, 139, 255, .35); animation: turn 40s linear infinite; }
.orbit::after { content: ""; position: absolute; top: 12%; left: 12%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.logo-tile { position: relative; width: 62%; aspect-ratio: 1; border-radius: 26%; padding: 4px; background: linear-gradient(135deg, #8cc8ff, #1c69d4 55%, #4fc3ff); box-shadow: 0 0 60px rgba(28, 105, 212, .55), 0 0 120px rgba(28, 105, 212, .25); }
.logo-tile img { width: 100%; height: 100%; display: block; border-radius: 24%; }
.logo-chip { position: absolute; right: -6%; bottom: -6%; width: 34%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--panel-solid); border: 3px solid var(--blue-hi); box-shadow: var(--glow); color: var(--accent-hi); }
.logo-chip .ic { width: 46%; height: 46%; stroke-width: 1.6; }

.block { margin-top: 64px; }
.block-head { margin-bottom: 22px; }
.block-head h2 { font: 700 clamp(26px, 3.4vw, 34px) var(--head); color: var(--text); text-transform: none; letter-spacing: .01em; margin: 4px 0 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
a.feature, div.feature[data-click] { cursor: pointer; }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 0 30px rgba(28, 105, 212, .2); text-decoration: none; }
.feature b, .feature h3 { font: 700 17px var(--head); letter-spacing: .02em; margin: 4px 0 0; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(61, 139, 255, .14); border: 1px solid rgba(61, 139, 255, .35); color: var(--accent-hi); }
.feature-icon .ic { width: 23px; height: 23px; filter: drop-shadow(0 0 6px rgba(61, 139, 255, .7)); }
.feature-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: 13.5px; color: var(--accent-hi); }
.feature-cta .ic { width: 15px; height: 15px; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps3 > div { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.step-num { font: 700 34px var(--head); background: linear-gradient(180deg, #8cc8ff, #1c69d4); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.steps3 h3 { margin: 8px 0 6px; font-size: 17px; }
.steps3 p { margin: 0; color: var(--muted); font-size: 14px; }

.apply-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(120deg, rgba(28, 105, 212, .18), rgba(10, 18, 34, .7) 60%); box-shadow: 0 0 60px rgba(28, 105, 212, .12); }
.apply-panel h2 { font: 700 26px var(--head); color: var(--text); text-transform: none; letter-spacing: .01em; }
.tip { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(255, 200, 87, .35); background: rgba(255, 200, 87, .06); border-radius: 10px; padding: 10px 12px; color: #f2e3bf; font-size: 13.5px; margin: 16px 0 22px; }
.tip .ic { color: var(--amber); margin-top: 2px; }
.req { display: grid; gap: 12px; }
.req > div { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(3, 6, 13, .6); }
.req .num { font: 700 38px var(--head); color: var(--accent-hi); min-width: 100px; text-shadow: var(--glow); }
.req span:last-child { color: var(--muted); }

.site-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.site-foot .brand { font-size: 15px; text-shadow: none; }
.site-foot .brand img { width: 26px; height: 26px; box-shadow: none; }

@media (max-width: 860px) {
  .hero, .apply-panel { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 28px; }
  .hero-art { order: -1; width: min(300px, 80%); margin: 0 auto; }
  .steps3 { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 24px; }
  .apply-panel { padding: 22px; }
  .req .num { font-size: 30px; min-width: 76px; }
}
@media (max-width: 720px) {
  .topbar-in { gap: 12px; height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .top-links { order: 3; flex-basis: 100%; overflow-x: auto; }
  .brand span { display: none; }
  #who { margin-left: auto; }
  .account summary span { display: none; }
  main { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* inputs inside a toolbar row share the line instead of stacking */
.row > select, .row > input:not([type=checkbox]) { width: auto; flex: 1 1 180px; }
.row > select { flex: 0 1 200px; }

/* ===================== BMW Lovers identity (distinct from Noxx) ===================== */
/* nav: underline instead of filled pill */
.top-links a.on { background: none; border-radius: 0; box-shadow: inset 0 -2px 0 var(--blue-hi); }
.brand { font-family: var(--head); font-weight: 800; }

/* tri-colour stripe eyebrow */
.eyebrow.stripes { gap: 4px; }
.stripes i { display: inline-block; width: 16px; height: 4px; transform: skewX(-24deg); margin-right: 2px; }
.stripes i:nth-child(1) { background: #81c4ff; }
.stripes i:nth-child(2) { background: var(--indigo); }
.stripes i:nth-child(3) { background: #e7222e; margin-right: 10px; }

/* hero: uppercase italic headline + tachometer art */
.hero-title { font: italic 800 clamp(40px, 6vw, 72px)/1 var(--head); text-transform: uppercase; letter-spacing: -.005em; }
.page-hero { padding: 26px 0 26px; }
.page-title { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 12px; }
.tach { position: relative; width: 82%; aspect-ratio: 1; border-radius: 50%; padding: 16px;
  background: conic-gradient(from 225deg, #1c69d4 0deg, #4fc3ff 205deg, #ff4d6a 225deg 270deg, rgba(64, 140, 255, .12) 270deg 360deg);
  box-shadow: 0 0 90px rgba(28, 105, 212, .45); }
.tach::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg); }
.tach img { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; }
.hero-art::before { background: radial-gradient(circle, rgba(28, 105, 212, .4), transparent 62%); }


/* slanted racing-livery buttons for the big calls to action */
.btn.lg, button.lg { border-radius: 0; padding: 14px 32px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }

/* sharper cards with the stripe on hover */
.feature, .steps3 > div { position: relative; overflow: hidden; border-radius: 10px; }
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0; transition: opacity .15s;
  background: linear-gradient(90deg, #81c4ff 33%, var(--indigo) 33% 66%, #e7222e 66%); }
.feature:hover::before { opacity: 1; }
.feature-icon { border-radius: 8px; }
.apply-panel { border-radius: 12px; }
.card { border-radius: 10px; }
.step-num { font-style: italic; font-weight: 800; }

/* support / report pages */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.checks .ic { color: var(--green); margin-top: 2px; }

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .tach { width: 70%; }
}

/* ===================== phones: bottom tab bar ===================== */
.tabbar { display: none; }
@media (max-width: 720px) {
  .top-links { display: none; }
  .topbar-in { flex-wrap: nowrap; height: 60px; padding: 0 14px; }
  .brand span { display: inline; font-size: 16px; }
  .brand img { width: 32px; height: 32px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: rgba(3, 7, 16, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 10px;
    color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar a.on { color: #fff; background: rgba(61, 139, 255, .16); }
  .tabbar a.on .ic { color: var(--accent-hi); }
  .tabbar .ic { width: 22px; height: 22px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(86px + env(safe-area-inset-bottom)); left: 14px; right: 14px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .subnav-in { padding: 0 8px; }
  h1 { font-size: 24px; }
}
@media (max-width: 720px) {
  #cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #cards .card { padding: 14px; }
  #cards .stat { font-size: 18px; }
}

/* anti-cheat panel for reviewers */
.integrity h3 { display: flex; align-items: center; gap: 10px; }
.integrity.flagged { border-color: rgba(255, 200, 87, .45); background: rgba(255, 200, 87, .05); }
.integrity.flagged .checks .ic { color: var(--amber); }
.integrity.flagged.red { border-color: rgba(255, 92, 92, .5); background: rgba(255, 92, 92, .05); }
.integrity.flagged.white { border-color: var(--line); background: var(--panel); }
.integrity h3 .chip + .chip { margin-left: -4px; }
.integrity .checks li.flag-red .ic { color: var(--red, #ff5c5c); }
.integrity .checks li.flag-red span { color: var(--text); }
.integrity .checks li.flag-white .ic { color: var(--muted); }

/* ===================== admin readability ===================== */
.help { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.page-head .chips { margin-top: 12px; }
label { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }

.checklist { padding: 6px 20px; }
.check-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.check-row + .check-row { border-top: 1px solid var(--line); }
.check-row b { font-family: var(--head); font-size: 15px; }
.check-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 200, 87, .1); color: var(--amber); }
.check-row.ok .check-icon { background: rgba(61, 220, 151, .12); color: var(--green); }

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 14px; }
.who .stat-label { margin-bottom: 6px; }
.who-row { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.who-row b { font-weight: 600; font-size: 13.5px; }
.who-row span { display: flex; flex-wrap: wrap; gap: 5px; }

.matrix th.grp { text-align: center; color: var(--accent-hi); border-bottom: 1px solid var(--line-2); }
.matrix th.perm { font: 600 11.5px Barlow, system-ui, sans-serif; text-transform: none; letter-spacing: 0; color: var(--muted); white-space: nowrap; text-align: center; }
.matrix tr.user td:first-child { color: #b8bcff; }
.matrix td:first-child { min-width: 180px; }

/* application status tracker */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; counter-reset: step; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--dim); font-weight: 600; font-size: 13.5px; }
.stepper li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: var(--line-2); }
.stepper li:first-child::before { display: none; }
.stepper .dot { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--bg); font-family: var(--head); }
.stepper li.done { color: var(--text); }
.stepper li.done .dot { border-color: var(--green); background: rgba(61, 220, 151, .14); color: var(--green); }
.stepper li.done::before, .stepper li.current::before, .stepper li.bad::before { background: var(--green); }
.stepper li.current { color: var(--text); }
.stepper li.current .dot { border-color: var(--blue-hi); color: var(--accent-hi); box-shadow: var(--glow); }
.stepper li.bad { color: var(--crimson); }
.stepper li.bad .dot { border-color: var(--crimson); background: rgba(255, 77, 106, .12); color: var(--crimson); }
@media (max-width: 720px) {
  .stepper li { font-size: 11.5px; }
  .check-row { grid-template-columns: 30px 1fr; }
  .check-row > :last-child { grid-column: 2; justify-self: start; }
}

/* images in forms and transcripts */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.shots img { max-width: 240px; max-height: 180px; border-radius: 8px; border: 1px solid var(--line-2); display: block; }
input[type=file] { padding: 8px; }

/* focused application form: only the questions until submit/withdraw */
body.focus #nav, body.focus #subnav, body.focus #tabbar, body.focus #who { display: none !important; }
body.focus .brand { pointer-events: none; }
body.focus { padding-bottom: 0; }
.qnum { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; border-radius: 7px; background: rgba(61, 139, 255, .16); color: var(--accent-hi); font: 700 13px var(--head); }
.row.actions { margin-top: 16px; }
.chip.keep { text-transform: none; } /* names (roles, servers) are shown exactly as written */

/* application rules: before starting, and in a left panel while answering */
.apply-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rules-panel { position: sticky; top: 84px; }
.rules li { font-size: 13.5px; }
.rules li b { color: var(--text); }
.agree { margin: 14px 0 0; font-size: 14px; font-weight: 600; gap: 10px; }
.id-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: rgba(61, 139, 255, .06); }
.id-box span { color: var(--muted); font-size: 13px; }
.id-box b { font-size: 15px; letter-spacing: .02em; }
.id-box button { padding: 5px 12px; font-size: 13px; }
.chips.stage button[disabled] { opacity: 1; border-color: var(--blue-hi); color: #fff; background: rgba(61, 139, 255, .18); cursor: default; }
@media (max-width: 860px) {
  .apply-layout { grid-template-columns: minmax(0, 1fr); }
  .rules-panel { position: static; }
}
.id-box span .ic { color: var(--green); width: 15px; height: 15px; vertical-align: -2px; }

/* ===================== BMW-style slanted buttons everywhere ===================== */
button, .btn { border-radius: 0; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-left: 22px; padding-right: 22px; }
.btn.lg, button.lg { clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
/* not for things that aren't really buttons: menus, nav, chips, small text buttons */
.menu button, .top-links button, .tabbar a, .chips button, button.ghost, .account summary, .id-box button {
  clip-path: none; border-radius: 9px; padding-left: 12px; padding-right: 12px;
}
.chips button { border-radius: 99px; }

/* ===================== admin: menu on the left ===================== */
.admin-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.admin-nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; color: var(--muted); }
.admin-nav a:hover { background: rgba(61, 139, 255, .08); color: var(--text); text-decoration: none; }
.admin-nav a.on { background: rgba(61, 139, 255, .16); color: #fff; box-shadow: inset 3px 0 0 var(--blue-hi); }
.admin-nav a .ic { color: var(--accent-hi); width: 19px; height: 19px; }
.admin-nav span { display: flex; flex-direction: column; line-height: 1.25; }
.admin-nav b { font-weight: 600; font-size: 14.5px; }
.admin-nav small { font-size: 12px; color: var(--dim); }
.admin-nav a.on small { color: var(--muted); }
.section-title.first { margin-top: 0; }
.cat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 10px; }

/* ===================== tickets & applications ===================== */
.handlers-card { margin-top: 14px; padding: 14px 18px; }
.handlers-card .chips { margin-top: 6px; }
.features.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.followup + hr { margin: 14px 0; }
.followups form textarea { margin-top: 6px; }

@media (max-width: 860px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-nav a { flex: 0 0 auto; }
  .admin-nav small { display: none; }
  .features.two { grid-template-columns: minmax(0, 1fr); }
  .cat-row { grid-template-columns: minmax(0, 1fr); }
}

.warn-text { color: var(--amber); }
