/* Accept Crypto HERE — shared theme */
:root {
  --bg: #0a0d12;
  --bg-2: #0d1117;
  --panel: #11161f;
  --panel-2: #161c27;
  --border: #222b38;
  --border-2: #2d3848;
  --text: #e6edf3;
  --muted: #8b97a7;
  --accent: #f7931a;
  --accent-d: #d97e0a;
  --blue: #58a6ff;
  --success: #3fb950;
  --warn: #d4a72c;
  --danger: #f85149;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; } html { background: var(--bg); }
body {
  background: transparent;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.blue { color: var(--blue); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.brand b { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text);
  padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { border-color: #3a4658; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #0a1206; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-d); border-color: var(--accent-d); }

/* hero */
.hero { padding: 80px 0 40px; }
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 0 30px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }

.fee-banner {
  margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.fee-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px;
}
.fee-card .label { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.fee-card .num { font-size: 52px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; line-height: 1.1; }
.fee-card .num small { font-size: 26px; color: var(--text); }
.fee-card .desc { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* coins */
.coins { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0; }
.chip { border: 1px solid var(--border); background: var(--panel); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip .s { color: var(--muted); font-weight: 500; }

/* sections */
.section { padding: 50px 0; border-top: 1px solid var(--border); }
.section h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ic { font-size: 22px; margin-bottom: 10px; }

/* code */
.code {
  background: #0b0f16; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; overflow-x: auto; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px; color: #c9d4e3;
}
.code .k { color: var(--accent); }
.code .s { color: #7ee787; }
.code .c { color: var(--muted); }

/* footer */
.footer { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* panels / forms (dashboard + checkout) */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, select.input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  padding: 11px 13px; border-radius: 10px; font-size: 15px; font-family: inherit;
}
.input:focus { outline: none; border-color: var(--accent); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.result { margin-top: 16px; background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: 10px; padding: 14px; font-size: 14px; word-break: break-all; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }

/* badges / status */
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-2); }
.badge .d { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.badge.waiting { color: var(--warn); border-color: #4a3f1e; } .badge.waiting .d { background: var(--warn); animation: pulse 1.4s infinite; }
.badge.confirming { color: var(--blue); border-color: #1e3a5a; } .badge.confirming .d { background: var(--blue); animation: pulse 1.4s infinite; }
.badge.paid { color: var(--success); border-color: #1e4a2a; } .badge.paid .d { background: var(--success); }
.badge.expired { color: var(--danger); border-color: #5a1e1e; } .badge.expired .d { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* checkout */
.checkout-wrap { max-width: 460px; margin: 48px auto; }
.qr { background: #fff; padding: 14px; border-radius: 12px; width: max-content; margin: 18px auto; }
.amount-big { font-size: 34px; font-weight: 800; text-align: center; letter-spacing: -0.02em; }
.amount-big small { font-size: 18px; color: var(--muted); font-weight: 600; }
.copyrow { display: flex; gap: 8px; align-items: center; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.copyrow .val { flex: 1; font-family: ui-monospace, Menlo, monospace; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyrow button { background: var(--panel-2); border: 1px solid var(--border-2); color: var(--text); border-radius: 7px; padding: 6px 10px; cursor: pointer; font-size: 12px; }
.center { text-align: center; }
.countdown { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* steps (how it works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #0a1206; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* result feedback */
.result.ok { border-color: #1e4a2a; }
.result.err { border-color: #5a1e1e; color: #f0a0a0; }

/* dashboard banner */
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border: 1px solid var(--warn); color: var(--warn); background: rgba(212,167,44,0.08); }

/* balance metric cards */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metric { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.metric .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.metric .val { font-size: 22px; font-weight: 700; margin-top: 2px; }
.metric .val small { font-size: 13px; color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

/* checkout success */
.success { text-align: center; padding: 18px 0; }
.success .check { width: 76px; height: 76px; border-radius: 50%; background: rgba(63,185,80,0.12); border: 2px solid var(--success); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 14px; }
.success h3 { margin: 0 0 4px; font-size: 22px; }
.btn.copied { border-color: var(--success); color: var(--success); }

/* dashboard app shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--border); padding: 22px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.sidebar .brand { margin: 0 8px 16px; }
.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.snav a:hover { background: var(--panel); color: var(--text); }
.snav a.active { background: var(--panel-2); color: var(--accent); }
.sidebar .spacer { flex: 1; }
.acct { font-size: 12px; color: var(--muted); padding: 12px 8px 0; border-top: 1px solid var(--border); }
.acct .mono { display: block; margin-bottom: 6px; word-break: break-all; }
.main { padding: 24px 30px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.topbar h1 { font-size: 24px; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
.statuschip { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--muted); }
.statuschip .d { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.view { display: none; }
.view.active { display: block; }
.section-title { font-size: 15px; color: var(--muted); margin: 0 0 10px; font-weight: 600; }

/* table */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); }
.pill.paid { color: var(--success); border-color: #1e4a2a; }
.pill.confirming, .pill.partially_paid { color: var(--blue); border-color: #1e3a5a; }
.pill.new { color: var(--warn); border-color: #4a3f1e; }
.pill.expired { color: var(--danger); border-color: #5a1e1e; }
.link { color: var(--accent); cursor: pointer; }

@media (max-width: 820px) { .shell { grid-template-columns: 1fr; } .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; } .sidebar .spacer { display: none; } .acct { border: 0; padding-top: 0; } }

/* API docs */
.docs { display: grid; grid-template-columns: 210px 1fr; gap: 40px; align-items: start; padding: 36px 0; }
.docs-nav { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 1px; font-size: 14px; max-height: calc(100vh - 40px); overflow: auto; }
.docs-nav a { color: var(--muted); padding: 5px 9px; border-radius: 7px; }
.docs-nav a:hover { color: var(--text); background: var(--panel); }
.docs-nav .grp { color: var(--text); font-weight: 700; margin-top: 14px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; padding: 0 9px; }
.docs-body { min-width: 0; }
.docs-body h2 { scroll-margin-top: 16px; border-top: 1px solid var(--border); padding-top: 30px; margin-top: 40px; font-size: 26px; }
.docs-body h2.first { border-top: 0; padding-top: 0; margin-top: 0; }
.docs-body h3 { font-size: 16px; margin: 22px 0 6px; }
.docs-body p, .docs-body li { color: var(--muted); }
.docs-body code { background: #0b0f16; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 13px; color: #c9d4e3; }
.docs-body .code code { background: none; border: 0; padding: 0; }
.endpoint { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; flex-wrap: wrap; }
.method { font-family: ui-monospace, monospace; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 6px; }
.method.get { background: rgba(88,166,255,.15); color: var(--blue); }
.method.post { background: rgba(63,185,80,.15); color: var(--success); }
.method.put { background: rgba(212,167,44,.15); color: var(--warn); }
.method.hook { background: rgba(247,147,26,.13); color: var(--accent); }
.path { font-family: ui-monospace, monospace; font-size: 15px; color: var(--text); }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.dtable th, .dtable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.dtable th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.dtable td:first-child { font-family: ui-monospace, monospace; color: var(--accent); white-space: nowrap; }
@media (max-width: 820px) { .docs { grid-template-columns: 1fr; } .docs-nav { position: static; max-height: none; } }
@media (max-width: 760px) {
  .hero h1 { font-size: 40px; }
  .fee-banner, .grid, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
