/* Ready2Go Servers console layout — builds on console.css */
body { padding-left: 264px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 5000; padding: 10px 14px; border-radius: 10px; background: var(--amber); color: #0a0b10; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.small { font-size: 13px; line-height: 1.5; }

/* ---------- Sidebar ---------- */
.sb {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px 16px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.035), transparent 30%), var(--bg-2);
  overflow-y: auto;
}
.sb-brand { padding: 0 8px; }
.sb-balance {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.sb-balance-lbl { font: 600 11.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.sb-balance-val { font: 700 26px var(--mono); letter-spacing: -0.03em; margin-bottom: 10px; color: #fff; font-variant-numeric: tabular-nums; }
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.sb-nav a svg { width: 18px; height: 18px; }
.sb-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.sb-nav a.is-active { color: #fff; background: rgba(250, 204, 21, 0.09); }
.sb-nav a.is-active::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--amber); }
.sb-nav a.is-active svg { color: var(--amber); }
.sb-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 700 11px var(--mono); color: var(--muted); background: rgba(255, 255, 255, 0.07); }
.sb-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.sb-deploy { margin-top: 2px; }
.sb-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.sb-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #0a0b10; background: linear-gradient(135deg, var(--amber), #f59e0b); }
.sb-user-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.sb-user-meta strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-meta span { font-size: 12px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 12px 32px;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar-brand { display: none; }
.topbar-title { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; flex: 1; min-width: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-balance { display: none; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--amber-line); background: var(--amber-soft); font: 700 13px var(--mono); color: #fff; cursor: pointer; }
.topbar-balance svg { width: 14px; height: 14px; color: var(--amber); }
.topbar-currency .select { min-height: 36px; width: 104px; font-size: 13px; border-radius: 10px; padding-left: 12px; }

/* ---------- Banners ---------- */
.banner { display: flex; align-items: center; gap: 12px; margin: 16px 32px 0; padding: 12px 16px; border-radius: 14px; font-size: 14px; border: 1px solid; }
.banner > svg { width: 18px; height: 18px; flex-shrink: 0; }
.banner > span:not(.spinner), .banner > div { flex: 1; min-width: 0; }
.banner-warn { background: var(--amber-soft); border-color: var(--amber-line); color: #fef08a; }
.banner-pay { background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.3); color: #dbeafe; }
.banner-pay .spinner { color: var(--blue); flex-shrink: 0; }
.banner-pay div { display: flex; flex-direction: column; }
.banner-pay div span { font-size: 13px; color: #bfdbfe; opacity: 0.85; }
.banner-pay.is-ok { background: var(--green-soft); border-color: rgba(34, 197, 94, 0.3); color: #dcfce7; }
.banner-pay.is-bad { background: var(--red-soft); border-color: rgba(244, 63, 94, 0.3); color: #ffe4e6; }

/* ---------- Main ---------- */
.main { padding: 26px 32px 64px; max-width: 1240px; outline: none; }
.view { display: flex; flex-direction: column; gap: 22px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.sec-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.sec-head-tight { margin-top: 0; }
.sec-actions { display: flex; gap: 8px; }
.card { padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-title { font-size: 17px; font-weight: 800; }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row-wrap { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi { padding: 18px 18px 16px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-lbl { display: inline-flex; align-items: center; gap: 7px; font: 600 11.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.kpi-lbl svg { width: 14px; height: 14px; color: var(--amber); }
.kpi-val { font: 700 24px var(--mono); letter-spacing: -0.03em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }

.welcome { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(110deg, rgba(250, 204, 21, 0.12), rgba(255, 255, 255, 0.02) 60%); border: 1px solid var(--amber-line); }
.welcome > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.welcome strong { font-size: 15px; }
.welcome span { font-size: 13.5px; color: var(--muted); }
.welcome-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; color: var(--amber); background: rgba(250, 204, 21, 0.14); }
.welcome-ico svg { width: 20px; height: 20px; }

/* ---------- Servers ---------- */
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 14px; }
.srv { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); text-align: left; cursor: pointer; transition: border-color 0.2s, transform 0.3s var(--spring); color: inherit; font: inherit; }
.srv:hover { border-color: var(--line-2); transform: translateY(-2px); }
.srv-skel { min-height: 196px; cursor: default; border: 0; }
.srv-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.srv-top .badge { flex-shrink: 0; }
.srv-ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); border: 1px solid var(--line); }
.srv-ico svg { width: 19px; height: 19px; }
.srv.is-running .srv-ico { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.srv-name { flex: 1; min-width: 0; }
.srv-name strong { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-name span { font-size: 12.5px; color: var(--dim); }
.srv-ip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.srv-ip code { font: 600 14px var(--mono); color: #fff; }
.srv-ip .btn { min-height: 28px; width: 28px; }
.srv-ip .btn svg { width: 14px; height: 14px; }
.srv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.srv-meta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srv-meta span { font: 600 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.srv-meta b { font: 600 13px var(--mono); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-days { display: flex; flex-direction: column; gap: 6px; }
.srv-days-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.srv-days-row b { font-family: var(--mono); color: var(--text); }
.srv.is-expiring .srv-days-row b { color: #fdba74; }
.srv.is-expired .srv-days-row b { color: #fda4af; }
.meter-sm, .meter-lg { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter-lg { height: 8px; border-radius: 4px; }
.meter-sm i, .meter-lg i { display: block; height: 100%; border-radius: inherit; background: var(--amber); width: 0; transition: width 0.8s var(--ease); }
.srv.is-expiring .meter-sm i { background: #fb923c; }
.srv.is-expired .meter-sm i { background: var(--red); }
.empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 52px 24px; border-radius: 22px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, 0.015); }
.empty-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); margin-bottom: 6px; }
.empty-ico svg { width: 26px; height: 26px; }
.empty h3 { font-size: 18px; }
.empty p { max-width: 420px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }

/* ---------- Billing ---------- */
.bill-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.bill-hero { padding: 22px; border-radius: 20px; background: radial-gradient(90% 120% at 0% 0%, rgba(250, 204, 21, 0.12), transparent 60%), var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.bill-hero-val { font: 700 clamp(32px, 4vw, 42px) var(--mono); letter-spacing: -0.04em; color: #fff; }
.bill-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.promo { padding: 22px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.promo p { font-size: 13.5px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; min-width: 0; }
.pending { display: flex; flex-direction: column; gap: 8px; }
.pending-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(96, 165, 250, 0.06); border: 1px solid rgba(96, 165, 250, 0.22); font-size: 14px; flex-wrap: wrap; }
.pending-item > svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.pending-item > div { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.pending-item small { color: var(--dim); font-family: var(--mono); font-size: 11.5px; }

.ledger { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.tx { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-3); color: var(--muted); }
.tx-ico svg { width: 17px; height: 17px; }
.tx.is-in .tx-ico { color: var(--green); background: var(--green-soft); }
.tx.is-out .tx-ico { color: var(--amber); background: var(--amber-soft); }
.tx.is-failed .tx-ico { color: var(--red); background: var(--red-soft); }
.tx-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tx-main strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-main span { font-size: 12px; color: var(--dim); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-amt { font: 700 14.5px var(--mono); text-align: right; white-space: nowrap; }
.tx.is-in .tx-amt { color: #86efac; }
.tx.is-failed .tx-amt, .tx.is-pending .tx-amt { color: var(--dim); text-decoration: none; }
.tx-side { display: flex; align-items: center; gap: 6px; justify-content: flex-end; min-width: 110px; }
.ledger-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; display: flex; justify-content: center; }

/* ---------- Referrals ---------- */
.ref-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: end; padding: 26px; border-radius: 22px; background: radial-gradient(80% 140% at 0% 0%, rgba(250, 204, 21, 0.13), transparent 60%), var(--panel); border: 1px solid var(--line); }
.ref-hero h2 { margin: 10px 0 8px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.ref-link { display: flex; flex-direction: column; gap: 8px; }

/* ---------- API keys ---------- */
.keys { display: flex; flex-direction: column; gap: 8px; }
.key { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.key > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.key strong { font-size: 14px; }
.key code { font: 500 12.5px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code { margin: 0; padding: 16px; border-radius: 14px; background: #06070a; border: 1px solid var(--line); font: 500 12.5px/1.7 var(--mono); color: var(--text); white-space: pre-wrap; word-break: break-all; }
.c-dim { color: var(--dim); }
.c-amber { color: var(--amber); }

/* ---------- Support ---------- */
.tg-card { background: radial-gradient(100% 100% at 100% 0%, rgba(250, 204, 21, 0.1), transparent 60%), var(--panel); }
.tg-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); }
.tg-ico svg { width: 22px; height: 22px; }
.help-id { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); font-size: 13px; color: var(--muted); }
.help-id b { color: var(--amber); }
.tickets { display: flex; flex-direction: column; gap: 10px; }
.ticket { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.ticket-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ticket-top strong { font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket p { font-size: 14px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.ticket-reply { padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); border-left: 3px solid var(--amber); font-size: 14px; color: #fef9c3; white-space: pre-wrap; word-break: break-word; }
.ticket-reply b { display: block; font-size: 12px; color: var(--amber); margin-bottom: 4px; }
.ticket small { font: 500 12px var(--mono); color: var(--dim); }

/* ---------- Dialog bits ---------- */
.dialog-form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.methods { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.methods legend { margin-bottom: 8px; }
.method { position: relative; cursor: pointer; }
.method input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.method > span { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.025); transition: border-color 0.2s, background 0.2s; height: 100%; }
.method svg { width: 18px; height: 18px; color: var(--amber); margin-bottom: 4px; }
.method b { font-size: 14px; }
.method small { font-size: 12px; color: var(--dim); }
.method input:checked + span { border-color: var(--amber); background: var(--amber-soft); }
.method input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.method input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.presets button { min-height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font: 600 13.5px var(--mono); color: var(--text); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.presets button:hover { border-color: rgba(255, 255, 255, 0.25); }
.presets button[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-soft); color: #fff; }
.amount-wrap { margin-top: 4px; }
.amount-input { -moz-appearance: textfield; }
.amount-input::-webkit-outer-spin-button, .amount-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input { min-height: 56px; font: 700 22px var(--mono); padding-right: 46px; }
.amount-cur { position: absolute; right: 16px; font: 700 18px var(--mono); color: var(--dim); pointer-events: none; }

.srv-head { align-items: center; }
.srv-head-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); flex-shrink: 0; }
.srv-head-ico svg { width: 18px; height: 18px; }
.srv-head-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.srv-head-meta h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv-head-meta span { font-size: 12.5px; }
.tabs { display: flex; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.tabs button svg { width: 15px; height: 15px; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--amber); }
.tabs button[aria-selected="true"] svg { color: var(--amber); }
.srv-body { min-height: 320px; }
.tabpane { display: flex; flex-direction: column; gap: 14px; }
.power { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.power-lbl { font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.power-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.cred { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.cred-lbl { font: 600 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.cred-val { font: 600 14px var(--mono); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 2; }
.cred > .btn:last-child:nth-child(3) { grid-column: 4; }
.cred-val.is-secret { letter-spacing: 0.1em; color: var(--muted); }
.more-box { border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.more-box summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.more-box summary::-webkit-details-marker { display: none; }
.more-box summary svg { width: 16px; height: 16px; color: var(--dim); transition: transform 0.3s var(--spring); }
.more-box[open] summary svg { transform: rotate(180deg); }
.more-box-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.renew { padding: 18px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.renew-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.renew-date { display: block; font: 700 22px var(--mono); margin-top: 4px; }
.renew-days { text-align: right; display: flex; flex-direction: column; }
.renew-days b { font: 700 28px var(--mono); color: var(--amber); line-height: 1; }
.renew-days span { font-size: 12.5px; color: var(--muted); }
.renew-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--amber-line); background: var(--amber-soft); }
.renew-cta > div { display: flex; flex-direction: column; }
.apps { display: flex; flex-direction: column; gap: 10px; }
.app { padding: 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.app-top { display: flex; align-items: center; gap: 10px; }
.app-top svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; }
.app-top strong { flex: 1; font-size: 14px; }
.app code { display: block; padding: 10px 12px; border-radius: 10px; background: #06070a; font: 500 12px/1.6 var(--mono); color: #fde68a; white-space: pre-wrap; word-break: break-all; max-height: 96px; overflow: auto; }
.app small { font-size: 12.5px; color: var(--dim); }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.05); }
.danger-zone > div { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.more-list { gap: 4px; }
.more-list a, .more-list button { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 0; background: none; font-size: 15.5px; font-weight: 600; text-decoration: none; color: var(--text); cursor: pointer; text-align: left; }
.more-list a:hover, .more-list button:hover { background: rgba(255, 255, 255, 0.05); }
.more-list svg { width: 20px; height: 20px; color: var(--muted); }
.more-danger, .more-danger svg { color: #fda4af !important; }

/* ---------- Bottom nav (mobile) ---------- */
.bnav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .bill-top, .ref-hero { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { padding-left: 0; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .sb { display: none; }
  .topbar { padding: 10px 16px; min-height: 60px; gap: 10px; }
  .topbar-brand { display: inline-flex; font-size: 15px; }
  .topbar-brand img { width: 24px; height: 24px; }
  .topbar-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .topbar-actions { margin-left: auto; gap: 6px; }
  .topbar-balance { display: inline-flex; }
  .topbar-currency, .topbar .seg { display: none; }
  .banner { margin: 12px 16px 0; flex-wrap: wrap; }
  .main { padding: 18px 16px 40px; }
  .view { gap: 18px; }
  .kpi { padding: 14px; }
  .kpi-val { font-size: 19px; }
  .servers { grid-template-columns: 1fr; }
  .tx { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .tx-side { grid-column: 2 / -1; justify-content: flex-start; min-width: 0; }
  .methods { grid-template-columns: 1fr; }
  .method > span { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; }
  .method svg { margin: 0; }
  .method small { margin-left: auto; }
  .cred { grid-template-columns: minmax(0, 1fr) auto auto; }
  .cred-lbl { grid-column: 1 / -1; }
  .cred-val { grid-column: 1; }
  .welcome { flex-wrap: wrap; }
  .welcome .btn { width: 100%; }
  .bnav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(11, 12, 18, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .bnav a, .bnav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px;
    border: 0; background: none;
    font-size: 11px; font-weight: 600;
    color: var(--dim);
    text-decoration: none;
    cursor: pointer;
    border-radius: 12px;
  }
  .bnav svg { width: 21px; height: 21px; }
  .bnav a.is-active { color: #fff; }
  .bnav a.is-active svg { color: var(--amber); }
  .bnav .bnav-cta { justify-self: center; width: 52px; min-height: 52px; height: 52px; border-radius: 17px; background: var(--amber); color: #0a0b10; box-shadow: 0 8px 22px rgba(250, 204, 21, 0.3); }
  .bnav .bnav-cta svg { width: 24px; height: 24px; color: #0a0b10; }
}
@media (max-width: 420px) {
  .kpis { gap: 10px; }
  .kpi-val { font-size: 17px; }
  .srv-meta { grid-template-columns: 1fr 1fr; }
  .srv-meta div:nth-child(3) { display: none; }
}

/* Servers that no longer exist upstream */
.srv.is-dead { opacity: 0.78; }
.srv.is-dead .srv-ico { color: #fda4af; background: var(--red-soft); border-color: rgba(244, 63, 94, 0.25); }
.srv-note { font-size: 13px; line-height: 1.5; color: #fecdd3; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); border: 1px solid rgba(244, 63, 94, 0.25); }
#srv-note { align-items: center; flex-wrap: wrap; }
#srv-note > span { flex: 1; min-width: 200px; }

/* Delete account dialog */
.del-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.del-check input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }

/* GPU servers */
.gpu-block { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.gpu-block .srv { cursor: default; }
.gpu-block .srv-ip code { font-size: 13px; overflow-wrap: anywhere; }
.gpu-act { display: flex; gap: 8px; align-items: center; }
.gpu-act .select { flex: 1; min-width: 0; min-height: 36px; }
