/* ==========================================================================
   امین‌پی — سیستم طراحی (تم روشن پیش‌فرض + حالت شب) · RTL · مینیمال
   ========================================================================== */

/* ---------- 1. Tokens: Light (default) ---------- */
:root {
  --bg:            #F4F6FC;
  --bg-soft:       #FFFFFF;

  --surface:       rgba(255, 255, 255, .74);
  --surface-2:     rgba(16, 24, 40, .05);
  --surface-3:     rgba(16, 24, 40, .09);

  --border:        rgba(16, 24, 40, .10);
  --border-strong: rgba(16, 24, 40, .20);

  --text:          #101828;
  --muted:         #475467;
  --faint:         #667085;

  --brand:         #7C6CFF;
  --brand-2:       #5B8CFF;
  --cyan:          #12B5C4;

  --grad:          linear-gradient(135deg, #7C6CFF 0%, #5B8CFF 52%, #22CFDE 100%);
  --grad-soft:     linear-gradient(135deg, rgba(124,108,255,.12), rgba(44,217,230,.10));

  --accent-text:   #4F46E5;
  --accent-bg:     rgba(124,108,255,.12);
  --accent-border: rgba(124,108,255,.35);

  --ok:            #0E9F6E;  --ok-bg:   rgba(14,159,110,.10);
  --warn:          #B54708;  --warn-bg: rgba(181,71,8,.09);
  --bad:           #E02424;  --bad-bg:  rgba(224,36,36,.08);

  --input-bg:      rgba(255, 255, 255, .9);
  --acct-bg:       rgba(255, 255, 255, .62);
  --header-bg:     rgba(255, 255, 255, .78);
  --footer-bg:     rgba(255, 255, 255, .55);
  --modal-bg:      #FFFFFF;
  --toast-bg:      rgba(255, 255, 255, .94);
  --scrim:         rgba(16, 24, 40, .38);
  --th-bg:         rgba(16, 24, 40, .035);
  --track-bg:      rgba(16, 24, 40, .07);
  --grid-line:     rgba(16, 24, 40, .05);
  --radio-inner:   #FFFFFF;

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;

  --shadow:    0 22px 60px -26px rgba(16, 24, 40, .22);
  --shadow-sm: 0 10px 26px -14px rgba(16, 24, 40, .16);
  --glow:      0 12px 34px -14px rgba(124, 108, 255, .42);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Vazirmatn", "Vazir", "IRANSansX", "IRANSans", "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- 1b. Tokens: Dark ---------- */
[data-theme="dark"] {
  --bg:            #060913;
  --bg-soft:       #0A0F1F;

  --surface:       rgba(255, 255, 255, .038);
  --surface-2:     rgba(255, 255, 255, .065);
  --surface-3:     rgba(255, 255, 255, .10);

  --border:        rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .18);

  --text:          #ECF0F9;
  --muted:         #9AA6BE;
  --faint:         #66718B;

  --brand:         #7C6CFF;
  --brand-2:       #5B8CFF;
  --cyan:          #2CD9E6;

  --grad:          linear-gradient(135deg, #7C6CFF 0%, #5B8CFF 52%, #2CD9E6 100%);
  --grad-soft:     linear-gradient(135deg, rgba(124,108,255,.20), rgba(44,217,230,.14));

  --accent-text:   #C9BFFF;
  --accent-bg:     rgba(124,108,255,.16);
  --accent-border: rgba(124,108,255,.40);

  --ok:            #3ED598;  --ok-bg:   rgba(62,213,152,.12);
  --warn:          #F7C544;  --warn-bg: rgba(247,197,68,.12);
  --bad:           #FF6B6B;  --bad-bg:  rgba(255,107,107,.12);

  --input-bg:      rgba(0, 0, 0, .30);
  --acct-bg:       rgba(0, 0, 0, .26);
  --header-bg:     rgba(6, 9, 19, .74);
  --footer-bg:     rgba(6, 9, 19, .60);
  --modal-bg:      #0C1224;
  --toast-bg:      rgba(13, 18, 34, .94);
  --scrim:         rgba(3, 5, 12, .76);
  --th-bg:         rgba(0, 0, 0, .24);
  --track-bg:      rgba(0, 0, 0, .34);
  --grid-line:     rgba(255, 255, 255, .03);
  --radio-inner:   #0A0F1F;

  --shadow:    0 24px 70px -28px rgba(0, 0, 0, .85);
  --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, .7);
  --glow:      0 14px 44px -14px rgba(124, 108, 255, .55);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }

::selection { background: rgba(124,108,255,.35); color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 2px solid var(--bg); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- 3. Background decor ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(880px 520px at 88% -8%,  rgba(124,108,255,.15), transparent 62%),
    radial-gradient(720px 460px at 2% 10%,   rgba(34,207,222,.11), transparent 60%),
    radial-gradient(1000px 700px at 55% 110%, rgba(91,140,255,.10), transparent 65%),
    var(--bg);
  transition: background .35s var(--ease);
}
[data-theme="dark"] .bg-decor {
  background:
    radial-gradient(900px 520px at 88% -8%,  rgba(124,108,255,.20), transparent 62%),
    radial-gradient(760px 480px at 4% 12%,   rgba(44,217,230,.13), transparent 60%),
    radial-gradient(1000px 700px at 55% 110%, rgba(91,140,255,.12), transparent 65%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------- 4. Layout helpers ---------- */
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: background .35s var(--ease), border-color .35s var(--ease);
}

.section { padding: 60px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(20px, 3vw, 27px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--accent-text);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 5px 13px; border-radius: 99px; margin-bottom: 14px;
}
.eyebrow svg { width: 14px; height: 14px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; line-height: 1;
  padding: 12px 20px; border-radius: 13px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s, border-color .22s, opacity .2s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 46px -14px rgba(124,108,255,.55); }

.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--border-strong); }

