/* ============================================================
   Nabeel Naqeeb — Tanzania ↔ Türkiye money transfer
   Design system: deep emerald + warm gold on paper
   ============================================================ */

:root {
  --ink: #0b1f1a;
  --ink-2: #14352c;
  --emerald-900: #063b31;
  --emerald-800: #0a4c3f;
  --emerald-700: #0f5f4e;
  --emerald-600: #14745f;
  --emerald-100: #dcece5;
  --emerald-50: #eef7f3;
  --gold-700: #a97f24;
  --gold-600: #c39a3a;
  --gold-500: #d9b25f;
  --gold-300: #ecd7a4;
  --gold-100: #f7edd6;
  --paper: #fbf8f2;
  --paper-2: #f4eee2;
  --card: #fffdf9;
  --white: #ffffff;
  --line: #e6dfd1;
  --line-strong: #d6cbb6;
  --muted: #6d7b76;
  --muted-2: #8d9894;
  --success: #177a51;
  --success-bg: #e5f4ec;
  --warn: #9a6512;
  --warn-bg: #fdf1d8;
  --danger: #a8322f;
  --danger-bg: #fbe9e8;
  --info: #2a5f8a;
  --info-bg: #e8f1f9;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 26, .05), 0 6px 18px -10px rgba(11, 31, 26, .18);
  --shadow: 0 2px 4px rgba(11, 31, 26, .04), 0 18px 44px -22px rgba(11, 31, 26, .28);
  --shadow-lg: 0 30px 80px -34px rgba(6, 59, 49, .45);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --max: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: var(--emerald-700); text-decoration: none; }
