:root {
  --bg: #08080b;
  --bg-2: #0c0c11;
  --surface: #121319;
  --border: #20212b;
  --border-2: #2c2e3a;
  --text: #f3f4f8;
  --muted: #9a9eae;
  --faint: #6a6e7d;
  --orange: #fc810f;
  --amber: #fcab1b;
  --orange-soft: rgba(252, 129, 15, 0.12);
  --orange-line: rgba(252, 129, 15, 0.40);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

@keyframes fade-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
.fade-rise { animation: fade-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-rise-1 { animation: fade-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.fade-rise-2 { animation: fade-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }
.fade-rise-3 { animation: fade-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.40s both; }

.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px) scale(1.02); }
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #1a0e00; box-shadow: 0 8px 30px rgba(252, 129, 15, 0.32); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(252, 129, 15, 0.46); }
.btn-ghost { border-color: var(--border-2); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--orange-line); }

.liquid-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  border: none; color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden;
}
.liquid-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(8, 8, 11, 0.34); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 30px; width: auto; display: block; }
.brand-name { font-family: var(--display); font-weight: 400; letter-spacing: 0.04em; font-size: 27px; }
.nav-pill { display: flex; align-items: center; gap: 2px; padding: 6px; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.nav-pill a { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-pill a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right .signin { color: rgba(255, 255, 255, 0.78); font-size: 14.5px; font-weight: 500; }
.nav-right .signin:hover { color: #fff; }
.nav-right .btn { padding: 10px 20px; }

.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.hero-fallback { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 75% 55% at 50% 32%, rgba(252, 129, 15, 0.22), transparent 60%), #08080b; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse 95% 75% at 50% 25%, rgba(252, 129, 15, 0.10), transparent 55%), linear-gradient(180deg, rgba(8,8,11,0.32) 0%, rgba(8,8,11,0.14) 36%, rgba(8,8,11,0.55) 72%, rgba(8,8,11,0.96) 100%); }
.hero-content { position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 130px 24px 150px; }

.badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.10em; color: rgba(255, 255, 255, 0.88); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); margin-bottom: 30px; }
.badge .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }

.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 9vw, 118px); line-height: 0.96; letter-spacing: -0.015em; margin: 0 0 24px; color: #fff; max-width: 14ch; text-shadow: 0 2px 44px rgba(0, 0, 0, 0.55); }
.hero h1 .accent { font-style: italic; background: linear-gradient(110deg, var(--amber), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-family: var(--sans); font-size: clamp(17px, 1.9vw, 21px); color: rgba(255, 255, 255, 0.86); max-width: 620px; margin: 0 auto 40px; line-height: 1.62; text-shadow: 0 1px 22px rgba(0, 0, 0, 0.6); }
.hero-cta { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-cta .liquid-glass { padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .18s ease; }
.hero-cta .liquid-glass:hover { transform: translateY(-1px) scale(1.02); }
.hero-cta .btn-primary { padding: 15px 32px; }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 10; color: rgba(255, 255, 255, 0.45); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 400; }
.stat .num .u { color: var(--orange); }
.stat .lbl { color: var(--faint); font-size: 13.5px; margin-top: 8px; }

.section { padding: 104px 0; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--orange); text-transform: uppercase; margin-bottom: 16px; }
.section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 62px); letter-spacing: -0.01em; line-height: 1.02; margin: 0 0 18px; }
.section .sub { color: var(--muted); font-size: 17px; max-width: 540px; }

.pricing-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.pricing-aside { position: sticky; top: 100px; }
.pricing-aside .btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.toggles { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); gap: 2px; }
.segmented button { padding: 7px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; font-family: var(--sans); cursor: pointer; }
.segmented button.active { background: var(--orange-soft); color: var(--orange); }

.tier-label { display: flex; align-items: center; gap: 16px; margin: 28px 0 4px; }
.tier-label span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); white-space: nowrap; }
.tier-label .line { flex: 1; height: 1px; background: var(--border); }