.btn-danger { background: var(--bad-bg); border-color: rgba(224,36,36,.35); color: var(--bad); }
.btn-danger:hover { background: rgba(224,36,36,.16); }

.btn-ok { background: var(--ok-bg); border-color: rgba(14,159,110,.35); color: var(--ok); }
.btn-ok:hover { background: rgba(14,159,110,.18); }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 15px; border-radius: 15px; }
.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 10px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-only { width: 40px; height: 40px; padding: 0; border-radius: 12px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: var(--glow); flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand-text span { font-size: 11px; color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: 22px; }
.main-nav a {
  position: relative; padding: 8px 13px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }

.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 19px; height: 19px; }

/* ---------- 7. Hero (minimal) ---------- */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); font-weight: 900; line-height: 1.2; letter-spacing: -.03em; }
.hero .lede { color: var(--muted); font-size: clamp(14px, 1.8vw, 16px); max-width: 560px; margin: 16px auto 0; }
.hero-cta { display: flex; justify-content: center; gap: 12px; margin-top: 26px; }
.hero-trust {
  margin-top: 22px; font-size: 12.5px; color: var(--faint);
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.hero-trust svg { width: 14px; height: 14px; color: var(--ok); }
.hero-trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); display: inline-block; }

/* ---------- 8. Checkout ---------- */
.checkout { padding-bottom: 20px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .92fr); gap: 22px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.checkout-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }

.panel { padding: 22px; }
.panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head .ph-icon {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--grad-soft); border: 1px solid var(--accent-border);
  display: grid; place-items: center; color: var(--accent-text);
}
.panel-head .ph-icon svg { width: 18px; height: 18px; }
.panel-head h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.panel-head p { font-size: 12px; color: var(--faint); margin-top: 1px; }
.panel-head .ph-end { margin-inline-start: auto; }

