:root {
  --bg: #070b12;
  --bg-soft: #0b121d;
  --panel: rgba(16, 26, 38, 0.82);
  --panel-solid: #101a26;
  --panel-2: #152233;
  --border: rgba(182, 208, 236, 0.12);
  --border-strong: rgba(182, 208, 236, 0.22);
  --text: #f4f8fc;
  --muted: #90a2b7;
  --muted-2: #66798e;
  --primary: #20d6c7;
  --primary-strong: #10b9ad;
  --accent: #ff9f1c;
  --danger: #ff5a6f;
  --success: #54d68c;
  --warning: #ffc857;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -10%, rgba(32, 214, 199, .13), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(255, 159, 28, .08), transparent 30%),
    var(--bg);
  line-height: 1.55;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--primary); border-radius: 10px; }
.section { padding: 92px 0; position: relative; }
.section.compact { padding: 68px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head h2, .page-title h1 {
  margin: 10px 0 0;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.section-head p { max-width: 530px; color: var(--muted); margin: 0; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 18, .82);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.navbar { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 188px; }
.brand img { width: 42px; height: 42px; }
.brand-copy { display: grid; line-height: 1; }
.brand strong { font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 17px; letter-spacing: .05em; }
.brand span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .19em; margin-top: 6px; }
.nav-links { display: flex; align-items: center; gap: 5px; margin: 0 auto; }
.nav-link {
  padding: 10px 13px;
  border-radius: 10px;
  color: #b5c2d1;
  font-size: 14px;
  font-weight: 600;
  transition: .18s ease;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.055); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(84,214,140,.11); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,90,111,.11); }