.gpu-row { display: grid; grid-template-columns: 1.1fr 1.9fr auto 40px; align-items: center; gap: 20px; padding: 19px 8px; border-bottom: 1px solid var(--border); transition: background .15s; color: var(--text); }
.gpu-row:hover { background: rgba(255, 255, 255, 0.02); }
.gpu-row .name { font-weight: 700; font-size: 16px; }
.gpu-row .specs { display: flex; gap: 8px; flex-wrap: wrap; }
.spec { font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; }
.spec.v { color: var(--amber); border-color: var(--orange-line); background: var(--orange-soft); }
.gpu-row .price { font-weight: 700; font-size: 19px; text-align: right; white-space: nowrap; letter-spacing: -0.01em; }
.gpu-row .price small { color: var(--faint); font-size: 12px; font-weight: 500; }
.gpu-row .go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--muted); transition: border-color .15s, color .15s, background .15s; }
.gpu-row:hover .go { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

.empty { border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

.band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: border-color .18s, transform .18s; }
.feature:hover { border-color: var(--orange-line); transform: translateY(-3px); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); border: 1px solid var(--orange-line); margin-bottom: 20px; color: var(--orange); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--display); font-weight: 400; margin: 0 0 8px; font-size: 25px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.terminal { margin: 52px auto 0; max-width: 780px; background: #050507; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); }
.terminal .bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.terminal .dot { width: 11px; height: 11px; border-radius: 50%; background: #2c2e3a; }
.terminal pre { margin: 0; padding: 26px; font-family: var(--mono); font-size: 14px; line-height: 1.9; overflow-x: auto; color: #cdd0d9; }
.terminal .p { color: var(--amber); }
.terminal .c { color: var(--faint); }

.cta { text-align: center; padding: 130px 0; position: relative; overflow: hidden; }
.cta-glow { position: absolute; bottom: -240px; left: 50%; transform: translateX(-50%); width: 860px; height: 540px; background: radial-gradient(ellipse at center, rgba(252, 129, 15, 0.20), transparent 62%); z-index: 0; }
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.5vw, 84px); letter-spacing: -0.015em; line-height: 1; margin: 0 0 20px; }
.cta p { color: var(--muted); font-size: 18px; margin: 0 0 34px; }

.footer { border-top: 1px solid var(--border); padding: 48px 0; color: var(--faint); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand-name { font-size: 21px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-aside { position: static; }
  .features { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .nav-pill { display: none; }
}
@media (max-width: 560px) {
  .gpu-row { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .gpu-row .specs { grid-column: 1 / -1; order: 3; }
  .gpu-row .go { display: none; }
}

.auth-back { position: absolute; top: 28px; left: 28px; z-index: 5; color: var(--muted); font-size: 14px; font-weight: 500; }
.auth-back:hover { color: var(--text); }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 60px 20px; position: relative; overflow: hidden; }
.auth-glow { position: absolute; top: -8%; left: 50%; transform: translateX(-50%); width: 720px; height: 520px; background: radial-gradient(ellipse at center, rgba(252,129,15,0.16), transparent 62%); z-index: 0; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 40px; box-shadow: 0 40px 90px rgba(0,0,0,0.55); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.auth-brand img { height: 30px; }
.auth-brand .brand-name { font-family: var(--display); font-size: 26px; }
.auth-card h1 { font-family: var(--display); font-weight: 400; font-size: 32px; text-align: center; margin: 4px 0; }
.auth-card .subtitle { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.field input { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--border-2); background: #0b0b10; color: var(--text); font-size: 15px; font-family: var(--sans); transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.auth-card input[type=submit] { width: 100%; justify-content: center; margin-top: 10px; border: 0; font-family: var(--sans); cursor: pointer; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }
.auth-alt a { color: var(--orange); font-weight: 600; }
.flash { padding: 11px 14px; border-radius: 11px; font-size: 14px; margin-bottom: 18px; }
.flash.alert { background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.4); color: #fca5a5; }
.flash.notice { background: var(--orange-soft); border: 1px solid var(--orange-line); color: var(--amber); }

.dash-nav { border-bottom: 1px solid var(--border); background: rgba(10,10,13,0.8); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; }
.dash-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.dash-nav .brand { display: flex; align-items: center; gap: 10px; }
.dash-nav .brand img { height: 28px; }
.dash-nav .links { display: flex; gap: 22px; align-items: center; }
.dash-nav .links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.dash-nav .links a:hover { color: var(--text); }
.signout-btn { background: transparent; border: 1px solid var(--border-2); color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 500; font-family: var(--sans); cursor: pointer; }
.signout-btn:hover { border-color: var(--orange-line); color: var(--text); }
.dash { padding: 44px 0 90px; }
.dash h1 { font-family: var(--display); font-weight: 400; font-size: 44px; margin: 0 0 4px; }
.dash .hello { color: var(--muted); margin: 0 0 34px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
.dcard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.dcard .label { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.dcard .value { font-family: var(--display); font-size: 42px; line-height: 1; }
.dcard .value.accent { color: var(--orange); }
.dcard .value .unit { font-size: 18px; color: var(--faint); }
.dcard .sub { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.packs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pack-btn { background: var(--orange-soft); border: 1px solid var(--orange-line); color: var(--amber); border-radius: 10px; padding: 8px 13px; font-size: 13px; font-weight: 600; font-family: var(--sans); cursor: pointer; }
.pack-btn:hover { background: rgba(252,129,15,0.2); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 26px 14px; margin-bottom: 20px; }
.panel h2 { font-family: var(--display); font-weight: 400; font-size: 25px; padding: 18px 0 14px; margin: 0; }
.panel .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.panel .empty-row { color: var(--muted); padding: 22px 0; border-top: 1px solid var(--border); }
.panel .empty-row a { color: var(--orange); font-weight: 600; }
.conn-wrap { margin-top: 9px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn { background: var(--orange-soft); border: 1px solid var(--orange-line); color: var(--amber); border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; font-family: var(--sans); cursor: pointer; }
.copy-btn:hover { background: rgba(252, 129, 15, 0.2); }
.conn { font-family: var(--mono); font-size: 13px; color: var(--text); background: #0b0b10; border: 1px solid var(--border-2); border-radius: 8px; padding: 7px 11px; display: inline-block; }
.rental-state { font-size: 11.5px; font-family: var(--mono); padding: 5px 10px; border-radius: 7px; background: var(--orange-soft); color: var(--amber); border: 1px solid var(--orange-line); white-space: nowrap; }
.txn-date { color: var(--faint); font-size: 13px; margin-top: 3px; }
.txn-amount { font-family: var(--mono); font-weight: 600; }
.txn-amount.credit { color: var(--amber); }
.txn-amount.debit { color: var(--muted); }
.ssh-form { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 8px; border-top: 1px solid var(--border); }
.ssh-form input, .ssh-form textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border-2); background: #0b0b10; color: var(--text); font-family: var(--sans); font-size: 14px; }
.ssh-form textarea { font-family: var(--mono); font-size: 12.5px; resize: vertical; }
.ssh-form input:focus, .ssh-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.ssh-form input[type=submit] { width: auto; align-self: flex-start; cursor: pointer; border: 0; }
form.button_to { margin: 0; }
.gpu-row-btn { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border); font-family: var(--sans); font-size: inherit; color: var(--text); text-align: left; cursor: pointer; }
.row-actions { display: flex; gap: 12px; align-items: center; }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
}

/* ===== Console (authenticated app shell) ===== */
.console { --sans: "Geist", system-ui, -apple-system, sans-serif; --display: "Geist", system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, monospace; font-family: var(--sans); letter-spacing: -0.006em; }
.console::before { display: none; }

.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 232px; background: #0b0b10; border-right: 1px solid var(--border); display: flex; flex-direction: column; z-index: 30; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 19px 20px; border-bottom: 1px solid var(--border); }
.sidebar-brand img { height: 26px; }
.sidebar-brand span { font-weight: 700; font-size: 18px; letter-spacing: 0.08em; }
.sidebar-body { flex: 1; overflow-y: auto; padding: 16px 12px; }
.nav-group { margin-bottom: 22px; }
.nav-group-title { font-size: 10.5px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint); padding: 0 12px; margin-bottom: 7px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .12s, color .12s; width: 100%; background: transparent; border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-link:hover { background: rgba(255,255,255,0.045); color: var(--text); }
.nav-link.active { background: var(--orange-soft); color: var(--amber); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.nav-link.signout { color: var(--faint); }
.nav-link.signout:hover { color: var(--text); background: rgba(255,255,255,0.045); }

.console-main { margin-left: 232px; min-height: 100vh; }
.console-topbar { height: 64px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 20px; background: rgba(8,8,11,0.72); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-balance { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 5px 5px 14px; }
.topbar-balance .bal-amount { font-family: var(--mono); font-weight: 600; font-size: 14px; }
.topbar-balance .bal-load { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #1a0e00; font-weight: 600; font-size: 13px; padding: 5px 13px; border-radius: 999px; }
.topbar-user { display: flex; align-items: center; gap: 9px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); border: 1px solid var(--orange-line); color: var(--amber); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.user-email { font-size: 13.5px; color: var(--muted); }

.console-content { padding: 32px 36px 72px; max-width: 1180px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 5px; }
.page-head p { color: var(--muted); margin: 0; font-size: 15px; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.metric .label { font-size: 12px; color: var(--faint); font-weight: 500; margin-bottom: 12px; }
.metric .value { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.metric .value.accent { color: var(--orange); }
.metric .value .unit { font-size: 16px; color: var(--faint); font-weight: 500; }
.metric .hint { font-size: 13px; color: var(--muted); margin-top: 9px; }

.surface { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.surface-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--border); }
.surface-head h2 { font-size: 16px; font-weight: 600; margin: 0; }
.surface-head .link { font-size: 13.5px; color: var(--orange); font-weight: 500; }
.surface-pad { padding: 22px; }
.surface-rows { padding: 4px 22px 10px; }

.list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row .sub { color: var(--faint); font-size: 13px; margin-top: 3px; }
.list-empty { padding: 30px 0; color: var(--muted); text-align: center; }
.list-empty a { color: var(--orange); font-weight: 500; }

.pill { font-size: 11.5px; font-family: var(--mono); padding: 4px 9px; border-radius: 6px; background: var(--orange-soft); color: var(--amber); border: 1px solid var(--orange-line); white-space: nowrap; }
.pill.muted { background: var(--surface-2); color: var(--muted); border-color: var(--border-2); }

.packs { display: flex; gap: 10px; flex-wrap: wrap; }
.amount { font-family: var(--mono); font-weight: 600; }
.amount.credit { color: var(--amber); }
.amount.debit { color: var(--muted); }

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); }
  .console-main { margin-left: 0; }
  .user-email { display: none; }
}

.code-block { background: #0b0b10; border: 1px solid var(--border-2); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 12px 0 0; }
.code-block pre { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: #d6d8e0; white-space: pre; }
.surface-head .pill { font-weight: 500; }

.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.filter-search { position: relative; flex: 1; min-width: 220px; }
.filter-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.filter-search input { width: 100%; padding: 11px 13px 11px 38px; border-radius: 10px; border: 1px solid var(--border-2); background: #0b0b10; color: var(--text); font-family: var(--sans); font-size: 14px; }
.filter-search input:focus, .filter-select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.filter-select { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border-2); background: #0b0b10; color: var(--text); font-family: var(--sans); font-size: 14px; cursor: pointer; }
.filter-bar .btn { padding: 11px 22px; }
.filter-clear { color: var(--muted); font-size: 13.5px; }
.filter-clear:hover { color: var(--text); }
.filter-count { font-size: 13px; color: var(--faint); margin-bottom: 14px; }

/* ===== rs6 amber theme — exact 1:1 token + component match (console only) ===== */
.console {
  --bg: #32312F;
  --bg-2: rgb(36, 36, 34);
  --surface: rgb(34, 32, 31);
  --surface-2: rgb(40, 38, 36);
  --border: oklch(0.28 0.008 60);
  --border-2: rgb(70, 67, 62);
  --text: oklch(0.96 0.005 80);
  --muted: oklch(0.78 0.008 60);
  --faint: oklch(0.58 0.008 60);
  --orange: #D57D34;
  --amber: #E08A44;
  --orange-soft: rgba(213, 125, 52, 0.18);
  --orange-line: rgba(213, 125, 52, 0.42);
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "ss01", "cv11";
}

.console .sidebar { background: var(--bg-2); border-right: 1px solid var(--border); }
.console .sidebar-brand { margin: 12px 12px 4px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.console .nav-group-title { font-family: var(--mono); }
.console .nav-link { border: 1px solid transparent; }
.console .nav-link:hover { background: var(--surface); color: var(--text); }
.console .nav-link.active { background: var(--bg); color: var(--orange); border: 1px solid var(--border-2); }

.console .console-topbar { background: rgba(36, 36, 34, 0.82); border-bottom: 1px solid var(--border); }
.console .topbar-balance { border: 1px solid var(--border-2); }
.console .topbar-balance .bal-load { background: linear-gradient(180deg, #E08A44 0%, #B4661F 100%); color: #1a0f04; }

.console .btn { border-radius: 6px; padding: 9px 15px; font-size: 14px; box-shadow: none; }
.console .btn:hover { transform: none; box-shadow: none; }
.console .btn-primary { background: linear-gradient(180deg, #E08A44 0%, #B4661F 100%); border: 1px solid #B4661F; color: #1a0f04; box-shadow: none; }
.console .btn-primary:hover { filter: brightness(1.05); box-shadow: none; transform: none; }
.console .btn-ghost { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }
.console .btn-ghost:hover { background: rgb(48, 45, 42); color: var(--text); border-color: var(--border-2); }

.console .metric, .console .surface { background: var(--surface); border: 1px solid var(--border); }
.console .surface-head { border-bottom: 1px solid var(--border); }
.console .pill { border-radius: 999px; }

.console .ssh-form input, .console .ssh-form textarea, .console .filter-search input, .console .filter-select { background: var(--bg-2); border: 1px solid var(--border-2); }
.console .code-block { background: var(--bg-2); border: 1px solid var(--border-2); }

/* rs6 info-card: outer panel wrapping a darker inner body */
.console .surface { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px; overflow: visible; }
.console .surface-head { border-bottom: 0; padding: 11px 15px 9px; }
.console .surface-rows, .console .surface-pad { background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; }
.console .surface-rows { padding: 2px 18px; }
.console .surface-pad { padding: 20px; }

/* mobile console nav (rs6 mobile-menu pattern) */
.mobile-menu-btn { display: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border-2); color: var(--muted); cursor: pointer; }
.mobile-menu-btn svg { width: 19px; height: 19px; }
.console-overlay { display: none; }
@media (max-width: 820px) {
  .mobile-menu-btn { display: inline-flex; }
  .console .sidebar { transform: translateX(-100%); transition: transform .22s ease; z-index: 60; }
  .console.sidebar-open .sidebar { transform: translateX(0); box-shadow: 0 0 60px rgba(0, 0, 0, 0.5); }
  .console.sidebar-open .console-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 50; }
  .console .console-main { margin-left: 0; }
}

/* ============================================================
   rs6 theme — verbatim tokens + components from
   rs6/app/assets/tailwind/application.css (@apply expanded)
   ============================================================ */
.console {
  --accent: #D57D34;
  --accent-soft: rgba(213, 125, 52, 0.18);
  --accent-dim: #8F5220;
  --bg: #32312F;
  --bg-2: rgb(36, 36, 34);
  --panel: rgb(34, 32, 31);
  --panel-2: oklch(0.295 0.006 60);
  --surface: #32312F;
  --surface-2: rgb(40, 38, 36);
  --inner: #32312F;
  --line: rgb(70, 67, 62);
  --line-soft: oklch(0.28 0.008 60);
  --fg: oklch(0.96 0.005 80);
  --fg-dim: oklch(0.78 0.008 60);
  --fg-muted: oklch(0.58 0.008 60);
  --fg-faint: oklch(0.42 0.008 60);
  --success: oklch(0.75 0.14 150);
  --success-soft: oklch(0.75 0.14 150 / 0.15);
  --warn: oklch(0.78 0.14 75);
  --warn-soft: oklch(0.78 0.14 75 / 0.15);
  --danger: oklch(0.7 0.15 25);
  --neutral-soft: oklch(0.55 0.01 60 / 0.2);
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
}
.console .mono { font-family: "Geist Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }

.console .button-primary { position: relative; display: inline-flex; align-items: center; border-radius: 0.375rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); background: linear-gradient(180deg, #E08A44 0%, #B4661F 100%); border: 1px solid #B4661F; color: #1a0f04; cursor: pointer; }
.console .button-primary:hover { filter: brightness(1.05); }
.console .button-danger { position: relative; display: inline-flex; align-items: center; border-radius: 0.375rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: #fff; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); background: oklch(0.5 0.15 25); border: 1px solid oklch(0.55 0.16 25); cursor: pointer; }
.console .button-danger:hover { filter: brightness(1.08); }
.console .button-gray { position: relative; display: inline-flex; align-items: center; border-radius: 0.375rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-dim); cursor: pointer; }
.console .button-gray:hover { background: rgb(48, 45, 42); color: var(--fg); }

.console .nav-container { height: 100vh; position: fixed; left: 0; top: 0; overflow-y: auto; width: 14rem; background: var(--bg-2); border-right: 1px solid var(--line-soft); z-index: 30; }
.console .nav-header { display: flex; align-items: center; padding-left: 0.75rem; padding-right: 0.75rem; height: 4.5rem; }
.console .nav-brand { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px 10px; }
.console .nav-brand-logo { display: flex; align-items: center; justify-content: center; font-weight: 700; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #E08A44 0%, #B4661F 100%); color: #1a1108; font-family: "Geist Mono", monospace; font-size: 13px; box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.15); }
.console .nav-brand-name { font-weight: 600; color: var(--fg); font-size: 16px; letter-spacing: 0.02em; flex: 1; min-width: 0; }
.console .nav-body { display: flex; flex-direction: column; height: calc(100vh - 4.5rem); }
.console .nav-content { padding: 1.5rem 0.5rem 1.5rem 0.75rem; flex-grow: 1; }
.console .nav-footer { padding: 1rem; margin-top: auto; border-top: 1px solid var(--line-soft); }
.console .nav-user-container { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem; border: 1px solid var(--line-soft); background: var(--panel); }
.console .nav-user-name { font-weight: 500; color: var(--fg); font-size: 0.875rem; }
.console .nav-user-sub { font-size: 0.75rem; color: var(--fg-muted); }
.console .nav-section-title { font-size: 0.75rem; line-height: 1rem; font-weight: 500; text-transform: uppercase; font-family: "Geist Mono", monospace; color: var(--fg-muted); letter-spacing: 0.08em; }
.console .nav-link { display: flex; align-items: center; padding-left: 0.75rem; padding-right: 0.75rem; font-weight: 500; border-radius: 0.5rem; margin-bottom: 1px; }
.console .nav-link-desktop { padding-top: 0.625rem; padding-bottom: 0.625rem; font-size: 0.875rem; }
.console .nav-link-active { background: var(--surface); color: var(--accent); border: 1px solid var(--line); }
.console .nav-link-inactive { color: var(--fg-dim); border: 1px solid transparent; }
.console .nav-link-inactive:hover { background: var(--panel); color: var(--fg); }
.console .nav-link-icon { margin-right: 0.75rem; height: 1.25rem; width: 1.25rem; }
.console .nav-icon-active { color: var(--accent); }
.console .nav-icon-inactive { color: var(--fg-muted); }

.console .info-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 2px; display: flex; flex-direction: column; }
.console .info-card-header { padding: 0.75rem 1rem 0.5rem; }
.console .info-card-title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--fg); }
.console .info-card-body { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; flex: 1; }
.console .info-section { margin-top: 2rem; }
.console .info-section-title { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; margin-bottom: 1rem; color: var(--fg); }
.console .detail-list > * + * { margin-top: 1rem; }
.console .detail-item { display: flex; }
.console .detail-label { width: 33.333%; font-size: 0.875rem; font-weight: 500; color: var(--fg-muted); }
.console .detail-value { width: 66.667%; font-size: 0.875rem; color: var(--fg); }

.console .table-primary { min-width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.console .table-primary thead { background: var(--bg-2); }
.console .table-primary thead th { padding: 0.875rem 1.5rem; text-align: left; font-size: 0.75rem; line-height: 1rem; font-weight: 500; text-transform: uppercase; font-family: "Geist Mono", monospace; color: var(--fg-muted); letter-spacing: 0.08em; border-bottom: 1px solid var(--line); }
.console .table-primary tbody tr { border-top: 1px solid var(--line-soft); }
.console .table-primary tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.console .table-primary tbody td { white-space: nowrap; padding: 1rem 1.5rem; font-size: 0.875rem; color: var(--fg-dim); }
.console .table-primary td.primary { font-weight: 500; color: var(--fg); }
.console .table-primary td.secondary { color: var(--fg-muted); }

.console .status-badge { display: inline-flex; padding: 0.125rem 0.625rem; border-radius: 9999px; font-size: 0.75rem; line-height: 1rem; font-weight: 500; border: 1px solid var(--line); }
.console .status-badge-active { background: var(--success-soft); color: var(--success); border-color: transparent; }
.console .status-badge-inactive { background: var(--neutral-soft); color: var(--fg-dim); border-color: transparent; }
.console .status-badge-error { background: oklch(0.7 0.15 25 / 0.15); color: oklch(0.78 0.15 25); border-color: transparent; }
.console .status-badge-warning { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* console shell using rs6 app-main + mobile-menu-button */
.console .app-main { margin-left: 14rem; min-height: 100vh; transition: margin-left 0.2s ease; }
.console .console-content { padding: 2rem 2.25rem 4rem; max-width: 1180px; }
.console .nav-container { scrollbar-width: none; -ms-overflow-style: none; }
.console .nav-container::-webkit-scrollbar { width: 0; height: 0; display: none; }
.mobile-menu-button { display: none; }
@media (max-width: 1023px) {
  .console .nav-container { transform: translateX(-100%); transition: transform .22s ease; z-index: 60; }
  .console.sidebar-open .nav-container { transform: translateX(0); box-shadow: 0 0 60px rgba(0, 0, 0, 0.5); }
  .console.sidebar-open .console-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 50; }
  .console .app-main { margin-left: 0; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; position: fixed; top: 1rem; left: 1rem; z-index: 40; padding: 0.5rem; border-radius: 0.375rem; background: var(--bg-2); border: 1px solid var(--line-soft); color: var(--fg-dim); cursor: pointer; }
  .mobile-menu-button svg { width: 20px; height: 20px; }
  .console .console-content { padding-top: 4rem; }
}

/* console page content paired with rs6 components */
.console .page-head { margin-bottom: 1.5rem; }
.console .page-head h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.3rem; color: var(--fg); }
.console .page-head p { color: var(--fg-dim); margin: 0; font-size: 0.95rem; }
.console .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.console .stat-label { font-size: 0.8125rem; color: var(--fg-muted); margin-bottom: 0.75rem; }
.console .stat-value { font-size: 1.875rem; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--fg); }
.console .stat-value.accent { color: var(--accent); }
.console .stat-value .unit { font-size: 1rem; color: var(--fg-muted); font-weight: 500; }
.console .stat-hint { font-size: 0.8125rem; color: var(--fg-dim); margin-top: 0.5rem; }
.console .stat-hint a, .console a.link { color: var(--accent); font-weight: 500; }
.console .card-list > * + * { border-top: 1px solid var(--line-soft); }
.console .card-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; }
.console .card-row:first-child { padding-top: 0; }
.console .card-row:last-child { padding-bottom: 0; }
.console .card-row .sub { color: var(--fg-muted); font-size: 0.8125rem; margin-top: 0.2rem; }
.console .card-empty { color: var(--fg-muted); text-align: center; padding: 1.5rem 0; }
.console .card-empty a { color: var(--accent); font-weight: 500; }
.console .row-actions { display: flex; align-items: center; gap: 0.75rem; }
.console .conn-wrap { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.console .conn { font-family: "Geist Mono", monospace; font-size: 0.8125rem; color: var(--fg-dim); }
.console .copy-btn { background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-dim); border-radius: 6px; padding: 0.25rem 0.6rem; font-size: 0.75rem; font-weight: 500; cursor: pointer; }
.console .copy-btn:hover { background: rgb(48, 45, 42); color: var(--fg); }
.console .ssh-form { display: flex; flex-direction: column; gap: 0.7rem; }
.console .ssh-form input, .console .ssh-form textarea { width: 100%; padding: 0.65rem 0.8rem; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font-family: "Geist", sans-serif; font-size: 0.875rem; }
.console .ssh-form textarea { font-family: "Geist Mono", monospace; font-size: 0.8rem; resize: vertical; }
.console .ssh-form input:focus, .console .ssh-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft); }
.console .ssh-form .button-primary { align-self: flex-start; }
.console .packs { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.console .amount { font-family: "Geist Mono", monospace; font-weight: 600; }
.console .amount.credit { color: var(--success); }
.console .amount.debit { color: var(--fg-muted); }
.console .code-block { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.85rem 1rem; overflow-x: auto; margin-top: 0.75rem; }
.console .code-block pre { margin: 0; font-family: "Geist Mono", monospace; font-size: 0.8rem; line-height: 1.6; color: var(--fg-dim); white-space: pre; }

/* auth pages on the amber console theme */
.console .auth-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; box-shadow: 0 40px 90px rgba(0,0,0,0.45); }
.console .auth-card h1, .console .auth-brand .brand-name { font-family: "Geist", system-ui, sans-serif; }
.console .auth-card h1 { font-weight: 600; letter-spacing: -0.02em; }
.console .auth-brand .brand-name { font-weight: 700; letter-spacing: 0.06em; font-size: 22px; }
.console .auth-card .subtitle { font-family: "Geist", system-ui, sans-serif; }
.console .field input { background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); border-radius: 9px; }
.console .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.console .auth-glow { background: radial-gradient(ellipse at center, var(--accent-soft), transparent 62%); }
.console .auth-alt a, .console .auth-back { color: var(--fg-muted); }
.console .auth-alt a:hover, .console .auth-back:hover { color: var(--accent); }
.console .auth-card input[type=submit] { width: 100%; justify-content: center; border-radius: 8px; }

.oauth-buttons { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.oauth-buttons form { margin: 0; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.btn-oauth:hover { border-color: var(--amber); background: var(--surface); }
.oauth-ico { width: 18px; height: 18px; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-legal { font-size: 12px; color: var(--faint); text-align: center; margin-top: 16px; line-height: 1.55; }
.auth-legal a { color: var(--amber); }

.legal { min-height: 100vh; display: flex; flex-direction: column; }
.legal-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.legal-top .brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 600; }
.legal-back { color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-back:hover { color: var(--amber); }
.legal-body { width: 100%; max-width: 720px; margin: 0 auto; padding: 48px 28px 60px; flex: 1; }
.legal-body h1 { font-family: var(--display); font-weight: 400; font-size: 40px; margin: 0 0 6px; letter-spacing: -0.01em; }
.legal-meta { color: var(--faint); font-size: 14px; margin: 0 0 32px; }
.legal-body h2 { font-size: 18px; font-weight: 600; margin: 32px 0 8px; color: var(--text); }
.legal-body p { color: var(--muted); line-height: 1.7; font-size: 15px; margin: 0 0 14px; }
.legal-body a { color: var(--amber); }
.legal-foot { display: flex; justify-content: space-between; gap: 12px; max-width: 720px; margin: 0 auto; width: 100%; padding: 22px 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
.legal-foot a { color: var(--muted); text-decoration: none; }
.legal-foot a:hover { color: var(--amber); }
@media (max-width: 600px) { .legal-body h1 { font-size: 31px; } .legal-top, .legal-foot { padding-left: 18px; padding-right: 18px; } }

/* ===== console redesign: topbar, KPIs, spend chart, activity feed, rent modal ===== */
.console .cap { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.09em; font-size: 10.5px; color: var(--fg-muted); font-weight: 500; }

.console-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 2.25rem; background: rgba(36,36,34,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.console .crumbs { font-size: 13px; color: var(--fg-muted); }
.console .crumbs .sep { margin: 0 8px; color: var(--fg-faint); }
.console .crumbs .now { color: var(--accent); }
.console .topbar-spacer { flex: 1; }
.console .topbar-balance { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.console .bal-amount { font-family: var(--mono); font-size: 13px; color: var(--fg); font-weight: 600; white-space: nowrap; }
.console .bal-amount .k { color: var(--fg-muted); font-weight: 400; margin-right: 7px; font-family: var(--sans); }
.console .bal-load { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, #E08A44 0%, #B4661F 100%); color: #1a0f04; border: 1px solid #B4661F; border-radius: 7px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.console .bal-load:hover { filter: brightness(1.05); }
.console .topbar-ico { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-2); color: var(--fg-dim); flex: none; }
.console .console-content { padding-top: 1.75rem; }

.console-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.console-hero h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--fg); }
.console-hero p { color: var(--fg-dim); margin: 5px 0 0; font-size: 14px; }
.console-hero .controls { display: flex; gap: 8px; align-items: center; flex: none; }

.console .kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.console .kpi { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 2px; display: flex; flex-direction: column; }
.console .kpi-top { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 80px; }
.console .kpi-top > div:first-child { min-width: 0; flex: 1; }
.console .kpi-num { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; display: block; margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.console .kpi-num.accent { color: var(--accent); }
.console .kpi-num .sub { font-size: 12px; color: var(--fg-muted); font-weight: 500; margin-left: 6px; font-family: var(--sans); }
.console .kpi-bot { padding: 7px 11px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--fg-muted); }
.console .kpi-bot a { color: var(--accent); font-weight: 500; }
.console .kpi-bot .leading { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--fg-faint); flex: none; }
.console .mini-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 38px; flex: none; }
.console .mini-bars i { width: 3px; border-radius: 1.5px; background: rgb(78,74,68); display: block; }
.console .mini-bars i.hot { background: var(--accent); }

.console .spend-chart { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding-top: 8px; }
.console .spend-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; min-width: 0; }
.console .spend-col .bar { width: 100%; max-width: 24px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #E08A44, #B4661F); min-height: 3px; }
.console .spend-col .bar.empty { background: var(--line); }
.console .spend-col .d { font-family: var(--mono); font-size: 9.5px; color: var(--fg-faint); white-space: nowrap; }

.console .feed { display: flex; flex-direction: column; }
.console .feed-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line-soft); }
.console .feed-row:first-child { border-top: 0; padding-top: 2px; }
.console .feed-row:last-child { padding-bottom: 2px; }
.console .feed-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-muted); }
.console .feed-ico.up { color: var(--success); border-color: var(--success-soft); }
.console .feed-ico.down { color: var(--accent); }
.console .feed-main { flex: 1; min-width: 0; }
.console .feed-main .t { font-size: 13.5px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console .feed-main .s { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.console .feed-amt { font-family: var(--mono); font-size: 13px; font-weight: 500; flex: none; }
.console .feed-amt.credit { color: var(--success); }
.console .feed-amt.debit { color: var(--fg-dim); }

.rent-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10,9,8,0.62); backdrop-filter: blur(3px); }
.rent-modal.open { display: flex; }
.rm-dialog { width: 100%; max-width: 430px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px; box-shadow: 0 30px 80px -20px #000; }
.rm-inner { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.rm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.rm-title { font-size: 16px; font-weight: 600; color: var(--fg); }
.rm-x { background: none; border: 0; color: var(--fg-muted); cursor: pointer; font-size: 22px; line-height: 1; padding: 0 6px; border-radius: 6px; }
.rm-x:hover { color: var(--fg); background: var(--surface-2); }
.rm-sub { font-size: 13px; color: var(--fg-muted); margin: 0 0 16px; }
.rm-rows { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.rm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; font-size: 13px; border-top: 1px solid var(--line-soft); }
.rm-row:first-child { border-top: 0; }
.rm-row .k { color: var(--fg-muted); }
.rm-row .v { color: var(--fg); font-family: var(--mono); font-weight: 500; }
.rm-row.total { background: var(--bg-2); }
.rm-row.total .v { color: var(--accent); font-size: 15px; }
.rm-foot { display: flex; gap: 10px; }
.rm-foot form { flex: 1; margin: 0; }
.rm-foot .button-primary, .rm-foot .button-gray { width: 100%; justify-content: center; }
.rm-note { font-size: 11.5px; color: var(--fg-faint); text-align: center; margin-top: 12px; }

@media (max-width: 1023px) {
  .console-topbar { padding: 12px 1.25rem 12px 4rem; }
  .console .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .console .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .console-hero { flex-direction: column; align-items: flex-start; }
  .console .bal-amount .k { display: none; }
}

.console .dash-2col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 14px; }
.console .dash-2col .info-card-body { padding: 1.1rem 1.25rem; }
@media (max-width: 1023px) { .console .dash-2col { grid-template-columns: 1fr; } }

/* usage page */
.console .usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) { .console .usage-grid { grid-template-columns: 1fr; } }
.console .bar-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.console .bar-row:first-child { border-top: 0; }
.console .bar-row .lbl { width: 150px; flex: none; font-size: 13px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console .bar-row .track { flex: 1; height: 8px; border-radius: 4px; background: var(--bg-2); border: 1px solid var(--line-soft); overflow: hidden; }
.console .bar-row .fill { height: 100%; background: linear-gradient(90deg, #B4661F, #E08A44); }
.console .bar-row .amt { width: 90px; flex: none; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--fg); }