/* ---------- 9. Method cards ---------- */
.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.method {
  position: relative; text-align: start; padding: 16px;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
}
.method::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-soft); opacity: 0; transition: opacity .3s;
}
.method > * { position: relative; }
.method:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.method.selected {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-border), 0 14px 36px -20px rgba(124,108,255,.5);
}
.method.selected::before { opacity: 1; }
.method .m-top { display: flex; align-items: center; gap: 11px; }
.method .m-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.method .m-icon svg { width: 20px; height: 20px; }
.method.selected .m-icon { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.method h4 { font-size: 14px; font-weight: 800; line-height: 1.4; }
.method .m-sub { font-size: 11.5px; color: var(--faint); }
.method .m-radio {
  position: absolute; top: 13px; inset-inline-end: 13px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-strong); transition: all .25s var(--ease);
}
.method.selected .m-radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3.5px var(--radio-inner); }
.method.off { opacity: .55; }
.method.off:hover { transform: none; }
.method .m-tag {
  position: absolute; top: 13px; inset-inline-end: 40px;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--bad-bg); color: var(--bad); border: 1px solid rgba(224,36,36,.3);
}

/* ---------- 10. Amount ---------- */
.seg {
  display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--border);
}
.seg button {
  padding: 7px 15px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); transition: all .25s var(--ease); display: flex; align-items: center; gap: 6px;
}
.seg button.active { background: var(--grad); color: #fff; box-shadow: var(--glow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.chip.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-text); }

.amount-box { margin-top: 14px; }
.amount-box label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.amount-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 4px 13px;
  transition: border-color .25s, box-shadow .25s;
}
.amount-input-wrap:focus-within { border-color: var(--accent-border); box-shadow: 0 0 0 4px rgba(124,108,255,.14); }
.amount-input-wrap input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-size: 20px; font-weight: 800; padding: 9px 0; letter-spacing: .02em;
}
.amount-input-wrap .cur { font-size: 12.5px; font-weight: 700; color: var(--faint); flex: none; }

