/* ============================================================
   MintRig — simulation mining console (draft styling)
   ============================================================ */

:root {
  --bg: #06090e;
  --bg-2: #0a0f17;
  --panel: #0d131d;
  --panel-2: #111927;
  --line: rgba(140, 170, 200, 0.13);
  --line-2: rgba(140, 170, 200, 0.22);
  --text: #e8f1f8;
  --muted: #7f93a8;
  --mint: #2fe6b4;
  --mint-dim: rgba(47, 230, 180, 0.14);
  --violet: #8a7cff;
  --amber: #ffb648;
  --red: #ff6b6b;
  --radius: 16px;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

b, strong { font-weight: 650; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.none { display: none; }
.mt { margin-top: 26px; }

/* ---------------------------- shared bits ---------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #04120e;
  background: linear-gradient(140deg, var(--mint), #7ef9d3);
  font-size: 15px;
  box-shadow: 0 6px 18px rgba(47, 230, 180, 0.25);
}

.brand-name { font-size: 17px; }

.brand-tag {
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.14em;
  padding: 4px 6px;
  border-radius: 6px;
  color: var(--mint);
  background: var(--mint-dim);
  border: 1px solid rgba(47, 230, 180, 0.25);
}

.brand.small .brand-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
.brand.small .brand-name { font-size: 15px; }

.btn {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 600 14px/1 inherit;
  padding: 12px 16px;
  border-radius: 11px;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; }

.btn.primary {
  background: linear-gradient(140deg, #34f0bd, #14b894);
  border-color: transparent;
  color: #04120e;
  box-shadow: 0 10px 26px rgba(47, 230, 180, 0.22);
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.06); }

.btn.ghost { background: transparent; }
.btn.tiny { padding: 8px 12px; font-size: 12px; border-radius: 9px; }
.btn.wide { width: 100%; }

.link {
  color: var(--mint);
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
}
.link:hover { text-decoration: underline; }

.auth-tabs { display: flex; gap: 10px; margin: 22px 0; }
.auth-tabs .btn { flex: 1; }
.auth-recovery { margin: 16px 0 0; font-size: 12px; line-height: 1.5; }
.signup-terms { margin: 18px 0; font-size: 12px; line-height: 1.6; }
.signup-terms .check { align-items: flex-start; }
.signup-terms .link-btn { margin-top: 8px; font-size: 12px; text-align: left; }
.terms-dialog { width: min(780px, calc(100% - 24px)); max-height: 88dvh; padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); }
.terms-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.terms-dialog[open] { display: flex; flex-direction: column; }
.terms-header { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.terms-header h2 { margin: 0; font-size: 21px; }
.terms-header .panel-label { margin-bottom: 8px; }
.terms-body { overflow-y: auto; padding: 0 22px 18px; font-size: 13px; line-height: 1.8; }
.terms-body h3 { margin: 24px 0 8px; color: var(--mint); font-size: 15px; }
.terms-body ul { padding-left: 22px; }
.terms-review-note { border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); }
.terms-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--line); }
.invoice-resume { width: 100%; margin-top: 6px; }
.mrow code { overflow-wrap: anywhere; }

.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.panel-label {
  margin: 0 0 12px;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.pill {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.06em;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.pill.live { color: #04120e; background: var(--mint); border-color: transparent; }
.pill.paused { color: #241703; background: var(--amber); border-color: transparent; }

.chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}
.chip b { color: var(--text); font-weight: 600; }
.chip.warn { color: var(--amber); border-color: rgba(255, 182, 72, 0.28); background: rgba(255, 182, 72, 0.07); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.ok { background: var(--mint); box-shadow: 0 0 0 3px rgba(47, 230, 180, 0.15); }

/* ------------------------------- login ------------------------------- */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.login-art {
  position: relative;
  overflow: hidden;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(47, 230, 180, 0.14), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(138, 124, 255, 0.16), transparent 60%),
    #070b12;
}

.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(140, 170, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 200, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 40% 45%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 40% 45%, black, transparent 78%);
  pointer-events: none;
}

.login-art > * { position: relative; z-index: 1; }

.login-art h1 {
  margin: 64px 0 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.login-art h1 span {
  background: linear-gradient(100deg, var(--mint), #9af7dc 55%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 20px 0 0;
  max-width: 46ch;
  color: #9db0c3;
  font-size: 15px;
}

.art-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin: 40px 0 0;
  padding: 0;
}
.art-features li { display: grid; gap: 2px; }
.art-features b { font: 600 22px/1 var(--mono); color: var(--mint); }
.art-features span { font-size: 12px; color: var(--muted); }
.activity-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 5px; }
.art-features .activity-live span { font-size: 10px; }
.activity-live.is-live .dot { background: var(--mint); box-shadow: 0 0 0 3px var(--mint-dim); }
.art-features .activity-live.is-live span { color: var(--mint); }

