/* B4R3 web client. Fonts are self-hosted in /vendor/fonts (the CSP allows only same-origin fonts). */

:root {
  --ink: #152235;
  --ink-2: #3d4b60;
  --muted: #5b6779;
  --muted-2: #66728a;
  --bg: #f7f8fb;
  --panel: #fff;
  --border: #e6eaf0;
  --border-2: #dfe4ea;
  --navy: #101a2b;
  --navy2: #1c2a40;
  --lime: #b8f486;
  --lime2: #d2ffb2;
  --brand: #4f7d33;
  --brand-bg: #edf6e7;
  --blue: #2f6aa6;
  --danger: #b03a35;
  --danger-bg: #fce9e8;
  --warn-text: #7a5a0e;
  --warn-bg: #fff6e0;
  --warn-border: #f1dfae;
  --focus: #2f6aa6;
  --shadow: 0 14px 45px rgba(20, 35, 57, 0.055);
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; outline: none; min-height: 100vh; } /* keeps the footer below the fold while a page loads (no jump) */
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, .display { font-family: "Space Grotesk", "DM Sans", sans-serif; letter-spacing: -0.045em; }
h1 { font-size: clamp(42px, 4.8vw, 67px); line-height: 1.08; font-weight: 700; }
h2 { font-size: 33px; line-height: 1.13; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.23; }
small { font-size: 12px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
code { background: #f0f3f6; border-radius: 4px; padding: 1px 5px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
dl, dd { margin: 0; }
ul, ol { margin: 0; }
hr.divider { border: 0; border-top: 1px solid #edf0f3; margin: 24px 0; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.page-title:focus, main:focus, [tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff;
  padding: 10px 14px; border-radius: 8px; font-weight: 700; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }
.noscript { padding: 20px; text-align: center; background: var(--warn-bg); color: var(--warn-text); }

.container { max-width: 1344px; margin: auto; padding: 0 35px; }
.narrow-page { max-width: 640px; padding-top: 70px; padding-bottom: 70px; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.block { display: block; }
.center { text-align: center; justify-content: center; }
.nowrap { white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.17em; font-size: 10px; }
.section-eyebrow { color: var(--brand); margin-bottom: 8px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex.wrap, .wrap { flex-wrap: wrap; }
.gap-sm { gap: 6px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.between.wrap { flex-wrap: wrap; }
.hidden, [hidden] { display: none !important; }
.text-link { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.text-link:hover { color: #1f4f80; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline;
  text-underline-offset: 2px; display: inline-flex; align-items: center; gap: 5px;
}
.link-btn.small { font-size: 11px; }
.link-btn.block { display: flex; margin-top: 6px; }
.optional { font-weight: 500; color: var(--muted); }
.error-text { color: var(--danger); font-weight: 700; }
.danger-text { color: var(--danger) !important; }
.danger-title { color: var(--danger); }

/* ------------------------------------------------------------------------------- buttons */
.btn {
  border: 1px solid transparent; border-radius: 9px; padding: 11px 18px; background: var(--lime); color: #182522;
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s; white-space: nowrap; position: relative;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(28, 45, 44, 0.1); }
.btn:active { transform: translateY(0); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-soft { background: #eff3f7; color: var(--ink); border-color: #e2e9f0; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn-ghost { background: transparent; color: inherit; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 12px; min-height: 34px; }
.btn-xs { padding: 5px 9px; font-size: 11px; min-height: 28px; gap: 5px; border-radius: 7px; }
.btn-lg { padding: 15px 22px; min-height: 50px; }
.btn-full { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-busy { color: transparent !important; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 2px solid currentColor; border-radius: 50%; border-top-color: transparent; animation: spin 0.65s linear infinite;
}
.btn-dark.is-busy::after, .btn-danger.is-busy::after { border-color: #fff; border-top-color: transparent; }
.btn-outline.is-busy::after, .btn-soft.is-busy::after, .btn-ghost.is-busy::after, .btn.is-busy::after { color: var(--ink); }
.btn-dark.is-busy::after, .btn-danger.is-busy::after { color: #fff; }

.icon { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.icon-lg { width: 22px; height: 22px; }
.icon-sm { width: 14px; height: 14px; }

/* ------------------------------------------------------------------------- pills & badges */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; background: #eaf3e7;
  color: #3f6b34; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.pill.gray { background: #f0f2f5; color: #556173; }
.pill.amber { background: #fff4db; color: #7f5d12; }
.pill.blue { background: #eaf0ff; color: #2f5ea8; }
.dot { height: 7px; width: 7px; border-radius: 100%; background: #50c78b; display: inline-block; box-shadow: 0 0 0 3px #dff8eb; flex: none; }
.dot.off { background: #a7b1bf; box-shadow: 0 0 0 3px #e9edf2; }
.dot.busy { background: #e0a526; box-shadow: 0 0 0 3px #fbefd2; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; font-size: 10.5px;
  font-weight: 800; background: #f0f2f5; color: #4c586a; white-space: nowrap; line-height: 1.4;
}
.badge-ok { background: #e5f5e2; color: #3a6f33; }
.badge-verified { background: #e8effd; color: #2a5597; }
.badge-warn { background: var(--warn-bg); color: var(--warn-text); }
.badge-danger { background: var(--danger-bg); color: #8f302c; }
.badge-sample { background: #f1ecfb; color: #5b3f97; }
.block-badge { display: inline-flex; margin-top: 6px; white-space: normal; }
.badge-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 10px; }

/* -------------------------------------------------------------------------------- header */
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 25px; letter-spacing: -0.02em; }
.brand-mark { width: 31px; height: 31px; border-radius: 8px; background: var(--lime); color: #10201a; display: grid; place-items: center; position: relative; transform: rotate(-8deg); }
.brand-mark svg { width: 23px; height: 23px; transform: rotate(8deg); }
.topbar { height: 72px; background: #fff; border-bottom: 1px solid #e8ecf1; position: sticky; top: 0; z-index: 30; }
#header { position: sticky; top: 0; z-index: 30; }
.topbar > .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.nav-links, .nav-right { display: flex; align-items: center; gap: 27px; }
.nav-link { background: none; border: 0; color: #4b586c; font-weight: 700; font-size: 13px; padding: 10px 0; position: relative; }
.nav-link.active, .nav-link:hover { color: #17283e; }
.nav-links .nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--lime); }
.nav-right { gap: 11px; }
.balance-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 30px; border: 1px solid #dfe9d6;
  background: #f4f9ef; color: #345a26; font-weight: 800; font-size: 12px;
}
.balance-chip:hover { background: #eaf4e0; }
.avatar { height: 36px; width: 36px; border-radius: 50%; background: #e8efd8; color: #456030; display: grid; place-items: center; font-weight: 800; border: 2px solid #fff; box-shadow: 0 0 0 1px #dfe6d9; }
.account-button { display: flex; align-items: center; gap: 9px; border: 1px solid #e4eaf0; padding: 5px 8px 5px 5px; border-radius: 40px; background: #fff; font-weight: 700; }
.menu-wrap { position: relative; }
.dropdown { position: absolute; right: 0; top: 50px; min-width: 240px; padding: 7px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 16px 40px #14243c25; z-index: 60; }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 0; text-align: left; padding: 10px; border-radius: 7px; color: var(--ink); font-size: 13px; }
.dropdown a:hover, .dropdown button:hover, .dropdown a:focus-visible, .dropdown button:focus-visible { background: #f2f5f7; }
.dropdown-head { padding: 8px 10px 10px; border-bottom: 1px solid #eef1f5; margin-bottom: 4px; overflow-wrap: anywhere; }
.dropdown .muted { font-size: 11px; }
.dropdown:not([hidden]) { animation: menu-in 0.14s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: top right; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
.mobile-nav { display: none; }

.announcement { background: #eff5e8; border-bottom: 1px solid #dceaca; color: #45622f; text-align: center; padding: 8px 18px; font-size: 12px; font-weight: 700; }
.announcement .live { background: #d8eebf; padding: 3px 7px; border-radius: 4px; margin-right: 7px; color: #3c6324; }
.announcement .live.warn { background: #f8e3a8; color: #6a4d08; }

.site-banner { background: var(--warn-bg); border-bottom: 1px solid var(--warn-border); color: var(--warn-text); }
.banner-row { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; font-size: 13px; }
.banner-row p { flex: 1; }
.banner-row strong { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------------- hero */
.hero-wrap { padding-top: 20px; }
.hero {
  background: radial-gradient(circle at 80% 40%, #283d51 0%, transparent 40%), linear-gradient(128deg, #0f1a29, #111f32);
  border-radius: 17px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); color: #fff; position: relative; box-shadow: 0 20px 55px #182c3920;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent 23%, black); pointer-events: none;
}
.hero-copy { z-index: 2; padding: 30px 24px 28px 44px; max-width: 760px; }
.hero .eyebrow { color: var(--lime); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hero h1 { max-width: 760px; font-size: clamp(30px, 3vw, 42px); }
.hero .hero-break { display: none; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-sub { font-size: 14px; line-height: 1.6; max-width: 780px; margin: 10px 0 18px; color: #b6c2d2; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-secondary { border: 1px solid #526173; background: #ffffff0d; color: #fff; }
.hero .btn-secondary:hover { background: #ffffff1d; }
.hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: #b3bfcd; font-size: 11.5px; }
.hero-proof > span { display: flex; align-items: center; gap: 7px; }
.hero-proof .icon { color: var(--lime); }
.hero-art { z-index: 1; position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 16px 24px 16px 0; }
.graphic-circle { width: min(220px, 92%); aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffffff18; display: grid; place-items: center; position: relative; background: radial-gradient(circle, #b9f4800b, transparent 68%); }
.graphic-circle::before, .graphic-circle::after { content: ""; position: absolute; inset: 20px; border: 1px dashed #ffffff26; border-radius: 50%; }
.graphic-circle::after { inset: 44px; border-style: solid; }
.graphic-orbit { position: absolute; width: 9px; height: 9px; background: #b7fa89; box-shadow: 0 0 18px #a6ed72; border-radius: 50%; left: 17%; top: 14%; }
.gpu-hero { width: 176px; max-width: 80%; height: 102px; transform: perspective(900px) rotateY(-16deg) rotateX(7deg) rotateZ(-5deg); filter: drop-shadow(16px 26px 22px #0007); position: relative; z-index: 2; }
.gpu-main { width: 100%; height: 100%; border-radius: 15px; background: linear-gradient(132deg, #34495b, #131f32 57%, #344e63); border: 3px solid #627486; box-shadow: inset 0 0 0 6px #17283a, 0 0 0 1px #172435; display: flex; align-items: center; justify-content: space-evenly; position: relative; overflow: hidden; }
.gpu-main::before { content: ""; position: absolute; inset: 8px; border: 1px solid #68809238; border-radius: 9px; }
.fan { width: 107px; height: 107px; border-radius: 50%; border: 9px solid #263c4d; outline: 1px solid #8292a077; background: repeating-conic-gradient(from 16deg, #1b2b3a 0deg, #364d61 10deg, #243a4e 19deg, #0b1b2b 29deg); display: grid; place-items: center; box-shadow: inset 0 0 16px #000a; }
.fan::after { content: ""; width: 35px; height: 35px; background: radial-gradient(circle at 30% 30%, #a9e67c, #203b35 60%); border-radius: 50%; border: 5px solid #152734; }
.gpu-hero .fan { width: 62px; height: 62px; border-width: 6px; }
.gpu-hero .fan::after { width: 20px; height: 20px; border-width: 3px; }
.gpu-rail { height: 16px; position: absolute; bottom: -10px; left: 9%; right: 9%; border-radius: 3px; background: linear-gradient(90deg, #a0aab1, #48566b, #b9c1c8); }
.gpu-floating { position: absolute; z-index: 5; background: #f8fcfa; box-shadow: 0 13px 30px #0004; color: #172635; border-radius: 9px; padding: 7px 11px; font-size: 12px; }
.gpu-floating.top { top: 9%; right: 4%; }
.gpu-floating.bottom { bottom: 9%; left: 0; }
.gpu-floating .tiny { font-size: 10px; color: #5f6b7d; font-weight: 700; letter-spacing: 0.04em; }
.gpu-floating strong { font-family: "Space Grotesk"; font-size: 15px; }
.wave { display: flex; align-items: end; height: 17px; gap: 3px; }
.wave i { height: 60%; width: 4px; background: #9bdd67; border-radius: 3px; }
.wave i:nth-child(2), .wave i:nth-child(6) { height: 100%; }
.wave i:nth-child(3) { height: 50%; }
.wave i:nth-child(4) { height: 75%; }
.stats-strip { display: flex; align-items: center; padding: 14px 0; gap: 36px; border-bottom: 1px solid var(--border); }
.stat { display: flex; gap: 9px; align-items: center; }
.stat .icon { color: #557a3e; background: #eff6e9; width: 35px; height: 35px; border-radius: 9px; padding: 8px; }
.stat strong { display: block; font-size: 18px; font-family: "Space Grotesk"; letter-spacing: -0.04em; }
.stat strong small { font-size: 12px; font-family: "DM Sans"; font-weight: 500; color: var(--muted); }
.stat span { display: block; font-size: 11px; color: var(--muted); }
.stat-note { margin-left: auto; max-width: 420px; line-height: 1.6; color: var(--muted); font-size: 11px; }

/* ----------------------------------------------------------------------------- market */
.section { padding-top: 58px; padding-bottom: 58px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.section-header p { color: var(--muted); max-width: 600px; margin-top: 8px; }
#market.section { padding-top: 24px; }
#market .section-header { margin-bottom: 16px; }
.market-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 21px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 19px; position: sticky; top: 91px; max-height: calc(100vh - 110px); overflow-y: auto; }
.filter-label, .filters legend, .filters h2.filter-label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 10px; font-family: inherit; letter-spacing: 0; color: var(--ink); }
.filter-block { padding: 16px 0; border-bottom: 1px solid #eef0f4; }
.filter-block:first-child, .filter-more .filter-block:first-child { padding-top: 4px; }
.filter-search { padding-top: 0; }
.filter-more .filter-block:last-child { border: 0; padding-bottom: 0; }
.filters-toggle { display: none; margin-top: 10px; width: 100%; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #7a8597; }
.field, .input-wrap input, .input-wrap select {
  width: 100%; border: 1px solid #d5dce5; border-radius: 8px; background: #fff; outline: none; padding: 11px 12px;
  color: var(--ink); min-height: 41px; transition: border-color 0.2s;
}
.field-sm { min-height: 36px; padding: 8px 10px; font-size: 13px; }
textarea.field { resize: vertical; line-height: 1.5; }
.input-wrap input { padding-left: 36px; }
.field:focus, .input-wrap input:focus, .input-wrap select:focus { border-color: #7fa865; box-shadow: 0 0 0 3px #b8f48640; }
.field:disabled { background: #f4f6f8; color: var(--muted); cursor: not-allowed; }
.field::placeholder { color: #8692a2; }
.check-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: #45536a; font-size: 12.5px; cursor: pointer; }
.check-row input { accent-color: #5c8a3c; width: 15px; height: 15px; flex: none; }
.check-block { align-items: flex-start; line-height: 1.5; }
.check-block input { margin-top: 2px; }
.check-block a { color: var(--blue); text-decoration: underline; font-weight: 700; }
.range-label { display: flex; justify-content: space-between; margin-bottom: 11px; font-size: 12px; color: #4f5c70; }
.range-label label { font-weight: 800; color: var(--ink); }
.range { width: 100%; accent-color: #6a9a4a; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid #dbe2ea; background: #fff; color: #4e5c70; padding: 6px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 800; }
.chip.selected, .chip[aria-pressed="true"] { background: #e8f4df; color: #3c6326; border-color: #a9cd90; }
.chip:disabled { opacity: 0.5; cursor: not-allowed; }
.market-main { min-width: 0; }
.market-toolbar { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.market-toolbar .count { font-size: 12px; color: var(--muted); }
.market-toolbar .count strong { color: #1d293a; }
.select { border: 1px solid #d5dce5; background: #fff; padding: 8px 10px; border-radius: 8px; color: #3a475b; min-width: 170px; font-size: 12px; font-weight: 700; }
#listing-results.is-loading { opacity: 0.55; transition: opacity 0.15s; pointer-events: none; }
.gpu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.gpu-card { background: #fff; border: 1px solid #e6ebef; border-radius: 12px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; min-width: 0; display: flex; flex-direction: column; }
.gpu-card:hover { transform: translateY(-3px); border-color: #c8dac0; box-shadow: 0 20px 40px rgba(33, 51, 72, 0.08); }
.card-visual { height: 157px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.card-visual.v0 { background: radial-gradient(circle at 66% 27%, #415c52, #182c32 70%); }
.card-visual.v1 { background: radial-gradient(circle at 65% 30%, #3a5375, #13253d 75%); }
.card-visual.v2 { background: radial-gradient(circle at 65% 30%, #485660, #27323c 74%); }
.card-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px); background-size: 22px 22px; }
.card-visual .gpu-mini { transform: perspective(800px) rotateY(-16deg) rotateX(9deg) rotateZ(-5deg); width: 176px; height: 98px; filter: drop-shadow(9px 15px 8px #0009); z-index: 1; }
.gpu-mini .gpu-main { border-width: 2px; border-radius: 9px; box-shadow: inset 0 0 0 4px #17283a; }
.gpu-mini .fan { width: 66px; height: 66px; border-width: 6px; }
.gpu-mini .fan::after { height: 23px; width: 23px; border-width: 4px; }
.gpu-mini .gpu-rail { height: 9px; bottom: -6px; }
.visual-top { position: absolute; top: 11px; left: 11px; right: 11px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.visual-badge { font-size: 10px; color: #fff; background: #ffffff26; backdrop-filter: blur(10px); padding: 4px 8px; border: 1px solid #ffffff22; border-radius: 5px; font-weight: 700; white-space: nowrap; }
.visual-online { color: #dcffcb; background: #1c392acc; }
.visual-busy { color: #ffe9b8; background: #4a3a14cc; }
.visual-offline { color: #d6e0e9; background: #273544dd; }
.visual-corner { position: absolute; bottom: 10px; right: 12px; color: #ffffff70; font-weight: 800; letter-spacing: 0.2em; font-size: 9px; }
.card-body { padding: 16px 16px 15px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 14px; font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: inherit; }
.card-title a:hover { text-decoration: underline; }
.card-location { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; margin-top: 5px; min-width: 0; }
.card-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; min-height: 20px; }
.card-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 13px; margin-bottom: 11px; }
.spec { border-right: 1px solid #e8ebf0; padding-right: 6px; min-width: 0; }
.spec:last-child { border: 0; }
.spec strong { font-size: 12px; font-weight: 800; display: block; }
.spec span { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.card-reliability { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.card-reliability span { display: inline-flex; align-items: center; gap: 4px; }
.card-reliability .icon { color: #6a8f52; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #edf0f4; padding-top: 13px; margin-top: auto; }
.price { font-family: "Space Grotesk"; font-size: 21px; font-weight: 700; letter-spacing: -0.05em; }
.price small { font: 500 11px "DM Sans"; color: var(--muted); letter-spacing: 0; }
.price-alt { display: block; font: 600 10.5px "DM Sans"; letter-spacing: 0; color: var(--muted); }
.card-bottom .btn { padding: 7px 10px; font-size: 11px; min-height: 32px; }

.empty { background: #fff; border: 1px dashed #ced7e0; border-radius: 12px; padding: 52px 25px; text-align: center; }
.empty > .icon { width: 42px; height: 42px; color: #8994a3; margin: 0 auto 12px; display: flex; }
.empty h3, .empty h1 { margin-bottom: 8px; font-size: 20px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }
.error-block > .icon { color: var(--danger); }
.loading-block { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px 20px; color: var(--muted); font-size: 13px; }

.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 22px 0 4px; }
.page-btn { min-width: 34px; height: 34px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--border-2); background: #fff; font-weight: 800; font-size: 12px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-gap { color: var(--muted); padding: 0 3px; }

/* --------------------------------------------------------------------------- marketing */
.steps-section { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 68px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 33px; }
.step { padding: 21px 18px; border: 1px solid #e8edf1; border-radius: 13px; background: #fbfcfd; }
.step h3 { font-size: 18px; }
.step-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 10px; background: #ecf5e5; color: #4f7d33; margin-bottom: 18px; }
.step-num { font-size: 10px; color: var(--muted); font-weight: 800; letter-spacing: 0.14em; margin-bottom: 8px; }
.step p { color: var(--muted); margin-top: 9px; line-height: 1.7; }
.host-banner { margin: 64px auto; background: #152236; color: #fff; border-radius: 16px; padding: 42px 52px; display: flex; align-items: center; justify-content: space-between; gap: 50px; position: relative; overflow: hidden; }
.host-banner::after { content: ""; width: 240px; height: 240px; border: 1px solid #8ca9b344; border-radius: 50%; position: absolute; right: 100px; top: -120px; pointer-events: none; }
.host-banner h2 { max-width: 600px; }
.host-banner p { color: #b0bfd0; margin-top: 9px; max-width: 680px; }

/* -------------------------------------------------------------------------------- footer */
.footer { padding: 36px 0 45px; border-top: 1px solid #e4eaf0; background: #fff; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer .logo { font-size: 19px; }
.footer .brand-mark { width: 25px; height: 25px; }
.footer .brand-mark svg { height: 17px; width: 17px; }
.footer-brand p { color: var(--muted); font-size: 12px; margin: 10px 0 6px; max-width: 280px; }
.footer small { color: var(--muted); }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 2px; }
.footer-col a { color: #4b586c; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }

/* ----------------------------------------------------------------------------- dashboard */
.dashboard-head { padding: 40px 0 26px; }
.dashboard-head h1 { font-size: 33px; line-height: 1.13; }
.dash-eyebrow { color: var(--brand); margin-bottom: 10px; }
.dash-sub { color: var(--muted); margin-top: 9px; max-width: 680px; }
.head-row { align-items: flex-end; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dashboard-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 27px; padding-bottom: 60px; }
.dash-main { min-width: 0; }
.side-nav { border: 1px solid #e9edf2; background: #fff; border-radius: 13px; align-self: start; padding: 11px; position: sticky; top: 90px; }
.side-nav a { width: 100%; display: flex; align-items: center; gap: 11px; padding: 11px 14px; color: #55627a; border-radius: 8px; font-weight: 700; font-size: 12.5px; }
.side-nav a.active { background: var(--brand-bg); color: #3f6330; }
.side-nav a:hover:not(.active) { background: #f5f7fa; color: var(--ink); }
.dash-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 23px; }
.dash-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric { background: #fff; border: 1px solid var(--border); padding: 20px; border-radius: 12px; min-height: 128px; min-width: 0; }
.metric .icon { width: 26px; height: 26px; color: #557a3e; margin-bottom: 12px; }
.metric .num { font: 700 26px "Space Grotesk"; letter-spacing: -0.055em; overflow-wrap: anywhere; }
.metric p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.metric .metric-note { font-size: 11px; margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; margin-bottom: 22px; }
.panel-header { padding: 19px 23px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #edf0f3; gap: 15px; flex-wrap: wrap; }
.panel-header h2, .panel-header h3 { font-size: 17px; letter-spacing: -0.03em; }
.panel-content { padding: 21px 23px; }
.dash-section { margin-bottom: 26px; }
.section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-row h2 { font-size: 20px; letter-spacing: -0.03em; }
.sub-title { font-size: 14px; font-weight: 800; margin: 18px 0 8px; font-family: inherit; letter-spacing: -0.01em; }
.prose { font-size: 13px; line-height: 1.75; color: #415066; white-space: pre-line; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #5b6779; padding: 12px 15px; background: #fafbfc; font-weight: 800; white-space: nowrap; }
.data-table td { padding: 14px 15px; border-top: 1px solid #eef1f5; font-size: 12.5px; vertical-align: top; }
.data-table tr:hover td { background: #fbfdf9; }
.data-table td strong { display: block; font-size: 12.5px; }
.data-table td > .muted.tiny { display: block; margin-top: 2px; }
.data-table.compact td, .data-table.compact th { padding: 8px 10px; }
.num-col { text-align: right !important; white-space: nowrap; }
.amount.pos { color: #2f6b2a; font-weight: 800; }
.amount.neg { color: #8f302c; font-weight: 800; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.details-cell { font-family: var(--mono); font-size: 11px; color: #4b586c; max-width: 380px; overflow-wrap: anywhere; }

.dash-note { background: #f1f7ed; border: 1px solid #dfeeda; border-radius: 10px; padding: 14px 17px; color: #3f6230; display: flex; align-items: flex-start; gap: 11px; font-size: 12.5px; line-height: 1.65; margin-bottom: 18px; }
.dash-note .icon { margin-top: 2px; }
.dash-note a { color: inherit; }
.dash-note.note-warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.dash-note.note-error { background: var(--danger-bg); border-color: #f2c9c6; color: #8f302c; }
.dash-note.note-muted { background: #f5f7f9; border-color: #e6eaf0; color: #4b586c; }
.dash-note.note-sample { background: #f5f1fc; border-color: #e3d9f6; color: #4e3684; }
.form-error { display: flex; align-items: flex-start; gap: 8px; background: var(--danger-bg); border: 1px solid #f2c9c6; color: #8f302c; padding: 10px 12px; border-radius: 9px; font-size: 12.5px; margin-bottom: 12px; line-height: 1.5; }
.form-error .icon { margin-top: 2px; }
.form-error .text-link, .form-error .link-btn { color: #7a2622; }

/* ------------------------------------------------------------------------------ rentals */
.request-card, .rental-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 13px; }
.request-card h4 { font-size: 14px; margin-bottom: 4px; }
.request-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; color: var(--muted); font-size: 11.5px; }
.request-meta span { display: flex; align-items: center; gap: 5px; }
.request-card p { color: #4b586c; font-size: 12.5px; line-height: 1.65; }
.request-card .quote { background: #f7f9fb; border-left: 3px solid #d5dde6; padding: 9px 12px; border-radius: 4px; margin: 8px 0; white-space: pre-line; }
.request-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #eef0f4; flex-wrap: wrap; }
.request-footer .btn { min-height: 32px; padding: 7px 11px; font-size: 11.5px; }
.rental-card { transition: box-shadow 0.3s, border-color 0.3s; }
.rental-card.running { border-left: 3px solid #5bbd7a; }
.rental-card.provisioning, .rental-card.stopping { border-left: 3px solid #e0a526; }
.rental-card.scheduled { border-left: 3px solid #6f93d6; }
.rental-card.requested { border-left: 3px solid #d9b25a; }
.rental-card.highlight { border-color: #9cc77d; box-shadow: 0 0 0 4px #b8f48655; }
.rental-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rental-name { min-width: 0; }
.rental-name h3 { font-size: 16px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rental-name h3 a:hover { text-decoration: underline; }
.rental-explain { color: #45536a; font-size: 12.5px; margin: 10px 0 2px; line-height: 1.6; }
.rental-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; padding: 12px 14px; background: #f8fafc; border-radius: 10px; }
.rental-stats div { min-width: 0; }
.rental-stats dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 800; }
.rental-stats dd { font: 700 15px "Space Grotesk"; letter-spacing: -0.02em; margin-top: 2px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rental-stats dd code { font-size: 11px; font-family: var(--mono); font-weight: 500; }
.rental-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.rental-actions .btn { min-height: 32px; padding: 7px 11px; font-size: 11.5px; }
.rental-card .dash-note { margin: 10px 0 0; }
.history-list { display: flex; flex-direction: column; }
.history-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 23px; border-top: 1px solid #eef1f5; flex-wrap: wrap; }
.history-item:first-child { border-top: 0; }
.history-main { flex: 1 1 380px; min-width: 0; }
.history-title { font-size: 14px; font-family: inherit; letter-spacing: -0.01em; font-weight: 800; }
.history-title a:hover { text-decoration: underline; }
.history-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.history-meta span { display: inline-flex; align-items: center; gap: 5px; }
.history-reason { font-size: 12px; color: #45536a; margin-top: 6px; }
.history-review { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.history-item .dash-note { margin: 8px 0 0; }
.history-item .rental-actions { margin-top: 0; }

.status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 8px; border-radius: 5px; background: #f0f3f6; color: #4f5b6c; white-space: nowrap; }
.status.approved, .status.running { background: #e5f5e2; color: #3a6f33; }
.status.requested { background: #fff2d7; color: #7c5a12; }
.status.scheduled { background: #e8effd; color: #2a5597; }
.status.provisioning { background: #fdf0d6; color: #7a560c; }
.status.ended { background: #eef1f4; color: #4c586a; }
.status.declined, .status.cancelled { background: var(--danger-bg); color: #8f3833; }
.status.cancelled { background: #f1f2f4; color: #5a6475; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #3fae62; box-shadow: 0 0 0 0 #3fae6266; animation: pulse 1.8s infinite; }

.tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid #edf0f3; overflow-x: auto; scrollbar-width: thin; }
.tab { border: 0; background: transparent; padding: 10px 12px; font-weight: 800; font-size: 12.5px; color: #5b6779; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tab.active { color: var(--ink); border-bottom-color: #7fb35a; }
.tab:hover { color: var(--ink); }
.scroll-tabs { background: #fff; border: 1px solid var(--border); border-radius: 12px 12px 0 0; border-bottom: 0; padding: 6px 8px 0; }
.scroll-tabs + .panel { border-top-left-radius: 0; border-top-right-radius: 0; }
.modal .tabs { padding: 0; margin: 18px 0 12px; }

/* ---------------------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid.tight { gap: 10px; }
.form-row { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.form-row label { font-size: 11.5px; color: #45536a; font-weight: 800; }
.form-row .field { font-size: 13px; }
.form-row small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-row small a { color: var(--blue); text-decoration: underline; }
.span2 { grid-column: span 2; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.stack-form, .dialog-form, .settings-form, .listing-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.settings-form .form-actions { margin-top: 0; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.inline-form .form-row { flex: 1 1 200px; }
.dialog-message { font-size: 13px; line-height: 1.65; color: #3d4b60; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.money-input { position: relative; }
.money-input > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.money-input .field { padding-left: 24px; }
.mono { font-family: var(--mono); font-size: 12px !important; }
.password-wrap { position: relative; }
.password-wrap .field { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { background: #eef2f6; color: var(--ink); }
.code-input { font-family: var(--mono); font-size: 18px !important; letter-spacing: 0.18em; }
.attest { background: #f7faf4; border: 1px solid #e1eed6; border-radius: 9px; padding: 12px; }

/* ------------------------------------------------------------------------------ modals */
.modal-cover { position: fixed; inset: 0; background: #111a28a9; backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 22px; z-index: 80; overflow-y: auto; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: min(92vh, 980px); overflow-y: auto; border-radius: 17px; box-shadow: 0 24px 75px #101d3190; position: relative; animation: appear 0.17s ease; outline: none; }
.modal.wide { max-width: 820px; }
.modal-head { padding: 22px 26px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; position: sticky; top: 0; background: #fff; z-index: 2; }
.modal-titles { min-width: 0; }
.modal-head h3 { font-size: 21px; overflow-wrap: anywhere; }
.modal-head p { color: var(--muted); margin-top: 5px; font-size: 12.5px; overflow-wrap: anywhere; }
.modal-eyebrow { color: var(--brand); margin-bottom: 6px; }
.modal-body { padding: 6px 26px 24px; }
.modal-footer { padding: 18px 26px; border-top: 1px solid #e9eef3; }
.close { border: 0; background: #f0f3f6; color: #3d4b60; border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.close:hover { background: #e3e9ee; }
.cover-full { padding: 14px; align-items: stretch; }
.modal-full { max-width: none; max-height: none; height: 100%; display: flex; flex-direction: column; background: #0c1422; color: #e3eaf2; overflow: hidden; }
.modal-full .modal-head { background: #0c1422; padding: 14px 18px 10px; }
.modal-full .modal-head h3 { font-size: 17px; color: #fff; }
.modal-full .modal-head p { color: #a8b5c6; }
.modal-full .close { background: #1c2a40; color: #e3eaf2; }
.modal-full .close:hover { background: #2a3b55; }
.modal-full .modal-body { flex: 1; min-height: 0; padding: 0 18px 14px; display: flex; flex-direction: column; }
.cover-drawer { justify-content: flex-end; padding: 0; align-items: stretch; }
.modal-drawer { max-width: 620px; max-height: none; height: 100%; border-radius: 0; animation: slide-in 0.2s ease; }

/* ---------------------------------------------------------------------------- terminal */
.term-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 8px; }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.term-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #d5dee9; min-width: 0; }
.term-light { width: 9px; height: 9px; border-radius: 50%; background: #e0a526; flex: none; }
.term-light[data-state="connected"] { background: #5bd17f; box-shadow: 0 0 8px #5bd17f88; }
.term-light[data-state="error"] { background: #ef6b63; }
.term-light[data-state="closed"] { background: #8592a5; }
.term-actions { display: flex; gap: 6px; }
.term-actions .btn-outline { background: #1c2a40; color: #e3eaf2; border-color: #34465f; }
.term-host { flex: 1; min-height: 200px; background: #0c1422; border: 1px solid #22324a; border-radius: 10px; padding: 8px; overflow: hidden; }
.term-host .xterm { height: 100%; }
.term-hint { font-size: 11px; color: #a8b5c6; }
.term-error { color: #ffb4ae; display: flex; gap: 8px; align-items: center; padding: 16px; }

/* --------------------------------------------------------------------------- connect */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.connect-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fbfcfd; }
.connect-card h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.connect-card p { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.port-list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.port-list li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #45536a; }
.cmd-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 6px 0 12px; }
.cmd-label { display: block; font-size: 11.5px; font-weight: 800; color: #45536a; margin-bottom: 4px; }
.code-block { position: relative; background: #0f1a29; border-radius: 9px; margin: 6px 0; max-width: 100%; min-width: 0; }
.code-block pre { margin: 0; padding: 12px 82px 12px 14px; overflow-x: auto; color: #e3eaf2; font-size: 12.5px; line-height: 1.55; }
.code-block code { background: transparent; color: inherit; padding: 0; font-size: inherit; white-space: pre; }
.code-block .copy-btn { position: absolute; right: 7px; top: 7px; background: #1f2d44; color: #e3eaf2; border-color: #34465f; }
.key-box { display: flex; align-items: center; gap: 10px; background: #f5f7f9; border: 1px dashed #b3bfcc; border-radius: 9px; padding: 11px 12px; margin: 12px 0; flex-wrap: wrap; }
.key-box code { flex: 1 1 220px; background: transparent; font-size: 12.5px; padding: 0; }
.install-steps { padding-left: 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; font-size: 13px; line-height: 1.6; color: #3d4b60; }
.install-steps li { min-width: 0; }
.install-steps li::marker { font-weight: 800; color: var(--brand); }
.install-steps p { margin-top: 4px; }
.os-panel { padding-top: 4px; }

/* -------------------------------------------------------------------------- chat, review */
.chat-box { border: 1px solid #e8edf2; border-radius: 10px; max-height: 320px; min-height: 120px; overflow-y: auto; padding: 13px; display: flex; flex-direction: column; gap: 10px; background: #fbfcfd; margin: 10px 0; }
.chat-bubble { max-width: 90%; align-self: flex-start; padding: 9px 12px; background: #edf1f5; border-radius: 10px; font-size: 12.5px; white-space: pre-line; overflow-wrap: anywhere; }
.chat-bubble.mine { align-self: flex-end; background: #e8f3df; }
.chat-bubble small { display: block; color: #586477; margin-bottom: 3px; font-size: 10.5px; }
.chat-form { display: flex; gap: 8px; margin: 8px 0; align-items: flex-end; }
.chat-form .field { flex: 1; min-height: 44px; }
.thread-meta { margin-bottom: 4px; }
.stars { color: #c9d0d9; letter-spacing: 1px; font-size: 14px; white-space: nowrap; }
.stars .on { color: #e2a417; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { font-size: 11.5px; font-weight: 800; color: #45536a; margin-bottom: 6px; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; line-height: 1; color: #c9d0d9; cursor: pointer; padding: 2px; border-radius: 6px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #e2a417; }
.star-input input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ----------------------------------------------------------------------- listing detail */
.detail-page { padding-top: 22px; padding-bottom: 50px; }
.crumbs { margin-bottom: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #45536a; font-weight: 700; font-size: 12.5px; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.detail-head { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 22px; }
.detail-visual { height: 190px; border-radius: 13px; }
.detail-visual .gpu-mini { width: 250px; height: 138px; }
.detail-visual .gpu-mini .fan { width: 90px; height: 90px; }
.detail-visual .gpu-mini .fan::after { width: 30px; height: 30px; }
.detail-title { min-width: 0; }
.detail-h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 12px 0 8px; overflow-wrap: anywhere; }
.detail-title .muted { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.detail-side { position: sticky; top: 90px; }
.detail-main .panel-content > .dash-note { margin: 14px 0 6px; }
.detail-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 8px; }
.detail-spec { border-bottom: 1px solid #edf0f4; padding-bottom: 9px; min-width: 0; }
.detail-spec dt { color: var(--muted); font-size: 11px; }
.detail-spec dd { font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.telemetry-list { display: grid; gap: 10px; }
.telemetry-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 70px; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid #edf0f4; border-radius: 9px; }
.telemetry-name { display: flex; flex-direction: column; min-width: 0; }
.telemetry-name span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telemetry-meter { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.telemetry-meter .bar { flex: 1; height: 7px; background: #eef1f5; border-radius: 4px; overflow: hidden; }
.telemetry-meter .bar span { display: block; height: 100%; background: linear-gradient(90deg, #8fd45e, #5bbd7a); border-radius: 4px; }
.telemetry-temp { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #45536a; }
.telemetry-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rel-item { border: 1px solid #edf0f4; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.rel-item span { font-size: 11px; color: var(--muted); }
.rel-item strong { font: 700 22px "Space Grotesk"; letter-spacing: -0.04em; }
.rel-item small { font-size: 10.5px; color: var(--muted); }
.bench-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; color: #3d4b60; }
.bench-line .icon { margin-top: 2px; color: #557a3e; }
.window-list { list-style: none; padding: 0; display: grid; gap: 6px; margin-bottom: 10px; }
.window-list li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 8px 10px; background: #f7f9fb; border-radius: 8px; }
.review-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 12px; }
.review { border-bottom: 1px solid #eef1f5; padding-bottom: 10px; }
.review p { font-size: 12.5px; color: #3d4b60; margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.report-line { margin-top: 14px; }

.booking-box { border: 1px solid #e1e8ef; border-radius: 13px; padding: 20px; background: #fff; box-shadow: var(--shadow); }
.booking-box .price { font-size: 28px; }
.price-sub { margin-top: 2px; }
.booking-box > .dash-note { margin: 14px 0 0; }
.booking-box form { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.booking-box > .btn, .booking-box > a.btn { margin-top: 16px; }
.mode-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; background: #f2f5f8; padding: 4px; border-radius: 10px; }
.mode-tab { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: 7px; cursor: pointer; color: #4f5c70; }
.mode-tab input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.mode-tab span { font-weight: 800; font-size: 12px; }
.mode-tab small { font-size: 10px; color: var(--muted); }
.mode-tab.active { background: #fff; color: var(--ink); box-shadow: 0 2px 9px #152c4114; }
.mode-tab:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.mode-help { font-size: 12px; color: #45536a; line-height: 1.6; }
.booking-box form .dash-note { margin: 0; }
.ssh-details { border: 1px solid #e6ebf0; border-radius: 9px; padding: 0 12px; }
.ssh-details summary { cursor: pointer; padding: 10px 0; font-size: 12px; font-weight: 800; color: #45536a; }
.ssh-details[open] { padding-bottom: 12px; }
.estimate { border-top: 1px solid #eef1f5; padding-top: 6px; }
.summary-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12px; color: #4f5c70; }
.summary-line strong { color: #233144; text-align: right; }
.summary-total { border-top: 1px solid #e5ebef; margin-top: 6px; padding: 10px 0 2px; font-weight: 800; color: var(--ink); }
.estimate-warn { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--warn-text); background: var(--warn-bg); border-radius: 8px; padding: 8px 10px; margin-top: 8px; }
.balance-line { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: #45536a; background: #f4f9ef; border-radius: 8px; padding: 8px 10px; }
.balance-line .text-link { margin-left: auto; }

.copy-value { background: #f5f7f9; border: 1px dashed #b8c3cf; border-radius: 8px; padding: 12px; word-break: break-all; font: 12px var(--mono); margin: 13px 0; }
.note { font-size: 11.5px; color: var(--muted); line-height: 1.65; }
.note.center { text-align: center; }
.note a { color: var(--blue); }
.note.block { display: block; }

/* -------------------------------------------------------------------------------- toasts */
.toast-zone { position: fixed; bottom: 25px; right: 25px; z-index: 120; display: grid; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
.toast { background: #18283b; color: #fff; border-radius: 10px; padding: 12px 10px 12px 16px; box-shadow: 0 12px 38px #1c304e44; font-size: 12.5px; display: flex; align-items: center; gap: 10px; animation: appear 0.2s ease; }
.toast > span:not(.icon) { flex: 1; }
.toast.error { background: #9e4340; }
.toast.info { background: #24456b; }
.toast .icon { color: #bbf487; }
.toast.error .icon, .toast.info .icon { color: #fff; }
.toast-close { background: transparent; border: 0; color: #ffffffb0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.toast-close:hover { color: #fff; background: #ffffff1a; }
.toast-close .icon { color: inherit !important; }

/* ---------------------------------------------------------------------------------- auth */
.auth-page { min-height: calc(100vh - 230px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px 60px; background: radial-gradient(circle at 50% 0%, #eaf4e0 0%, transparent 55%); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 17px; padding: 30px 30px 26px; box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 20px; }
.auth-brand .logo { font-size: 21px; }
.auth-brand .brand-mark { width: 27px; height: 27px; }
.auth-title { font-size: 28px; line-height: 1.15; }
.auth-sub { color: var(--muted); margin: 8px 0 20px; font-size: 13px; }
.auth-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.auth-form .btn { margin-top: 4px; }
.auth-links { font-size: 12px; margin-top: -4px; }
.auth-switch { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.oauth-list { display: grid; gap: 8px; }
.oauth-mark { width: 18px; height: 18px; border-radius: 50%; background: #eef2f6; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.divider-text { display: flex; align-items: center; gap: 13px; color: var(--muted); font-size: 11px; margin: 16px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: #e4e9ee; }
.auth-demo { padding: 14px; background: #f4f7fb; border: 1px solid #e5edf4; border-radius: 10px; margin-top: 20px; }
.auth-demo strong { font-size: 12.5px; }
.demo-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.auth-result { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 10px 0 20px; color: #3d4b60; }
.auth-result .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: #e5f5e2; color: #3a6f33; }
.auth-result.error .icon { background: var(--danger-bg); color: var(--danger); }
.auth-result.pending .icon { background: #eef2f6; color: var(--muted); }

/* ------------------------------------------------------------------------------ billing */
.topup-form { margin-bottom: 8px; }
.topup-presets { margin-bottom: 12px; }
.topup-row { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.topup-row .form-row { flex: 0 1 260px; }
.topup-row .btn { margin-top: 21px; }
.stripe-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stripe-card > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #eef2fb; color: #3b5ba5; }
.stripe-card.ok > .icon { background: #e5f5e2; color: #3a6f33; }
.stripe-card > div { flex: 1 1 260px; }

/* --------------------------------------------------------------------------------- host */
.earnings-card .earnings-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.earnings-row > div:first-child { flex: 1 1 260px; }
.earn-title { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 4px; }
.earn-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.earn-stats dt { font-size: 11px; color: var(--muted); }
.earn-stats dd { font: 700 20px "Space Grotesk"; letter-spacing: -0.04em; }
.host-table td { min-width: 110px; }
.host-table .hw-cell { min-width: 220px; }
.host-table .hw-cell a:hover { text-decoration: underline; }
.host-table .badge { margin-top: 5px; }
.host-landing { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; padding-bottom: 60px; align-items: start; }
.host-landing-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.host-landing-cta .panel-content { display: grid; gap: 12px; }
.host-landing-cta h2 { font-size: 24px; }
.mini-visual { height: 140px; border-radius: 10px; }

/* ----------------------------------------------------------------------------- settings */
.section-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.section-nav a { padding: 7px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: #45536a; }
.section-nav a:hover { color: var(--ink); border-color: #c9d3de; }
.settings-split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.settings-split .sub-title:first-child { margin-top: 0; }
.current-value { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; margin-bottom: 12px; overflow-wrap: anywhere; }
.qr-row { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 10px; }
.qr-box { width: 216px; min-height: 216px; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; display: grid; place-items: center; }
.qr-svg { width: 200px; height: 200px; display: block; }
.qr-row > div:last-child { flex: 1 1 220px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; padding: 14px 14px 14px 36px; background: #f5f7f9; border-radius: 10px; margin-bottom: 14px; }
.recovery-codes code { background: transparent; font-size: 14px; letter-spacing: 0.04em; }
.danger-details { margin-top: 12px; border: 1px solid #f0d3d1; border-radius: 10px; padding: 0 14px; background: #fffafa; }
.danger-details summary { cursor: pointer; padding: 11px 0; font-weight: 800; font-size: 12.5px; color: var(--danger); }
.danger-details[open] { padding-bottom: 14px; }
.session-list { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 14px; }
.session { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #edf0f4; border-radius: 10px; }
.session > div:first-child { color: var(--muted); }
.session-main { flex: 1; min-width: 0; }
.session-main .note { overflow-wrap: anywhere; }

/* -------------------------------------------------------------------------------- admin */
.filter-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar .form-row { flex: 0 1 220px; }
.filter-bar .grow { flex: 1 1 260px; }
.admin-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.drawer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.drawer-stats div { background: #f7f9fb; border-radius: 9px; padding: 9px 11px; }
.drawer-stats dt { font-size: 11px; color: var(--muted); }
.drawer-stats dd { font-weight: 800; }
.mini-list { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.mini-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid #f0f2f5; }
.admin-settings .check-block { align-self: end; }

/* ------------------------------------------------------------------------------- status */
.status-page { padding-bottom: 60px; max-width: 900px; }
.status-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 13px; margin-bottom: 18px; }
.status-hero.ok { background: #eaf6e6; color: #2f5d28; border: 1px solid #cfe8c6; }
.status-hero.bad { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.status-hero h2 { font-size: 22px; }
.status-hero .icon-lg { width: 30px; height: 30px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.component-list { list-style: none; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 14px; }
.component { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid #eef1f5; }
.component:first-child { border-top: 0; }
.state-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.state-pill.ok { color: #2f6b2a; }
.state-pill.bad { color: var(--danger); }
.state-pill.bad .dot { background: var(--danger); box-shadow: 0 0 0 3px #f6d6d4; }
.state-pill.warn { color: var(--warn-text); }
.state-pill.warn .dot { background: #e0a526; box-shadow: 0 0 0 3px #fbefd2; }
.state-pill.muted { color: var(--muted); }
.state-pill.muted .dot { background: #a7b1bf; box-shadow: 0 0 0 3px #e9edf2; }

/* --------------------------------------------------------------------------------- misc */
.boot { min-height: 60vh; display: flex; align-items: center; justify-content: center; gap: 16px; }
.boot-logo { font: 700 25px "Space Grotesk"; letter-spacing: -0.02em; }
.brand-icon { color: #5f8f3e; }
.spin { height: 18px; width: 18px; border: 2px solid #dce5ef; border-top-color: #4f8a36; border-radius: 50%; animation: spin 0.65s linear infinite; flex: none; display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #3fae6266; } 70% { box-shadow: 0 0 0 6px #3fae6200; } 100% { box-shadow: 0 0 0 0 #3fae6200; } }

/* Page switches (main.js): a thin bar at the top instead of blanking the page, and loading spinners that only
   appear when loading actually takes a while (fast loads no longer flash one). Their space is kept either way. */
#route-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 120; pointer-events: none; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
#route-progress.active { opacity: 1; transform: scaleX(0.8); transition: transform 2.5s cubic-bezier(0.08, 0.7, 0.2, 1), opacity 0.1s; }
#route-progress.done { opacity: 0; transform: scaleX(1); transition: transform 0.18s ease, opacity 0.25s ease 0.15s; }
.loading-block { animation: late-in 0.2s ease 0.3s both; }
@keyframes late-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .rental-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1130px) {
  .hero-copy { padding: 26px 20px 24px 32px; }
  .hero h1 { font-size: 34px; }
  .gpu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art .gpu-floating.top { right: 2%; }
  .hero-art .gpu-floating.bottom { left: 1%; }
  .stat-note { display: none; }
  .dash-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-landing { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links { gap: 16px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; order: -1; }
  .detail-head { grid-template-columns: 1fr; }
  .detail-visual { height: 160px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .settings-split { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 860px) {
  .container { padding: 0 21px; }
  .nav-links .nav-link { font-size: 12px; }
  .topbar .btn { display: none; }
  .account-name { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 26px 26px 24px; }
  .hero-art { display: none; }
  .hero .hero-break { display: inline; }
  .graphic-circle { width: 270px; }
  .gpu-hero { width: 220px; height: 132px; }
  .gpu-hero .fan { width: 76px; height: 76px; }
  .hero-proof { margin-top: 25px; }
  .hero-art .gpu-floating.top { right: 16%; top: 12%; }
  .hero-art .gpu-floating.bottom { left: 12%; bottom: 12%; }
  .market-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 15px; }
  .filters { padding: 14px; }
  .gpu-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; gap: 16px; }
  .side-nav { display: flex; position: static; overflow-x: auto; white-space: nowrap; padding: 6px; gap: 2px; }
  .side-nav a { width: auto; padding: 9px 12px; }
  .steps-grid { gap: 12px; }
  .connect-grid { grid-template-columns: 1fr; }
  .host-landing-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .market-layout { display: flex; flex-direction: column; }
  .filters { position: static; width: 100%; max-height: none; overflow: visible; }
  .filters-toggle { display: inline-flex; }
  .filters:not(.open) .filter-more { display: none; }
  .filters .filter-search { border: 0; padding-bottom: 0; }
  .filter-more { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 10px; }
  .filter-more .filter-block { padding: 10px 0; border: 0; }
  .filter-more .filter-block:last-child { grid-column: span 2; }
  .market-main { width: 100%; }
}
@media (max-width: 630px) {
  .container { padding: 0 16px; }
  h2 { font-size: 26px; }
  .topbar { height: 61px; }
  .topbar .logo { font-size: 21px; }
  .nav-links { display: none; }
  .mobile-nav { display: flex; overflow-x: auto; gap: 4px; padding: 8px 12px; background: #fff; border-bottom: 1px solid #ebeff2; }
  .mobile-nav a { white-space: nowrap; font-weight: 700; color: #4f5c70; padding: 7px 10px; font-size: 12.5px; border-radius: 6px; }
  .mobile-nav a.active { background: #eef4e9; color: #3f6a27; }
  .nav-right .btn { display: none; }
  .nav-right { gap: 8px; }
  .balance-chip { padding: 6px 9px; }
  .hero-wrap { padding-top: 12px; }
  .hero { border-radius: 12px; }
  .hero-copy { padding: 22px 20px 20px; }
  .hero h1 { font-size: clamp(27px, 7.6vw, 36px); }
  .hero .eyebrow { margin-bottom: 9px; font-size: 10px; }
  .hero-proof { display: none; }
  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions .btn, .hero-actions .btn-lg { flex: 1 1 0; justify-content: center; padding: 10px 10px; min-height: 44px; font-size: 13px; }
  .hero-actions .btn .icon { display: none; }
  #market.section { padding-top: 18px; }
  #market .section-header p, #market .section-header > .btn { display: none; }
  .hero-sub { font-size: 13px; margin: 8px 0 14px; }
  .stats-strip { flex-wrap: wrap; gap: 10px 22px; padding: 12px 0; }
  .stat { flex: 1 1 40%; }
  .stat strong { font-size: 16px; }
  .stat .icon { width: 30px; height: 30px; padding: 7px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-header .btn { padding: 8px 10px; font-size: 11px; }
  .gpu-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-visual { height: 130px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-section { padding: 42px 0; }
  .host-banner { padding: 28px 22px; flex-direction: column; align-items: flex-start; gap: 16px; margin: 36px auto; }
  .host-banner h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: span 2; }
  .dashboard-head { padding: 24px 0 18px; }
  .dashboard-head h1 { font-size: 27px; }
  .head-actions { width: 100%; }
  .dash-cards, .dash-cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric { padding: 14px; min-height: 112px; }
  .metric .num { font-size: 21px; }
  .panel-header, .panel-content { padding-left: 15px; padding-right: 15px; }
  .history-item { padding: 14px 15px; }
  .rental-card, .request-card { padding: 15px; }
  .rental-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; }
  .detail-specs, .rel-grid { grid-template-columns: 1fr 1fr; }
  .telemetry-row { grid-template-columns: 1fr; gap: 6px; }
  .modal-cover { padding: 8px; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 14px; }
  .modal-head { padding: 16px 16px 10px; }
  .modal-body { padding: 6px 16px 18px; }
  .modal-footer { padding: 14px 16px; }
  .cover-full { padding: 0; }
  .modal-full { border-radius: 0; max-height: none; }
  .modal-full .modal-body { padding: 0 8px 8px; }
  .cover-drawer { padding: 0; }
  .modal-drawer { max-height: none; border-radius: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .span2, .form-grid .span2 { grid-column: auto; }
  .data-table td { padding: 11px 10px; }
  .data-table th { padding: 9px 10px; }
  .market-toolbar { flex-wrap: wrap; }
  .select { min-width: 0; flex: 1; }
  .auth-card { padding: 24px 18px 20px; }
  .auth-page { padding-top: 24px; }
  .demo-buttons { grid-template-columns: 1fr; }
  .topup-row .form-row { flex: 1 1 100%; }
  .topup-row .btn { margin-top: 0; width: 100%; }
  .recovery-codes { grid-template-columns: 1fr; }
  .toast-zone { right: 12px; left: 12px; bottom: 12px; max-width: none; }
  .banner-row { flex-wrap: wrap; font-size: 12.5px; }
  .banner-row .btn { width: 100%; }
  .chat-form { flex-direction: column; align-items: stretch; }
  .tabs { padding: 6px 6px 0; }
}
@media (max-width: 359px) {
  .detail-specs, .rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .dash-cards, .dash-cards.three { grid-template-columns: 1fr 1fr; }
  .metric .num { font-size: 19px; }
  .filter-more { grid-template-columns: 1fr; }
  .filter-more .filter-block:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .rental-stats { grid-template-columns: 1fr 1fr; }
  .hero-proof > span { flex: 1 1 100%; }
}