.equiv-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin-top: 12px; font-size: 12.5px; color: var(--faint);
}
.equiv-line b { color: var(--text); font-weight: 800; }
.equiv-line .usdt b { color: #0FA88E; }
[data-theme="dark"] .equiv-line .usdt b { color: #35D6BA; }
.equiv-line i { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.rate-note { font-size: 11.5px; color: var(--faint); margin-top: 10px; }

/* ---------- 11. Account / destination ---------- */
.acct {
  display: flex; align-items: center; gap: 14px;
  background: var(--acct-bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 10px;
}
.acct:last-child { margin-bottom: 0; }
.acct .a-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 11px;
  background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent-text);
}
.acct .a-body { flex: 1; min-width: 0; }
.acct .a-body > span:first-child { display: block; font-size: 11.5px; color: var(--faint); }
.acct .a-body .a-val {
  font-family: var(--mono); font-size: 14.5px; font-weight: 700; letter-spacing: .05em;
  direction: ltr; text-align: start; word-break: break-all; margin-top: 2px;
}
.acct .a-body .a-val.small { font-size: 12.5px; letter-spacing: .02em; }
.acct .a-body .a-extra { display: block; font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.acct .a-side { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: none; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  transition: all .2s var(--ease);
}
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn.copied { background: var(--ok-bg); border-color: rgba(14,159,110,.4); color: var(--ok); }

.qr-box {
  background: #fff; border-radius: 10px; padding: 6px; flex: none;
  display: grid; place-items: center; box-shadow: 0 6px 18px -8px rgba(16,24,40,.35);
  border: 1px solid rgba(16,24,40,.06);
}
.qr-box svg { width: 74px; height: 74px; display: block; }
.qr-cap { font-size: 10px; color: var(--faint); text-align: center; }

.hint {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 12px; color: var(--muted); line-height: 1.7;
  background: rgba(18,181,196,.07); border: 1px solid rgba(18,181,196,.22);
  border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px;
}
.hint svg { width: 15px; height: 15px; flex: none; color: var(--cyan); margin-top: 2px; }
.hint.warn { background: var(--warn-bg); border-color: rgba(181,71,8,.22); }
.hint.warn svg { color: var(--warn); }
.hint.bad { background: var(--bad-bg); border-color: rgba(224,36,36,.2); }
.hint.bad svg { color: var(--bad); }

/* ---------- 12. Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.field label .req { color: var(--bad); }
.field .ctrl {
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 11px 13px; font-size: 14px;
  transition: border-color .22s, box-shadow .22s; width: 100%;
}
.field .ctrl::placeholder { color: var(--faint); }
.field .ctrl:focus { outline: none; border-color: var(--accent-border); box-shadow: 0 0 0 4px rgba(124,108,255,.13); }
.field .ctrl.mono { font-family: var(--mono); letter-spacing: .05em; direction: ltr; text-align: left; }
.field .err { font-size: 11.5px; color: var(--bad); display: none; align-items: center; gap: 5px; }
.field .err svg { width: 13px; height: 13px; }
.field.invalid .ctrl { border-color: rgba(224,36,36,.55); box-shadow: 0 0 0 4px rgba(224,36,36,.09); }
.field.invalid .err { display: flex; }

/* Upload */
.dropzone {
  border: 1.6px dashed var(--border-strong); border-radius: var(--r-md);
  padding: 26px 18px; text-align: center; cursor: pointer;
  transition: all .25s var(--ease); background: var(--input-bg);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent-border); background: var(--accent-bg); }
.dropzone .dz-icon {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 10px;
  display: grid; place-items: center; background: var(--grad-soft);
  border: 1px solid var(--accent-border); color: var(--accent-text);
}
.dropzone .dz-icon svg { width: 22px; height: 22px; }
.dropzone b { display: block; font-size: 13.5px; }
.dropzone span { font-size: 12px; color: var(--faint); }

.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.file-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 11px;
}
.file-item .fi-thumb {
  width: 38px; height: 38px; border-radius: 8px; flex: none; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center; cursor: zoom-in;
}
.file-item .fi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-item .fi-thumb svg { width: 17px; height: 17px; color: var(--muted); }
.file-item .fi-info { flex: 1; min-width: 0; }
.file-item .fi-info b { display: block; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .fi-info span { font-size: 11px; color: var(--faint); }
.file-item .fi-rm {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: grid; place-items: center; color: var(--faint);
  background: var(--surface-2); border: 1px solid var(--border);
  transition: all .2s;
}
.file-item .fi-rm:hover { color: var(--bad); border-color: rgba(224,36,36,.35); background: var(--bad-bg); }
.file-item .fi-rm svg { width: 14px; height: 14px; }

/* Checkbox */
.check {
  display: flex; gap: 11px; align-items: flex-start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 13px; transition: border-color .2s, background .2s;
}
.check:hover { border-color: var(--border-strong); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check input:focus-visible + .box { outline: 2px solid var(--brand); outline-offset: 3px; }
.check .box {
  width: 20px; height: 20px; border-radius: 6px; flex: none; margin-top: 2px;
  border: 2px solid var(--border-strong); display: grid; place-items: center;
  transition: all .22s var(--ease);
}
.check .box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: all .22s var(--ease); color: #fff; }
.check input:checked + .box { background: var(--grad); border-color: transparent; }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check .txt { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.check .txt b { color: var(--text); }
.check.invalid { border-color: rgba(224,36,36,.5); }

/* ---------- 13. Sidebar ---------- */
.summary { padding: 20px; }
.summary h3 { font-size: 14.5px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.summary h3 svg { width: 16px; height: 16px; color: var(--cyan); }
.sum-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; }
.sum-row .k { color: var(--faint); }
.sum-row .v { font-weight: 700; }
.sum-divider { height: 1px; background: var(--border); margin: 8px 0; }
.sum-total { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-radius: var(--r-md); background: var(--grad-soft); border: 1px solid var(--accent-border); }
.sum-total .k { font-size: 12.5px; font-weight: 700; color: var(--accent-text); }
.sum-total .v { font-size: 16px; font-weight: 900; }
.secure-note {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: 11.5px; color: var(--faint); margin-top: 12px;
}
.secure-note svg { width: 13px; height: 13px; color: var(--ok); }

.support-card { padding: 18px; }
.support-card h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.support-card h4 svg { width: 15px; height: 15px; color: var(--brand); }
.support-line { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.support-line svg { width: 14px; height: 14px; color: var(--faint); flex: none; }
.support-line .ltr { direction: ltr; font-family: var(--mono); font-size: 12px; }

.track-box { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.track-box .tb-row { display: flex; gap: 7px; }
.track-box input {
  flex: 1; min-width: 0; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 11px; font-size: 12.5px; font-family: var(--mono);
  letter-spacing: .06em; direction: ltr;
}
.track-box input:focus { outline: none; border-color: var(--accent-border); }
.track-result { margin-top: 9px; font-size: 12px; }

/* ---------- 14. Terms (accordion) ---------- */
.terms-list { display: flex; flex-direction: column; gap: 10px; max-width: 780px; margin-inline: auto; }
.term-acc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
}
.term-acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 11px;
  padding: 14px 16px; font-size: 13.5px; font-weight: 700;
  transition: background .2s;
}
.term-acc summary::-webkit-details-marker { display: none; }
.term-acc summary:hover { background: var(--surface-2); }
.term-acc summary .t-num {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
  background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent-text);
}
.term-acc summary .t-arrow {
  margin-inline-start: auto; width: 15px; height: 15px; color: var(--faint);
  transition: transform .25s var(--ease); flex: none;
}
.term-acc[open] summary .t-arrow { transform: rotate(180deg); }
.term-acc .t-body { padding: 0 16px 15px 53px; font-size: 12.8px; color: var(--muted); line-height: 1.9; }
.terms-note {
  max-width: 780px; margin: 18px auto 0; text-align: center;
  font-size: 12.5px; color: var(--faint);
}

/* ---------- 15. Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 36px; background: var(--footer-bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding: 42px 0 30px; }
.footer-brand p { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.9; max-width: 320px; }
.footer-col h5 { font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.footer-col a, .footer-col span { display: block; font-size: 12.5px; color: var(--muted); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--faint);
}
.footer-bottom .fb-links { display: flex; gap: 16px; }

/* ---------- 16. Toast ---------- */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%; translate: -50% 0; z-index: 200;
  display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none;
  width: min(430px, calc(100% - 28px));
}
.toast {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: var(--toast-bg); border: 1px solid var(--border-strong);
  border-radius: 13px; padding: 12px 15px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  animation: toastIn .45s var(--ease);
}
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast .t-icon { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.toast .t-icon svg { width: 15px; height: 15px; }
.toast.ok .t-icon { background: var(--ok-bg); color: var(--ok); }
.toast.err .t-icon { background: var(--bad-bg); color: var(--bad); }
.toast.warn .t-icon { background: var(--warn-bg); color: var(--warn); }
.toast.info .t-icon { background: var(--accent-bg); color: var(--accent-text); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- 17. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: center; justify-content: center; padding: 18px;
  background: var(--scrim); backdrop-filter: blur(8px);
}
.modal.open { display: flex; animation: fadeIn .25s var(--ease); }
.modal-box {
  width: min(480px, 100%); max-height: min(92vh, 880px); overflow: auto;
  background: var(--modal-bg); border: 1px solid var(--border-strong);
  border-radius: 22px; box-shadow: var(--shadow);
  animation: modalIn .4s var(--ease);
}
.modal-box.wide { width: min(760px, 100%); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px 0; }
.modal-head h3 { font-size: 16px; font-weight: 800; flex: 1; }
.modal-head .mh-close {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.modal-head .mh-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-head .mh-close svg { width: 15px; height: 15px; }
.modal-body { padding: 18px 22px 22px; }
.modal-foot { display: flex; gap: 10px; padding: 0 22px 22px; }

/* Success */
.success-hero { text-align: center; padding: 4px 0; }
.success-ring {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(14,159,110,.16), rgba(14,159,110,.04) 70%);
  border: 1px solid rgba(14,159,110,.4);
  animation: pop .55s var(--ease);
}
.success-ring::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px dashed rgba(14,159,110,.4); animation: spin 14s linear infinite;
}
.success-ring svg { width: 34px; height: 34px; color: var(--ok); }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
.success-hero h3 { font-size: 17px; font-weight: 900; }
.success-hero p { font-size: 13px; color: var(--muted); margin-top: 7px; }
.track-code-box {
  display: flex; align-items: center; gap: 11px; margin-top: 16px;
  background: var(--input-bg); border: 1px dashed var(--accent-border);
  border-radius: var(--r-md); padding: 13px 15px;
}
.track-code-box .tc { flex: 1; font-family: var(--mono); font-size: 18px; font-weight: 800; letter-spacing: .12em; direction: ltr; }
.success-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.success-meta .sm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; }
.success-meta .sm span { display: block; font-size: 11px; color: var(--faint); }
.success-meta .sm b { font-size: 13.5px; }

/* Gateway error */
.gw-error { text-align: center; padding: 28px 14px; }
.gw-error .gw-icon {
  width: 68px; height: 68px; border-radius: 21px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--bad-bg); border: 1px solid rgba(224,36,36,.35); color: var(--bad);
  animation: shake 5s var(--ease) infinite;
}
.gw-error .gw-icon svg { width: 32px; height: 32px; }
@keyframes shake {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(-7deg); } 92% { transform: rotate(7deg); }
  94% { transform: rotate(-5deg); } 96% { transform: rotate(5deg); } 98% { transform: rotate(-2deg); }
}
.gw-error h4 { font-size: 16px; font-weight: 900; color: var(--bad); }
.gw-error .gw-code {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 11px;
  font-family: var(--mono); font-size: 12px; direction: ltr;
  background: var(--input-bg); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 99px; color: var(--muted);
}
.gw-error p { font-size: 13px; color: var(--muted); margin-top: 13px; max-width: 430px; margin-inline: auto; }
.gw-actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 18. Status pills ---------- */
.pill-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 99px; white-space: nowrap;
}
.pill-status .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-status.pending  { background: var(--warn-bg); color: var(--warn); }
.pill-status.approved { background: var(--ok-bg);   color: var(--ok); }
.pill-status.rejected { background: var(--bad-bg);  color: var(--bad); }

