/* Truckers World website - FV296 design system (one stylesheet for every page).
   Near-black, Truckers World gold, Barlow Condensed display type + DM Sans text. */

:root {
  --bg: #08090a; --bg-2: #0c0d0f; --surface: #111215; --surface-2: #16171b; --surface-3: #1c1d22;
  --line: rgba(255, 255, 255, 0.075); --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f3f4; --text-2: #c9cad0; --muted: #9c9ea6; --faint: #6c6e76;
  --gold: #ffbf00; --gold-2: #ffd15a; --gold-ink: #161004; --gold-glow: rgba(255, 191, 0, 0.18);
  --cyan: #3fc8e4; --green: #4fd27a; --red: #ef5b5b; --amber: #f2a93b; --blue: #5aa9ff;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-h: 68px;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 clamp(20px, 3vw, 56px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 0.86rem; }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1; min-width: 0; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface-3); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: var(--gold-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* type */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 0.8rem/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92; }
.display em, .display i, h2 em { font-style: normal; color: var(--gold); }
.lede { font-size: 1.13rem; color: var(--text-2); max-width: 640px; }
.h2 { font: 800 clamp(2.3rem, 4.6vw, 3.6rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.h3 { font: 700 1.25rem/1.25 var(--sans); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.link-arrow::after { content: "\2192"; color: var(--gold); transition: transform 0.2s; }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- buttons */
.btn { --b: var(--gold); display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px;
       border-radius: 10px; border: 1px solid var(--b); background: var(--b); color: var(--gold-ink); font: 700 0.95rem/1 var(--sans);
       letter-spacing: 0.01em; cursor: pointer; white-space: nowrap; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { color: var(--gold-ink); background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 10px 30px var(--gold-glow); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 17px; height: 17px; }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; border-radius: 12px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.86rem; border-radius: 9px; }
.btn.ghost, .btn.glass { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover, .btn.glass:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 191, 0, 0.55); color: var(--text); box-shadow: none; }
.btn.danger { background: transparent; border-color: rgba(239, 91, 91, 0.55); color: #ff8f8f; }
.btn.danger:hover { background: rgba(239, 91, 91, 0.12); color: #ffb0b0; box-shadow: none; }
.btn.ok { background: transparent; border-color: rgba(79, 210, 122, 0.55); color: #8fe7a9; }
.btn.ok:hover { background: rgba(79, 210, 122, 0.12); color: #b4f0c6; box-shadow: none; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- header */
.site-head { position: sticky; top: 0; z-index: 100; height: var(--head-h); background: rgba(8, 9, 10, 0.72);
             backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.site-head.over { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(8, 9, 10, 0.75), rgba(8, 9, 10, 0)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background 0.25s, border-color 0.25s; }
.site-head.over.scrolled { background: rgba(8, 9, 10, 0.86); border-color: var(--line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; max-width: 1600px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand img { height: 30px; width: auto; }
.brand span { font: 800 1.2rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.brand span b { color: var(--gold); font-weight: 800; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav > a, .nav-group > button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 9px; border: 0; background: none; white-space: nowrap;
                                color: var(--text-2); font: 600 0.93rem/1 var(--sans); cursor: pointer; }
.nav > a:hover, .nav-group > button:hover, .nav-group.open > button { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav > a[aria-current="page"], .nav-group.current > button { color: var(--gold); }
.nav-group { position: relative; }
.nav-group > button .chev { width: 13px; height: 13px; opacity: 0.6; transition: transform 0.2s; }
.nav-group.open > button .chev { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 300px; padding: 8px; background: rgba(17, 18, 21, 0.98); border: 1px solid var(--line-2);
            border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.18s; }
.nav-group.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.nav-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-menu a[aria-current="page"] strong { color: var(--gold); }
.nav-menu .icon { margin-top: 2px; color: var(--gold); }
.nav-menu strong { display: block; font-size: 0.93rem; font-weight: 700; }
.nav-menu small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.35; margin-top: 2px; }
.head-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.server-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
               color: var(--text-2); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.server-chip:hover { color: var(--text); border-color: rgba(255, 191, 0, 0.5); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 0 rgba(79, 210, 122, 0.55); animation: pulse 2.2s infinite; }
.dot.pm { background: var(--cyan); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79, 210, 122, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(79, 210, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 210, 122, 0); } }
.me-chip { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); max-width: 230px; }
.me-chip:hover { border-color: rgba(255, 191, 0, 0.5); color: var(--text); }
.me-chip .avatar { width: 30px; height: 30px; font-size: 0.8rem; }
.me-chip .driver-identity { min-width: 0; }
.me-chip .driver-identity-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-mobile-only { display: none; }

/* ---------------------------------------------------------------- footer */
.site-foot { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-2); padding: 72px 0 34px; color: var(--muted); font-size: 0.93rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.foot-brand p { margin: 16px 0 20px; max-width: 320px; }
.foot-col h3 { font: 700 0.78rem/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.foot-col a, .foot-col button { display: block; color: var(--muted); padding: 5px 0; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.foot-col a:hover, .foot-col button:hover { color: var(--gold); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); }
.foot-social a:hover { color: var(--gold); border-color: rgba(255, 191, 0, 0.5); }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.84rem; color: var(--faint); }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: calc(var(--head-h) + 60px) 0 0; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: #0b0c0e center 40% / cover no-repeat; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8, 9, 10, 0.94) 0%, rgba(8, 9, 10, 0.72) 42%, rgba(8, 9, 10, 0.25) 75%, rgba(8, 9, 10, 0.35) 100%),
              linear-gradient(180deg, rgba(8, 9, 10, 0.55) 0%, rgba(8, 9, 10, 0) 25%, rgba(8, 9, 10, 0) 55%, var(--bg) 100%); }
.hero-inner { width: 100%; padding-bottom: 46px; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.6rem); max-width: 900px; }
.hero h1 span { display: block; color: var(--gold); }
.hero .lede { margin: 26px 0 34px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 560px; }
.hero-stats { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
              background: rgba(12, 13, 15, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
.hero-stat { padding: 22px 26px; border-left: 1px solid var(--line); }
.hero-stat:first-child { border-left: 0; }
.hero-stat strong { display: block; font: 800 clamp(2rem, 3.4vw, 2.9rem)/1 var(--display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.hero-stat span { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 0.88rem; }
.hero-stat.live strong { color: var(--gold); }

/* ---------------------------------------------------------------- sections */
.section { padding: 112px 0; position: relative; }
.section.tight { padding: 80px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: 52px; }
.section-head .lede { margin: 0; }
.section-head .side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center .kicker::before { display: none; }

/* highlights */
.highlights { display: grid; grid-template-columns: 0.92fr 1.4fr; gap: 28px; align-items: stretch; }
.hl-tabs { display: flex; flex-direction: column; gap: 8px; }
.hl-tab { text-align: left; display: block; width: 100%; padding: 18px 20px 18px 22px; border-radius: var(--radius); border: 1px solid transparent; background: transparent;
          color: var(--text); font: inherit; cursor: pointer; position: relative; transition: background 0.2s, border-color 0.2s; }
.hl-tab::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--line-2); transition: background 0.2s; }
.hl-tab strong { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.hl-tab strong .tag { font: 700 0.66rem/1 var(--sans); letter-spacing: 0.12em; padding: 4px 7px; border-radius: 5px; background: rgba(255, 191, 0, 0.14); color: var(--gold); }
.hl-tab p { margin: 6px 0 0; color: var(--muted); font-size: 0.93rem; display: none; }
.hl-tab:hover { background: rgba(255, 255, 255, 0.03); }
.hl-tab.on { background: var(--surface); border-color: var(--line-2); }
.hl-tab.on::before { background: var(--gold); }
.hl-tab.on p { display: block; }
.hl-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); min-height: 440px; background: var(--surface); }
.hl-media figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.5s; }
.hl-media figure.on { opacity: 1; }
.hl-media img { width: 100%; height: 100%; object-fit: cover; }
.hl-media figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 10, 0) 45%, rgba(8, 9, 10, 0.85)); }
.hl-media figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.hl-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 70% 30%, rgba(255, 191, 0, 0.12), transparent 55%), #0e0f12; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(8, 9, 10, 0.78); border: 1px solid var(--line-2);
        font-size: 0.8rem; font-weight: 600; color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip .dot { width: 7px; height: 7px; }

/* server cards */
.server-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.server-card { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%); padding: 30px; overflow: hidden; }
.server-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent, var(--gold)); }
.server-card.pm { --accent: var(--cyan); }
.server-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.server-card h3 { font: 800 2.1rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.server-card h3 small { display: block; font: 600 0.88rem/1.4 var(--sans); text-transform: none; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
          background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line-2); white-space: nowrap; }
