/* ====== teaseit design system — trustworthy light-blue + slate gray ====== */
:root {
  --bg: #f5f7fa;
  --bg-1: #ffffff;
  --bg-2: #eef2f7;
  --panel: #ffffff;
  --panel-hi: #f1f5f9;
  --panel-row: #f8fafc;
  --border: #e2e8f0;
  --border-hi: #cbd5e1;

  --text: #0f172a;
  --text-dim: #475569;
  --text-mute: #94a3b8;

  --primary: #3b82f6;         /* light trustworthy blue */
  --primary-hi: #60a5fa;
  --primary-ink: #ffffff;
  --primary-soft: rgba(59,130,246,.10);
  --primary-glow: rgba(59,130,246,.25);

  --accent: #64748b;           /* slate gray */
  --accent-soft: rgba(100,116,139,.10);

  --mint: #10b981;
  --rose: #ef4444;
  --amber: #f59e0b;

  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 6px 20px rgba(15,23,42,.08);
  --shadow-glow: 0 8px 30px rgba(59,130,246,.18);

  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SF Mono, monospace;
}

/* ====== Dark theme ====== */
[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-1: #131829;
  --bg-2: #0f1421;
  --panel: #161c2c;
  --panel-hi: #1f2638;
  --panel-row: #131929;
  --border: #2a3148;
  --border-hi: #3b4360;

  --text: #e8eaf0;
  --text-dim: #9aa0b3;
  --text-mute: #6c7388;

  --primary: #60a5fa;
  --primary-hi: #93c5fd;
  --primary-ink: #0a0e1a;
  --primary-soft: rgba(96,165,250,.12);
  --primary-glow: rgba(96,165,250,.28);

  --accent: #94a3b8;
  --accent-soft: rgba(148,163,184,.10);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
  --shadow-glow: 0 8px 30px rgba(96,165,250,.22);
}

[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(96,165,250,.08), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(148,163,184,.05), transparent 60%),
    var(--bg);
}

/* Inputs and selects need explicit background in dark mode (browsers default to white) */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .input,
[data-theme="dark"] .select {
  background: var(--panel-hi);
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: var(--text-mute); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59,130,246,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(100,116,139,.05), transparent 60%),
    var(--bg);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============ app shell ============ */
.app {
  display: grid;
  grid-template-columns: 236px 1fr;
  height: 100vh;
  width: 100vw;
}

/* ============ sidebar ============ */
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.org {
  padding: 14px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.org:hover { background: var(--panel-hi); }
.org-logo {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  display: grid; place-items: center;
  color: white; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
}
.org-name { font-weight: 600; font-size: 13px; letter-spacing: .1px; }
.org-caret { margin-left: auto; opacity: .5; }

.nav { padding: 12px 10px; overflow-y: auto; flex: 1; min-height: 0; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--panel-hi); color: var(--text); }
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.nav-item .icon { width: 16px; height: 16px; flex-shrink: 0; opacity: .9; }
.badge {
  margin-left: auto;
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  padding: 2px 6px; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink);
  text-transform: uppercase;
}
.badge.beta { background: var(--accent); color: #2b1f3b; }

.nav-section-title {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-mute); font-weight: 600;
  padding: 14px 10px 6px;
  display: flex; align-items: center;
}
.nav-section-title .add-btn {
  margin-left: auto;
  display: flex; gap: 4px;
  opacity: .6;
}
.nav-section-title .add-btn span { cursor: pointer; padding: 2px; }
.nav-section-title .add-btn span:hover { color: var(--text); }

.creator-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 9px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 13px;
}
.creator-row:hover { background: var(--panel-hi); color: var(--text); }
.creator-row.open { color: var(--text); }
.creator-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, #94a3b8, #475569);
  flex-shrink: 0;
  background-size: cover; background-position: center;
}
.creator-row .chevron { margin-left: auto; opacity: .5; transition: transform .2s; }
.creator-row.open .chevron { transform: rotate(180deg); }