a:hover { color: var(--emerald-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 600; color: var(--ink); }
h1.display, h2.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
small { font-size: .8rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: var(--gold-300); color: var(--ink); }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.4rem, 4vw, 3.6rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--emerald-900); color: #eaf3ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c8d9d1; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.03rem; margin: .4rem 0 0; }
.section-dark .section-head p { color: #b9cec5; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-700); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: var(--gold-500); }

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--emerald-700);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 600; font-size: .92rem; line-height: 1.1;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(6, 59, 49, .6); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-gold { --btn-bg: var(--gold-500); --btn-fg: var(--ink); }
.btn-gold:hover { --btn-bg: var(--gold-300); color: var(--ink); }
.btn-dark { --btn-bg: var(--emerald-900); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--emerald-800); --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--emerald-50); --btn-fg: var(--emerald-800); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--emerald-800); }
.btn-ghost:hover { --btn-bg: rgba(15, 95, 78, .08); color: var(--emerald-800); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-danger { --btn-bg: var(--danger); }
.btn-danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: #eccac8; }
.btn-danger-ghost:hover { --btn-bg: var(--danger-bg); color: var(--danger); }
.btn-sm { padding: .5rem .85rem; font-size: .82rem; min-height: 36px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; min-height: 52px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 10px; }
.btn .i { width: 17px; height: 17px; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: .7rem 1rem; z-index: 300; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(6, 59, 49, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .01em; }
.brand-sub { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: .2rem; margin-left: .5rem; }
.nav a {
  color: #d8e5df; font-size: .87rem; font-weight: 500; padding: .5rem .72rem;
  border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.09); color: #fff; }
.header-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.lang-select {
  appearance: none; background: rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d8e5df' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid rgba(255,255,255,.16); color: #eaf3ee; border-radius: 999px;
  padding: .46rem 1.9rem .46rem .85rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.lang-select option { color: var(--ink); background: #fff; }
.header-actions .btn { min-height: 38px; padding: .5rem 1rem; font-size: .84rem; }
.btn-menu { display: none; background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }
.btn-menu svg { width: 20px; height: 20px; margin: auto; }
.mobile-nav { display: none; border-top: 1px solid rgba(255,255,255,.1); padding: .6rem 0 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; color: #e2eee8; padding: .7rem .25rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.06); }
.mobile-nav .mobile-cta { display: flex; gap: .6rem; margin-top: .9rem; }
.mobile-nav .mobile-cta .btn { flex: 1; }

/* announcement */
.announce { background: var(--gold-100); color: #5c4510; font-size: .82rem; text-align: center; padding: .5rem 1rem; border-bottom: 1px solid var(--gold-300); }
.announce strong { color: #453200; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 600px at 88% -10%, rgba(217, 178, 95, .22), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(20, 116, 95, .5), transparent 65%),
    linear-gradient(150deg, #063b31 0%, #0a4c3f 48%, #083d34 100%);
  color: #eef7f3;
  padding: clamp(3rem, 6vw, 5.2rem) 0 clamp(3.2rem, 6vw, 5.6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 68%);
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; color: #f4e6c4; background: rgba(255,255,255,.08);
  border: 1px solid rgba(236, 215, 164, .28); padding: .42rem .8rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 3px rgba(217,178,95,.22); }
.hero-badge .flag { font-size: .9rem; letter-spacing: .1rem; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; font-size: clamp(2.35rem, 4.6vw, 3.85rem); }
.hero h1 em { font-style: normal; color: var(--gold-300); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .08em; background: rgba(217,178,95,.35); border-radius: 4px; }
.hero-lead { font-size: 1.06rem; color: #c6dad2; max-width: 470px; margin-bottom: 1.7rem; }
.hero-ctas { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.9rem; }
.hero-ctas .link-arrow { color: #e7f2ec; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.35rem; }
.hero-trust div { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: #b9cec5; }
.hero-trust svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; }

/* ---------- Converter card ---------- */
.converter {
  background: var(--card); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(1.2rem, 2.3vw, 1.8rem);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.6);
  position: relative;
}
.conv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.conv-head h3 { font-size: 1.1rem; margin: 0 0 .15rem; font-family: var(--font-display); font-weight: 600; }
.conv-head p { margin: 0; font-size: .76rem; color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--success); background: var(--success-bg); border-radius: 999px; padding: .28rem .55rem; white-space: nowrap; }
.live-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(23,122,81,.3);} 50% { box-shadow: 0 0 0 4px rgba(23,122,81,0);} }

.conv-field {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .7rem .85rem;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.conv-field:focus-within { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(20,116,95,.12); }
.conv-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .2rem; }
.conv-label { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.conv-balance { font-size: .7rem; color: var(--muted-2); }
.conv-input-row { display: flex; align-items: center; gap: .5rem; }
.conv-input-row input {
  border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.55rem; font-weight: 600;
  color: var(--ink); width: 100%; min-width: 0; padding: .1rem 0; letter-spacing: -.01em;
}
.conv-input-row input::placeholder { color: #c3cac6; font-weight: 500; }
.currency-select {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .85rem; color: var(--ink); padding: .42rem 2rem .42rem .75rem;
  cursor: pointer; appearance: none; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230b1f1a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
.conv-swap { display: flex; justify-content: center; position: relative; height: 0; z-index: 2; }
.conv-swap button {
  position: relative; top: -16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--emerald-800); color: #fff; border: 3px solid var(--card); cursor: pointer;
  display: grid; place-items: center; transition: transform .2s;
}
.conv-swap button:hover { transform: rotate(180deg); }
.conv-swap svg { width: 16px; height: 16px; }
.conv-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .4rem; font-size: .72rem; color: var(--muted); }
.conv-meta strong { color: var(--ink); font-weight: 600; }

.conv-breakdown { margin: 1.15rem 0 1rem; border-top: 1px dashed var(--line-strong); padding-top: .9rem; display: grid; gap: .38rem; }
.breakdown-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); }
.breakdown-row span:last-child { color: var(--ink); font-weight: 500; text-align: right; }
.breakdown-row .free { color: var(--success); font-weight: 600; }
.breakdown-row.total { font-size: .86rem; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .2rem; }
.breakdown-row.total span { color: var(--ink); font-weight: 700; }
.conv-payout {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
  background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: var(--radius-sm);
  padding: .8rem .9rem; margin-bottom: .85rem;
}
.conv-payout .label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--emerald-700); }
.conv-payout .amount { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; line-height: 1.15; color: var(--emerald-900); letter-spacing: -.01em; }
.conv-payout .amount small { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; color: var(--emerald-700); }
.conv-payout .side { text-align: right; font-size: .7rem; color: var(--emerald-700); line-height: 1.5; }
.conv-payout .side b { display: block; font-size: .78rem; }
.conv-actions { display: flex; gap: .55rem; }
.conv-actions .btn { flex: 1; }
.conv-note { font-size: .68rem; color: var(--muted-2); text-align: center; margin: .65rem 0 0; line-height: 1.45; }
.conv-tier-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 600; color: var(--emerald-700); }
.conv-tier-tag svg { width: 12px; height: 12px; }

.quote-box { margin-top: .8rem; background: var(--warn-bg); border: 1px solid #eed9a8; color: #6b4a0b; border-radius: var(--radius-sm); padding: .65rem .8rem; font-size: .75rem; display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.quote-box b { font-variant-numeric: tabular-nums; }
.lock-banner { display: flex; align-items: center; gap: .5rem; font-size: .74rem; color: var(--emerald-800); background: var(--emerald-50); border: 1px solid var(--emerald-100); padding: .5rem .7rem; border-radius: 10px; margin-top: .6rem; }

/* ---------- Rate strip ---------- */
.rate-strip { border-bottom: 1px solid var(--line); background: var(--card); }
.rate-strip-inner { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding: .9rem 0; }
.rate-strip-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rate-chip { display: flex; align-items: baseline; gap: .45rem; font-size: .84rem; color: var(--muted); }
.rate-chip b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.rate-chip .up { color: var(--success); font-size: .7rem; font-weight: 700; }
.rate-chip + .rate-chip { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.rate-strip .updated { margin-left: auto; font-size: .7rem; color: var(--muted-2); }

/* ---------- Route / corridor cards ---------- */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.route-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.route-pair { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .94rem; }
.flag-badge { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.flag-tz { background: #1f9e6a; } .flag-tr { background: #c8352f; } .flag-us { background: #2a4d8f; }
.route-pair svg { width: 16px; height: 16px; color: var(--muted-2); }
.route-rate { font-family: var(--font-display); font-size: 1.5rem; margin: .6rem 0 .1rem; color: var(--emerald-800); letter-spacing: -.01em; }
.route-rate small { font-family: var(--font-sans); font-size: .74rem; font-weight: 600; color: var(--muted); }
.route-foot { font-size: .74rem; color: var(--muted); display: flex; justify-content: space-between; margin-top: .55rem; border-top: 1px solid var(--line); padding-top: .55rem; }

/* ---------- Fees ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.tier-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; position: relative; }
.tier-card.featured { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(217,178,95,.15); }
.tier-badge { position: absolute; top: -11px; right: 1.2rem; background: var(--gold-500); color: var(--ink); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 999px; }
.tier-name { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .35rem; }
.tier-range { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; min-height: 2.4em; }
.tier-price { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--emerald-900); margin-bottom: .2rem; }
.tier-price small { font-family: var(--font-sans); font-size: .78rem; color: var(--muted); font-weight: 500; }
.tier-fixed { font-size: .78rem; color: var(--muted); margin-bottom: 1rem; }
.tier-list { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: .5rem; font-size: .82rem; }
.tier-list li { display: flex; gap: .5rem; align-items: flex-start; color: var(--ink-2); }
.tier-list svg { width: 15px; height: 15px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.tier-card .btn { margin-top: auto; }
.fee-example { margin-top: 1.5rem; background: var(--emerald-50); border: 1px dashed var(--emerald-100); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; font-size: .83rem; }
.fee-example b { color: var(--emerald-800); }
.fee-example .label { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-right: .35rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2.5rem; }
.step { position: relative; padding: 0 1.5rem; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: var(--emerald-900); color: var(--gold-300); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 1rem; }
.step h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.step p { font-size: .84rem; color: var(--muted); margin: 0; }
.step-icon { position: absolute; right: 1rem; top: 0; color: var(--line); }
.step-icon svg { width: 30px; height: 30px; }

/* ---------- Points ---------- */
.points-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.points-wrap > *, .dash-grid > * { min-width: 0; }
.point-rules { display: grid; gap: .7rem; margin-top: 1.6rem; }
.point-rule { display: flex; gap: .85rem; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: .85rem 1rem; border-radius: var(--radius-sm); }
.point-rule .pts { flex-shrink: 0; min-width: 54px; font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-300); font-weight: 600; }
.point-rule b { display: block; color: #fff; font-size: .9rem; font-weight: 600; }
.point-rule span { font-size: .78rem; color: #b9cec5; }
.points-card-demo { background: var(--card); color: var(--ink); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.pc-top { display: flex; justify-content: space-between; align-items: center; }
.pc-balance { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: var(--emerald-900); margin: .4rem 0 .1rem; }
.pc-value { font-size: .82rem; color: var(--muted); }
.pc-bar { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin: 1.3rem 0 .5rem; }
.pc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald-700), var(--gold-500)); border-radius: 99px; }
.pc-progress-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.pc-list { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .55rem; }
.pc-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .7rem; background: var(--paper); border-radius: 10px; font-size: .8rem; }
.pc-list b { color: var(--success); font-size: .78rem; white-space: nowrap; }
.pc-foot { margin-top: 1.2rem; font-size: .74rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .9rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.testimonial { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.stars { color: var(--gold-600); letter-spacing: .12em; font-size: .9rem; margin-bottom: .7rem; }
.stars .star-off { color: var(--line-strong); }
.testimonial blockquote { margin: 0 0 1.1rem; font-size: .9rem; color: var(--ink-2); line-height: 1.65; flex: 1; }
.t-person { display: flex; align-items: center; gap: .65rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--emerald-100); color: var(--emerald-800); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.t-person b { display: block; font-size: .82rem; }
.t-person span { font-size: .72rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.2rem .25rem; font-weight: 600; font-size: .95rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex-shrink: 0; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform .2s, background .2s; }
.faq-item summary .plus svg { width: 12px; height: 12px; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--emerald-900); color: #fff; border-color: var(--emerald-900); }
.faq-item p { margin: 0; padding: 0 3rem 1.3rem .25rem; color: var(--muted); font-size: .88rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--emerald-900), var(--emerald-700)); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); right: -80px; top: -140px; box-shadow: 0 0 0 40px rgba(255,255,255,.04), 0 0 0 90px rgba(255,255,255,.03); }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #c6dad2; margin: 0; max-width: 520px; }
.cta-band .actions { display: flex; gap: .6rem; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: #051f1a; color: #a9c2b8; padding: 3.5rem 0 1.5rem; font-size: .84rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 300px; color: #8ba89d; font-size: .82rem; }
.footer-col h4 { color: #e8f2ed; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a, .footer-col span { display: block; color: #9db8ad; padding: .28rem 0; font-size: .83rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); margin-top: 2.5rem; padding-top: 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: #75958a; font-size: .76rem; }
.footer-bottom .legal-links { display: flex; gap: 1rem; }
.footer-bottom .legal-links a { color: #9db8ad; }
.staff-link { color: #6e8d82 !important; border: 1px solid rgba(255,255,255,.09); padding: .25rem .6rem !important; border-radius: 999px; font-size: .72rem !important; }
.staff-link:hover { color: var(--gold-300) !important; border-color: rgba(217,178,95,.4); }
.footer-lang { display: inline-flex; gap: .4rem; align-items: center; }
.footer-lang button { background: transparent; border: 0; color: #9db8ad; font: inherit; font-size: .74rem; cursor: pointer; padding: .15rem .25rem; }
.footer-lang button.active { color: var(--gold-300); font-weight: 700; }

/* ---------- Auth / app pages ---------- */
.page-auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.auth-aside { background: linear-gradient(155deg, #063b31, #0c5748); color: #eaf3ee; padding: clamp(2rem, 5vw, 4rem); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 24px 24px; opacity: .35; mask-image: radial-gradient(ellipse at 30% 20%, #000, transparent 75%); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside h2 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-aside p { color: #b9cec5; font-size: .92rem; }
.auth-points { display: grid; gap: .9rem; margin-top: 2rem; }
.auth-point { display: flex; gap: .8rem; align-items: flex-start; font-size: .86rem; color: #d5e5de; }
.auth-point svg { width: 18px; height: 18px; color: var(--gold-400, var(--gold-500)); flex-shrink: 0; margin-top: 2px; }
.auth-main { padding: clamp(2rem, 5vw, 4.5rem) 1.5rem; display: flex; align-items: center; justify-content: center; }
.auth-card { width: min(100%, 440px); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: .3rem; font-family: var(--font-display); }
.auth-card .sub { color: var(--muted); margin-bottom: 1.7rem; font-size: .9rem; }
.auth-switch { margin-top: 1.3rem; font-size: .84rem; color: var(--muted); text-align: center; }
.auth-switch a { font-weight: 600; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted-2); font-size: .72rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demo-creds { background: var(--paper-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: .75rem .9rem; font-size: .76rem; color: var(--muted); margin-top: 1.2rem; }
.demo-creds b { color: var(--ink); }
.demo-creds code { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: .05rem .3rem; font-size: .74rem; color: var(--emerald-800); }
.demo-creds button { margin-top: .45rem; background: none; border: 0; color: var(--emerald-700); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* form basics */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .32rem; min-width: 0; }
.field label, .label { font-size: .76rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.field .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  border-radius: 10px; padding: .62rem .75rem; font: inherit; font-size: .88rem; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(20,116,95,.12); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230b1f1a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2rem; }
.hint { font-size: .72rem; color: var(--muted); }
.err { font-size: .72rem; color: var(--danger); }
.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .8rem; color: var(--ink-2); line-height: 1.45; }
.check input { margin-top: .22rem; width: 16px; height: 16px; accent-color: var(--emerald-700); flex-shrink: 0; }
.form-note { background: var(--gold-100); border: 1px solid var(--gold-300); border-radius: 10px; padding: .7rem .85rem; font-size: .76rem; color: #5c4510; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .35rem; border-radius: 6px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); background: var(--paper-2); }
.pw-toggle svg { width: 16px; height: 16px; }
.file-drop {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--paper);
  padding: 1.2rem; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--emerald-600); background: var(--emerald-50); }
.file-drop input { display: none; }
.file-drop .fd-icon { width: 38px; height: 38px; margin: 0 auto .5rem; border-radius: 50%; background: var(--emerald-100); color: var(--emerald-800); display: grid; place-items: center; }
.file-drop .fd-icon svg { width: 18px; height: 18px; }
.file-drop b { display: block; font-size: .84rem; }
.file-drop span { font-size: .72rem; color: var(--muted); }
.file-attached { display: flex; align-items: center; gap: .7rem; background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: 10px; padding: .6rem .75rem; margin-top: .5rem; }
.file-attached .fi { width: 34px; height: 34px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--danger); flex-shrink: 0; }
.file-attached .fi svg { width: 17px; height: 17px; }
.file-attached b { display: block; font-size: .78rem; word-break: break-all; }
.file-attached span { font-size: .7rem; color: var(--muted); }
.file-attached .btn { margin-left: auto; }

/* app shell */
.app-shell { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - var(--header-h)); }
.app-sidebar { background: var(--card); border-right: 1px solid var(--line); padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.app-user { padding: .75rem .6rem 1.1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); display: flex; gap: .65rem; align-items: center; }
.app-user .avatar { width: 40px; height: 40px; }
.app-user b { display: block; font-size: .84rem; line-height: 1.2; }
.app-user span { font-size: .7rem; color: var(--muted); }
.side-label { font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); padding: .9rem .65rem .35rem; }
.side-link { display: flex; align-items: center; gap: .65rem; padding: .58rem .65rem; border-radius: 9px; color: var(--ink-2); font-size: .84rem; font-weight: 500; }
.side-link svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.side-link:hover { background: var(--paper); color: var(--ink); }
.side-link.active { background: var(--emerald-50); color: var(--emerald-800); font-weight: 600; }
.side-link.active svg { color: var(--emerald-700); }
.side-link .count { margin-left: auto; background: var(--danger); color: #fff; font-size: .64rem; font-weight: 700; border-radius: 99px; padding: .1rem .4rem; }
.side-bottom { margin-top: auto; padding-top: 1rem; }
.app-main { padding: 1.9rem clamp(1rem, 3vw, 2.4rem) 3rem; min-width: 0; background: var(--paper); }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.app-head h1 { font-family: var(--font-display); font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 500; margin: 0 0 .15rem; }
.app-head p { color: var(--muted); font-size: .86rem; margin: 0; }
.app-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.4rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat-card .sc-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.stat-card .sc-value { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.15; color: var(--ink); margin: .3rem 0 .1rem; letter-spacing: -.01em; }
.stat-card .sc-sub { font-size: .72rem; color: var(--muted); }
.stat-card.gold { background: linear-gradient(135deg, #fdf6e6, #fffaf0); border-color: var(--gold-300); }
.stat-card.green { background: linear-gradient(135deg, var(--emerald-50), #fff); border-color: var(--emerald-100); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1.1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-head h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.card-head p { margin: .1rem 0 0; font-size: .76rem; color: var(--muted); }
.card-ghost { background: transparent; border-style: dashed; }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.1rem; align-items: start; }
.dash-grid > div > .card:last-child { margin-bottom: 0; }

.points-hero { background: linear-gradient(125deg, #073b31, #0d5c4b); color: #fff; border-radius: var(--radius); padding: 1.35rem 1.5rem; position: relative; overflow: hidden; }
.points-hero::after { content: ""; position: absolute; right: -40px; top: -50px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(217,178,95,.35); box-shadow: 0 0 0 28px rgba(217,178,95,.07); }
.points-hero .ph-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); font-weight: 700; }
.points-hero .ph-value { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.1; }
.points-hero .ph-value small { font-size: .8rem; font-family: var(--font-sans); color: #b9cec5; font-weight: 500; }
.points-hero .ph-sub { font-size: .76rem; color: #b9cec5; }
.referral-box { margin-top: 1rem; display: flex; align-items: center; gap: .5rem; background: var(--emerald-50); border: 1px dashed var(--emerald-100); border-radius: 10px; padding: .55rem .7rem; }
.referral-box code { font-weight: 700; color: var(--emerald-800); letter-spacing: .06em; font-size: .83rem; }
.referral-box .btn { margin-left: auto; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; min-width: 180px; z-index: 30; display: none; }
.dropdown-menu.open { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; gap: .5rem; align-items: center; padding: .5rem .6rem; border-radius: 7px; font: inherit; font-size: .82rem; color: var(--ink-2); background: none; border: 0; text-align: left; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--paper); color: var(--ink); }
.dropdown-menu svg { width: 15px; height: 15px; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 10px; }
.table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 600px; }
.table th { text-align: left; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: .6rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
.table th:first-child { border-radius: 8px 0 0 0; }
.table th:last-child { border-radius: 0 8px 0 0; }
.table td { padding: .72rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(251,248,242,.7); }
.table .strong { font-weight: 600; }
.table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .sub { display: block; font-size: .7rem; color: var(--muted); }
.table .actions { display: flex; gap: .3rem; justify-content: flex-end; }
.table-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); font-size: .85rem; }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .67rem; font-weight: 700; letter-spacing: .03em; border-radius: 999px; padding: .22rem .55rem; white-space: nowrap; text-transform: capitalize; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-pending { background: var(--warn-bg); color: var(--warn); }
.badge-approved { background: var(--info-bg); color: var(--info); }
.badge-paid { background: var(--success-bg); color: var(--success); }
.badge-rejected { background: var(--danger-bg); color: var(--danger); }
.badge-verified { background: var(--success-bg); color: var(--success); }
.badge-none, .badge-draft { background: var(--paper-2); color: var(--muted); }
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-suspended { background: var(--danger-bg); color: var(--danger); }
.badge-admin { background: var(--gold-100); color: var(--gold-700); }
.badge-staff { background: var(--info-bg); color: var(--info); }
.badge-customer { background: var(--emerald-50); color: var(--emerald-700); }
.badge-new { background: var(--gold-100); color: var(--gold-700); text-transform: uppercase; font-size: .6rem; }

.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; min-height: 38px; padding: .4rem .65rem; font-size: .8rem; }
.toolbar .grow { flex: 1; }
.toolbar .search { min-width: 220px; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: .2rem; gap: .15rem; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: inherit; font-size: .76rem; font-weight: 600; color: var(--muted); padding: .38rem .7rem; border-radius: 999px; cursor: pointer; }
.seg button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* transfer form */
.transfer-layout { display: grid; grid-template-columns: 1.55fr .95fr; gap: 1.2rem; align-items: start; }
.quote-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; position: sticky; top: calc(var(--header-h) + 16px); }
.quote-panel h3 { font-family: var(--font-display); font-size: 1.15rem; }
.qp-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); padding: .35rem 0; }
.qp-row b { color: var(--ink); font-weight: 600; text-align: right; }
.qp-row.total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .6rem; font-size: .9rem; }
.qp-payout { background: var(--emerald-50); border-radius: 10px; padding: .8rem; margin: .8rem 0; text-align: center; }
.qp-payout .label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--emerald-700); font-weight: 700; }
.qp-payout .amount { font-family: var(--font-display); font-size: 1.7rem; color: var(--emerald-900); line-height: 1.2; }
.qp-payout .amount small { font-size: .75rem; font-family: var(--font-sans); font-weight: 700; color: var(--emerald-700); }
.qp-secure { display: flex; gap: .5rem; align-items: flex-start; font-size: .7rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: .8rem; }
.qp-secure svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--success); }
.fieldset { border: 0; margin: 0 0 1.4rem; padding: 0; }
.fieldset > legend { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; padding: 0; margin-bottom: .2rem; }
.fieldset > .legend-sub { font-size: .75rem; color: var(--muted); margin-bottom: .9rem; }
.points-redeem { display: flex; align-items: center; gap: .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; flex-wrap: wrap; }
.points-redeem .input { width: 110px; min-height: 38px; }
.points-redeem .pr-info { font-size: .76rem; color: var(--muted); flex: 1; min-width: 150px; }
.points-redeem .pr-info b { color: var(--ink); }