.method-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.method-tag svg { width: 14px; height: 14px; }

/* ---------- 19. Empty ---------- */
.empty { text-align: center; padding: 40px 18px; color: var(--faint); }
.empty .e-icon {
  width: 58px; height: 58px; border-radius: 18px; margin: 0 auto 12px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border);
}
.empty .e-icon svg { width: 26px; height: 26px; }
.empty b { display: block; color: var(--muted); font-size: 13.5px; margin-bottom: 5px; }
.empty span { font-size: 12.5px; }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-card { width: min(410px, 100%); padding: 30px; }
.login-card .lc-head { text-align: center; margin-bottom: 22px; }
.login-card .lc-head .brand-mark { margin: 0 auto 12px; }
.login-card .lc-head h2 { font-size: 18px; font-weight: 900; }
.login-card .lc-head p { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.login-hint {
  margin-top: 14px; font-size: 11.5px; color: var(--faint); text-align: center;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r-sm); padding: 9px;
}
.login-hint code { font-family: var(--mono); color: var(--accent-text); direction: ltr; }

.admin-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }

.admin-side {
  border-inline-end: 1px solid var(--border); background: var(--header-bg);
  backdrop-filter: blur(14px); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { margin-bottom: 18px; padding-inline: 6px; }
.side-label { font-size: 10.5px; font-weight: 700; color: var(--faint); padding: 12px 10px 7px; letter-spacing: .04em; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .2s var(--ease); width: 100%; text-align: start;
}
.side-link svg { width: 17px; height: 17px; flex: none; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--accent-bg); color: var(--accent-text); border: 1px solid var(--accent-border); }
.side-link .badge {
  margin-inline-start: auto; font-size: 10.5px; font-weight: 800;
  background: var(--warn-bg); color: var(--warn); padding: 2px 8px; border-radius: 99px;
}
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }

.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 16px 26px;
  background: var(--header-bg); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.admin-top h1 { font-size: 17px; font-weight: 800; }
.admin-top .at-sub { font-size: 12px; color: var(--faint); }
.admin-top .at-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }

.admin-view { padding: 26px; display: none; flex-direction: column; gap: 20px; }
.admin-view.active { display: flex; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 18px; display: flex; gap: 13px; align-items: center; }
.stat .s-icon { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; }
.stat .s-icon svg { width: 20px; height: 20px; }
.stat .s-icon.v { background: var(--accent-bg); color: var(--accent-text); }
.stat .s-icon.g { background: var(--ok-bg); color: var(--ok); }
.stat .s-icon.y { background: var(--warn-bg); color: var(--warn); }
.stat .s-icon.r { background: var(--bad-bg); color: var(--bad); }
.stat .s-body span { display: block; font-size: 12px; color: var(--faint); }
.stat .s-body b { font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.stat .s-body small { display: block; font-size: 11px; color: var(--faint); }

.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.chart-card { padding: 20px; }
.chart-card h4, .list-card h4 { font-size: 14px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.chart-card h4 svg, .list-card h4 svg { width: 15px; height: 15px; color: var(--brand); }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 160px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar-col .bar {
  width: 100%; max-width: 40px; border-radius: 7px 7px 4px 4px;
  background: var(--grad); min-height: 4px; position: relative;
  transition: height .6s var(--ease); opacity: .9;
}
.bar-col .bar:hover { opacity: 1; box-shadow: var(--glow); }
.bar-col .bar .bv { position: absolute; top: -21px; left: 50%; translate: -50% 0; font-size: 10.5px; font-weight: 800; color: var(--muted); }
.bar-col span { font-size: 10px; color: var(--faint); white-space: nowrap; }

.dist-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; }
.dist-row .dr-label { width: 112px; flex: none; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dist-row .dr-label svg { width: 13px; height: 13px; }
.dist-row .dr-track { flex: 1; height: 8px; border-radius: 99px; background: var(--track-bg); overflow: hidden; }
.dist-row .dr-fill { height: 100%; border-radius: 99px; background: var(--grad); transition: width .6s var(--ease); }
.dist-row .dr-val { width: 28px; text-align: end; font-size: 12px; font-weight: 800; flex: none; }

.list-card { padding: 20px; }
.mini-tx { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.mini-tx:last-child { border-bottom: none; }
.mini-tx .mt-icon {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--accent-bg); border: 1px solid var(--accent-border); color: var(--accent-text);
}
.mini-tx .mt-icon svg { width: 16px; height: 16px; }
.mini-tx .mt-body { flex: 1; min-width: 0; }
.mini-tx .mt-body b { display: block; font-size: 12.5px; font-weight: 700; }
.mini-tx .mt-body span { font-size: 11px; color: var(--faint); }
.mini-tx .mt-end { text-align: end; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mini-tx .mt-end b { font-size: 12.5px; font-weight: 800; }

/* Filters & table */
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; padding: 14px; }
.filter-bar .f-search { flex: 1; min-width: 190px; position: relative; }
.filter-bar .f-search svg { position: absolute; inset-inline-start: 11px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--faint); }
.filter-bar .f-search input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 13px 9px 36px; font-size: 13px;
}
.filter-bar .f-search input:focus { outline: none; border-color: var(--accent-border); }
.filter-bar select, .filter-bar input[type="date"] {
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 11px; font-size: 12.5px; color: var(--text);
}
.filter-bar select:focus, .filter-bar input[type="date"]:focus { outline: none; border-color: var(--accent-border); }
.f-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.f-pill {
  padding: 8px 13px; border-radius: 10px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.f-pill:hover { color: var(--text); }
.f-pill.active { background: var(--accent-bg); border-color: var(--accent-border); color: var(--accent-text); }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
table.tx-table { width: 100%; border-collapse: collapse; min-width: 840px; }
table.tx-table th {
  text-align: start; font-size: 11.5px; font-weight: 700; color: var(--faint);
  padding: 13px 15px; border-bottom: 1px solid var(--border); white-space: nowrap;
  background: var(--th-bg);
}
table.tx-table td { padding: 12px 15px; border-bottom: 1px solid var(--border); font-size: 12.5px; vertical-align: middle; }
table.tx-table tr:last-child td { border-bottom: none; }
table.tx-table tbody tr { transition: background .18s; cursor: pointer; }
table.tx-table tbody tr:hover { background: var(--accent-bg); }
.td-code { font-family: var(--mono); font-weight: 700; font-size: 12px; direction: ltr; letter-spacing: .05em; white-space: nowrap; }
.td-amount b { display: block; font-weight: 800; white-space: nowrap; }
.td-amount span { font-size: 11px; color: var(--faint); white-space: nowrap; }
.td-user b { display: block; font-weight: 700; font-size: 12px; }
.td-user span { font-size: 11px; color: var(--faint); direction: ltr; }
.td-date { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.row-actions { display: flex; gap: 5px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-3); }
.icon-btn.ok:hover { color: var(--ok); border-color: rgba(14,159,110,.45); background: var(--ok-bg); }
.icon-btn.bad:hover { color: var(--bad); border-color: rgba(224,36,36,.45); background: var(--bad-bg); }

.pager { display: flex; align-items: center; gap: 7px; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pager .pg-btn {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 9px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .2s;
}
.pager .pg-btn:hover:not([disabled]) { color: var(--text); border-color: var(--border-strong); }
.pager .pg-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
.pager .pg-btn[disabled] { opacity: .4; pointer-events: none; }
.pager .pg-info { font-size: 12px; color: var(--faint); margin-inline: 7px; }

/* TX detail */
.tx-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tx-detail-head .tdh-code { font-family: var(--mono); font-size: 15px; font-weight: 800; direction: ltr; letter-spacing: .08em; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; }
.detail-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 13px; min-width: 0; }
.detail-item.full { grid-column: 1 / -1; }
.detail-item span { display: block; font-size: 11px; color: var(--faint); margin-bottom: 2px; }
.detail-item b { font-size: 13px; font-weight: 700; word-break: break-word; }
.detail-item b.mono { font-family: var(--mono); font-size: 12px; direction: ltr; letter-spacing: .03em; }
.detail-item b.big { font-size: 15px; font-weight: 900; }
.detail-sec { font-size: 11.5px; font-weight: 800; color: var(--faint); margin: 18px 0 9px; display: flex; align-items: center; gap: 8px; }
.detail-sec::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 9px; }
.file-thumb {
  aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); background: var(--surface-2);
  display: grid; place-items: center; position: relative; transition: transform .25s var(--ease), border-color .25s;
}
.file-thumb:hover { transform: scale(1.03); border-color: var(--accent-border); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb .ft-pdf { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; padding: 8px; text-align: center; }
.file-thumb .ft-pdf svg { width: 24px; height: 24px; color: var(--bad); }

.status-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.admin-note { width: 100%; min-height: 70px; resize: vertical; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.settings-card { padding: 22px; }
.settings-card h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
.settings-card h4 svg { width: 16px; height: 16px; color: var(--brand); }
.settings-card .sc-desc { font-size: 12px; color: var(--faint); margin-bottom: 16px; }
.danger-zone { border-color: rgba(224,36,36,.3); }
.danger-zone h4 svg { color: var(--bad); }

/* Lightbox */
.lightbox .modal-box { width: min(880px, 100%); background: transparent; border: none; box-shadow: none; }
.lightbox img { width: 100%; border-radius: var(--r-md); border: 1px solid var(--border-strong); }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 68px; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--header-bg); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border); padding: 10px 20px 16px; margin: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 13px; font-size: 14px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed; inset: 0 auto 0 0; width: 244px; z-index: 80;
    transform: translateX(105%); transition: transform .3s var(--ease);
    background: var(--modal-bg);
  }
  .admin-side.open { transform: translateX(0); }
  .admin-top { padding: 13px 16px; }
  .admin-view { padding: 16px; }
  .side-toggle { display: grid !important; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 30px; }
  .methods { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .settings-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .success-meta { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .acct { flex-wrap: wrap; }
  .sum-total { flex-direction: column; gap: 5px; text-align: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

.side-toggle { display: none; }
.side-scrim { display: none; position: fixed; inset: 0; z-index: 70; background: var(--scrim); backdrop-filter: blur(3px); }
.side-scrim.open { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