.subnav { padding-left: 8px; margin: 4px 0 6px; }
.subnav .sub-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-mute); font-weight: 600;
  padding: 8px 10px 4px;
}
.subnav .nav-item { font-size: 12.5px; padding: 6px 10px; }

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.docs-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px; border-radius: 9px;
  background: var(--panel-hi);
  font-size: 12px; font-weight: 500;
  color: var(--text-dim);
}
.docs-btn:hover { color: var(--text); background: var(--border); }
.footer-icons { display: flex; gap: 6px; }
.footer-icons span {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--panel-hi); cursor: pointer;
}
.footer-icons span.on { background: var(--primary); color: var(--primary-ink); }

/* ============ main ============ */
.main {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  overflow: hidden;
}
.topbar {
  height: 44px;
  padding: 0 22px;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
  flex-shrink: 0;
}
.breadcrumb { color: var(--text); font-weight: 500; }
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 60px;
}
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 5px; }
.content::-webkit-scrollbar-track { background: transparent; }

/* ============ primitives ============ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: 18px 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary-hi), var(--primary));
  color: var(--primary-ink);
  box-shadow: 0 4px 14px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost {
  background: var(--panel-hi);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 6px 10px; font-size: 12px; }

.input, .select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  transition: border .15s, background .15s;
}
.input::placeholder { color: var(--text-mute); }
.input:focus, .select:focus { outline: none; border-color: var(--primary); background: var(--panel-hi); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--panel-hi); color: var(--text-dim);
  border: 1px solid var(--border);
}
.pill.ok { background: rgba(125,211,184,.12); color: var(--ok); border-color: rgba(125,211,184,.25); }
.pill.warn { background: rgba(243,198,119,.12); color: var(--warn); border-color: rgba(243,198,119,.25); }
.pill.bad { background: rgba(255,106,154,.12); color: var(--bad); border-color: rgba(255,106,154,.25); }
.pill.primary { background: var(--primary-soft); color: var(--primary-hi); border-color: rgba(255,122,102,.3); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ============ table ============ */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.table thead th {
  text-align: left;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-mute);
  text-transform: none;
  letter-spacing: .2px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  position: sticky; top: 0;
}
.table thead th:first-child { border-top-left-radius: var(--radius); }
.table thead th:last-child { border-top-right-radius: var(--radius); text-align: right; }
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.table tbody td:last-child { text-align: right; }
.table tbody tr:hover td { background: var(--panel-hi); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr.highlight td { color: var(--primary); background: var(--primary-soft); }
.num { font-variant-numeric: tabular-nums; }

.rank {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  font-size: 12px; font-weight: 600;
  color: var(--text-mute);
}
.rank.gold   { background: radial-gradient(circle, #f3c677, #c48e3a); color: #2a1a05; border-radius: 50%; }
.rank.silver { background: radial-gradient(circle, #d9cfd3, #8e8089); color: #1a1418; border-radius: 50%; }
.rank.bronze { background: radial-gradient(circle, #e4a27c, #a66b46); color: #2a1505; border-radius: 50%; }

/* ============ stat card ============ */
.stat {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat-label {
  font-size: 11.5px; color: var(--text-mute);
  display: flex; align-items: center; gap: 6px;
}
.stat-value { font-size: 24px; font-weight: 600; letter-spacing: -.3px; }
.stat-sub { font-size: 12px; color: var(--text-dim); }

/* ============ tabs ============ */
.tabs {
  display: inline-flex; gap: 4px;
  padding: 3px; border-radius: 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}
.tab {
  padding: 6px 14px; border-radius: 7px;
  font-size: 12.5px; font-weight: 500;
  color: var(--text-dim);
}
.tab.active { background: var(--panel-hi); color: var(--text); box-shadow: var(--shadow-sm); }
.tab:hover:not(.active) { color: var(--text); }

.tabs-underline {
  display: flex; gap: 28px;
  border-bottom: 1px solid var(--border);
}
.tab-u {
  padding: 10px 0;
  font-size: 13px; color: var(--text-dim); font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-u.active { color: var(--primary-hi); border-bottom-color: var(--primary); }

/* ============ leaderboard hero ============ */
.hero-lb {
  background:
    radial-gradient(600px 200px at 85% 50%, var(--primary-soft), transparent),
    linear-gradient(135deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.hero-title { display: flex; align-items: flex-start; gap: 12px; }
.hero-title .trophy {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-hi), var(--primary));
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px var(--primary-glow);
}
.hero-title h2 { font-family: var(--sans); font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.3px; }
.hero-title p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-dim); }

.spark {
  display: flex; align-items: flex-end; gap: 4px;
  height: 36px;
  margin-top: 14px;
}
.spark-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary-hi), var(--primary));
  border-radius: 3px;
  opacity: .8;
  min-height: 4px;
}

/* ============ links grid ============ */
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.link-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.link-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.link-thumb {
  aspect-ratio: 16 / 11;
  position: relative;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  overflow: hidden;
}
.link-thumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px);
}
.link-thumb.has-cover::before { display: none; }
.link-thumb.has-cover { background: #0f172a; }
.link-thumb-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,.35); letter-spacing: 1px;
}
.link-price {
  position: absolute; top: 10px; right: 10px;
  background: rgba(15,23,42,.85); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: white;
  border: 1px solid rgba(255,255,255,.1);
}
.link-meta { padding: 12px 14px; }
.link-title { font-size: 14px; font-weight: 600; }
.link-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.link-stats { display: flex; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--text-dim); }
.link-footer {
  border-top: 1px solid var(--border);
  padding: 8px 14px;
  display: flex; align-items: center; font-size: 12px; color: var(--text-dim);
}

