/* ============================================================
   TG 能量租赁 · dark UI
   ============================================================ */
:root {
  --bg: #04060d;
  --bg-2: #070c18;
  --panel: rgba(11, 18, 34, 0.82);
  --panel-solid: #0b1222;
  --panel-soft: rgba(16, 26, 48, 0.66);
  --line: rgba(118, 158, 255, 0.14);
  --line-strong: rgba(118, 158, 255, 0.3);
  --text: #e9f0ff;
  --muted: #93a3c4;
  --dim: #61718f;
  --brand: #4f8bff;
  --brand-2: #2ee6c5;
  --brand-soft: rgba(79, 139, 255, 0.14);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, 0.12);
  --amber: #ffc65c;
  --amber-soft: rgba(255, 198, 92, 0.12);
  --red: #ff6b7a;
  --red-soft: rgba(255, 107, 122, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(79, 139, 255, 0.35); }

/* ---------------- background ---------------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(54, 108, 255, 0.28), transparent 60%),
    radial-gradient(760px 520px at 88% 4%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(620px 420px at 60% 46%, rgba(124, 58, 237, 0.12), transparent 65%),
    linear-gradient(180deg, #05070f 0%, #04060d 45%, #050811 100%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  opacity: 0.55;
  pointer-events: none;
}

/* ---------------- demo banner ---------------- */
.demo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: #ffe3a3;
  background: linear-gradient(90deg, rgba(255, 198, 92, 0.08), rgba(255, 198, 92, 0.16), rgba(255, 198, 92, 0.08));
  border-bottom: 1px solid rgba(255, 198, 92, 0.2);
  text-align: center;
}
.demo-banner.warn { color: #ffb9c1; background: rgba(255, 107, 122, 0.1); border-color: rgba(255, 107, 122, 0.24); }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

/* ---------------- layout ---------------- */
.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(1240px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.2px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #04101f;
  background: linear-gradient(135deg, #6cb8ff, #2ee6c5);
  box-shadow: 0 6px 20px rgba(46, 230, 197, 0.3);
}
.brand-mark.small { width: 26px; height: 26px; border-radius: 8px; }
.brand-name { font-size: 15.5px; }
.topnav { display: flex; gap: 4px; margin-left: 6px; }
.topnav a {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  transition: 0.18s;
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.net-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------------- buttons ---------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  color: #03101f;
  background: linear-gradient(135deg, #77b8ff 0%, #4f8bff 42%, #2ee6c5 100%);
  box-shadow: 0 10px 32px rgba(79, 139, 255, 0.32);
}
.btn.primary:hover { box-shadow: 0 14px 40px rgba(46, 230, 197, 0.36); filter: brightness(1.04); }
.btn.primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.07); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn.lg { padding: 14px 30px; font-size: 15px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn.link-btn { background: none; border: none; color: var(--muted); font-size: 13px; padding: 8px; }
.btn.link-btn:hover { color: var(--text); }
.link {
  background: none;
  border: none;
  padding: 0;
  color: #7db4ff;
  font-size: 13px;
  cursor: pointer;
}
.link:hover { color: #a9cdff; text-decoration: underline; }

/* ---------------- hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 52px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(46, 230, 197, 0.24);
  border-radius: 999px;
  background: rgba(46, 230, 197, 0.07);
  color: #9ff5e6;
  font-size: 12px;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(100deg, #8cc4ff 0%, #4f8bff 42%, #2ee6c5 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 560px; margin-top: 20px; color: var(--muted); font-size: 15.5px; line-height: 1.8; }
.hero-sub b { color: #9fe9dc; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--muted); font-size: 13.5px; }
.hero-points span { color: var(--green); margin-right: 5px; }

.hero-stats { display: grid; gap: 14px; }
.stat-card {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(17, 28, 52, 0.86), rgba(9, 15, 30, 0.82));
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 139, 255, 0.28), transparent 70%);
}
.stat-label { color: var(--muted); font-size: 12.5px; letter-spacing: 0.4px; }
.stat-value {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.stat-foot { color: var(--dim); font-size: 11.5px; }

/* ---------------- panels ---------------- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(14, 23, 43, 0.86), rgba(8, 13, 26, 0.9));
  box-shadow: var(--shadow);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 0;
}
.panel-head h2 { font-size: 20px; letter-spacing: -0.3px; }
.panel-sub { margin-top: 3px; color: var(--dim); font-size: 12.5px; }
.head-actions { display: flex; gap: 10px; }

/* ---------------- rental ---------------- */
.rental-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 20px;
  align-items: start;
}
.form-panel { padding-bottom: 24px; }
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(4, 8, 18, 0.6);
}
.tab {
  padding: 7px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  transition: 0.18s;
}
.tab.active { color: var(--text); background: rgba(79, 139, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(79, 139, 255, 0.22); }
.tab-pane { padding: 22px 24px 0; }
.tab-pane.hidden, .hidden { display: none !important; }

.field { margin-bottom: 22px; }
.field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.field-label label { font-size: 13.5px; font-weight: 600; color: #cdd9f2; }
.hint { color: var(--dim); font-size: 11.5px; }

.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 9, 18, 0.7);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input-wrap:focus-within { border-color: rgba(79, 139, 255, 0.55); box-shadow: 0 0 0 3px rgba(79, 139, 255, 0.12); }
.input-wrap.compact { height: 46px; margin-top: 10px; }
.input-icon { display: grid; place-items: center; color: #7fa9e8; flex: none; }
.input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14.5px;
  letter-spacing: 0.2px;
}
.input-wrap input::placeholder { color: #4d5e7c; font-family: var(--font); letter-spacing: 0; }
.input-wrap input[type="number"] { -moz-appearance: textfield; }
.input-wrap input[type="number"]::-webkit-outer-spin-button,
.input-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.suffix { color: var(--dim); font-size: 12.5px; }
.wallet-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
}

.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: 0.16s;
}
.chip:hover, .chip.active {
  color: #bfe0ff;
  border-color: rgba(79, 139, 255, 0.5);
  background: rgba(79, 139, 255, 0.12);
}

.segmented { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.seg {
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: 0.16s;
}
.seg:hover { border-color: var(--line-strong); color: var(--text); }
.seg.active {
  color: #cfe8ff;
  border-color: rgba(79, 139, 255, 0.55);
  background: linear-gradient(180deg, rgba(79, 139, 255, 0.2), rgba(46, 230, 197, 0.08));
  box-shadow: inset 0 0 0 1px rgba(79, 139, 255, 0.2);
}

.quote-box {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  margin: 4px 0 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(5, 9, 18, 0.45);
}
.quote-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.quote-row b { color: #d9e6ff; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.quote-row b.muted { color: var(--dim); }

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.total small { display: block; width: 100%; color: var(--dim); font-size: 11.5px; }
.total strong {
  font-family: var(--mono);
  font-size: 28px;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #d7e9ff, #8cc4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.save-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
}
.fine-print { margin-top: 12px; color: var(--dim); font-size: 11.5px; line-height: 1.65; }

.coming { padding: 26px 4px 34px; text-align: center; }
.coming-icon { font-size: 40px; }
.coming h3 { margin: 10px 0 8px; font-size: 18px; }
.coming p { max-width: 480px; margin: 0 auto 10px; color: var(--muted); font-size: 13.5px; }
.coming .muted { color: var(--dim); }
.coming .btn { margin-top: 10px; }

/* ---------------- side column ---------------- */
.side-col { display: grid; gap: 16px; }
.side-panel { padding: 20px 22px; }
.side-panel h3 { margin-bottom: 14px; font-size: 15px; }
.feature-list { display: grid; gap: 15px; }
.feature { display: flex; gap: 12px; }
.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 14px;
}
.feature-icon.cyan { background: rgba(46, 230, 197, 0.12); color: var(--brand-2); }
.feature-icon.blue { background: rgba(79, 139, 255, 0.14); color: #7db4ff; }
.feature-icon.violet { background: rgba(167, 139, 250, 0.14); color: #b39dff; }
.feature b { display: block; font-size: 13.5px; }
.feature p { margin-top: 2px; color: var(--dim); font-size: 12px; line-height: 1.6; }

.tip-panel .tip-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.tip-panel .tip-row:last-of-type { border-bottom: none; }
.tip-panel .tip-row b { color: #cfe3ff; font-family: var(--mono); font-size: 13px; }
.tip-panel .tip-row span { color: var(--dim); font-size: 12px; }

.support-panel .support-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s infinite; }
.support-panel p { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------------- records ---------------- */
.records-panel { margin-top: 22px; padding-bottom: 10px; }
.table-wrap { overflow-x: auto; padding: 16px 10px 6px; }
.records-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 920px; }
.records-table th {
  padding: 10px 12px;
  color: var(--dim);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.records-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(118, 158, 255, 0.07);
  color: #c6d3ea;
  white-space: nowrap;
}
.records-table tbody tr { transition: background 0.15s; }
.records-table tbody tr:hover { background: rgba(79, 139, 255, 0.05); }
.records-table td.addr { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.records-table .empty { padding: 34px; text-align: center; color: var(--dim); }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.ok { color: var(--green); background: var(--green-soft); }
.status-chip.warn { color: var(--amber); background: var(--amber-soft); }
.status-chip.err { color: var(--red); background: var(--red-soft); }
.status-chip.info { color: #8cc4ff; background: var(--brand-soft); }
.status-chip.dim { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.tx-link { color: #7db4ff; }
.tx-link:hover { text-decoration: underline; }

/* ---------------- faq ---------------- */
.faq { margin-top: 64px; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.5px; }
.section-head p { margin-top: 6px; color: var(--dim); font-size: 13.5px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-item {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(10, 17, 32, 0.6);
  transition: border-color 0.18s, background 0.18s;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--dim); font-size: 17px; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }

/* ---------------- footer ---------------- */
.footer { margin-top: 74px; border-top: 1px solid var(--line); background: rgba(4, 7, 14, 0.6); }
.footer-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 34px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 14px; }
.footer-note { margin-top: 10px; color: var(--dim); font-size: 12px; }
.footer-copy { margin-top: 6px; color: #46536d; font-size: 11.5px; }

/* ---------------- modal ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 5, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}
.modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 28px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(165deg, #0c1528, #070c18 70%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  animation: slideUp 0.24s ease;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; padding-right: 30px; }
.modal-eyebrow { color: var(--dim); font-size: 11.5px; letter-spacing: 0.5px; }
.modal-eyebrow b { color: var(--muted); font-family: var(--mono); letter-spacing: 2px; }
.modal-head h3 { margin-top: 3px; font-size: 21px; }

.pay-grid { display: grid; grid-template-columns: 1fr 190px; gap: 24px; align-items: start; }
.pay-grid.no-qr { grid-template-columns: 1fr; }
.pay-field { margin-bottom: 16px; }
.pay-field > span { display: block; margin-bottom: 5px; color: var(--dim); font-size: 11.5px; }
.copy-row { display: flex; align-items: center; gap: 10px; }
.copy-row code, .copy-row .pay-amount { overflow: hidden; text-overflow: ellipsis; }
.copy-row code { font-family: var(--mono); font-size: 12.5px; color: #cfe0ff; }
.pay-amount {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffe9b3, #ffc65c 55%, #2ee6c5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.copy-btn {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 198, 92, 0.2);
  border-radius: 10px;
  background: rgba(255, 198, 92, 0.06);
  font-size: 12px;
  color: var(--muted);
}
.countdown b { font-family: var(--mono); font-size: 16px; color: var(--amber); }
.countdown.expired b { color: var(--red); }
.pay-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #0b1222;
  font-size: 11.5px;
  font-weight: 600;
}
.qr-frame { width: 150px; height: 150px; }
.qr-frame svg { width: 100%; height: 100%; display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dim);
  font-size: 12px;
}
.step i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-style: normal;
  font-size: 10.5px;
}
.step.active { color: #bfe0ff; border-color: rgba(79, 139, 255, 0.4); background: rgba(79, 139, 255, 0.08); }
.step.done { color: var(--green); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.07); }
.step.done i { background: rgba(61, 220, 151, 0.2); }

.modal-success { padding: 18px 4px 6px; text-align: center; }
.success-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 28px;
  box-shadow: 0 0 40px rgba(61, 220, 151, 0.25);
}
.modal-success h3 { font-size: 21px; }
.modal-success p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.success-meta { display: grid; gap: 7px; max-width: 420px; margin: 20px auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 9, 18, 0.5); text-align: left; font-size: 12px; }
.success-meta div { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); }
.success-meta b { color: #d7e6ff; font-family: var(--mono); font-weight: 600; }
.modal-fail { padding: 18px 4px 6px; text-align: center; }
.fail-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-size: 26px;
  font-weight: 700;
}
.modal-fail p { margin: 8px auto 18px; max-width: 420px; color: var(--muted); font-size: 13px; }

/* ---------------- toast ---------------- */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast {
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(12, 21, 40, 0.96);
  color: #dbe7ff;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.22s ease;
}
.toast.err { border-color: rgba(255, 107, 122, 0.4); color: #ffc2c8; }
.toast.ok { border-color: rgba(61, 220, 151, 0.35); color: #b6f5d9; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .rental-grid { grid-template-columns: 1fr; }
  .side-col { grid-template-columns: 1fr 1fr; }
  .support-panel { grid-column: span 2; }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 28px); }
  .topbar { gap: 10px; }
  .topnav { display: none; }
  .net-pill { display: none; }
  .hero { padding: 34px 0; }
  .hero h1 { letter-spacing: -0.8px; }
  .hero-points { gap: 12px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-value { font-size: 23px; }
  .panel-head { padding: 18px 18px 0; flex-direction: column; }
  .tab-pane { padding: 18px 18px 0; }
  .segmented { grid-template-columns: repeat(3, 1fr); }
  .pay-row { flex-direction: column; align-items: stretch; }
  .pay-row .btn { width: 100%; }
  .side-col { grid-template-columns: 1fr; }
  .support-panel { grid-column: auto; }
  .faq-grid { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
  .qr-panel { order: -1; width: fit-content; margin: 0 auto; }
  .qr-frame { width: 128px; height: 128px; }
  .steps { grid-template-columns: 1fr; }
  .modal { padding: 22px 18px; }
  .pay-amount { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
