:root {
  --bg: #07070a;
  --bg-2: #0c0c10;
  --panel: #101014;
  --panel-2: #16161c;
  --line: rgba(212, 175, 55, 0.22);
  --line-strong: rgba(212, 175, 55, 0.55);
  --gold: #d4af37;
  --gold-2: #f5d76e;
  --gold-3: #a67c00;
  --gold-soft: #c9a227;
  --ivory: #f4f0e4;
  --muted: #8a8373;
  --muted-2: #5e584c;
  --navy: #003399;
  --ok: #57f287;
  --warn: #ff8c00;
  --crit: #ed4245;
  --idle: #3ab0ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: "Segoe UI", "Segoe UI Variable", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "Segoe UI Mono", monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(212, 175, 55, 0.08), transparent 55%),
    radial-gradient(800px 400px at -10% 110%, rgba(0, 51, 153, 0.16), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 7px),
    var(--bg);
  color: var(--ivory);
  letter-spacing: 0.01em;
  overflow: hidden;
}

.app {
  display: grid;
  grid-template-columns: 236px 1fr;
  height: 100vh;
}

.side {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0b0b0f 0%, #0a0a0d 100%);
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.45), 0 0 24px rgba(212,175,55,0.18);
}
.brand-text { min-width: 0; }
.brand-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 700;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font: 600 13px var(--font);
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.15s ease;
}
.nav button:hover {
  color: var(--ivory);
  background: rgba(212,175,55,0.06);
}
.nav button.active,
.nav button[aria-current="page"] {
  color: var(--gold-2);
  background: linear-gradient(90deg, rgba(212,175,55,0.22), rgba(212,175,55,0.06));
  border-color: var(--line-strong);
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav button.active .ic,
.nav button[aria-current="page"] .ic { opacity: 1; color: var(--gold); }
.nav .ic { width: 16px; text-align: center; opacity: 0.9; }
.nav-label {
  margin: 16px 12px 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 750;
}

.side-foot {
  margin-top: auto;
  padding: 14px 8px 4px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.45;
}
.side-foot strong { color: var(--gold-soft); font-weight: 600; }

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,7,10,0.72);
  backdrop-filter: blur(10px);
}
.top h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.top h1 span { color: var(--gold); letter-spacing: 0.28em; font-size: 12px; display: block; font-weight: 700; }
.top-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 650;
  color: var(--ivory);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px currentColor;
}
.dot.warn { background: var(--warn); }
.dot.crit { background: var(--crit); }
.dot.idle { background: var(--idle); }
.live-pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .live-pulse { animation: none; }
}

.content {
  flex: 1;
  overflow: auto;
  overflow-anchor: none;
  padding: 22px 28px 40px;
}
.page { display: none; }
.page.active { display: block; }