/* ============ chart ============ */
.chart-wrap { position: relative; padding: 16px 4px 4px; }
.chart-wm {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--sans); font-weight: 700;
  font-size: 44px; color: var(--text); opacity: .04;
  pointer-events: none; letter-spacing: -.5px;
}
.bars {
  display: flex; align-items: flex-end; gap: 12px;
  height: 240px;
  padding: 0 10px;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary-hi), var(--primary));
  border-radius: 6px 6px 0 0;
  min-height: 2px;
  position: relative;
}
.bar.alt { background: linear-gradient(180deg, var(--accent), #9b7cdb); }
.bar-cap {
  position: absolute; bottom: 100%; left: 0; right: 0;
  height: 4px; background: var(--rose); border-radius: 2px 2px 0 0;
}
.bar-label { font-size: 10.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }

/* ============ progress bar ============ */
.pbar {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
  display: flex;
}
.pbar > div { height: 100%; }

/* ============ switch ============ */
.switch {
  width: 34px; height: 20px; border-radius: 999px;
  background: var(--border);
  position: relative; cursor: pointer;
  transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: white;
  transition: transform .15s;
}
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(14px); }

/* ============ page headings ============ */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.page-head h1 {
  font-family: var(--sans);
  font-size: 24px; font-weight: 700;
  margin: 0; letter-spacing: -.3px;
}
.page-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

/* ============ toolbar filters ============ */
.filters {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px; color: var(--text-dim);
  cursor: pointer;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-hi); }
.filter-chip .chev { opacity: .6; }

.search {
  position: relative;
  flex: 1; max-width: 360px;
}
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }
.search .input { padding-left: 36px; }

/* ============ kyc ============ */
.kyc-card {
  max-width: 480px;
  margin: 40px auto;
  padding: 32px;
  text-align: center;
}
.kyc-check {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 16px;
  background: radial-gradient(circle, rgba(16,185,129,.20), rgba(16,185,129,.05));
  color: var(--mint);
  display: grid; place-items: center;
  border: 1px solid rgba(16,185,129,.30);
}
.kyc-card h2 { font-family: var(--sans); font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.3px; }
.kyc-card p { color: var(--text-dim); font-size: 13px; margin: 0 0 24px; }
.kyc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; border-top: 1px solid var(--border); padding-top: 20px; }
.kyc-meta .k { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .6px; }
.kyc-meta .v { font-size: 13px; margin-top: 4px; font-weight: 500; }