.mobile-toggle { display: none; border: 0; background: none; padding: 8px; }
.mobile-toggle span { display: block; width: 23px; height: 2px; background: #fff; margin: 5px 0; border-radius: 5px; }

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #06110f; background: linear-gradient(135deg, #29e5d5, #16b9ae); box-shadow: 0 12px 32px rgba(32,214,199,.2); }
.btn-primary:hover { box-shadow: 0 16px 42px rgba(32,214,199,.3); }
.btn-accent { color: #171006; background: linear-gradient(135deg, #ffb142, #ff8c00); box-shadow: 0 12px 32px rgba(255,159,28,.18); }
.btn-ghost { border-color: var(--border); background: rgba(255,255,255,.035); color: #eaf0f7; }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255,255,255,.06); }
.btn-sm { min-height: 38px; padding-inline: 13px; font-size: 13px; }
.btn-lg { min-height: 52px; padding-inline: 22px; border-radius: 14px; }
.icon { width: 18px; height: 18px; display: inline-block; }

.hero {
  min-height: 770px;
  padding: 154px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(7,11,18,.1), #070b12 96%), url('../img/hero-grid.svg') center/cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 20px; position: relative; z-index: 2; }
.hero-copy { max-width: 650px; }
.hero h1 {
  margin: 18px 0 20px;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(48px, 6.4vw, 82px);
  line-height: .98;
  letter-spacing: -.06em;
}
.hero h1 span { color: var(--primary); text-shadow: 0 0 38px rgba(32,214,199,.18); }
.hero-description { color: #a8b6c6; max-width: 620px; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 13px; }
.hero-meta strong { color: #fff; font-size: 14px; }
.hero-visual { position: relative; min-height: 510px; display: flex; align-items: center; justify-content: center; }
.hero-truck { width: 740px; max-width: none; transform: translateX(-4%); filter: drop-shadow(0 35px 45px rgba(0,0,0,.46)); animation: floatTruck 6s ease-in-out infinite; }
@keyframes floatTruck { 0%,100% { transform: translateX(-4%) translateY(0); } 50% { transform: translateX(-4%) translateY(-10px); } }
.hud-card {
  position: absolute;
  background: rgba(12, 20, 31, .76);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hud-status { top: 60px; right: -8px; width: 215px; padding: 15px; }
.hud-status .row, .mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hud-status strong { font-size: 20px; font-family: 'Space Grotesk'; }
.hud-route { left: 8px; bottom: 45px; width: 248px; padding: 16px; }
.progress { height: 7px; background: rgba(255,255,255,.07); border-radius: 20px; overflow: hidden; margin-top: 12px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #72eee3); border-radius: inherit; }
.metric-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.metric-value { margin-top: 3px; font-weight: 800; }

.live-strip { position: relative; z-index: 5; margin-top: -38px; }
.live-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr) auto;
  align-items: center;
  gap: 0;
  padding: 14px;
  background: rgba(13, 21, 32, .9);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.live-main { display: flex; align-items: center; gap: 14px; padding: 6px 16px; }
.live-icon { width: 44px; height: 44px; border-radius: 13px; background: rgba(84,214,140,.09); display: grid; place-items: center; }
.live-stat { padding: 8px 22px; border-left: 1px solid var(--border); }
.live-stat b { display: block; font-size: 19px; font-family: 'Space Grotesk'; }
.live-stat span { color: var(--muted); font-size: 11px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(20,32,47,.78), rgba(11,18,29,.76));
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.feature-card { padding: 26px; min-height: 245px; position: relative; overflow: hidden; transition: .22s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(32,214,199,.26); }
.feature-card::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -70px; top: -70px; background: radial-gradient(circle, rgba(32,214,199,.16), transparent 70%); }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(32,214,199,.09); border: 1px solid rgba(32,214,199,.14); color: var(--primary); font-weight: 900; }
.feature-card:nth-child(2) .feature-icon { background: rgba(255,159,28,.09); border-color: rgba(255,159,28,.16); color: var(--accent); }
.feature-card h3 { margin: 22px 0 9px; font-family: 'Space Grotesk'; font-size: 21px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14px; }
.feature-link { margin-top: 22px; display: inline-flex; gap: 7px; color: #d7e2ee; font-size: 13px; font-weight: 700; }

.content-grid { display: grid; grid-template-columns: 1.55fr .78fr; gap: 22px; align-items: start; }
.news-list { display: grid; gap: 14px; }
.news-card { padding: 20px; display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; }
.news-date { height: 94px; border-radius: 15px; display: grid; place-items: center; align-content: center; background: linear-gradient(145deg, rgba(32,214,199,.12), rgba(32,214,199,.035)); border: 1px solid rgba(32,214,199,.12); }
.news-date b { font-size: 26px; font-family: 'Space Grotesk'; }
.news-date span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.news-content h3 { margin: 0 0 7px; font-size: 17px; }
.news-content p { margin: 0; color: var(--muted); font-size: 13px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 20px; background: rgba(32,214,199,.09); color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tag.orange { color: var(--accent); background: rgba(255,159,28,.09); }
.tag.red { color: #ff8595; background: rgba(255,90,111,.09); }
.side-card { padding: 22px; }
.side-card h3 { margin: 0 0 18px; font-size: 17px; }
.topic-list { display: grid; gap: 4px; }
.topic { padding: 13px 0; border-bottom: 1px solid var(--border); }
.topic:last-child { border-bottom: 0; }
.topic a { font-size: 13px; font-weight: 700; display: block; }
.topic small { color: var(--muted-2); font-size: 11px; }

.ranking-wrap { overflow: hidden; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { text-align: left; padding: 13px 18px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--border); }
.ranking-table td { padding: 17px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.ranking-table tr:last-child td { border-bottom: 0; }
.rank-number { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); font-weight: 800; }
.driver { display: flex; align-items: center; gap: 11px; }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #273d56, #111b27); display: grid; place-items: center; color: var(--primary); font-weight: 800; border: 1px solid var(--border); }
.driver strong { display: block; }
.driver span { color: var(--muted); font-size: 11px; }

.cta {
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(32,214,199,.18), transparent 28%),
    linear-gradient(135deg, #152638, #0d1723);
  border: 1px solid rgba(32,214,199,.17);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.cta h2 { margin: 0 0 8px; font-family: 'Space Grotesk'; font-size: clamp(29px, 4vw, 45px); letter-spacing: -.04em; }
.cta p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.site-footer { padding: 55px 0 25px; border-top: 1px solid var(--border); background: rgba(4,7,12,.44); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 50px; }
.footer-copy { color: var(--muted); font-size: 13px; max-width: 380px; margin-top: 17px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.footer-col strong { display: block; margin-bottom: 13px; font-size: 13px; }
.footer-col a { display: block; color: var(--muted); font-size: 12px; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 11px; }

/* Pages */
.page-hero { padding: 146px 0 54px; background: linear-gradient(180deg, rgba(18,35,52,.65), transparent); border-bottom: 1px solid var(--border); }
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.page-title p { max-width: 580px; color: var(--muted); }
.breadcrumbs { color: var(--muted-2); font-size: 12px; margin-bottom: 12px; }
.breadcrumbs span { margin: 0 7px; }

.forum-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.forum-categories { display: grid; gap: 14px; }
.forum-category { overflow: hidden; }
.forum-category-head { padding: 17px 20px; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.025); border-bottom: 1px solid var(--border); }
.forum-category-head h2 { margin: 0; font-size: 15px; }
.forum-board { display: grid; grid-template-columns: 46px 1fr 90px 200px; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.forum-board:last-child { border-bottom: 0; }
.board-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(32,214,199,.08); color: var(--primary); font-weight: 800; }
.board-title strong { display: block; font-size: 14px; }
.board-title span, .board-stats span, .board-last span { color: var(--muted); font-size: 11px; }
.board-stats { text-align: center; }
.board-stats strong { display: block; font-size: 13px; }
.board-last strong { font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-users { display: flex; flex-wrap: wrap; gap: 7px; }
.user-chip { padding: 6px 9px; border-radius: 9px; background: rgba(255,255,255,.04); color: #c7d3df; font-size: 11px; }

.dashboard-shell { padding: 124px 0 70px; }
.dashboard-grid { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.dashboard-sidebar { position: sticky; top: 96px; padding: 18px; }
.profile-mini { padding: 10px 8px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.profile-avatar { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(135deg, #285069, #111c29); color: var(--primary); font-weight: 900; }
.profile-mini strong { display: block; font-size: 13px; }
.profile-mini span { color: var(--muted); font-size: 10px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { padding: 11px 12px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 650; }
.side-nav a:hover, .side-nav a.active { background: rgba(32,214,199,.08); color: var(--primary); }
.dashboard-content { display: grid; gap: 20px; }
.dashboard-welcome { padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.dashboard-welcome h1 { margin: 0 0 5px; font-family: 'Space Grotesk'; font-size: 28px; }
.dashboard-welcome p { margin: 0; color: var(--muted); font-size: 13px; }
.level-ring { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) 74%, rgba(255,255,255,.06) 0); position: relative; }
.level-ring::after { content: ''; position: absolute; inset: 8px; background: var(--panel-solid); border-radius: 50%; }
.level-ring div { position: relative; z-index: 2; text-align: center; }
.level-ring b { display: block; font-size: 20px; }
.level-ring span { color: var(--muted); font-size: 9px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 19px; }
.stat-card span { color: var(--muted); font-size: 11px; }
.stat-card b { display: block; font-family: 'Space Grotesk'; font-size: 24px; margin-top: 5px; }
.two-col { display: grid; grid-template-columns: 1.3fr .8fr; gap: 18px; }
.activity-list { padding: 5px 20px; }
.activity { display: grid; grid-template-columns: 37px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity:last-child { border-bottom: 0; }
.activity-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: rgba(32,214,199,.08); color: var(--primary); font-size: 11px; font-weight: 800; }
.activity strong { display: block; font-size: 12px; }
.activity span, .activity time { color: var(--muted); font-size: 10px; }
.license-list { display: grid; gap: 10px; padding: 20px; }
.license { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.license b { font-size: 12px; }
.license small { display: block; color: var(--muted); font-size: 10px; }
.license-badge { min-width: 37px; height: 37px; border-radius: 11px; background: rgba(255,159,28,.09); display: grid; place-items: center; color: var(--accent); font-weight: 900; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); z-index: 200; opacity: 0; visibility: hidden; transition: .2s ease; display: grid; place-items: center; padding: 20px; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { width: min(100%, 440px); border: 1px solid var(--border-strong); background: #0e1723; border-radius: 22px; padding: 28px; box-shadow: var(--shadow); transform: translateY(15px) scale(.98); transition: .2s ease; }
.modal-backdrop.open .modal { transform: none; }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.modal h2 { margin: 0 0 5px; font-family: 'Space Grotesk'; }
.modal p { margin: 0; color: var(--muted); font-size: 12px; }
.close-modal { border: 0; background: rgba(255,255,255,.05); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; color: #cbd6e2; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.form-control { width: 100%; height: 46px; border: 1px solid var(--border); background: rgba(255,255,255,.035); border-radius: 11px; color: #fff; padding: 0 13px; outline: none; }
.form-control:focus { border-color: rgba(32,214,199,.55); box-shadow: 0 0 0 4px rgba(32,214,199,.07); }
.form-help { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; margin: 5px 0 18px; }
.form-submit { width: 100%; }
.demo-note { margin-top: 15px; padding: 10px 12px; background: rgba(255,159,28,.07); border: 1px solid rgba(255,159,28,.12); border-radius: 10px; color: #d7bd99; font-size: 10px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 300; min-width: 280px; max-width: 420px; padding: 14px 16px; background: #142131; border: 1px solid var(--border-strong); border-radius: 13px; box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .22s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .nav-links, .server-pill { display: none; }
  .navbar { justify-content: space-between; }
  .brand { min-width: unset; }
  .mobile-toggle { display: block; }
  .nav-links.mobile-open { position: fixed; display: grid; align-content: start; left: 0; right: 0; top: 78px; bottom: 0; padding: 22px; background: rgba(7,11,18,.98); }
  .nav-links.mobile-open .nav-link { padding: 15px; font-size: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 420px; }
  .hero-truck { width: min(780px, 112vw); }
  .hud-status { right: 5%; }
  .hud-route { left: 7%; }
  .live-panel { grid-template-columns: 1.3fr repeat(2, 1fr) auto; }
  .live-stat:nth-of-type(4) { display: none; }
  .forum-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .side-nav { grid-template-columns: repeat(4, 1fr); }
  .profile-mini { display: none; }
}

@media (max-width: 820px) {
  .section { padding: 68px 0; }
  .cards-3, .content-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .section-head, .page-title { align-items: start; flex-direction: column; }
  .live-panel { grid-template-columns: 1fr 1fr; }
  .live-main { grid-column: 1 / -1; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
  .live-stat { border-left: 0; padding: 12px 16px; }
  .live-panel > .btn { grid-column: 1 / -1; }
  .news-card { grid-template-columns: 86px 1fr; }
  .news-card > .btn { grid-column: 2; justify-self: start; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .forum-board { grid-template-columns: 44px 1fr 150px; }
  .board-stats { display: none; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .nav-actions .btn { display: none; }
  .hero { min-height: auto; padding: 125px 0 50px; }
  .hero h1 { font-size: 47px; }
  .hero-description { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 14px; }
  .hero-visual { min-height: 310px; margin-top: 16px; }
  .hero-truck { width: 125vw; }
  .hud-status { top: 12px; right: 0; width: 174px; }
  .hud-route { bottom: 6px; left: 0; width: 205px; }
  .live-strip { margin-top: -18px; }
  .live-panel { grid-template-columns: 1fr; }
  .live-main, .live-panel > .btn { grid-column: auto; }
  .cards-3 { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 70px 1fr; padding: 14px; gap: 13px; }
  .news-date { height: 75px; }
  .news-date b { font-size: 21px; }
  .cta { grid-template-columns: 1fr; padding: 26px; }
  .cta-actions { justify-content: flex-start; }
  .cta-actions .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .forum-board { grid-template-columns: 40px 1fr; padding: 15px; }
  .board-last { display: none; }
  .forum-category-head { padding: 15px; }
  .side-nav { grid-template-columns: 1fr 1fr; }
  .dashboard-welcome { align-items: flex-start; }
  .level-ring { width: 72px; height: 72px; flex: 0 0 auto; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card b { font-size: 20px; }
}

/* Forum v2 — dynamiczne konta i treści */
.inline-form { display: inline-flex; margin: 0; }
.account-pill { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 10px 4px 5px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); }
.account-pill .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.account-pill strong, .account-pill small { display: block; line-height: 1.2; }
.account-pill strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.account-pill small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.alert { width: min(calc(100% - 40px), var(--container)); margin: 94px auto -60px; padding: 13px 16px; border-radius: 13px; position: relative; z-index: 10; font-size: 12px; }
.alert ul { margin: 7px 0 0; padding-left: 18px; }
.alert-success { color: #a9eec7; background: rgba(84,214,140,.09); border: 1px solid rgba(84,214,140,.2); }
.alert-error { color: #ffb2bc; background: rgba(255,90,111,.08); border: 1px solid rgba(255,90,111,.2); }
.auth-card .alert, .narrow-container > .alert, .reply-box + .alert, .container > .alert { width: auto; margin: 0 0 16px; }
.forum-sidebar { display: grid; gap: 16px; }
.side-description { font-size: 12px; margin-top: -8px; }
.no-border { border-bottom: 0; margin: 0 0 14px; padding: 0; }
.empty-state { padding: 28px; color: var(--muted); text-align: center; font-size: 13px; }
.page-hero.slim { padding-bottom: 42px; }
.board-toolbar, .topic-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.topic-table { overflow: hidden; }
.topic-table-head { display: grid; grid-template-columns: 44px 1fr 100px 100px 190px; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.topic-table-head span:first-child { grid-column: 1 / 3; }
.topic-row { display: grid; grid-template-columns: 44px 1fr 100px 100px 190px; gap: 14px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--border); transition: background .18s ease; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(255,255,255,.025); }
.topic-state { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(32,214,199,.08); color: var(--primary); font-weight: 800; font-size: 12px; }
.topic-main strong { display: block; font-size: 13px; }
.topic-main span, .topic-metric span, .topic-last span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.topic-metric { text-align: center; }
.topic-metric strong, .topic-last strong { display: block; font-size: 12px; }
.topic-last { min-width: 0; }
.topic-last strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pagination { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 12px; }
.pagination a.active, .pagination a:hover { color: #06110f; border-color: transparent; background: var(--primary); }
.topic-title-wrap { align-items: center; }
.topic-labels { display: flex; gap: 7px; margin: 12px 0 -2px; }
.topic-summary { display: flex; gap: 24px; color: var(--muted); font-size: 11px; }
.topic-summary b { color: #fff; font-size: 17px; }
.moderation-actions { display: flex; gap: 8px; margin-left: auto; }
.post-list { display: grid; gap: 14px; }
.forum-post { display: grid; grid-template-columns: 190px 1fr; overflow: hidden; }
.post-author { padding: 22px; border-right: 1px solid var(--border); background: rgba(255,255,255,.017); text-align: center; }
.profile-avatar.large { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 19px; font-size: 17px; }
.post-author > strong { display: block; margin-bottom: 7px; font-size: 13px; }
.post-author .tag { margin-bottom: 12px; }
.post-author small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.post-content { min-width: 0; padding: 0 22px 22px; }
.post-content > header { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 10px; }
.post-content > header a:hover { color: #fff; }
.post-body { min-height: 115px; padding: 22px 0; overflow-wrap: anywhere; color: #dce5ee; font-size: 13px; line-height: 1.75; }
.post-content > footer { padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 9px; }
.reply-box { margin-top: 18px; overflow: hidden; }
.form-stack { display: grid; gap: 14px; padding: 22px; }
.form-stack .form-group { margin: 0; }
.form-control.textarea { height: auto; min-height: 150px; padding: 13px; resize: vertical; line-height: 1.6; }
.form-control.textarea.tall { min-height: 300px; }
.field-hint { display: block; margin-top: 6px; color: var(--muted-2); font-size: 9px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.auth-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 20px; }
.auth-callout strong, .auth-callout span { display: block; }
.auth-callout span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.auth-shell { min-height: calc(100vh - 120px); padding: 135px 0 76px; display: flex; align-items: center; }
.auth-grid { display: grid; grid-template-columns: 1fr 480px; align-items: center; gap: 80px; }
.auth-side h1 { margin: 16px 0; font-family: 'Space Grotesk'; font-size: clamp(42px, 6vw, 66px); line-height: 1; letter-spacing: -.05em; }
.auth-side > p { max-width: 610px; color: var(--muted); font-size: 15px; }
.security-list { display: grid; gap: 13px; margin-top: 30px; max-width: 610px; }
.security-list > div { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.02); }
.security-list > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(32,214,199,.08); color: var(--primary); font-size: 10px; font-weight: 900; }
.security-list p { margin: 0; }
.security-list strong, .security-list small { display: block; }
.security-list strong { font-size: 12px; }
.security-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.auth-card { overflow: hidden; }
.auth-card-head { padding: 24px 24px 0; }
.auth-card-head h2 { margin: 0 0 6px; font-family: 'Space Grotesk'; font-size: 26px; }
.auth-card-head p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-card .alert { margin: 18px 22px 0; }
.auth-switch { padding: 0 22px 22px; color: var(--muted); text-align: center; font-size: 11px; }
.auth-switch a { color: var(--primary); font-weight: 700; }
.check-row { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; }
.check-row input { margin-top: 2px; accent-color: var(--primary); }
.narrow-container { max-width: 850px; }
.compose-card { overflow: hidden; }
.page-inline-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.page-inline-head h1 { margin: 8px 0 0; font-family: 'Space Grotesk'; font-size: 34px; }
.security-panel { padding: 22px; }
.security-panel p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.role-stat { font-size: 16px !important; }
.error-shell { min-height: 75vh; padding: 150px 0 80px; display: grid; place-items: center; }
.error-card { max-width: 650px; margin: 0 auto; padding: 48px; text-align: center; }
.error-card > span { color: var(--primary); font-family: 'Space Grotesk'; font-size: 76px; font-weight: 800; line-height: 1; }
.error-card h1 { margin: 14px 0 8px; font-family: 'Space Grotesk'; font-size: 34px; }
.error-card p { margin: 0 auto 24px; max-width: 460px; color: var(--muted); }
.error-card > div { display: flex; justify-content: center; gap: 10px; }
.activity { color: inherit; }

@media (max-width: 1120px) {
  .desktop-register, .desktop-logout { display: none; }
  .auth-grid { gap: 40px; }
  .topic-table-head { grid-template-columns: 44px 1fr 85px 160px; }
  .topic-table-head span:nth-child(3) { display: none; }
  .topic-row { grid-template-columns: 44px 1fr 85px 160px; }
  .topic-row > .topic-metric:nth-child(4) { display: none; }
}

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { max-width: 700px; }
  .forum-post { grid-template-columns: 145px 1fr; }
  .topic-table-head { display: none; }
  .topic-row { grid-template-columns: 42px 1fr 130px; }
  .topic-row .topic-metric { display: none; }
}

@media (max-width: 680px) {
  .account-pill { padding-right: 5px; }
  .account-pill > span:last-child { display: none; }
  .alert { width: min(calc(100% - 24px), var(--container)); margin-top: 86px; }
  .board-toolbar, .topic-actions, .page-inline-head { align-items: stretch; flex-direction: column; }
  .moderation-actions { margin-left: 0; }
  .topic-summary { display: none; }
  .topic-row { grid-template-columns: 38px 1fr; padding: 15px; }
  .topic-row .topic-last { display: none; }
  .forum-post { grid-template-columns: 1fr; }
  .post-author { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--border); text-align: left; padding: 14px; }
  .profile-avatar.large { width: 48px; height: 48px; margin: 0; border-radius: 14px; }
  .post-author > strong { margin: 0; }
  .post-author .tag { margin: 0; }
  .post-author small { display: none; }
  .post-content { padding: 0 16px 18px; }
  .post-body { min-height: 80px; }
  .auth-shell { padding-top: 115px; }
  .auth-side h1 { font-size: 44px; }
  .security-list { display: none; }
  .auth-callout, .error-card > div { align-items: stretch; flex-direction: column; }
  .error-card { padding: 30px 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}