.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpis:has(.kpi:only-child) { grid-template-columns: minmax(200px, 320px); }
.kpi {
  background: linear-gradient(180deg, #14141a, #101014);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.kpi .lbl {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.kpi .val {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 750;
  color: var(--gold-2);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.kpi .sub { margin-top: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.grid-2 { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.card {
  background: linear-gradient(180deg, rgba(22,22,28,0.92), rgba(12,12,16,0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card h2 .quiet { color: var(--muted); letter-spacing: 0.08em; font-weight: 600; text-transform: none; }

.banner {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(212,175,55,0.12), transparent 42%),
    var(--panel);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.banner.crit { border-color: rgba(237,66,69,0.55); background: linear-gradient(90deg, rgba(237,66,69,0.12), transparent 50%), var(--panel); }
.banner.warn { border-color: rgba(255,140,0,0.5); background: linear-gradient(90deg, rgba(255,140,0,0.1), transparent 50%), var(--panel); }
.banner .title { font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: var(--gold-2); }
.banner p { margin: 6px 0 0; color: var(--ivory); font-size: 13px; line-height: 1.45; }
.banner .reasons { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }

.gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}
.gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
}
.gauge svg { width: 112px; height: 112px; }
.gauge .g-val { font-size: 18px; font-weight: 750; color: var(--ivory); margin-top: -68px; font-variant-numeric: tabular-nums; }
.gauge .g-lbl { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 42px; }

.spark {
  width: 100%;
  height: 42px;
  display: block;
}
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; font-size: 12px; }
.bar-row .n { color: var(--muted); font-weight: 700; }
.track {
  height: 8px;
  background: #1c1c24;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}
.track > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  border-radius: 99px;
  width: 0%;
}
.track.warn > i { background: linear-gradient(90deg, #a85a00, var(--warn)); }
.track.crit > i { background: linear-gradient(90deg, #7a1214, var(--crit)); }
.bar-row .pct { font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 700; min-width: 86px; text-align: right; }

.table-wrap { overflow: auto; overflow-anchor: none; max-height: 420px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 750;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #121218;
}
td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--ivory);
  vertical-align: middle;
}
td.muted, .muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.status.live { color: var(--ok); }
.status.idle { color: var(--idle); }
.status.down { color: var(--crit); }
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.crit { color: var(--crit); }

.group-h {
  margin: 18px 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.group-h h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
}
.group-h .meta { color: var(--muted); font-size: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #14141a;
  color: var(--ivory);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.bot-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.bot-card {
  border: 1px solid var(--line);
  background: #121218;
  border-radius: 12px;
  padding: 14px;
}
.bot-card .name { font-weight: 750; letter-spacing: 0.08em; font-size: 14px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; }
.kv div { min-width: 0; }
.kv .k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kv .v { font-size: 13px; margin-top: 3px; font-variant-numeric: tabular-nums; }

.scope-list { display: grid; gap: 10px; }
.scope-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121218;
  overflow: hidden;
}
.scope-item summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}
.scope-item summary::-webkit-details-marker { display: none; }
.scope-item .emoji { width: 28px; text-align: center; }
.scope-item .blurb { padding: 0 14px 12px 52px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.scope-sec { padding: 0 14px 14px 52px; }
.scope-sec h4 { margin: 10px 0 4px; font-size: 12px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.scope-sec p { margin: 0; white-space: pre-wrap; color: #d8d2c4; font-size: 12.5px; line-height: 1.5; }

.agent-item {
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  background: #121218;
  border-radius: 0 10px 10px 0;
  margin-bottom: 10px;
}
.agent-item .st { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 750; color: var(--gold); }
.agent-item p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--ivory); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tabs.wrap { margin-top: 4px; }
.tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #121218;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font: 650 12px var(--font);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.tab.slim { padding: 5px 10px; font-size: 11px; }
.tab:hover { color: var(--ivory); border-color: var(--line-strong); }
.tab.active {
  color: var(--gold-2);
  background: linear-gradient(90deg, rgba(212,175,55,0.18), rgba(212,175,55,0.06));
  border-color: var(--line-strong);
}
.toolbar { margin: 0 0 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar input {
  width: 100%;
  max-width: 420px;
  flex: 1 1 240px;
  background: #121218;
  border: 1px solid var(--line);
  color: var(--ivory);
  border-radius: 10px;
  padding: 9px 12px;
  font: 600 13px var(--font);
}
.toolbar input:focus { outline: none; border-color: var(--gold); }
.table-wrap.tall { max-height: 62vh; }
.pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.pager-meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.pager .tab[disabled] {
  opacity: 0.35;
  cursor: default;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}
.srv-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,22,28,0.92), rgba(12,12,16,0.92));
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  min-width: 0;
}
.srv-card.live { border-color: rgba(87, 242, 135, 0.35); }
.srv-card.down { opacity: 0.78; }
.srv-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.srv-name { font-weight: 750; font-size: 13px; line-height: 1.35; }
.srv-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.srv-count {
  margin: 8px 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 700;
}
.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #d4af37, #a67c00);
  color: #140f05;
  text-decoration: none;
  font: 750 11px var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 12px;
  min-width: 64px;
}
.join-btn:hover { filter: brightness(1.08); }
.join-btn.disabled {
  background: #1a1a20;
  color: var(--muted-2);
  border-color: var(--line);
  pointer-events: none;
}
.drivers { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.driver {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 10px;
  padding: 6px 9px;
  max-width: 100%;
}
.chip.driver b { font-size: 12px; font-weight: 700; }
.chip.driver span { color: var(--muted); font-size: 10px; letter-spacing: 0.04em; }

.empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.footnote {
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a271c; border: 2px solid var(--bg); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3); }

@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-2, .grid-3, .bot-grid, .gauges, .srv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .kpis, .grid-2, .grid-3, .bot-grid, .gauges, .srv-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .top { padding: 12px 16px; }
  .content { padding: 16px 16px 32px; }
  .top h1 { font-size: 15px; }
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--gold-2);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,7,10,0.88);
}
.mobile-nav button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font: 650 11px var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.mobile-nav button.active,
.mobile-nav button[aria-current="page"] {
  color: #140f05;
  background: linear-gradient(180deg, #d4af37, #a67c00);
  border-color: var(--line-strong);
}
.mobile-nav button.active .lock-ic,
.mobile-nav button[aria-current="page"] .lock-ic { opacity: 0.85; }
.mobile-nav .nav-label {
  flex: 1 0 100%;
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 750;
}
.lock-ic {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.55;
  letter-spacing: 0;
}
.nav button.locked { opacity: 0.72; }
.nav button.locked.active,
.nav button.locked[aria-current="page"] { opacity: 1; }
.auth-pill { cursor: pointer; }
.auth-pill.admin { border-color: var(--line-strong); color: var(--gold-2); }
.side-foot a { color: var(--gold-soft); text-decoration: none; }
.side-foot a:hover { color: var(--gold-2); }

.lock-card {
  max-width: 520px;
  margin: 24px auto;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(22,22,28,0.96), rgba(12,12,16,0.96));
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  box-shadow: var(--shadow);
}
.lock-kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 750;
}
.lock-card h2 { margin: 8px 0 10px; font-size: 22px; }
.lock-card p { color: var(--muted); line-height: 1.5; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 16px;
}
.modal-back[hidden] { display: none; }
.modal {
  width: min(480px, 100%);
  background: #101014;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow);
}
.modal h2 { margin: 0 0 8px; color: var(--gold-2); }
.modal p { color: var(--ivory); font-size: 14px; line-height: 1.45; }
.link-steps {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.5;
}
.link-steps li { margin: 0 0 8px; }
.link-steps code {
  font-family: var(--mono);
  color: var(--gold-2);
  background: #07070a;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  letter-spacing: 0.04em;
}
.code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 12px 0;
}
#link-copy { flex-shrink: 0; align-self: center; }
.code-block {
  font-family: var(--mono);
  background: #07070a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  letter-spacing: 0.14em;
  color: var(--gold-2);
  margin: 0;
  user-select: all;
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}
.modal-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }

body { overflow: auto; }
@media (min-width: 981px) {
  body { overflow: hidden; }
}

.rent-cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #f5d76e, #d4af37 42%, #a67c00);
  color: #140f05;
  text-decoration: none;
  font: 750 12px var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.18);
  white-space: nowrap;
}
.rent-cta:hover { filter: brightness(1.08); }
.rent-cta[disabled] { opacity: 0.55; pointer-events: none; }
.rent-cta.ghost {
  background: transparent;
  color: var(--gold-2);
  box-shadow: none;
}
.rental-promo {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, rgba(7,7,10,0.2), rgba(7,7,10,0.72) 46%),
    #101014;
  border-radius: var(--radius);
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr auto;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  box-shadow: var(--shadow);
}
.rental-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 92px;
  display: block;
}
.rental-promo .copy { padding: 16px 8px 16px 18px; min-width: 0; }
.rental-promo .kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 750;
}
.rental-promo h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ivory);
}
.rental-promo p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.rental-promo .rent-cta { margin: auto 18px; }
.rental-hero {
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  margin-bottom: 18px;
  background: #08080c;
  box-shadow: var(--shadow), 0 0 0 1px rgba(212,175,55,0.08);
}
.rental-hero img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center;
}
.rental-hero .plate {
  padding: 18px 22px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  background:
    linear-gradient(180deg, transparent, rgba(7,7,10,0.35)),
    linear-gradient(90deg, rgba(212,175,55,0.08), transparent 55%);
  border-top: 1px solid var(--line);
}
.rental-hero .kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 750;
}
.rental-hero h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 750;
}
.rental-hero p {
  margin: 0;
  max-width: 640px;
  color: #d8d2c4;
  font-size: 14px;
  line-height: 1.55;
}
.rental-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.rental-step {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,22,28,0.96), rgba(12,12,16,0.96));
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  min-width: 0;
}
.rental-step .n {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 750;
}
.rental-step h3 {
  margin: 8px 0 6px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.rental-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.rental-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.tier-card {
  appearance: none;
  text-align: left;
  color: inherit;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,22,28,0.96), rgba(10,10,14,0.96));
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  width: 100%;
}
.tier-card:hover { border-color: var(--line-strong); }
.tier-card.selected {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(212,175,55,0.12), rgba(12,12,16,0.96));
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35), var(--shadow);
}
.tier-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.tier-card .name {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 750;
}
.tier-card .price {
  font-size: 32px;
  font-weight: 750;
  color: var(--gold-2);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-card .period { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.tier-card .naming {
  margin: 0 0 12px;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 650;
}
.tier-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.tier-card li {
  color: #d8d2c4;
  font-size: 13px;
  line-height: 1.4;
  padding-left: 16px;
  position: relative;
}
.tier-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 7px;
}
.rental-maps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.map-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: #121218;
  color: var(--ivory);
  border-radius: 10px;
  padding: 11px 12px;
  font: 650 12px var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
}
.map-chip:hover { border-color: var(--line-strong); color: var(--gold-2); }
.map-chip.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212,175,55,0.16), #121218);
  color: var(--gold-2);
}
.rental-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 750;
  margin: 0 0 8px;
}
.rental-form .field { margin-bottom: 14px; }
.rental-form input,
.rental-form textarea {
  width: 100%;
  background: #0c0c10;
  border: 1px solid var(--line);
  color: var(--ivory);
  border-radius: 10px;
  padding: 11px 12px;
  font: 600 14px var(--font);
}
.rental-form textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.rental-form input:focus,
.rental-form textarea:focus { outline: none; border-color: var(--gold); }
.chat-toggle { display: flex; gap: 8px; }
.chat-toggle button {
  appearance: none;
  flex: 1;
  border: 1px solid var(--line);
  background: #121218;
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 12px;
  font: 750 12px var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.chat-toggle button.selected {
  color: #140f05;
  background: linear-gradient(180deg, #d4af37, #a67c00);
  border-color: var(--line-strong);
}
.rental-status {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  background: #121218;
}
.rental-status.pending { border-color: rgba(255,140,0,0.45); }
.rental-status.approved { border-color: rgba(87,242,135,0.4); }
.rental-status.rejected { border-color: rgba(237,66,69,0.45); }
.rental-status .lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--gold);
  margin-bottom: 6px;
}
.rental-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-msg { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.form-msg.err { color: var(--crit); }
.form-msg.ok { color: var(--ok); }
.example-build {
  border: 1px solid rgba(232, 42, 31, 0.35);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  margin: 0 0 18px;
  background: #08080c;
  box-shadow: var(--shadow), 0 0 0 1px rgba(236, 9, 9, 0.08);
}
.example-banner {
  position: relative;
  min-height: 240px;
}
.example-banner img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 62%;
}
.example-banner .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,12,0.08) 0%, rgba(8,8,12,0.55) 48%, rgba(8,8,12,0.96) 100%),
    linear-gradient(90deg, rgba(8,8,12,0.72), transparent 55%);
}
.example-banner .copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}
.example-banner .kicker {
  color: #ff6b4a;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 750;
}
.example-banner h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  font-weight: 750;
  max-width: 720px;
  line-height: 1.2;
}
.example-banner p {
  margin: 0;
  max-width: 640px;
  color: #d8d2c4;
  font-size: 14px;
  line-height: 1.55;
}
.example-banner .cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.example-banner .cta .rent-cta {
  background: linear-gradient(180deg, #ec3a2a, #9a120c);
  color: #fff8f4;
  box-shadow: 0 8px 20px rgba(236, 9, 9, 0.28);
}
.example-banner .cta .ghost {
  background: transparent;
  color: #f0c9a0;
  box-shadow: none;
  border-color: rgba(226, 173, 14, 0.45);
}
.example-live { font-size: 12px; color: #cfc6b6; letter-spacing: 0.04em; }
.example-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.example-col {
  padding: 20px 22px 22px;
}
.example-col + .example-col { border-left: 1px solid rgba(255,255,255,0.06); }
.example-col h3 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff6b4a;
  font-weight: 750;
}
.example-col ul, .example-col ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.example-col li {
  color: #d8d2c4;
  font-size: 13px;
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.example-col ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2ad0e;
  position: absolute;
  left: 0;
  top: 7px;
}
.example-col ol { counter-reset: mw; }
.example-col ol li { padding-left: 22px; }
.example-col ol li::before {
  counter-increment: mw;
  content: counter(mw, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  color: #e2ad0e;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.example-note {
  margin: 0;
  padding: 12px 22px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rental-role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: stretch;
  margin: 0 0 18px;
}
.rental-role .copy {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,22,28,0.96), rgba(12,12,16,0.96));
  border-radius: var(--radius);
  padding: 18px 20px;
}
.rental-role .kicker {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 750;
}
.rental-role h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.rental-role .copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.dc-preview {
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.4);
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", "Segoe UI", sans-serif;
}
.dc-preview .dc-app {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #949ba4;
  font-weight: 700;
  margin-bottom: 10px;
}
.dc-hoist {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ec0909;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dc-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
}
.dc-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffd56a, transparent 40%),
    linear-gradient(135deg, #ec0909, #e2ad0e);
  flex-shrink: 0;
}
.dc-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  background: linear-gradient(90deg, #ec0909 0%, #e2ad0e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.dc-mention {
  display: inline-flex;
  align-items: center;
  background: rgba(236, 9, 9, 0.18);
  color: #ec0909;
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
}
.dc-chat {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #b5bac1;
  font-size: 13px;
  line-height: 1.45;
}
.dc-chat .lbl { color: #949ba4; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 6px; }
@media (max-width: 1280px) {
  .rental-steps, .rental-maps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .rental-promo { grid-template-columns: 1fr; }
  .rental-promo .rent-cta { margin: 0 16px 16px; }
  .rental-hero img { height: 110px; }
  .rental-hero .plate { flex-direction: column; align-items: flex-start; }
  .rental-hero h2 { font-size: 22px; }
  .rental-steps, .rental-tiers, .rental-maps { grid-template-columns: 1fr; }
  .example-banner img { height: 220px; }
  .example-banner .copy, .example-grid, .rental-role { grid-template-columns: 1fr; }
  .example-banner .copy { position: relative; flex-direction: column; align-items: flex-start; padding: 16px; }
  .example-banner .cta { align-items: flex-start; }
  .example-col + .example-col { border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
}