/* ============ support ============ */
.support-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.support-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  position: relative;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.support-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.support-card h3 { margin: 8px 0 4px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.support-card p { margin: 0; font-size: 12.5px; color: var(--text-dim); }
.support-card .arrow { position: absolute; top: 18px; right: 18px; color: var(--text-mute); }

/* ============ profile ============ */
.profile-row {
  display: grid; grid-template-columns: 200px 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.profile-row:last-child { border-bottom: none; }
.profile-row .k { font-size: 13px; font-weight: 500; }
.profile-row .k-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.profile-row .v { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.profile-row .edit { color: var(--text-mute); cursor: pointer; }
.profile-row .edit:hover { color: var(--primary); }

/* ============ wallet ============ */
.wallet-hero {
  max-width: 560px;
  margin: 30px auto 20px;
  padding: 26px 30px;
  text-align: center;
}
.wallet-hero .label { font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
.wallet-hero .amt { font-family: var(--sans); font-size: 44px; font-weight: 700; letter-spacing: -1px; margin-bottom: 14px; }
.wallet-hero .req { margin-top: 10px; }
.wallet-row {
  max-width: 780px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 14px;
}

/* ============ create link form ============ */
.form-2col {
  display: grid; grid-template-columns: 1fr 340px; gap: 24px;
  align-items: flex-start;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 6px; font-weight: 500;
}
.form-field .optional { float: right; color: var(--text-mute); font-weight: 400; }
textarea.input { resize: vertical; min-height: 80px; }
.media-drop {
  border: 1.5px dashed var(--border-hi);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-1);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.media-drop:hover { border-color: var(--primary); background: var(--panel-hi); }
.media-drop .plus {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--panel-hi); margin: 0 auto 12px;
  display: grid; place-items: center; color: var(--primary);
  font-size: 20px; font-weight: 300;
}
.media-drop h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.media-drop span { font-size: 11.5px; color: var(--text-mute); }

.fee-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.fee-opt {
  padding: 12px; border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all .15s;
}
.fee-opt:hover { border-color: var(--border-hi); }
.fee-opt.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hi); }
.fee-opt .radio {
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text-mute);
  display: grid; place-items: center;
}
.fee-opt.active .radio { border-color: var(--primary); }
.fee-opt.active .radio::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

.preview-box {
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--text-mute);
  font-size: 12.5px;
  text-align: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 40%, rgba(59,130,246,.05), transparent 60%),
    var(--bg-2);
}
.preview-box .icon { color: var(--primary); margin-bottom: 10px; }

.blur-picker {
  display: flex; gap: 4px; padding: 3px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 10px;
  margin-top: 12px;
}
.blur-picker button {
  flex: 1; padding: 6px; border-radius: 7px;
  font-size: 12px; color: var(--text-dim);
}
.blur-picker button.active { background: var(--panel-hi); color: var(--text); }

/* ============ tweak panel ============ */
.tweak-panel {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 280px;
  background: var(--panel);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-md);
  z-index: 100;
}
.tweak-panel h4 {
  font-family: var(--sans);
  font-size: 14px; font-weight: 700;
  margin: 0 0 12px;
  display: flex; align-items: center; justify-content: space-between;
  letter-spacing: -.2px;
}
.tweak-panel h4 .close { cursor: pointer; color: var(--text-mute); font-size: 16px; }
.tweak-panel label { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 6px; }
.tweak-panel .swatches { display: flex; gap: 8px; margin-bottom: 12px; }
.tweak-panel .swatch {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
}
.tweak-panel .swatch.active { border-color: var(--text); }

/* utilities */
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }
.gap-sm { gap: 6px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