/* payment instructions */
.pay-box { margin-top: 1rem; border: 1px solid var(--emerald-100); background: var(--emerald-50); border-radius: 14px; padding: 1rem; }
.pay-box-warn { background: var(--warn-bg); border-color: #eed9a8; }
.pay-head { display: flex; gap: .65rem; align-items: flex-start; }
.pay-head .pay-icon { width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--emerald-100); display: grid; place-items: center; color: var(--emerald-700); flex-shrink: 0; }
.pay-head .pay-icon svg { width: 17px; height: 17px; }
.pay-head b { display: block; font-size: .9rem; color: var(--emerald-900); }
.pay-head span { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.pay-top { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .9rem; }
.pay-total, .pay-ref { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.pay-total > span, .pay-ref > span { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.pay-total b { display: block; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.25; color: var(--emerald-900); }
.pay-ref-line { display: flex; align-items: center; gap: .35rem; justify-content: space-between; }
.pay-ref-line b { font-size: .95rem; color: var(--ink); }
.pay-ref-line .btn { min-height: 32px; padding: .25rem .45rem; }
.pay-ref-line svg { width: 15px; height: 15px; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin-top: .75rem; }
.pay-method { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.pay-method-title { display: flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--emerald-700); margin-bottom: .45rem; }
.pay-method-title svg { width: 15px; height: 15px; }
.pay-item { display: flex; justify-content: space-between; gap: .8rem; font-size: .76rem; padding: .2rem 0; }
.pay-item span { color: var(--muted); }
.pay-item b { text-align: right; word-break: break-word; }
.pay-instructions { margin-top: .75rem; background: #fff; border: 1px dashed var(--line-strong); border-radius: 10px; padding: .7rem .8rem; font-size: .78rem; color: var(--ink-2); line-height: 1.5; }
.pay-instructions .label { font-size: .64rem; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .2rem; }
.pay-foot { display: flex; gap: .5rem; align-items: flex-start; margin-top: .75rem; font-size: .72rem; color: var(--muted); line-height: 1.45; }
.pay-foot svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--gold-700); }
.pay-foot b { display: block; color: var(--ink-2); font-size: .74rem; }
.pay-foot span { display: block; }

/* transfer list */
.transfer-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 1rem; align-items: center; margin-bottom: .6rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.transfer-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.transfer-item .ti-ref { font-size: .7rem; color: var(--muted-2); letter-spacing: .04em; }
.transfer-item .ti-name { font-weight: 600; font-size: .88rem; }
.transfer-item .ti-amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.transfer-item .ti-amt span { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
.transfer-item .ti-meta { font-size: .72rem; color: var(--muted); }
.transfer-item .ti-actions { display: flex; gap: .35rem; justify-content: flex-end; align-items: center; }
.timeline { list-style: none; padding: 0; margin: .6rem 0 0; }
.timeline li { position: relative; padding: 0 0 .85rem 1.3rem; font-size: .78rem; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ""; position: absolute; left: 3px; top: .85rem; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li b { color: var(--ink-2); display: block; font-size: .8rem; }
.timeline li.note { color: var(--danger); }

.notice { border-radius: 10px; padding: .75rem .9rem; font-size: .8rem; display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; }
.notice svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.notice-info { background: var(--info-bg); color: #1f4a6d; }
.notice-warn { background: var(--warn-bg); color: #6b4a0b; }
.notice-danger { background: var(--danger-bg); color: #7d2422; }
.notice-success { background: var(--success-bg); color: #0f5c3c; }
.notice b { font-weight: 700; }

.empty { text-align: center; padding: 2.2rem 1rem; }
.empty .e-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--paper-2); color: var(--muted); display: grid; place-items: center; margin: 0 auto .8rem; }
.empty .e-icon svg { width: 22px; height: 22px; }
.empty b { display: block; font-size: .9rem; }
.empty p { font-size: .78rem; color: var(--muted); margin: .2rem 0 .8rem; }

.kyc-status-banner { display: flex; gap: .9rem; align-items: center; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; margin-bottom: 1.1rem; flex-wrap: wrap; }
.kyc-status-banner .k-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.kyc-status-banner .k-icon svg { width: 20px; height: 20px; }
.kyc-status-banner .k-text { flex: 1; min-width: 180px; }
.kyc-status-banner .k-text b { font-size: .88rem; display: block; }
.kyc-status-banner .k-text span { font-size: .76rem; color: var(--muted); }
.kyc-verified .k-icon { background: var(--success-bg); color: var(--success); }
.kyc-pending .k-icon { background: var(--warn-bg); color: var(--warn); }
.kyc-rejected .k-icon, .kyc-none .k-icon { background: var(--danger-bg); color: var(--danger); }

.doc-preview { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--paper); }
.doc-preview iframe, .doc-preview embed { width: 100%; height: 420px; border: 0; display: block; background: #fff; }
.doc-preview img { width: 100%; max-height: 480px; object-fit: contain; background: #fff; }
.doc-preview .doc-fallback { padding: 2.5rem 1rem; text-align: center; font-size: .8rem; color: var(--muted); }

/* ---------- Admin ---------- */
.admin-body { background: #f2f4f1; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: #071c17; color: #c3d4cd; padding: 1.2rem .9rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: .65rem; padding: .2rem .5rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: .7rem; }
.admin-brand img { width: 36px; height: 36px; border-radius: 8px; background: #fff; padding: 2px; object-fit: contain; }
.admin-brand b { font-size: .88rem; color: #fff; display: block; line-height: 1.1; }
.admin-brand span { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400, var(--gold-500)); }
.admin-nav-label { font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: #638075; padding: .9rem .7rem .3rem; font-weight: 800; }
.admin-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; color: #b6c9c1; font-size: .82rem; font-weight: 500; }
.admin-link svg { width: 16px; height: 16px; opacity: .75; flex-shrink: 0; }
.admin-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-link.active { background: var(--emerald-700); color: #fff; }
.admin-link .count { margin-left: auto; background: var(--gold-500); color: var(--ink); font-size: .62rem; font-weight: 800; border-radius: 99px; padding: .05rem .38rem; }
.admin-side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .72rem; color: #7d968c; }
.admin-side-foot .who { color: #e2eee8; font-weight: 600; font-size: .8rem; display: block; }
.admin-side-foot .role { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-300); }
.admin-side-foot button { margin-top: .6rem; width: 100%; }
.admin-main { padding: 1.6rem clamp(1rem, 2.5vw, 2.2rem) 3rem; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.admin-top h1 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; margin: 0; }
.admin-top p { margin: .15rem 0 0; font-size: .8rem; color: var(--muted); }
.admin-top .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem; }
.kpi .k-label { font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.kpi .k-value { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.2; margin: .2rem 0 0; }
.kpi .k-sub { font-size: .68rem; color: var(--muted); }
.kpi.alert { border-color: #eccac8; background: #fff8f7; }
.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; align-items: start; }
.admin-grid > * { min-width: 0; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.admin-card h2 { font-size: 1rem; margin: 0; }
.admin-card .head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.admin-card .head p { font-size: .72rem; color: var(--muted); margin: .1rem 0 0; }
.queue-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); font-size: .8rem; cursor: pointer; }
.queue-item:last-child { border-bottom: 0; }
.queue-item:hover { background: var(--paper); }
.queue-item .qi-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; flex-shrink: 0; color: var(--muted); }
.queue-item .qi-icon svg { width: 15px; height: 15px; }
.queue-item .qi-main { flex: 1; min-width: 0; }
.queue-item b { display: block; font-size: .8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item span { font-size: .7rem; color: var(--muted); }
.queue-item .num { font-weight: 600; font-size: .8rem; white-space: nowrap; }
.mini-chart { display: flex; align-items: flex-end; gap: .4rem; height: 100px; padding-top: .5rem; }
.mini-chart .bar { flex: 1; background: linear-gradient(180deg, var(--emerald-600), var(--emerald-100)); border-radius: 4px 4px 0 0; min-height: 4px; position: relative; }
.mini-chart .bar:hover { filter: brightness(.92); }
.chart-labels { display: flex; gap: .4rem; margin-top: .35rem; }
.chart-labels span { flex: 1; text-align: center; font-size: .58rem; color: var(--muted-2); text-transform: uppercase; }

.receipt-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1rem; align-items: start; }
.receipt-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.receipt-row { display: flex; align-items: center; gap: .65rem; padding: .75rem .9rem; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .8rem; }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row:hover { background: var(--paper); }
.receipt-row.active { background: var(--emerald-50); box-shadow: inset 3px 0 0 var(--emerald-700); }
.receipt-row .rr-main { flex: 1; min-width: 0; }
.receipt-row b { display: block; font-size: .8rem; }
.receipt-row span { font-size: .69rem; color: var(--muted); }
.receipt-row .num { text-align: right; white-space: nowrap; font-size: .76rem; font-weight: 600; }
.receipt-row .num span { display: block; font-weight: 400; }
.preview-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; position: sticky; top: 1rem; }
.preview-panel .pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .7rem; }
.preview-panel h3 { font-size: .95rem; margin: 0; }
.preview-panel .pp-sub { font-size: .7rem; color: var(--muted); }
.preview-panel .doc-preview iframe { height: 380px; }
.receipt-actions { display: flex; gap: .4rem; margin-top: .8rem; flex-wrap: wrap; }
.receipt-actions .btn { flex: 1; }
.pp-info { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; font-size: .74rem; margin: .8rem 0; background: var(--paper); border-radius: 8px; padding: .6rem .7rem; }
.pp-info span { color: var(--muted); display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }
.pp-info b { font-weight: 600; font-size: .78rem; }

.admin-table-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.admin-table-card .table { min-width: 760px; }
.admin-table-card .table th { background: transparent; }
.cred { display: inline-flex; align-items: center; gap: .35rem; font-family: "Consolas", monospace; font-size: .72rem; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: .1rem .35rem; max-width: 180px; }
.cred .val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cred button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.cred button:hover { color: var(--ink); }
.cred button svg { width: 12px; height: 12px; }
.staff-note { font-size: .7rem; color: var(--warn); background: var(--warn-bg); border-radius: 8px; padding: .5rem .65rem; margin-bottom: .8rem; display: flex; gap: .4rem; align-items: flex-start; }
.staff-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

.rate-editor { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.rate-editor .field { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.rate-editor .input { border: 0; background: transparent; padding: .15rem 0; min-height: 0; font-size: 1.35rem; font-family: var(--font-display); font-weight: 600; }
.rate-editor .input:focus { box-shadow: none; }
.saved-flag { font-size: .7rem; color: var(--success); display: inline-flex; align-items: center; gap: .3rem; }
.tier-edit-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr .9fr .9fr 36px; gap: .5rem; align-items: end; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.tier-edit-row .field { gap: .15rem; }
.tier-edit-row .input { min-height: 38px; font-size: .8rem; padding: .4rem .55rem; }
.tier-edit-row .label { font-size: .64rem; color: var(--muted); }
.tier-edit-row .btn-icon { align-self: center; }

.admin-login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 500px at 80% 0%, rgba(217,178,95,.12), transparent 60%), linear-gradient(155deg, #071c17, #0b2c24); padding: 1.5rem; }
.admin-login-card { width: min(100%, 420px); background: var(--card); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-lg); }
.admin-login-card h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.admin-login-card .brand { color: var(--ink); margin-bottom: 1.4rem; }
.admin-login-card .brand-logo { border: 1px solid var(--line); box-shadow: none; }
.admin-login-card .brand-sub { color: var(--gold-700); }
.admin-login-card .brand-name { color: var(--ink); }

/* modal / toast */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 31, 26, .55); backdrop-filter: blur(3px); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: var(--radius); width: min(100%, 560px); box-shadow: var(--shadow-lg); animation: rise .18s ease; margin: auto; }
.modal.wide { width: min(100%, 860px); }
@keyframes rise { from { transform: translateY(10px); opacity: .6; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.3rem .8rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 0; }
.modal-head p { font-size: .76rem; color: var(--muted); margin: .15rem 0 0; }
.modal-close { border: 0; background: var(--paper-2); color: var(--muted); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-close svg { width: 15px; height: 15px; }
.modal-body { padding: 1.2rem 1.3rem; }
.modal-foot { padding: .9rem 1.3rem 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
.modal-foot .spacer { flex: 1; }

.toast-root { position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 400; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 10px; padding: .7rem .95rem; font-size: .82rem; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: .5rem; max-width: 380px; animation: toastIn .22s ease; pointer-events: auto; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.toast.success svg { color: #7fe0b0; }
.toast.error svg { color: #ffb1a8; }
.toast.error { background: #5c1f1c; }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(6px); opacity: 0; } }

/* misc */
.pill-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .6rem; font-size: .7rem; color: var(--muted); }
.copy-field { display: flex; align-items: center; gap: .5rem; }
.copy-field code { flex: 1; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: 8px; padding: .5rem .65rem; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: "Consolas", monospace; }
[hidden] { display: none !important; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.demo-ribbon { background: var(--ink); color: #e8c98a; text-align: center; font-size: .7rem; padding: .35rem 1rem; letter-spacing: .02em; }

/* tracking */
.track-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 1.2rem; align-items: start; }
.track-layout > .card { margin-bottom: 0; }
.track-demo-tip { display: flex; gap: .45rem; align-items: flex-start; font-size: .72rem; color: var(--muted); margin-top: .8rem; }
.track-demo-tip svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.track-help { background: linear-gradient(150deg, #fff, var(--paper)); }
.track-help-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--emerald-50); color: var(--emerald-700); display: grid; place-items: center; margin-bottom: .7rem; }
.track-help h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 .35rem; }
.track-result-wrap { margin-top: 1.2rem; }
.track-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.track-result-head h2 { font-family: var(--font-display); font-size: 1.8rem; margin: .15rem 0; }
.track-amounts { display: flex; align-items: center; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; margin: 1rem 0; flex-wrap: wrap; }
.track-amounts > div:not(.track-arrow) { flex: 1; min-width: 130px; }
.track-amounts span { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.track-amounts b { font-size: 1.1rem; color: var(--ink); }
.track-arrow { color: var(--gold-700); }
.track-arrow svg { width: 22px; height: 22px; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.2rem; align-items: start; }
.contact-layout > .card { margin-bottom: 0; }
.contact-side h2 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 .35rem; }
.contact-line { display: flex; align-items: flex-start; gap: .65rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact-line svg { width: 18px; height: 18px; color: var(--emerald-700); flex-shrink: 0; margin-top: 2px; }
.contact-line span { display: block; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.contact-line b { font-size: .84rem; font-weight: 600; }
.contact-note { display: flex; gap: .45rem; align-items: flex-start; font-size: .7rem; color: var(--muted); margin-top: 1rem; }
.contact-note svg { width: 15px; height: 15px; flex-shrink: 0; }
.contact-success { text-align: center; padding: 1.2rem .5rem; }
.contact-success .cs-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin: 0 auto .8rem; }
.contact-success .cs-icon svg { width: 30px; height: 30px; }
.contact-success h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 .4rem; }
.contact-success p { font-size: .84rem; color: var(--muted); max-width: 460px; margin: 0 auto 1rem; }

/* legal */
.legal-prose { font-size: .9rem; line-height: 1.7; color: var(--ink-2); }
.legal-prose h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 1.7rem 0 .45rem; color: var(--ink); }
.legal-prose p { margin: 0 0 .9rem; }
.legal-prose .card h2 { margin-top: 0; }

/* saved recipients */
.recipient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.recipient-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.rc-top { display: flex; align-items: center; gap: .65rem; }
.rc-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--emerald-50); color: var(--emerald-700); font-weight: 700; font-size: .82rem; display: grid; place-items: center; flex-shrink: 0; }
.rc-body { flex: 1; min-width: 0; }
.rc-body b { display: block; font-size: .9rem; }
.rc-body span { display: block; font-size: .72rem; color: var(--muted); }
.rc-method { font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; background: var(--paper-2); color: var(--muted); padding: .25rem .5rem; border-radius: 999px; }
.rc-detail { display: grid; gap: .45rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.rc-detail span { display: block; font-size: .63rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rc-detail b { font-size: .78rem; font-weight: 600; word-break: break-word; }
.rc-actions { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: auto; }

/* customer support */
.support-list { display: grid; gap: .75rem; }
.support-ticket { background: var(--card); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.support-ticket summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; cursor: pointer; align-items: center; }
.support-ticket summary::-webkit-details-marker { display: none; }
.support-ticket summary:hover { background: var(--paper); }
.st-main { min-width: 0; }
.st-ref { display: inline-block; font-size: .68rem; color: var(--muted); margin-right: .5rem; }
.st-main b { font-size: .86rem; }
.st-sub { display: block; font-size: .75rem; color: var(--muted); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
.st-side { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.support-thread { border-top: 1px solid var(--line); padding: 1rem 1.1rem; }
.thread-msg { border-radius: 10px; padding: .75rem .85rem; margin-bottom: .65rem; max-width: 720px; }
.thread-msg.from-customer { background: var(--paper); border: 1px solid var(--line); }
.thread-msg.from-staff { background: var(--emerald-50); border: 1px solid #cfe2d8; }
.thread-head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .3rem; }
.thread-head b { font-size: .78rem; }
.thread-head span { font-size: .66rem; color: var(--muted); }
.thread-msg p { margin: 0; font-size: .8rem; line-height: 1.55; white-space: pre-wrap; }
.ticket-reply { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .4rem; }
.ticket-reply .textarea { font-size: .8rem; }
.ticket-reply-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: .5rem; flex-wrap: wrap; }
.support-help { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.support-help h3 { margin: 0 0 .2rem; font-size: .92rem; }
.support-help p { margin: 0; max-width: 560px; }

/* admin support */
.ticket-row { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: var(--paper); }
.ticket-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--muted); display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex-shrink: 0; }
.ticket-main { flex: 1; min-width: 0; }
.ticket-line { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.ticket-line b { font-size: .82rem; }
.ticket-sub { display: block; font-size: .69rem; color: var(--muted); margin-top: .1rem; }
.ticket-excerpt { margin: .25rem 0 0; font-size: .76rem; color: var(--muted); line-height: 1.45; }
.ticket-side { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-size: .68rem; color: var(--muted); flex-shrink: 0; }
.ticket-side .tiny { font-size: .64rem; }

/* responsive */
@media (max-width: 1060px) {
  .track-layout, .contact-layout { grid-template-columns: 1fr; }
  .recipient-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .btn-menu { display: grid; }
  .dash-grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .admin-kpis[style*="grid-template-columns"] { grid-template-columns: repeat(2, 1fr) !important; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-copy { max-width: 640px; }
  .converter { max-width: 560px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .transfer-layout { grid-template-columns: 1fr; }
  .quote-panel { position: static; }
  .receipt-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
  .points-wrap { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: .6rem; gap: .25rem; align-items: center; }
  .app-user { border: 0; padding: .2rem .6rem; margin: 0 0 0 .2rem; border-right: 1px solid var(--line); }
  .app-user div { display: none; }
  .side-label { display: none; }
  .side-link { white-space: nowrap; padding: .45rem .65rem; font-size: .78rem; }
  .side-bottom { margin: 0 0 0 auto; padding: 0; border: 0; }
  .app-main { padding-top: 1.4rem; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; align-items: center; padding: .6rem; }
  .admin-brand { border: 0; padding: .1rem .5rem; margin: 0; border-right: 1px solid rgba(255,255,255,.09); flex-shrink: 0; }
  .admin-brand div span { display: none; }
  .admin-nav-label { display: none; }
  .admin-link { white-space: nowrap; padding: .45rem .6rem; font-size: .76rem; }
  .admin-link svg { display: none; }
  .admin-side-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex-shrink: 0; }
  .admin-side-foot .who, .admin-side-foot .role { display: none; }
  .admin-side-foot button { margin: 0; }
}
@media (max-width: 820px) {
  .page-auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .header-actions > .btn { display: none; }
  .route-grid, .tier-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .tier-grid { gap: 1.2rem; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.8rem 0; }
  .step { padding: 0 1rem; }
  .step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step-icon { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { display: block; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .transfer-item { grid-template-columns: 1fr 1fr; }
  .transfer-item .ti-actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .rate-editor { grid-template-columns: 1fr; }
  .tier-edit-row { grid-template-columns: 1fr 1fr; }
  .tier-edit-row .btn-icon { grid-column: 1 / -1; }
  .admin-kpis { grid-template-columns: 1fr 1fr; }
  .table { min-width: 620px; }
  .support-ticket summary { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .st-sub { white-space: normal; max-width: none; }
  .st-side { width: 100%; justify-content: space-between; }
  .ticket-row { gap: .55rem; }
  .ticket-side { display: none; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .header-actions .lang-select { display: none; }
  .hero { padding-top: 2.2rem; }
  .hero h1 { font-size: 2.05rem; }
  .conv-input-row input { font-size: 1.3rem; }
  .conv-payout { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .conv-payout .side { text-align: left; }
  .conv-actions { flex-direction: column; }
  .rate-strip .updated { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .stat-card { padding: .8rem .9rem; }
  .stat-card .sc-value { font-size: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; padding: 0; }
  .step h3 { margin-top: .2rem; }
  .app-head { align-items: flex-start; }
  .app-head .actions { width: 100%; }
  .app-head .actions .btn { flex: 1; }
  .app-main { padding-inline: .9rem; }
  .admin-main { padding-inline: .9rem; }
  .admin-top h1 { font-size: 1.45rem; }
  .admin-kpis { gap: .6rem; }
  .kpi .k-value { font-size: 1.35rem; }
  .auth-main { padding: 2rem 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal-backdrop { padding: .75rem; }
  .pay-top { grid-template-columns: 1fr; }
  .modal-body { padding: 1rem; }
  .transfer-item { grid-template-columns: 1fr; gap: .5rem; }
  .notice { font-size: .76rem; }
  .toolbar .search { min-width: 0; flex: 1; }
  .badge { font-size: .62rem; }
  .table th, .table td { padding: .55rem .5rem; }
  .receipt-row .num { font-size: .7rem; }
  .track-result-head { flex-direction: column; }
  .track-amounts { align-items: flex-start; }
  .track-arrow { display: none; }
  .track-amounts > div:not(.track-arrow) { min-width: 100%; }
  .recipient-card { padding: .9rem; }
  .legal-prose { font-size: .85rem; }
}

@media print {
  .site-header, .site-footer, .admin-sidebar, .admin-top .actions, .receipt-actions, .toolbar { display: none !important; }
  body { background: #fff; }
  .admin-shell { display: block; }
  .admin-main { padding: 0; }
  .preview-panel { border: 0; box-shadow: none; }
  .doc-preview iframe { height: 90vh; }
}