.art-foot {
  margin-top: auto;
  padding-top: 48px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d7183;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 40px 32px;
  background: var(--bg);
}

.login-panel form {
  width: 100%;
  max-width: 384px;
}

.login-panel h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.login-panel form > .muted { margin: 0 0 26px; font-size: 13.5px; }

.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 550;
  color: #a9bccd;
}

.field > input,
select {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #080d14;
  color: var(--text);
  font: 14px/1.3 inherit;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
input::placeholder { color: #506478; }
input[type="password"]::-ms-reveal { display: none; }
.field > span.password-control { display: block; position: relative; margin: 0; }
.password-control input { width: 100%; padding: 12px 62px 12px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: #080d14; color: var(--text); font: 14px/1.3 inherit; outline: none; transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); border: 0; background: transparent; color: var(--mint); font: 600 11px/1 var(--mono); cursor: pointer; }
.password-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 3px; }
input:focus, select:focus {
  border-color: rgba(47, 230, 180, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 230, 180, 0.12);
}
select { appearance: none; cursor: pointer; }

.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #a9bccd; cursor: pointer; }
.check input { accent-color: var(--mint); width: 14px; height: 14px; }

.login-panel .row-between { margin: 4px 0 22px; }

.form-error {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--red);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #4f6274;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-note {
  margin: 22px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #5f7387;
}
.login-note code {
  font: 500 11.5px/1 var(--mono);
  color: var(--mint);
  background: var(--mint-dim);
  padding: 2px 5px;
  border-radius: 4px;
}

/* -------------------------------- app -------------------------------- */

.app { min-height: 100vh; }

.topbar {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 20, 0.9);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-meta { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font: 600 12px/1 var(--mono);
  color: #04120e;
  background: linear-gradient(140deg, var(--mint), #9af7dc);
}
.who { display: grid; line-height: 1.25; }
.who b { font-size: 13px; }
.who span { font-size: 11.5px; color: var(--muted); }

.workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 14px;
  padding: 14px;
  align-items: start;
}

/* Keep the primary dashboard on top and place rig configuration below it. */
.workspace > .portfolio { grid-column: 4; grid-row: 1; }
.workspace > .rig-panel { grid-column: 3; grid-row: 1; }

.col { min-width: 0; }

/* ----------------------------- main menu ----------------------------- */

.nav { display: grid; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #b7c7d6;
  font: 550 13.5px/1 inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-item .ico { color: #6d8296; font-size: 13px; width: 16px; text-align: center; }
.nav-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.nav-item:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.nav-item.active {
  background: rgba(47, 230, 180, 0.09);
  border-color: rgba(47, 230, 180, 0.22);
  color: #eafff8;
}
.nav-item.active .ico { color: var(--mint); }
.nav-section-label { margin: 16px 0 2px 10px; }
.nav-badge { margin-left: auto; padding: 3px 5px; border-radius: 5px; color: var(--mint); background: var(--mint-dim); border: 1px solid rgba(47, 230, 180, 0.25); font: 700 8px/1 var(--mono); letter-spacing: .08em; }

.menu-news {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 11, 0.76);
  backdrop-filter: blur(7px);
  animation: news-float-in 0.45s ease both;
}
.menu-news-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(430px, 100%);
  max-height: min(680px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(47, 230, 180, 0.36);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(47, 230, 180, 0.15), rgba(138, 124, 255, 0.1) 58%, rgba(13, 19, 29, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.menu-news-glow { position: absolute; z-index: -1; width: 110px; height: 110px; top: -64px; right: -34px; border-radius: 50%; background: var(--mint); opacity: .15; filter: blur(18px); }
.menu-news-head { display: flex; align-items: center; gap: 9px; }
.menu-news-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; color: #04120e; background: linear-gradient(140deg, var(--mint), #9af7dc); font-size: 14px; box-shadow: 0 7px 16px rgba(47, 230, 180, .2); }
.menu-news-kicker { margin: 0 0 2px; color: var(--mint); font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.menu-news h3 { margin: 0; font-size: 13px; }
.icon-btn { margin-left: auto; padding: 2px 5px; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { color: var(--text); }
.menu-news-copy { margin: 11px 0 0; color: #a8bacb; font-size: 11px; line-height: 1.45; }
.menu-news-list { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.menu-news-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.3; }
.menu-news-list li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.menu-news-list b { font-size: 11px; }
.menu-news-list small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.news-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-dim); }
.news-dot.violet { background: var(--violet); box-shadow: 0 0 0 3px rgba(138, 124, 255, .14); }
.news-dot.amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 182, 72, .14); }
.news-ack { width: 100%; margin-top: 12px; padding-block: 7px; border-color: rgba(47, 230, 180, .25); color: var(--mint); }
.menu-news-launcher { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; padding: 8px 10px; border: 1px solid rgba(47, 230, 180, .25); border-radius: 10px; background: rgba(47, 230, 180, .06); color: var(--text); font: 600 11px/1 inherit; cursor: pointer; }
.menu-news-launcher .menu-news-icon { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.menu-news-launcher .nav-badge { margin-left: auto; }
@keyframes news-float-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

.menu-card {
  margin-top: 14px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 12.5px;
  color: var(--muted);
}
.kv b { color: var(--text); font: 600 12.5px/1.2 var(--mono); }

.donation-goal-card { margin-top: 14px; padding: 14px; border: 1px solid rgba(255, 182, 72, .28); border-radius: 14px; background: linear-gradient(145deg, rgba(255, 182, 72, .1), rgba(47, 230, 180, .035)); }
.donation-goal-head { align-items: flex-start; }
.donation-goal-head .panel-label { margin-bottom: 6px; color: var(--amber); }
.donation-goal-card h3 { margin: 0; font-size: 13px; }
.donation-goal-mark { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #241703; background: linear-gradient(140deg, #ffd48a, var(--amber)); font-weight: 800; box-shadow: 0 6px 16px rgba(255, 182, 72, .18); }
.donation-goal-copy { margin: 10px 0 0; color: #a8bacb; font-size: 11px; line-height: 1.45; }
.donation-goal-values { display: flex; align-items: baseline; gap: 5px; margin-top: 13px; }
.donation-goal-values strong { color: var(--amber); font: 650 17px/1 var(--mono); }
.donation-goal-values span { color: var(--muted); font-size: 10px; }
.donation-progress { height: 7px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .09); }
.donation-progress i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #f0972b, var(--amber)); transition: width .3s ease; }
.donation-details-toggle { margin-top: 10px; padding: 0; font-size: 11px; }
.donation-goal-details { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255, 182, 72, .16); }
.donation-goal-details p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.donation-wallet-label { margin-top: 12px !important; color: var(--amber) !important; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.donation-wallet-row { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.donation-wallet-row code { min-width: 0; flex: 1; overflow-wrap: anywhere; color: var(--text); font: 500 9px/1.35 var(--mono); }
.donation-wallet-row .btn { flex: 0 0 auto; padding: 6px 8px; font-size: 10px; }
.donation-networks { margin-top: 9px !important; color: #b8d7cb !important; }
.donation-networks b { color: var(--mint); font-weight: 650; }
.donation-warning { margin-top: 9px !important; color: #caa76d !important; }
.chatbot-menu-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: center; margin-top: 14px; padding: 11px; border: 1px solid rgba(138, 124, 255, .26); border-radius: 12px; background: linear-gradient(135deg, rgba(138, 124, 255, .1), rgba(47, 230, 180, .035)); }
.chatbot-menu-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #100b2a; background: linear-gradient(140deg, #b6adff, #8a7cff); font-size: 13px; box-shadow: 0 6px 16px rgba(138, 124, 255, .22); }
.chatbot-menu-card strong { display: block; font-size: 12px; }
.chatbot-menu-card p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.chatbot-menu-card .btn { grid-column: 1 / -1; width: 100%; padding-block: 8px; font-size: 11px; }

.plain { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 9px; font-size: 12.5px; color: #9db0c3; }
.plain li { display: flex; justify-content: space-between; gap: 8px; }

.fineprint { margin: 14px 0 0; font-size: 11px; line-height: 1.55; color: #56697c; }

/* ------------------------------ console ------------------------------ */

.console { container-type: inline-size; }
.console-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.console-head .panel-label { margin-bottom: 8px; }
.console-title { margin: 0; font-size: 20px; letter-spacing: -0.02em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 200px at 12% 50%, rgba(47, 230, 180, 0.09), transparent 70%),
    rgba(255, 255, 255, 0.015);
}
.hero > * { min-width: 0; }

.ring {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from 220deg, rgba(47, 230, 180, 0.9), rgba(138, 124, 255, 0.75), rgba(47, 230, 180, 0.15) 72%, rgba(47, 230, 180, 0.9));
  padding: 3px;
  transition: opacity 0.3s ease;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 230, 180, 0.35);
  opacity: 0;
}
.is-mining .ring::after { opacity: 1; animation: spin 9s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #080d14;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
}
.ring-label { font: 600 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ring-value { display: flex; align-items: baseline; gap: 4px; }
.ring-value b { font: 600 34px/1 var(--mono); letter-spacing: -0.03em; }
.ring-value i { font: 500 11px/1 var(--mono); color: var(--mint); font-style: normal; }
.ring-sub { font-size: 11px; color: #63788c; }

.hero-side { display: grid; gap: 16px; min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat {
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}
.stat span { display: block; font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.stat b { display: block; font: 600 14px/1.4 var(--mono); overflow-wrap: anywhere; }

.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 auto; }

@container (max-width: 680px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 16px;
  }
  .hero-side { width: 100%; }
  .ring { width: min(190px, 100%); height: auto; aspect-ratio: 1; }
}

@container (max-width: 420px) {
  .hero { padding: 12px; gap: 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .stat span, .stat b { min-width: 0; }
  .stat b { text-align: right; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }

/* Keep the dedicated rig panel readable at desktop widths. */
.rig-panel .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rig-panel .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rig-checkout-summary { display: grid; gap: 12px; margin-top: 18px; padding: 18px; border: 1px solid rgba(47,230,180,.35); border-radius: 12px; background: rgba(47,230,180,.04); }
.rig-checkout-summary p { margin: 0; }
.rig-checkout-summary strong { color: var(--mint); font-family: var(--mono); }
.rig-checkout-summary .fineprint { line-height: 1.7; }

.plan {
  position: relative;
  text-align: left;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
  color: inherit;
  font: inherit;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.plan:hover:not(:disabled) { border-color: var(--line-2); transform: translateY(-1px); }
.plan[aria-pressed="true"] {
  border-color: rgba(47, 230, 180, 0.5);
  background: linear-gradient(180deg, rgba(47, 230, 180, 0.1), rgba(47, 230, 180, 0.02));
  box-shadow: 0 0 0 1px rgba(47, 230, 180, 0.15) inset;
}
.plan:disabled { opacity: 0.5; cursor: not-allowed; }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 650; }
.plan-hw { margin-top: 3px; font-size: 11px; color: var(--muted); }
.plan-hash { margin-top: 10px; font: 600 15px/1 var(--mono); }
.plan-hash i { font: 500 10px/1 var(--mono); color: var(--muted); font-style: normal; margin-left: 2px; }
.plan-meta { margin-top: 5px; font-size: 10.5px; color: #6b7f93; }

.badge {
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
  padding: 4px 5px;
  border-radius: 5px;
  background: rgba(138, 124, 255, 0.16);
  color: #b9b0ff;
  border: 1px solid rgba(138, 124, 255, 0.3);
}

/* config */
.config-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; }
.slider-block .row-between { font-size: 12.5px; color: #a9bccd; }
.slider-block b { font: 600 13px/1 var(--mono); color: var(--mint); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 14px 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint) var(--fill, 60%), rgba(255, 255, 255, 0.1) var(--fill, 60%), rgba(255, 255, 255, 0.1) 100%);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eafff8;
  border: 3px solid var(--mint);
  box-shadow: 0 0 0 4px rgba(47, 230, 180, 0.14);
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eafff8;
  border: 3px solid var(--mint);
}

.scale { display: flex; justify-content: space-between; font-size: 10px; color: #5d7183; }

/* log */
.log {
  height: 132px;
  overflow-y: auto;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #070b11;
  font: 500 11.5px/1.75 var(--mono);
  color: #8ea3b7;
  scrollbar-width: thin;
}
.log div { display: flex; gap: 9px; white-space: nowrap; }
.log time { color: #4d6275; }
.log .ok { color: var(--mint); }
.log .warn { color: var(--amber); }
.log .dim { color: #62788c; }

/* ----------------------------- portfolio ----------------------------- */

.balance { margin: 6px 0 4px; display: grid; gap: 3px; }
.balance b { font: 600 30px/1.1 var(--mono); letter-spacing: -0.03em; }
.balance .sub { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.balance em { font: 600 12.5px/1 var(--mono); color: #cfe0ee; font-style: normal; }

.delta { font: 600 11.5px/1 var(--mono); padding: 3px 6px; border-radius: 5px; }
.delta.up { color: var(--mint); background: var(--mint-dim); }
.delta.down { color: var(--red); background: rgba(255, 107, 107, 0.12); }

#chart { width: 100%; height: 132px; margin-top: 12px; display: block; }
.chart-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-bottom: 2px; }

.assets { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.asset {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
}
.asset-ico {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font: 700 10px/1 var(--mono);
  color: #04120e;
  background: linear-gradient(140deg, #59f2c9, #16b391);
}
.asset-ico.violet { background: linear-gradient(140deg, #b3a9ff, #6f5dff); color: #0b0718; }
.asset-ico.amber { background: linear-gradient(140deg, #ffd08a, #f0972b); color: #1a1004; }
.asset-info { display: grid; line-height: 1.3; min-width: 0; }
.asset-info b { font-size: 12.5px; }
.asset-info span { font-size: 10.5px; color: var(--muted); }
.asset-val { margin-left: auto; text-align: right; display: grid; line-height: 1.3; }
.asset-val b { font: 600 12px/1.3 var(--mono); }
.asset-val span { font-size: 10.5px; color: var(--muted); }

.payout { margin-top: 14px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.016); }
.payout b { font: 600 12.5px/1 var(--mono); color: var(--mint); }
.bar { height: 6px; margin-top: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, #14b894, var(--mint)); transition: width 0.4s ease; }
.payout .fineprint { margin-top: 9px; }

/* ------------------------------ toast ------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid rgba(47, 230, 180, 0.35);
  background: #0b141c;
  color: #d7f8ee;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* focus highlight from main menu */
#overview, #console, #portfolio, #rig-plans, #activity-log, #referrals, #staking {
  scroll-margin-top: var(--nav-scroll-offset, 90px);
}
.panel.flash { animation: flash 1.1s ease; }
.workspace > .panel[data-panel] { transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.workspace > .panel[data-panel]:hover { border-color: rgba(47, 230, 180, 0.28); }
@keyframes flash {
  0% { box-shadow: 0 0 0 1px rgba(47, 230, 180, 0.7), 0 0 34px rgba(47, 230, 180, 0.18); }
  100% { box-shadow: 0 0 0 1px rgba(47, 230, 180, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .panel.flash { animation: none; }
  .menu-news { animation: none; }
}

/* --------------------------- responsive --------------------------- */

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.9fr); }
  .workspace > .portfolio { grid-column: 3; grid-row: auto; }
  .workspace > .rig-panel { grid-column: 2 / -1; grid-row: auto; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 32px 26px; border-right: none; border-bottom: 1px solid var(--line); }
  .login-art h1 { margin-top: 34px; }
  .login-art .art-features { margin-top: 26px; }
  .art-foot { padding-top: 22px; }
  .workspace { grid-template-columns: 1fr; }
  .workspace > .portfolio, .workspace > .rig-panel { grid-column: 1; }
  .hero { grid-template-columns: 1fr; justify-items: center; }
  .hero-side { width: 100%; }
  .config-grid { grid-template-columns: 1fr; }
  .topbar-meta { display: none; }
  .topbar-user { margin-left: auto; padding-left: 12px; }
}

@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .rig-panel .plans, .rig-panel .tiers { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .who { display: none; }
  .topbar { gap: 12px; }
}

/* ============================================================
   v0.2 — OTP sign-in, checkout modal, paid plans & power tiers
   ============================================================ */

/* ---- login: OTP flow ---- */
#step-email .check { margin-bottom: 18px; }

.otp-sent {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(47, 230, 180, 0.22);
  background: rgba(47, 230, 180, 0.07);
  font-size: 12.5px;
  color: #b9d9cf;
}
.otp-sent b { color: #eafff8; font-family: var(--mono); font-size: 12px; }

.field > .otp-input {
  letter-spacing: 0.55em;
  font: 600 22px/1.2 var(--mono);
  text-align: center;
  padding: 14px 12px;
  padding-left: calc(12px + 0.55em);
}

.otp-actions { margin-top: 14px; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--mint);
  font: 550 12.5px/1.4 inherit;
  cursor: pointer;
}
.link-btn:hover:not(:disabled) { text-decoration: underline; }
.link-btn:disabled { color: #5d7183; cursor: default; }

.dev-banner {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 182, 72, 0.45);
  background: rgba(255, 182, 72, 0.08);
  color: #f3d6a6;
  font-size: 12px;
  line-height: 1.6;
}
.dev-banner code {
  display: inline-block;
  margin-top: 2px;
  font: 600 15px/1 var(--mono);
  letter-spacing: 0.22em;
  color: #ffd79b;
}

.verified {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--mint);
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--mint-dim);
  border: 1px solid rgba(47, 230, 180, 0.28);
  white-space: nowrap;
}

/* ---- plan cards with price ---- */
.plan-price {
  display: block;
  margin-top: 9px;
  font: 600 18px/1 var(--mono);
  letter-spacing: -0.02em;
  color: #fff;
}
.plan-price i { font: 500 10.5px/1 var(--mono); color: var(--muted); font-style: normal; }
.plan[aria-pressed="true"] .plan-price { color: var(--mint); }
.plan .plan-hash { margin-top: 6px; font-size: 13px; }
.plan .plan-meta { margin-top: 2px; }

.badge.ok {
  background: rgba(47, 230, 180, 0.16);
  border-color: rgba(47, 230, 180, 0.35);
  color: #9df7dc;
}

/* ---- power tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }

.tier {
  text-align: left;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.016);
  color: inherit;
  font: inherit;
  display: grid;
  gap: 5px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}
.tier:hover { border-color: var(--line-2); transform: translateY(-1px); }
.tier.active {
  border-color: rgba(47, 230, 180, 0.5);
  background: linear-gradient(180deg, rgba(47, 230, 180, 0.1), rgba(47, 230, 180, 0.02));
}
.tier.locked { border-style: dashed; }
.tier-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}
.tier-sub { font-size: 11px; color: var(--muted); }
.tier-val {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
}
.tier.locked .tier-val { color: var(--amber); }

/* ---- checkout modal ---- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #111a26, #0a0f16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.modal-card h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.modal-card > .muted { margin: 0 0 18px; font-size: 12.5px; }
.modal-card .panel-label { margin-bottom: 10px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.modal-close:hover { color: #fff; }

.payment-choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.payment-choice select { min-width: 0; }
.payment-choice-note { grid-column: 1 / -1; margin: -8px 0 16px; overflow-wrap: anywhere; }
#payment-proof { margin-bottom: 16px; }
#payment-tx-hash { font-family: var(--mono); font-size: 12px; }
.modal-card { max-height: calc(100dvh - 40px); overflow-y: auto; }
.mrow code { overflow-wrap: anywhere; min-width: 0; }

.modal-rows {
  display: grid;
  gap: 1px;
  margin-bottom: 18px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: #0b121b;
  font-size: 12.5px;
  color: var(--muted);
}
.mrow b { color: #e8f1f8; font: 600 12.5px/1.3 var(--mono); }
.mrow.total { background: rgba(47, 230, 180, 0.08); color: #c9e9dd; }
.mrow.total b { color: var(--mint); }

#modal-note { margin: 12px 0 0; text-align: center; }

/* ---- portfolio payout (crypto only) ---- */
.field.tight { margin: 12px 0 0; }
.field.tight > span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field.tight input { font: 12px/1.3 var(--mono); padding: 10px 11px; }
.field.tight select { width: 100%; min-width: 0; padding: 10px 11px; border-radius: 8px; border: 1px solid #304056; color: var(--text); background: #101b2b; font: inherit; }
#copy-referral, #stake-submit { margin-top: 10px; }

.referral-page { grid-column: 2 / -1; min-width: 0; }
.referral-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.referral-head h2 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.referral-badge { border: 1px solid #335847; border-radius: 999px; padding: 6px 10px; color: #71eac1; background: #102a24; font-size: 11px; }
.referral-intro { max-width: 760px; margin: 16px 0 20px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.referral-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.referral-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.018); }
.referral-card h3 { margin: 0 0 12px; font-size: 15px; }
.referral-card .fineprint { margin: 0; line-height: 1.7; }
.referral-total { margin: 0; color: var(--mint); font: 600 20px/1.5 var(--mono); }
.referral-share { margin-top: 14px; }
.referral-link-row { display: flex; align-items: flex-end; gap: 12px; }
.referral-link-row .field { flex: 1; min-width: 0; margin: 0; }
.referral-link-row #copy-referral { flex: none; min-height: 42px; margin: 0; }

/* Staking has its own view; room styling does not affect account data. */
.staking-page { grid-column: 2 / -1; min-width: 0; }
.chatbot-page { grid-column: 2 / -1; min-width: 0; }
.chatbot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.chatbot-title-wrap { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #100b2a; background: linear-gradient(140deg, #b6adff, #8a7cff); font-size: 19px; box-shadow: 0 8px 24px rgba(138, 124, 255, .22); }
.chatbot-head h2 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.chatbot-status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(47, 230, 180, .25); border-radius: 999px; color: #71eac1; background: rgba(47, 230, 180, .07); font-size: 11px; white-space: nowrap; }
.chatbot-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(47, 230, 180, .12); }
.chatbot-intro { max-width: 680px; margin: 16px 0; color: var(--muted); line-height: 1.65; font-size: 13px; }
.chatbot-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chatbot-suggestion { padding: 8px 10px; border: 1px solid rgba(138, 124, 255, .28); border-radius: 999px; color: #c9c4ff; background: rgba(138, 124, 255, .07); font-size: 12px; font-weight: 500; line-height: 1.2; font-family: inherit; cursor: pointer; }
.chatbot-suggestion:hover { border-color: rgba(138, 124, 255, .58); background: rgba(138, 124, 255, .13); }
.chatbot-messages { display: grid; gap: 10px; min-height: 270px; max-height: 430px; overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 8, 14, .48); }
.chatbot-message { max-width: min(680px, 90%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.chatbot-message.bot { justify-self: start; border-color: rgba(138, 124, 255, .22); background: rgba(138, 124, 255, .07); }
.chatbot-message.user { justify-self: end; border-color: rgba(47, 230, 180, .22); background: rgba(47, 230, 180, .07); }
.chatbot-message-label { display: block; margin-bottom: 4px; color: var(--muted); font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chatbot-message p { margin: 0; color: #d9e5ee; font-size: 13px; line-height: 1.55; white-space: pre-line; }
.chatbot-form { display: flex; gap: 9px; margin-top: 12px; }
.chatbot-form input { flex: 1; min-width: 0; padding: 12px 13px; color: var(--text); background: #101b2b; border: 1px solid #304056; border-radius: 10px; font: inherit; }
.chatbot-form input:focus { outline: 2px solid rgba(47, 230, 180, .35); outline-offset: 1px; border-color: var(--mint); }
.chatbot-note { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.staking-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.staking-head h2 { margin: 4px 0 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.staking-badge { flex: none; border: 1px solid #335847; border-radius: 999px; padding: 6px 10px; color: #71eac1; background: #102a24; font-size: 11px; }
.staking-intro { max-width: 760px; margin: 16px 0 20px; color: var(--muted); line-height: 1.65; font-size: 13px; }
.staking-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(47,230,180,.045); color: var(--muted); font-size: 12px; }
.staking-summary b { color: var(--mint); font-family: var(--mono); }
.staking-selected { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 16px 17px; border: 1px solid rgba(47,230,180,.38); border-radius: 13px; background: linear-gradient(120deg, rgba(47,230,180,.11), rgba(138,124,255,.08)); }
.staking-selected h3 { margin: 4px 0 5px; font-size: 19px; }
.staking-selected .panel-label { margin-bottom: 0; }
.staking-selected-badge { flex: none; padding: 6px 10px; border: 1px solid rgba(47,230,180,.38); border-radius: 999px; color: var(--mint); font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.staking-label { margin: 24px 0 12px; }
.staking-rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.staking-room { min-height: 190px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #101722; color: #edf6ff; font: inherit; text-align: left; cursor: pointer; }
.staking-room:hover:not(:disabled), .staking-room.selected { border-color: #36ddb0; background: #102723; }
.staking-room:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.staking-room:disabled { opacity: .55; cursor: not-allowed; }
.room-top { display: flex; align-items: center; gap: 10px; }
.room-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #222b37; color: #e7cba6; font-size: 18px; }
.elite .room-icon { color: #af99ff; }.silver .room-icon { color: #d8e4f1; }.gold .room-icon { color: #f6cf68; }.platinum .room-icon { color: #a6d6ef; }
.room-name { font-weight: 700; font-size: 14px; }.room-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }.room-metric { display: flex; flex-direction: column; gap: 5px; padding: 11px; border: 1px solid rgba(151, 181, 205, .16); border-radius: 10px; background: rgba(255,255,255,.025); }.room-metric small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }.room-metric b { color: #edf8f4; font: 700 15px/1.2 var(--mono); }.room-metric em { color: var(--muted); font-size: 10px; font-style: normal; }.room-term { padding-top: 11px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 11px; }
.staking-room.locked .room-term { color: #d6a86c; }
.staking-form { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.015); }
.staking-form h3, .staking-history h3 { margin: 4px 0 6px; font-size: 16px; }
.staking-form .field { max-width: 400px; }.staking-accept { align-items: flex-start; line-height: 1.55; }.stake-terms-link { margin-top: 10px; font-size: 12px; }.staking-history { margin-top: 24px; }
.staking-terms-dialog { width: min(680px, calc(100% - 24px)); }
.staking-terms-dialog .terms-body ul { padding-left: 20px; }
.staking-terms-dialog .terms-body li { margin: 9px 0; }
.payouts li.stake-progress { display: block; }
.stake-progress-head, .stake-progress-details { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.stake-progress-head { margin-bottom: 9px; }
.stake-progress-details { margin-top: 7px; color: var(--muted); font-size: 12px; }
.stake-progress progress { display: block; width: 100%; height: 9px; accent-color: #30dfb1; }

.payout-actions { display: flex; gap: 7px; margin-top: 9px; }
.payout-actions .btn { flex: 1 1 auto; }
.payout .bar { margin-top: 12px; }

.payouts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.payouts li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 500 11px/1.4 var(--mono);
  color: #9db0c3;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.payouts code { color: #6f8599; }

/* ---- purchase history ---- */
.purchase-history { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); }
.purchase-history summary { color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.orders { list-style: none; margin: 11px 0 0; padding: 0; display: grid; gap: 6px; }
.orders li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #9db0c3;
}
.orders li b { font: 600 11.5px/1.3 var(--mono); color: var(--text); }

.hidden { display: none !important; }

.login-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  background: radial-gradient(circle at 50% 42%, rgba(36, 224, 182, .13), transparent 34%), #070c13;
  color: var(--text);
  animation: login-transition-in .22s ease-out both;
}
.login-transition[hidden] { display: none; }
.login-transition-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(36, 224, 182, .65);
  border-radius: 18px;
  color: var(--mint);
  font-size: 30px;
  box-shadow: 0 0 34px rgba(36, 224, 182, .2);
  animation: login-transition-pulse 1s ease-in-out infinite;
}
.login-transition-brand { font-size: 22px; font-weight: 800; letter-spacing: .08em; }
.login-transition-status { color: #8ea6bf; font: 12px/1.4 var(--mono); }
@keyframes login-transition-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes login-transition-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 46px rgba(36, 224, 182, .35); } }
@media (prefers-reduced-motion: reduce) {
  .login-transition, .login-transition-mark { animation: none; }
}

.toast.bad {
  border-color: rgba(255, 107, 107, 0.45);
  color: #ffd7d7;
  background: #170d10;
}

@media (max-width: 1240px) {
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .tiers { grid-template-columns: 1fr; }
  .modal-card { max-width: 100%; }
}


.support-card { grid-column: 1 / -1; }
.security-card { grid-column: 2 / -1; min-width: 0; scroll-margin-top: var(--nav-scroll-offset, 90px); }
.security-card .field { max-width: 520px; margin-block: 16px; }
.security-card p { max-width: 75ch; }
.security-card .maintenance-notice { display: inline-block; max-width: none; margin: 8px 0 12px; padding: 8px 12px; border: 1px solid rgba(245, 181, 66, .35); border-radius: 8px; color: #f5c76a; background: rgba(245, 181, 66, .08); font-size: 12px; }
.console-invites { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.console-invites .panel-label { margin: 0; }
.console-invites strong { color: var(--mint); font: 600 12px/1.3 var(--mono); }
.console-invites .link-btn { margin-left: auto; }
.referral-network-bottom { margin-top: 16px; }
.security-card a { color: var(--accent, #56dcb4); overflow-wrap: anywhere; }
.security-card pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: #101b2b; border-radius: 8px; }
@media (max-width: 760px) { .security-card { grid-column: 1 / -1; } }
.support-card textarea, .support-card select { width: 100%; font: inherit; color: inherit; background: #101b2b; border: 1px solid #304056; border-radius: 8px; padding: 10px; }
.support-card textarea { resize: vertical; }

/* Mobile navigation stays available while scrolling. */
.mobile-nav { display: none; }
#support { scroll-margin-top: var(--nav-scroll-offset, 90px); }
@media (max-width: 940px) {
  .workspace { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .workspace > .console { order: 1; }
  .workspace > .portfolio { order: 2; }
  .workspace > .menu { order: 3; }
  .workspace > .support-card { order: 4; }
  .mobile-nav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); background: rgba(8, 13, 20, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .28); }
  .mobile-nav .nav-item { min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 4px; padding: 5px 1px; border-radius: 8px; font-size: 10px; line-height: 1.1; text-align: center; }
  .mobile-icon { font-size: 18px; line-height: 1; }
  .mobile-nav .nav-item:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; }
  .nav .nav-item { min-height: 44px; }
  .support-card { min-width: 0; }
  .support-card textarea { min-height: 110px; }
  .staking-page, .referral-page, .chatbot-page { grid-column: 1 / -1; order: 1; }
  .staking-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#support-tickets { overflow-wrap: anywhere; }
#support-tickets p { white-space: pre-wrap; }
@media (max-width: 560px) {
  .topbar { padding: 10px 12px; }
  .topbar-user { gap: 6px; padding-left: 8px; }
  .verified { font-size: 10px; }
  .workspace { gap: 10px; padding: 10px 10px calc(88px + env(safe-area-inset-bottom)); }
  .login-art { padding: 22px 20px; }
  .login-art h1 { margin-top: 22px; }
  .login-art .art-features { margin-top: 20px; }
  .login-panel { padding: 24px 20px; }
  .field > input, .support-card textarea, .support-card select { font-size: 16px; }
  .payout-actions { flex-wrap: wrap; }
  .room-metrics { grid-template-columns: 1fr; }
  .staking-selected { align-items: flex-start; flex-direction: column; }
  .referral-summary { grid-template-columns: 1fr; }
  .referral-link-row { flex-direction: column; align-items: stretch; }
}

