/* Hufan Exchange — main stylesheet (public site + shared components) */
:root {
  --brand: #0e7c66;
  --brand-600: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-700: color-mix(in srgb, var(--brand) 65%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 8%, #fff);
  --brand-100: color-mix(in srgb, var(--brand) 16%, #fff);
  --accent: #f5a524;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f6;
  --bg: #f5f7fa;
  --card: #ffffff;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: -3px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; word-break: break-all; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.inline { display: inline; margin: 0; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.hidden, [hidden] { display: none !important; }

/* ---------- Header ---------- */
.announce { background: var(--ink); color: #e2e8f0; font-size: 13px; padding: 8px 0; text-align: center; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(6, 63, 52, .7); }
.logo-text { white-space: nowrap; }
.logo-text-2 { font-weight: 500; color: var(--brand); }
.brand-light .logo-text-2 { color: #5eead4; }
.logo-img { height: 38px; width: auto; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 14.5px;
}
.nav-links > a:hover, .link-btn:hover { background: var(--line-2); color: var(--ink); }
.nav-links > a.active { color: var(--brand); background: var(--brand-50); }
.nav-links > a.btn { color: #fff; margin-left: 4px; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.link-btn { background: none; border: 0; cursor: pointer; font: inherit; }
.lang-switch { font-weight: 700 !important; font-size: 13px !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 8px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 66px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px;
    box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .3);
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .link-btn { padding: 11px 12px; width: 100%; }
  .nav-links > a.btn { margin: 6px 0 0; justify-content: center; }
  .nav-sep { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.2;
  cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s, color .15s, border-color .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #cbd5e1; background: #f8fafc; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: #fef2f2; color: var(--danger); }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #047857; color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 22px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Cards, layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-body { padding: 22px; }
.card-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16.5px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.page { padding: 34px 0 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.narrow { max-width: 460px; margin: 0 auto; }
.medium { max-width: 760px; margin: 0 auto; }

/* ---------- Alerts ---------- */
.flash-wrap { padding-top: 18px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 11px; border: 1px solid; margin-bottom: 10px; font-size: 14.5px; }
.alert .icon { margin-top: 1px; }
.alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border: 1px solid #cfd8e3; border-radius: 10px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.input[readonly] { background: #f8fafc; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); }
.input-group { display: flex; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.file-drop {
  display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed #cbd5e1; border-radius: 12px;
  color: var(--muted); cursor: pointer; background: #fafbfc; font-weight: 500; font-size: 14px;
}
.file-drop:hover { border-color: var(--brand); color: var(--brand); }
.file-drop input { display: none; }

/* ---------- Hero & calculator ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f1b2d 100%);
  color: #fff; padding: 64px 0 76px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .hero { padding: 40px 0 56px; } }
.eyebrow {
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #d1fae5;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; margin: 18px 0 14px; }
.hero .lead { font-size: 17px; color: #cbd5e1; max-width: 560px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; color: #e2e8f0;
}
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 18px; display: inline-flex; gap: 6px; align-items: center; }
.hero-stats span { color: #94a3b8; font-size: 13px; }

.calc { padding: 24px; color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); border: 0; }
.calc-title { font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.calc-title .icon { color: var(--brand); }
.calc-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fbfcfd; transition: border-color .15s, box-shadow .15s; }
.calc-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); background: #fff; }
.calc-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.calc-row { display: flex; align-items: center; gap: 10px; }
.calc-amount { flex: 1 1 0; width: 0; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 26px; font-weight: 700; color: var(--ink); padding: 4px 0; letter-spacing: -.02em; }
.calc-amount:focus { outline: none; }
.calc-static { flex: 1; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.gw-select { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 4px; }
.gw-select { flex-shrink: 0; }
.gw-select select { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink); padding: 6px 4px; max-width: 150px; cursor: pointer; }
@media (max-width: 420px) { .gw-select select { max-width: 118px; font-size: 13px; } .calc { padding: 18px; } }
.gw-select select:focus { outline: none; }
.calc-mid { display: flex; align-items: center; justify-content: space-between; padding: 10px 6px; }
.swap-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: grid; place-items: center; color: var(--brand); transform: rotate(90deg); transition: background .15s;
}
.swap-btn:hover:not(:disabled) { background: var(--brand-50); }
.swap-btn:disabled { color: #cbd5e1; cursor: default; }
.calc-rate { font-weight: 600; font-size: 13.5px; color: var(--ink-2); background: var(--brand-50); padding: 6px 12px; border-radius: 999px; }
.calc-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 14px; }
.calc-meta div { background: #f8fafc; border-radius: 10px; padding: 9px 10px; }
.calc-meta dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.calc-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 13px; }
@media (max-width: 480px) { .calc-meta { grid-template-columns: 1fr; } .calc-amount { font-size: 22px; } }
.calc-error { background: #fef2f2; color: #991b1b; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 500; margin-bottom: 12px; }

/* ---------- Gateway badge ---------- */
.gw {
  --gw: #64748b;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center; overflow: hidden;
  background: var(--gw); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: -.02em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}
.gw img { width: 100%; height: 100%; object-fit: cover; }
.gw-img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gw-xs { width: 22px; height: 22px; font-size: 9px; }
.gw-sm { width: 28px; height: 28px; font-size: 10.5px; }
.gw-lg { width: 46px; height: 46px; font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.section-head p { color: var(--muted); margin: 0; }

.rate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rate-card { padding: 20px; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; }
.rate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); color: var(--ink); }
.rate-pair { display: flex; align-items: center; gap: 8px; }
.rate-pair .gw { width: 40px; height: 40px; }
.rate-arrow { color: var(--muted); }
.rate-names { font-weight: 700; margin: 12px 0 2px; }
.rate-names span { color: var(--muted); font-weight: 400; }
.rate-value { color: var(--brand); font-weight: 700; font-size: 14px; }
.rate-facts { list-style: none; padding: 0; margin: 14px 0; border-top: 1px dashed var(--line); }
.rate-facts li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.rate-facts span { color: var(--muted); }
.rate-cta { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }

.reserve-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.reserve { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.reserve-name { display: block; color: var(--muted); font-size: 13px; }
.reserve-amt { font-size: 18px; letter-spacing: -.01em; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 22px; }
.step-no {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800;
  background: var(--brand-50); color: var(--brand); margin-bottom: 14px;
}
.step h3 { font-size: 16px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); margin-bottom: 14px; }
.feature h3 { font-size: 16px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1220; color: #94a3b8; padding: 52px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid > div > a:not(.brand), .footer-grid > div > span { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 14px; padding: 4px 0; }
.footer-grid > div > a:not(.brand):hover { color: #fff; }
.footer-text { margin-top: 14px; font-size: 14px; max-width: 360px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding: 18px 20px; font-size: 13px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -8px rgba(37, 211, 102, .7);
}
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.table .pair-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.table .pair-cell .gw { width: 26px; height: 26px; font-size: 10px; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .icon { color: #cbd5e1; margin: 0 auto 10px; display: block; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-awaiting_payment { background: #fff7ed; color: #c2410c; }
.badge-pending { background: #fefce8; color: #a16207; }
.badge-processing { background: #eff6ff; color: #1d4ed8; }
.badge-completed { background: #ecfdf5; color: #047857; }
.badge-cancelled { background: #f1f5f9; color: #475569; }
.badge-rejected { background: #fef2f2; color: #b91c1c; }
.badge-expired { background: #f5f3ff; color: #6d28d9; }
.badge-active { background: #ecfdf5; color: #047857; }
.badge-blocked, .badge-inactive { background: #fef2f2; color: #b91c1c; }

/* ---------- Key/value lists ---------- */
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.kv dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; min-width: 0; }
.kv .big { font-size: 18px; color: var(--brand); }

/* ---------- Stats ---------- */
.stat { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.stat-ic.orange { background: #fff7ed; color: #ea580c; }
.stat-ic.blue { background: #eff6ff; color: #2563eb; }
.stat-ic.violet { background: #f5f3ff; color: #7c3aed; }
.stat-label { color: var(--muted); font-size: 13px; display: block; }
.stat-value { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Order page ---------- */
.order-hero { padding: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-no { font-size: 13px; color: var(--muted); }
.order-no strong { font-size: 20px; color: var(--ink); display: block; letter-spacing: .02em; }
.flow { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.flow-side { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 200px; }
.flow-side small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.flow-side strong { font-size: 19px; letter-spacing: -.01em; }
.flow-arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.progress { display: flex; padding: 18px 22px 22px; gap: 6px; }
.progress-step { flex: 1; text-align: center; position: relative; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.progress-step::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.progress-step:first-child::before { display: none; }
.progress-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto 6px; color: #fff; }
.progress-step.done .progress-dot { background: var(--brand); border-color: var(--brand); }
.progress-step.done::before, .progress-step.current::before { background: var(--brand); }
.progress-step.current .progress-dot { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-100); }
.progress-step.done, .progress-step.current { color: var(--ink); }
.pay-box { border: 1.5px solid var(--brand-100); background: linear-gradient(180deg, var(--brand-50), #fff); border-radius: var(--radius); padding: 22px; }
.pay-box h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.pay-target { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.pay-target small { display: block; color: var(--muted); font-size: 12px; }
.pay-target strong { font-size: 19px; letter-spacing: .02em; word-break: break-all; }
.copy-btn { position: relative; }
.copy-btn.copied::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--ok); color: #fff; border-radius: inherit; font-weight: 700;
}
.countdown { display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; color: #c2410c; font-weight: 700; padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.timeline .tl-time { font-size: 12.5px; color: var(--muted); }
.timeline .tl-note { font-size: 14px; color: var(--ink-2); margin-top: 3px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 66px - 220px); display: grid; place-items: center; padding: 40px 20px 60px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px; }
.auth-card h1 { font-size: 24px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Filters & pagination ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px 22px; border-bottom: 1px solid var(--line); background: #fcfdfe; }
.filters .form-group { margin: 0; min-width: 140px; flex: 1; }
.filters label { font-size: 12px; }
.filters .input { padding: 9px 11px; font-size: 14px; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }

.prose { white-space: pre-line; color: var(--ink-2); }
.proof-img { border-radius: 12px; border: 1px solid var(--line); max-height: 420px; width: auto; }