.status.on { color: #8fe7a9; border-color: rgba(79, 210, 122, 0.35); background: rgba(79, 210, 122, 0.08); }
.status.off { color: #ff9a9a; border-color: rgba(239, 91, 91, 0.35); background: rgba(239, 91, 91, 0.07); }
.server-card .count { margin: 30px 0 12px; display: flex; align-items: baseline; gap: 10px; }
.server-card .count strong { font: 800 4rem/0.9 var(--display); font-variant-numeric: tabular-nums; }
.server-card .count span { color: var(--muted); font-weight: 600; }
.meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter i { display: block; height: 100%; min-width: 4px; border-radius: 6px; background: var(--accent, var(--gold)); }
.server-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; padding: 0; list-style: none; }
.server-facts li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.server-facts small { display: block; color: var(--faint); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.server-facts b { display: block; margin-top: 3px; font-size: 0.95rem; }
.server-card p { color: var(--text-2); }

/* live map teaser */
.map-teaser { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; border-radius: var(--radius-lg); border: 1px solid var(--line-2); overflow: hidden; background: var(--surface); }
.map-teaser .copy { padding: 56px; position: relative; z-index: 1; }
.map-teaser .copy .lede { margin: 18px 0 28px; }
.map-teaser .art { position: relative; min-height: 420px; background: #0b0c0f; border-left: 1px solid var(--line); overflow: hidden; }
.map-teaser .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-teaser .art .chip { position: absolute; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.86rem; margin-top: 22px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.pm-tag { display: inline-block; font: 800 0.62rem/1 var(--sans); letter-spacing: 0.09em; color: #061317; background: var(--cyan); padding: 3px 6px; border-radius: 4px; }

/* company cards */
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.company-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.company-card:hover { color: var(--text); border-color: rgba(255, 191, 0, 0.45); transform: translateY(-2px); background: var(--surface-2); }
.company-logo { width: 54px; height: 54px; border-radius: 12px; flex: none; display: grid; place-items: center; font: 800 1.05rem/1 var(--display); letter-spacing: 0.04em;
                background: linear-gradient(145deg, rgba(255, 191, 0, 0.22), rgba(255, 191, 0, 0.05)); color: var(--gold); border: 1px solid rgba(255, 191, 0, 0.3); text-transform: uppercase; overflow: hidden; }
.company-logo.long { font-size: 0.82rem; }
.company-card h3 { font-size: 1.04rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-card p { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; }
.company-card .grow { min-width: 0; }
.tagline { color: var(--faint); font-size: 0.8rem; font-weight: 600; }

/* news cards */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; min-height: 230px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.news-card:hover { color: var(--text); border-color: rgba(255, 191, 0, 0.45); transform: translateY(-2px); }
.news-card time { color: var(--gold); font: 700 0.78rem/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.news-card h3 { margin: 14px 0 10px; font-size: 1.3rem; line-height: 1.25; }
.news-card p { color: var(--muted); font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .link-arrow { margin-top: auto; padding-top: 14px; }
.news-empty { grid-column: 1 / -1; padding: 40px; border-radius: var(--radius); border: 1px dashed var(--line-2); text-align: center; color: var(--muted); }

/* gallery */
.gallery { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery figure:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 16px; bottom: 14px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.faq-layout .sticky { position: sticky; top: calc(var(--head-h) + 30px); }
.faq-layout .sticky .lede { margin: 18px 0 26px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; cursor: pointer; font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--gold); font-size: 1.2rem; font-weight: 500; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-2); }
.faq details p { margin: -6px 4px 24px; color: var(--text-2); max-width: 680px; }

/* closing CTA */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid rgba(255, 191, 0, 0.35); padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
            background: radial-gradient(120% 140% at 100% 0%, rgba(255, 191, 0, 0.2), transparent 55%), linear-gradient(140deg, #15130c, #0f0f10 60%); }
.cta-band .lede { margin: 16px 0 0; }
.cta-band .side { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.req { display: grid; gap: 6px; padding: 0; margin: 6px 0 0; list-style: none; color: var(--muted); font-size: 0.88rem; }
.req li { display: flex; gap: 8px; align-items: center; }
.req li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------------------------------------------------------------- inner pages */
.page-hero { position: relative; padding: 76px 0 54px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
             background: radial-gradient(70% 120% at 85% -20%, rgba(255, 191, 0, 0.12), transparent 60%), var(--bg-2); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.page-hero h1 { font: 800 clamp(2.6rem, 6vw, 4.6rem)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0.005em; max-width: 900px; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero .lede { margin: 18px 0 0; }
.page-hero .actions, .page-hero form { margin-top: 26px; }
.page-hero.photo { background: none; }
.page-hero.photo .bg { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; }
.page-hero.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 9, 10, 0.95), rgba(8, 9, 10, 0.7) 55%, rgba(8, 9, 10, 0.5)), linear-gradient(180deg, transparent 50%, var(--bg-2)); }
.page-body { padding-top: 48px; padding-bottom: 100px; }   /* FV311: keep .wrap's side padding */
.stack { display: grid; gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 22px; align-items: start; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.card-pad, .card > .body { padding: 26px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card-title h2, .card-title h3 { font-size: 1.08rem; font-weight: 700; }
.card h2 { font-size: 1.25rem; }
.card-pad > h2 + p, .card-pad > h2 { margin-bottom: 12px; }
.empty { padding: 34px 24px; text-align: center; color: var(--muted); margin: 0; }
.feature-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.feature-card .num-badge { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: rgba(255, 191, 0, 0.12); color: var(--gold); font: 800 1.1rem/1 var(--display); margin-bottom: 18px; border: 1px solid rgba(255, 191, 0, 0.28); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }
.feature-card .icon { width: 22px; height: 22px; }

/* rows (player lists) */
.rows { list-style: none; margin: 0; padding: 6px; }
.rows li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; }
.rows li:hover { background: rgba(255, 255, 255, 0.03); }
.rows .name { color: var(--text); font-weight: 600; }

/* avatar + identity */
.avatar { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; display: inline-grid; place-items: center; background: var(--surface-3); color: var(--gold); font-weight: 800; border: 1px solid var(--line-2); }
.avatar.lg { width: 104px; height: 104px; border-radius: 22px; font-size: 2.4rem; border: 2px solid rgba(255, 191, 0, 0.5); }
.driver-identity { display: inline-flex; flex-direction: column; line-height: 1.2; }
.driver-identity-name { font-weight: 700; }
.driver-identity-role { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.9; }
.role-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; color: var(--rc, var(--text)); border: 1px solid color-mix(in srgb, var(--rc, #888) 55%, transparent); background: color-mix(in srgb, var(--rc, #888) 12%, transparent); }

/* states */
.state, .open-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.state.active, .state.pending, .state.open { color: #ffb4b4; border-color: rgba(239, 91, 91, 0.4); background: rgba(239, 91, 91, 0.08); }
.state.expired, .state.lifted, .state.declined, .state.rejected, .state.withdrawn { color: var(--muted); }
.state.accepted, .state.resolved, .open-badge.yes { color: #8fe7a9; border-color: rgba(79, 210, 122, 0.4); background: rgba(79, 210, 122, 0.08); }
.state.in_review, .state.on_hold, .state.escalated { color: var(--gold-2); border-color: rgba(255, 191, 0, 0.4); background: rgba(255, 191, 0, 0.08); }
.open-badge.no { color: var(--muted); }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: #8fe7a9; font-weight: 700; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.2s infinite; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th { text-align: left; font: 700 0.72rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); padding: 14px 20px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
td a { font-weight: 600; }

/* forms */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
label { display: grid; gap: 7px; font-weight: 600; font-size: 0.93rem; color: var(--text); }
.hint, label small { font-weight: 400; color: var(--muted); font-size: 0.84rem; }
input[type=text], input[type=search], input[type=url], input:not([type]), input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #0d0e11; color: var(--text); font: 400 0.98rem/1.4 var(--sans); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(255, 191, 0, 0.7); box-shadow: 0 0 0 4px rgba(255, 191, 0, 0.12); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffbf00' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
input[type=file] { width: 100%; padding: 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: #0d0e11; color: var(--muted); font: inherit; }
input[type=file]::file-selector-button { margin-right: 12px; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--surface-3); color: var(--text); font: 600 0.88rem var(--sans); cursor: pointer; }
input[type=color] { width: 64px; height: 44px; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: #0d0e11; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input, .switch input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.errors, .notice { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(239, 91, 91, 0.4); background: rgba(239, 91, 91, 0.08); color: #ffc1c1; margin-bottom: 20px; }
.errors ul { margin: 0; padding-left: 18px; }
.notice { border-color: rgba(255, 191, 0, 0.35); background: rgba(255, 191, 0, 0.07); color: var(--text-2); }
.search { display: flex; gap: 10px; max-width: 620px; }
.search input { flex: 1; }
.form-card { max-width: 820px; }
details.editor { margin-top: 10px; width: 100%; }
details.editor summary { cursor: pointer; color: var(--gold); font-size: 0.86rem; font-weight: 600; }
details.editor .form-grid { margin-top: 12px; }

/* prose */
.prose { font-size: 1.06rem; color: var(--text-2); max-width: 760px; }
.prose p { margin-bottom: 1.2em; }

/* profile */
.profile-head { position: relative; padding: 70px 0 0; border-bottom: 1px solid var(--line); background: radial-gradient(70% 140% at 20% -30%, color-mix(in srgb, var(--accent, #ffbf00) 22%, transparent), transparent 60%), var(--bg-2); }
.profile-top { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; padding-bottom: 30px; }
.profile-top h1 { font: 800 clamp(2.4rem, 5vw, 3.8rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-top .role-line { font-weight: 700; margin-top: 8px; letter-spacing: 0.03em; }
.profile-top .actions { margin-left: auto; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 20px 4px; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { color: var(--faint); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-weight: 700; font-size: 1.1rem; }
.timeline { list-style: none; margin: 0; padding: 10px 24px 22px; }
.timeline li { position: relative; padding: 12px 0 12px 22px; border-left: 2px solid var(--line-2); }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--gold)); box-shadow: 0 0 0 4px var(--surface); }
.timeline strong { color: var(--pc, var(--text)); }
.ban-now { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(239, 91, 91, 0.45); background: rgba(239, 91, 91, 0.08); }
.ban-now .icon { width: 26px; height: 26px; color: var(--red); }
.ban-now h2 { font-size: 1.15rem; margin-bottom: 6px; }
.clean { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid rgba(79, 210, 122, 0.35); background: rgba(79, 210, 122, 0.07); color: #a9edc0; font-weight: 700; }
.clean .icon { color: var(--green); }

/* team page */
.team-section { --team: var(--gold); }
.team-section .card-title { border-left: 3px solid var(--team); }
.role-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 22px 24px 26px; }
.role-group h3 { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rc); margin-bottom: 10px; }
.person { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); }
.person:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.person .avatar { width: 36px; height: 36px; }

/* rules */
.rules-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.rules-index { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 2px; }
.rules-index a { display: flex; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.rules-index a span { color: var(--faint); font-variant-numeric: tabular-nums; width: 22px; }
.rules-index a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.rule-group { margin-bottom: 44px; }
.rule-group > h2 { display: flex; align-items: baseline; gap: 14px; font: 800 2rem/1 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.rule-group > h2 span { color: var(--gold); }
.rule-item { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; }
.rule-item .no { color: var(--gold); font: 800 1.1rem/1.3 var(--display); }
.rule-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.rule-item p { color: var(--muted); font-size: 0.95rem; }
.penalties { display: grid; gap: 8px; }
.penalties div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.penalties span { color: var(--gold-2); font-weight: 700; text-align: right; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font: 800 3.2rem/1 var(--display); color: rgba(255, 191, 0, 0.9); display: block; margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.download-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 44px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 191, 0, 0.35);
                  background: radial-gradient(100% 140% at 100% 0%, rgba(255, 191, 0, 0.18), transparent 55%), var(--surface); }
.download-panel .meta { margin-top: 14px; color: var(--muted); font-size: 0.86rem; }
.download-panel .logo-art { justify-self: center; width: min(280px, 80%); filter: drop-shadow(0 30px 60px rgba(255, 191, 0, 0.15)); }

/* join */
.join-card { --team: var(--gold); display: flex; flex-direction: column; }
.join-card::before { content: ""; height: 3px; background: var(--team); }
.join-card .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.join-card .head h2 { font: 800 1.7rem/1 var(--display); text-transform: uppercase; }
.join-card .body > p { color: var(--muted); }
.join-card.wide { grid-column: 1 / -1; }
.ladder { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.ladder li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border-left: 3px solid var(--rc); font-weight: 600; font-size: 0.93rem; }
.join-card .foot { margin-top: auto; padding: 16px 26px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.app-card { padding: 24px; }
.app-card dl { display: grid; grid-template-columns: 200px 1fr; gap: 10px 20px; margin: 18px 0; }
.app-card dt { color: var(--faint); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.app-card dd { margin: 0; color: var(--text-2); white-space: pre-wrap; }
.answer { padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); margin-bottom: 10px; }
.answer p { margin: 6px 0 0; color: var(--text-2); white-space: pre-wrap; }
.onboard-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* VTC */
.vtc-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.vtc-head .company-logo { width: 84px; height: 84px; border-radius: 18px; font-size: 1.6rem; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.member { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.member:hover { border-color: rgba(255, 191, 0, 0.45); color: var(--text); }

/* ---------------------------------------------------------------- companies (FV297) */
.company-logo { --cc: var(--gold); background: linear-gradient(145deg, color-mix(in srgb, var(--cc) 26%, transparent), color-mix(in srgb, var(--cc) 6%, transparent));
                color: var(--cc); border-color: color-mix(in srgb, var(--cc) 40%, transparent); }
.company-logo.img { background: #0d0e11; border-color: var(--line-2); padding: 0; }
.company-logo.img img { width: 100%; height: 100%; object-fit: cover; }
.company-logo.lg { width: 72px; height: 72px; border-radius: 16px; font-size: 1.35rem; }
.company-logo.xl { width: 104px; height: 104px; border-radius: 22px; font-size: 1.9rem; }
.company-logo.xl.long, .company-logo.lg.long { font-size: 1.1rem; }
.company-grid.big { grid-template-columns: repeat(3, 1fr); }
.company-card.big { align-items: center; }
.company-card.big .state { align-self: flex-start; }
.company-card { --cc: var(--gold); }
.company-card:hover { border-color: color-mix(in srgb, var(--cc) 55%, transparent); }
.verified { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); vertical-align: 2px; }
.verified .icon { width: 13px; height: 13px; stroke-width: 3; }
h1 .verified { width: 30px; height: 30px; } h1 .verified .icon { width: 19px; height: 19px; }
.tp-tag { font-weight: 800; letter-spacing: 0.03em; }
.tag-preview { margin-top: 10px; padding: 14px 16px; border-radius: 10px; background: #0b0c0e; border: 1px solid var(--line-2); font-weight: 700; font-size: 1.05rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.filter-bar input[type=search] { flex: 1 1 260px; width: auto; }
.filter-bar select { width: auto; min-width: 180px; }
.company-hero { --cc: var(--gold); position: relative; padding: 64px 0 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
                background: radial-gradient(70% 150% at 10% -40%, color-mix(in srgb, var(--cc) 26%, transparent), transparent 60%), var(--bg-2); }
.company-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--cc); }
.company-hero h1 { font: 800 clamp(2.3rem, 5vw, 3.8rem)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.company-hero .vtc-head { align-items: flex-end; padding-bottom: 28px; }
.company-hero .vtc-head .actions { margin-left: auto; }
.company-hero.slim { padding-top: 40px; }
.company-hero.slim .vtc-head { padding-bottom: 22px; }
.company-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; font-size: 0.93rem; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.72rem; font-weight: 800; }
.btn .count-badge { margin-left: 2px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px; color: var(--muted); font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--cc, var(--gold)); }
.notice.ok { border-color: rgba(79, 210, 122, 0.35); background: rgba(79, 210, 122, 0.07); color: #bdf0cc; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
.stat strong { display: block; font: 800 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.88rem; }
.link-card { display: block; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.link-card:hover { color: var(--text); border-color: rgba(255, 191, 0, 0.45); transform: translateY(-2px); }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.app-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-card .chip { backdrop-filter: none; background: rgba(255, 255, 255, 0.04); }
.chip.bad { color: #ffb4b4; border-color: rgba(239, 91, 91, 0.45); }
.chip.good { color: #a9edc0; border-color: rgba(79, 210, 122, 0.35); }
.decide { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.decide input { flex: 1 1 260px; width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form select, .inline-form input { width: auto; min-width: 180px; }
td .inline-form select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
td .person .avatar { width: 34px; height: 34px; }
.role-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.role-card { padding: 22px 24px; border-top: 3px solid var(--rc, var(--gold)); }
.role-card.new { border-top-color: var(--line-2); border-style: dashed; }
.role-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.role-card-head h3 { font-size: 1.2rem; color: var(--rc, var(--text)); display: flex; gap: 10px; align-items: center; }
.role-card.new .role-card-head h3 { color: var(--text); }
.perm-list { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); }
.perm-list .check span { display: grid; gap: 1px; }
.perm-list .check small { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.perm-list .check.locked { opacity: 0.55; }
.logo-edit { display: flex; gap: 18px; align-items: center; margin-top: 12px; }
.fieldset { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; margin: 0; display: grid; gap: 10px; }
.fieldset legend { padding: 0 6px; font-weight: 700; font-size: 0.93rem; }
.danger-zone { border-color: rgba(239, 91, 91, 0.35); }

/* reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .server-chip .long { display: none; }
  .nav > a, .nav-group > button { padding: 0 10px; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; top: var(--head-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 20px 40px; background: var(--bg);
         overflow-y: auto; opacity: 0; transform: translateY(-10px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; visibility: hidden; pointer-events: none; }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .nav > a, .nav-group > button { height: 50px; font-size: 1.05rem; width: 100%; justify-content: space-between; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 8px; min-width: 0; }
  .nav-group.open .nav-menu { display: block; }
  .nav-mobile-only { display: block; }
  .nav-mobile-actions { display: grid; gap: 10px; margin-top: 18px; }
  .head-right .signin, .head-right .get { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .highlights, .map-teaser, .faq-layout, .cta-band, .download-panel, .split, .rules-layout { grid-template-columns: 1fr; }
  .faq-layout .sticky, .rules-index { position: static; }
  .rules-index { display: none; }
  .map-teaser .art { min-height: 320px; border-left: 0; border-top: 1px solid var(--line); }
  .hl-media { min-height: 360px; order: -1; }
  .section-head { grid-template-columns: 1fr; }
  .company-grid, .company-grid.big, .news-grid, .grid-3, .steps, .role-cards, .stat-row { grid-template-columns: 1fr 1fr; }
  .company-hero .vtc-head .actions { margin-left: 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding: 76px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-stat { padding: 18px; }
  .server-cards, .company-grid, .company-grid.big, .news-grid, .grid-2, .grid-3, .steps, .foot-grid, .role-cards { grid-template-columns: 1fr; }
  .company-logo.xl { width: 84px; height: 84px; }
  .server-facts { gap: 8px; }
  .server-facts li { padding: 10px; }
  .server-card { padding: 24px 20px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px 160px; }
  .gallery figure:first-child { grid-column: 1 / -1; grid-row: auto; }
  .map-teaser .copy, .cta-band, .download-panel { padding: 30px 22px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 4px; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .app-card dl { grid-template-columns: 1fr; gap: 4px; }
  .app-card dd { margin-bottom: 10px; }
  .server-chip { display: none; }
  .brand span { font-size: 1.05rem; }
  .site-head .wrap { gap: 12px; }
  .me-chip { padding: 0 4px; border-color: transparent; }
  .me-chip .driver-identity { display: none; }
  .search { flex-direction: column; }
  th, td { padding: 12px 14px; }
  .profile-top .actions { margin-left: 0; }
  .rule-item { grid-template-columns: 1fr; gap: 4px; }
  .penalties div { flex-direction: column; gap: 4px; }
  .penalties span { text-align: left; }
}

/* ---------------------------------------------------------------- FV311: Truckers World Radio */
.radio-card { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center; padding: 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 191, 0, 0.10), transparent 55%), var(--surface); }
.radio-card.compact { grid-template-columns: 140px 1fr; padding: 22px; }
.radio-art { position: relative; aspect-ratio: 1; border-radius: 18px; background: #121213; border: 1px solid rgba(255, 191, 0, 0.35);
  display: grid; place-items: center; overflow: hidden; }
.radio-art img { width: 74%; height: auto; }
.radio-eq { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.radio-eq i { width: 4px; height: 25%; background: var(--gold); border-radius: 1px; opacity: 0.5; }
.radio-card.playing .radio-eq i { opacity: 1; animation: radio-eq 0.9s ease-in-out infinite alternate; }
.radio-card.playing .radio-eq i:nth-child(2) { animation-delay: -0.3s; } .radio-card.playing .radio-eq i:nth-child(3) { animation-delay: -0.6s; }
.radio-card.playing .radio-eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes radio-eq { from { height: 20%; } to { height: 100%; } }
.radio-live { display: inline-flex; align-items: center; gap: 8px; font: 700 0.78rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.radio-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.radio-card.playing .radio-live { color: var(--green); } .radio-card.playing .radio-live .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(79, 210, 122, 0.18); }
.radio-body h3 { font: 700 2rem/1.05 var(--display); margin: 10px 0 8px; }
.radio-controls { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.radio-vol input { width: 150px; accent-color: var(--gold); }
.radio-how { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
@media (max-width: 720px) {
  .radio-card, .radio-card.compact { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .radio-art { max-width: 140px; }
  .radio-how { grid-template-columns: 1fr; }
}

/* FV353 / FV359: recent jobs - one tidy row per job: route + cargo on the left, pay + distance + time on the right */
.job-list { list-style: none; margin: 0; padding: 4px 0; }
.job-list .job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: center; padding: 12px 22px; border-top: 1px solid var(--line, rgba(255,255,255,.06)); transition: background .15s; }
.job-list .job:first-child { border-top: 0; }
.job-list .job:hover { background: rgba(255,255,255,.025); }
.job-l { min-width: 0; }
.job-route { display: flex; align-items: center; gap: 8px; min-width: 0; }
.job-cities { font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-cities .arrow { color: var(--gold, #FFBF00); margin: 0 3px; }
.job-tag { flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; line-height: 1.3; }
.job-tag.promods { color: #5fd896; background: rgba(47,180,110,.12); border: 1px solid rgba(47,180,110,.35); }
.job-tag.cancelled { color: #f08a8a; background: rgba(240,80,80,.10); border: 1px solid rgba(240,80,80,.35); }
.job-sub { color: var(--muted); font-size: .84rem; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-sub .sep { margin: 0 6px; opacity: .5; }
.job-sub .job-cargo { color: var(--text-2, #cfd2d8); }
.job-sub a { color: var(--text-2, #cfd2d8); font-weight: 600; }
.job-r { text-align: right; white-space: nowrap; }
.job-r strong { display: block; color: var(--gold, #FFBF00); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.job-r .job-sub { margin-top: 2px; font-variant-numeric: tabular-nums; }
.job-list .job.cancelled .job-l, .job-list .job.cancelled .job-r { opacity: .6; }
@media (max-width: 560px) {
  .job-list .job { grid-template-columns: 1fr; padding: 12px 16px; }
  .job-r { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .job-sub, .job-cities { white-space: normal; }
}
/* FV360: question editor on the Join page - compact boxes */
.join-card .editor textarea { min-height: 58px; font-size: .9rem; }
/* FV362: ban appeals */
.appeal-mini { list-style: none; margin: 0; padding: 4px 0; }
.appeal-mini li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 10px 22px; border-top: 1px solid var(--line); }
.appeal-mini li:first-child { border-top: 0; }
.appeal-mini li .state { margin-left: auto; }
.state.granted { color: #8fe7a9; border-color: rgba(79, 210, 122, 0.4); background: rgba(79, 210, 122, 0.08); }
.state.denied { color: #ffb4b4; border-color: rgba(239, 91, 91, 0.4); background: rgba(239, 91, 91, 0.08); }
.notice.error { border: 1px solid rgba(239, 91, 91, 0.4); background: rgba(239, 91, 91, 0.08); color: #ffb4b4; border-radius: 10px; padding: 10px 14px; }
.notice.error p { margin: 4px 0; }
/* FV366: applications - progress bar, messages, NDA */
.steps-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 22px; }
.steps-bar .apstep { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: .86rem; font-weight: 600; }
.steps-bar .apstep span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: rgba(255,255,255,.06); }
.steps-bar .apstep.done { color: var(--text-2, #cfd2d8); border-color: rgba(79,210,122,.35); }
.steps-bar .apstep.done span { background: rgba(79,210,122,.25); color: #8fe7a9; }
.steps-bar .apstep.now { color: var(--gold, #FFBF00); border-color: rgba(255,191,0,.5); background: rgba(255,191,0,.06); }
.steps-bar .apstep.now span { background: var(--gold, #FFBF00); color: #111; }
.steps-bar .apstep.bad { color: #ffb4b4; border-color: rgba(239,91,91,.45); }
.app-cta { border-color: rgba(255,191,0,.45); background: linear-gradient(135deg, rgba(255,191,0,.10), rgba(255,191,0,0) 60%); }
.app-cta.ok { border-color: rgba(79,210,122,.4); background: linear-gradient(135deg, rgba(79,210,122,.10), rgba(79,210,122,0) 60%); }
.thread { padding: 6px 22px 4px; display: flex; flex-direction: column; gap: 10px; }
.thread .msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.thread .msg.mine { align-self: flex-end; background: rgba(255,191,0,.08); border-color: rgba(255,191,0,.3); }
.thread .msg.sys { align-self: center; max-width: 100%; background: rgba(79,160,255,.07); border-color: rgba(79,160,255,.3); }
.thread .msg .meta { font-size: .76rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.thread .msg .body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2, #cfd2d8); }
.thread-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 22px 18px; border-top: 1px solid var(--line); }
.thread-form textarea { flex: 1; min-height: 64px; }
.app-dl dt { color: var(--faint, #8a8d94); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 14px; }
.app-dl dd { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2, #cfd2d8); }
.nda-doc h3 { margin: 18px 0 4px; font-size: 1rem; }
.nda-doc p { color: var(--text-2, #cfd2d8); line-height: 1.6; margin: 0; }
.nda-sign { margin-top: 18px; max-width: 640px; }
.nda-sign .check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.nda-sign .check input { width: 18px; height: 18px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold, #FFBF00); color: #111; font-size: .7rem; font-weight: 800; margin-left: 6px; }
@media (max-width: 700px) { .steps-bar { grid-template-columns: 1fr 1fr; } .thread .msg { max-width: 100%; } }

/* FV384: events */
.ev-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; }
.ev-list { display: grid; gap: 12px; }
.ev-list.past { opacity: .8; }
.ev-card { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px;
  background: var(--card, #15161a); border: 1px solid var(--line, #262830); border-radius: 12px; color: inherit; text-decoration: none; }
.ev-card:hover { border-color: #ffbf00; }
.ev-card.live { border-color: #3ddc84; box-shadow: 0 0 0 1px rgba(61,220,132,.25) inset; }
.ev-when { display: grid; justify-items: center; line-height: 1.05; padding: 8px 0; border-radius: 10px; background: rgba(255,191,0,.08); }
.ev-day { font-size: 26px; font-weight: 800; color: #ffbf00; } .ev-mon { text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
.ev-time { font-size: 13px; margin-top: 4px; color: #c9cad0; }
.ev-main h3 { margin: 4px 0 2px; font-size: 18px; }
.ev-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ev-kind { color: #9a9ca4; } .ev-server { color: #ffbf00; } .ev-server.promods { color: #3fc8e4; }
.ev-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ev-badge.live { background: rgba(61,220,132,.15); color: #3ddc84; } .ev-badge.off { background: rgba(229,57,53,.15); color: #ef5350; }
.ev-badge.done { background: rgba(255,255,255,.08); color: #bbb; }
.ev-stats { text-align: right; } .ev-stats b { display: block; font-size: 24px; } .ev-stats small { color: #9a9ca4; }
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.ev-facts small { display: block; color: #9a9ca4; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; } .ev-facts b { font-size: 16px; }
.ev-desc { white-space: pre-wrap; line-height: 1.6; margin-bottom: 14px; }
.ev-rsvp { display: flex; gap: 8px; flex-wrap: wrap; } .ev-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .ev-card { grid-template-columns: 60px 1fr; } .ev-stats { grid-column: 2; text-align: left; } }

/* FV453: staff menu, report button, system health, role checklist */
.nav-badge.alert { background: #ef5b5b; color: #fff; }
.nav > a.current { color: var(--gold); }
.nav > a.nav-report { color: #ffb4b4; }
.nav > a.nav-report .icon { width: 15px; height: 15px; }
.nav > a.nav-report:hover { background: rgba(239, 91, 91, 0.10); color: #ffd0d0; }
.help-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-strip a { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.help-strip a:hover { border-color: var(--gold); transform: translateY(-2px); }
.help-strip a.report { border-color: rgba(239, 91, 91, 0.45); }
.help-strip .icon { width: 26px; height: 26px; flex: none; color: var(--gold); }
.help-strip a.report .icon { color: #ef5b5b; }
.help-strip strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.help-strip small { color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .help-strip { grid-template-columns: 1fr; } }
.health-overall { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line-2); margin-bottom: 22px; font-weight: 700; }
.health-overall.ok { border-color: rgba(79, 210, 122, 0.45); background: rgba(79, 210, 122, 0.07); color: #a9edc0; }
.health-overall.bad { border-color: rgba(239, 91, 91, 0.5); background: rgba(239, 91, 91, 0.08); color: #ffb4b4; }
.health-list { list-style: none; margin: 0; padding: 0; }
.health-list li { display: flex; gap: 14px; align-items: center; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.health-list li:last-child { border-bottom: 0; }
.health-list .light { width: 11px; height: 11px; border-radius: 50%; flex: none; background: #8a8f98; }
.health-list .light.ok { background: #4fd27a; box-shadow: 0 0 10px rgba(79, 210, 122, .6); }
.health-list .light.bad { background: #ef5b5b; box-shadow: 0 0 10px rgba(239, 91, 91, .6); }
.health-list strong { min-width: 190px; }
.health-list span.detail { color: var(--muted); }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 24px; cursor: pointer; line-height: 1.45; }
.check-list input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--gold, #FFBF00); flex: none; }
.check-list li.done label span { color: var(--muted); text-decoration: line-through; }
.check-progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; min-width: 120px; }
.check-progress i { display: block; height: 100%; background: var(--gold, #FFBF00); }

/* FV476: staff chat log */
.chatlog td.when { white-space: nowrap; color: var(--muted); font-size: 0.85rem; }
.chatlog td.who { white-space: nowrap; }
.chatlog td.who small, .chatlog .to small { color: var(--faint); }
.chatlog .to { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.chatlog td.msg { word-break: break-word; }
.chatlog tr.pm td { background: rgba(255, 191, 0, 0.04); }
.chatlog tr.command td.msg { font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; }
.chatlog tr.hit td { background: rgba(255, 191, 0, 0.12); }
.chatlog-filters select { width: auto; }

/* FV713: profile job history - Truck / Coach segmented toggle */
.jobs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.jobs-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); }
.jobs-tab { appearance: none; border: 0; background: transparent; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font: 800 0.9rem/1 var(--display); letter-spacing: 0.01em; transition: background 0.18s, color 0.18s; }
.jobs-tab .icon { width: 16px; height: 16px; }
.jobs-tab:hover { color: var(--text); }
.jobs-tab.on { background: var(--gold); color: #141414; }
.jobs-count { font: 700 0.74rem/1 var(--display); padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: inherit; }
.jobs-tab.on .jobs-count { background: rgba(0, 0, 0, 0.18); }
.jobs-summary[hidden], .jobs-panel[hidden] { display: none; }
.job-tag.coach { background: rgba(255, 191, 0, 0.14); color: var(--gold); }
@media (max-width: 560px) { .jobs-head { padding: 12px 14px; } .jobs-tab { padding: 9px 12px; } .jobs-summary { width: 100%; } }
