/* ============================================================
   Merchant & admin console
   ============================================================ */
body.app-body { background: #060a14; }
.app-shell { display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  width: var(--sidebar); flex-shrink: 0; position: fixed; inset: 0 auto 0 0; z-index: 60;
  display: flex; flex-direction: column; background: #080d19; border-right: 1px solid var(--border);
  padding: 18px 14px; overflow-y: auto;
}
.sidebar .brand { padding: 4px 8px 20px; font-size: 1.04rem; }
.workspace {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border); margin-bottom: 18px;
}
.workspace .avatar { border-radius: 9px; }
.workspace .ws-name { font-size: .82rem; font-weight: 700; line-height: 1.2; }
.workspace .ws-plan { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.workspace .chev { margin-left: auto; color: var(--muted-2); }
.side-group { margin-bottom: 18px; }
.side-label { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: #526079; padding: 0 10px; margin-bottom: 6px; font-weight: 700; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: #9aa9c0; font-size: .82rem; font-weight: 500; margin-bottom: 2px;
  transition: background .13s, color .13s; position: relative;
}
.side-link svg { width: 17px; height: 17px; opacity: .85; flex-shrink: 0; }
.side-link:hover { background: rgba(255,255,255,.04); color: #e2e8f0; }
.side-link.active { background: rgba(124,108,255,.13); color: #d9d4ff; box-shadow: inset 0 0 0 1px rgba(124,108,255,.18); }
.side-link.active svg { color: #a5b4fc; opacity: 1; }
.side-link .count { margin-left: auto; font-size: .64rem; background: rgba(251,77,109,.16); color: #fb7185; padding: 1px 6px; border-radius: 99px; font-weight: 700; }
.side-link .soon { margin-left: auto; font-size: .56rem; color: #64748b; border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-foot { margin-top: auto; padding-top: 14px; }
.support-card { padding: 13px; border-radius: 11px; background: var(--gradient-soft); border: 1px solid rgba(124,108,255,.2); font-size: .74rem; }
.support-card b { display: block; font-size: .78rem; margin-bottom: 2px; }
.support-card p { color: #9aa9c0; margin-bottom: 9px; }
.side-user { display: flex; align-items: center; gap: 9px; padding: 10px 6px 0; margin-top: 10px; border-top: 1px solid var(--border); }
.side-user .name { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.side-user .role { font-size: .64rem; color: var(--muted-2); text-transform: capitalize; }
.side-user .out { margin-left: auto; }

/* ---------- main ---------- */
.app-main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 14px;
  padding: 0 26px; border-bottom: 1px solid var(--border);
  background: rgba(6,10,20,.82); backdrop-filter: blur(18px);
}
.topbar .menu-btn { display: none; }
.crumb { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.crumb b { color: var(--text); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.top-search {
  display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--muted);
  font-size: .78rem; min-width: 210px;
}
.top-search svg { width: 15px; height: 15px; }
.top-search .kbd { margin-left: auto; }
.top-search input { background: none; border: 0; outline: none; width: 100%; font-size: .78rem; color: var(--text); }
.notif-wrap, .user-wrap { position: relative; }
.notif-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #fb4d6d; border: 1.5px solid #060a14; }
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px; background: #0c1322;
  border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; z-index: 80;
}
.dropdown-head { padding: 13px 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dropdown-head b { font-size: .82rem; }
.dropdown-body { max-height: 340px; overflow-y: auto; }
.dropdown-item { padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.045); font-size: .78rem; }
.dropdown-item:last-child { border-bottom: 0; }
.dropdown-item .t { font-weight: 600; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.dropdown-item .m { color: var(--muted); font-size: .74rem; line-height: 1.45; }
.dropdown-item .when { color: var(--muted-2); font-size: .66rem; margin-top: 3px; }
.dropdown-item.unread { background: rgba(124,108,255,.045); }
.dropdown-foot { padding: 9px 15px; border-top: 1px solid var(--border); text-align: center; font-size: .72rem; }
.menu-list { display: grid; padding: 6px; width: 220px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: .79rem; color: #b6c2d6; background: none; border: 0; text-align: left; }
.menu-list a:hover, .menu-list button:hover { background: var(--panel-2); color: #fff; }
.menu-list svg { width: 15px; height: 15px; }
.menu-list .sep { height: 1px; background: var(--border); margin: 4px 0; }

.view { padding: 26px; max-width: 1440px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.5rem; letter-spacing: -.03em; }
.page-head .sub { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.page-tab { padding: 9px 2px; font-size: .82rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.page-tab.active { color: #fff; border-bottom-color: var(--brand); }
.page-tab:hover { color: #fff; }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
  padding: 17px; border-radius: 14px; background: var(--panel); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stat-label { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .7rem; color: var(--muted-2); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.stat-delta { font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.stat-delta.up { color: #4ade80; background: rgba(34,197,94,.1); }
.stat-delta.down { color: #fb7185; background: rgba(251,77,109,.1); }
.stat-icon { position: absolute; right: 13px; top: 13px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(124,108,255,.1); color: #a5b4fc; }
.stat-icon svg { width: 15px; height: 15px; }

/* ---------- charts ---------- */
.chart-card { padding: 18px 18px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.chart-head h3 { font-size: .92rem; }
.chart-head .sub { font-size: .72rem; color: var(--muted); }
.chart-legend { display: flex; gap: 12px; font-size: .68rem; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); display: inline-block; }
.bar-chart { position: relative; height: 210px; display: flex; align-items: flex-end; gap: 4px; padding: 8px 0 24px; }
.bar-chart::before {
  content: ""; position: absolute; inset: 8px 0 24px 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 100% 25%;
}
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; min-width: 0; }
.bar {
  width: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #8b7bff, rgba(124,108,255,.28));
  min-height: 2px; transition: filter .15s, transform .15s; position: relative;
}
.bar:hover { filter: brightness(1.25); }
.bar.highlight { background: linear-gradient(180deg, #22d3ee, rgba(34,211,238,.3)); }
.bar-x { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .6rem; color: var(--muted-2); white-space: nowrap; }
.bar-tip {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: #111a2d; border: 1px solid var(--border-strong); padding: 4px 8px; border-radius: 6px;
  font-size: .64rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 5;
}
.bar-col:hover .bar-tip { opacity: 1; }
.chart-foot { display: flex; justify-content: space-between; font-size: .68rem; color: var(--muted-2); border-top: 1px solid var(--border); padding-top: 10px; }

.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; position: relative; display: grid; place-items: center; }
.donut::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #0a1020; }
.donut .donut-center { position: relative; z-index: 1; text-align: center; }
.donut .donut-center b { display: block; font-size: 1.25rem; }
.donut .donut-center span { font-size: .6rem; color: var(--muted); }
.legend-list { display: grid; gap: 8px; font-size: .74rem; flex: 1; }
.legend-list li { display: flex; align-items: center; gap: 7px; }
.legend-list .swatch { width: 8px; height: 8px; border-radius: 2px; }
.legend-list .pct { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- dashboard layout ---------- */
.dash-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; margin-bottom: 18px; }
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.list-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.list-row:last-child { border-bottom: 0; }
.list-row .lr-main { min-width: 0; flex: 1; }
.list-row .lr-title { font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-sub { font-size: .68rem; color: var(--muted-2); margin-top: 1px; }
.list-row .lr-amount { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.list-row .lr-meta { font-size: .64rem; color: var(--muted-2); text-align: right; margin-top: 2px; }

.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-action { display: flex; flex-direction: column; gap: 7px; padding: 13px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.022); font-size: .74rem; font-weight: 600; color: #c3cee0; transition: border-color .15s, background .15s; }
.quick-action:hover { border-color: rgba(124,108,255,.4); background: rgba(124,108,255,.07); }
.quick-action svg { width: 17px; height: 17px; color: #a5b4fc; }
.quick-action span { font-weight: 400; font-size: .64rem; color: var(--muted-2); }

.quota { padding: 14px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.022); }
.quota .between { font-size: .72rem; margin-bottom: 8px; }
.quota .progress { height: 6px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 180px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--muted-2); pointer-events: none; }
.search .input { padding-left: 34px; }
.filter-select { width: auto; min-width: 120px; }
.toolbar .spacer { flex: 1; }

/* ---------- account / key cards ---------- */
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.account-card { padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.account-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; }
.provider-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #fff; flex-shrink: 0; }
.account-head .a-name { font-size: .86rem; font-weight: 700; }
.account-head .a-sub { font-size: .68rem; color: var(--muted-2); margin-top: 1px; }
.account-head .badge { margin-left: auto; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.06); font-size: .74rem; }
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--muted-2); }
.kv .v { font-weight: 600; text-align: right; word-break: break-all; }
.account-actions { display: flex; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.health-bar { display: flex; align-items: center; gap: 8px; font-size: .68rem; color: var(--muted-2); }
.health-bar .progress { flex: 1; height: 5px; }

.key-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.key-row:last-child { border-bottom: 0; }
.key-row .key-main { flex: 1; min-width: 0; }
.key-row .key-id { font-family: var(--mono); font-size: .76rem; overflow-wrap: anywhere; }
.key-row .key-sub { font-size: .66rem; color: var(--muted-2); margin-top: 2px; }

/* ---------- webhooks ---------- */
.webhook-row { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.webhook-row:last-child { border-bottom: 0; }
.webhook-url { font-family: var(--mono); font-size: .73rem; overflow-wrap: anywhere; flex: 1; min-width: 200px; }
.event-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.event-chip { font-size: .62rem; padding: 2px 7px; border-radius: 5px; background: rgba(34,211,238,.08); color: #67e8f9; border: 1px solid rgba(34,211,238,.15); font-family: var(--mono); }

/* ---------- billing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.plan-card { padding: 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); display: flex; flex-direction: column; position: relative; }
.plan-card.current { border-color: rgba(124,108,255,.5); background: linear-gradient(165deg, rgba(124,108,255,.1), rgba(255,255,255,.02)); }
.plan-card .pc-name { font-size: .84rem; font-weight: 700; }
.plan-card .pc-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; margin: 5px 0 3px; }
.plan-card .pc-price small { font-size: .64rem; font-weight: 500; color: var(--muted); }
.plan-card ul { display: grid; gap: 6px; margin: 12px 0 14px; font-size: .72rem; color: var(--muted); }
.plan-card li { display: flex; gap: 6px; }
.plan-card .tick { color: #4ade80; }
.plan-card .btn { margin-top: auto; }
.current-tag { position: absolute; top: 12px; right: 12px; font-size: .58rem; font-weight: 800; color: #c4b5fd; letter-spacing: .06em; }

/* ---------- settings / theme ---------- */
.settings-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px; align-items: start; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-swatch { border: 2px solid transparent; border-radius: 9px; padding: 0; overflow: hidden; background: none; }
.theme-swatch.active { border-color: #a5b4fc; }
.theme-swatch .sw { height: 42px; border-radius: 6px; }
.theme-swatch span { display: block; font-size: .6rem; color: var(--muted); padding: 4px 0 2px; text-align: center; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 14px; font-size: .76rem; }
.timeline-item::before { content: ""; position: absolute; left: -17px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #7c6cff; box-shadow: 0 0 0 3px rgba(124,108,255,.15); }
.timeline-item .t { font-weight: 600; }
.timeline-item .m { color: var(--muted); font-size: .7rem; margin-top: 1px; }
.timeline-item .w { color: var(--muted-2); font-size: .64rem; margin-top: 2px; }

/* ---------- public page / order detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.receipt { padding: 22px; text-align: center; border-radius: 14px; border: 1px solid var(--border); background: var(--panel); }
.receipt .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; margin: 8px 0 2px; }
.receipt .status { margin-bottom: 14px; }
.receipt .qr-small { width: 130px; height: 130px; margin: 14px auto; background: #fff; border-radius: 10px; padding: 8px; }

/* ---------- admin ---------- */
.admin-body .brand-mark { background: linear-gradient(120deg, #fb4d6d, #b06bff); box-shadow: 0 8px 24px rgba(251,77,109,.25); }
.admin-body .side-link.active { background: rgba(251,77,109,.1); color: #fecdd3; box-shadow: inset 0 0 0 1px rgba(251,77,109,.18); }
.admin-body .side-link.active svg { color: #fb7185; }
.admin-body .sidebar { background: #0b0913; }
.admin-body .stat-icon { background: rgba(251,77,109,.1); color: #fda4af; }
.admin-body .bar { background: linear-gradient(180deg, #fb7185, rgba(251,77,109,.25)); }
.admin-body .topbar { background: rgba(8,6,17,.85); }
.merchant-cell { display: flex; align-items: center; gap: 9px; }
.merchant-cell .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: .66rem; }
.merchant-cell .mn { font-weight: 600; font-size: .8rem; line-height: 1.2; }
.merchant-cell .me { font-size: .66rem; color: var(--muted-2); }

.quick-stats { display: flex; gap: 18px; flex-wrap: wrap; }
.quick-stat { font-size: .72rem; color: var(--muted); }
.quick-stat b { display: block; font-size: 1.05rem; color: var(--text); margin-top: 2px; font-weight: 700; }

.lab-steps { display: grid; gap: 13px; }
.lab-steps li { display: flex; gap: 10px; align-items: flex-start; }
.lab-steps li > span { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #6ee7b7; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.22); }
.lab-steps b { font-size: .78rem; display: block; }
.lab-steps p { font-size: .7rem; color: var(--muted); line-height: 1.55; margin-top: 2px; }

.kyc-banner { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; border: 1px solid rgba(245,158,11,.28); background: rgba(245,158,11,.06); font-size: .8rem; }
.kyc-banner .kb-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(245,158,11,.13); color: #fbbf24; flex-shrink: 0; }
.kyc-banner .kb-main { flex: 1; }
.kyc-banner b { font-size: .82rem; }
.kyc-banner p { color: #a89574; font-size: .73rem; margin-top: 1px; }
.announce-bar { padding: 10px 16px; border-radius: 10px; background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.2); color: #a5f3fc; font-size: .78rem; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }

.impersonation-bar { position: sticky; top: 0; z-index: 70; background: linear-gradient(90deg, #7c2d12, #9a3412); color: #fed7aa; font-size: .78rem; padding: 8px 18px; display: flex; align-items: center; gap: 12px; justify-content: center; }

/* ---------- docs ---------- */
.docs-body { background: #060a14; }
.docs-shell { display: flex; gap: 0; max-width: 1280px; margin: 0 auto; }
.docs-nav { width: 240px; flex-shrink: 0; padding: 100px 20px 40px 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--border); }
.docs-main { flex: 1; min-width: 0; padding: 100px 40px 80px; }
.docs-nav .side-label { margin-top: 16px; }
.docs-nav a { display: block; padding: 5px 8px; border-radius: 6px; font-size: .78rem; color: var(--muted); }
.docs-nav a:hover, .docs-nav a.active { color: #fff; background: var(--panel-2); }
.docs-main h1 { font-size: 2rem; margin-bottom: 10px; }
.docs-main h2 { font-size: 1.25rem; margin: 42px 0 12px; padding-top: 22px; border-top: 1px solid var(--border); }
.docs-main h3 { font-size: .98rem; margin: 24px 0 8px; }
.docs-main p { color: #9aa9c0; font-size: .87rem; margin: 10px 0; line-height: 1.7; }
.docs-main ul { margin: 10px 0; padding-left: 20px; list-style: disc; font-size: .85rem; color: #9aa9c0; display: grid; gap: 6px; }
.docs-main code { background: rgba(255,255,255,.06); padding: 1px 5px; border-radius: 4px; color: #c4b5fd; }
.docs-main pre { background: #070c18; border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; margin: 14px 0; color: #9fb0c9; font-size: .76rem; line-height: 1.7; }
.docs-main pre code { background: none; padding: 0; color: inherit; }
.docs-main pre { position: relative; }
.copy-code {
  position: absolute; top: 8px; right: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,.05); color: var(--muted); font-size: .64rem; font-weight: 600;
  padding: 3px 8px; border-radius: 6px; cursor: pointer; font-family: var(--font);
}
.copy-code:hover { color: #fff; border-color: var(--border-strong); }
.endpoint { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.025); font-family: var(--mono); font-size: .78rem; margin: 12px 0; flex-wrap: wrap; }
.method { font-size: .62rem; font-weight: 800; padding: 3px 7px; border-radius: 5px; background: rgba(34,197,94,.14); color: #4ade80; }
.method.post { background: rgba(34,211,238,.12); color: #67e8f9; }
.docs-table { width: 100%; border-collapse: collapse; font-size: .78rem; margin: 14px 0; }
.docs-table th, .docs-table td { text-align: left; padding: 9px 11px; border: 1px solid var(--border); vertical-align: top; }
.docs-table th { background: rgba(255,255,255,.03); color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.docs-table td { color: #9aa9c0; }
.docs-table code { color: #c4b5fd; }
.callout { padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(245,158,11,.25); background: rgba(245,158,11,.06); font-size: .8rem; color: #d6b98c; margin: 16px 0; }
.callout.info { border-color: rgba(34,211,238,.22); background: rgba(34,211,238,.05); color: #9dd9e5; }
.docs-toc { position: sticky; top: 90px; width: 190px; flex-shrink: 0; padding: 100px 20px 0 0; display: none; }

/* ---------- spinner ---------- */
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { padding: 60px 20px; text-align: center; color: var(--muted); font-size: .84rem; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .app-main { margin-left: 0; }
  .topbar .menu-btn { display: inline-grid; }
  .view { padding: 18px; }
  .settings-grid, .detail-grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .top-search { display: none; }
  .docs-nav { display: none; }
  .docs-main { padding: 92px 20px 60px; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; }
}
@media (max-width: 700px) {
  .stat-grid, .plan-grid { grid-template-columns: 1fr 1fr; }
  .page-head h1 { font-size: 1.25rem; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 16px; }
  .quick-actions { grid-template-columns: 1fr; }
  .dropdown { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; }
}
@media (max-width: 460px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar-right .btn span.lbl { display: none; }
}
