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

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --navy: #0b1f3b;
  --navy-hover: #102a43;
  --gold: #b7791f;
  --gold-soft: #f8f3e6;
  --blue: #2563eb;
  --focus: rgba(37, 99, 235, 0.18);
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.9rem, 4.8vw, 2.35rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
ol { margin: 0; padding-left: 1.2rem; }
a { color: var(--blue); }

.site {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px calc(40px + env(safe-area-inset-bottom));
}

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.brand-sub { font-size: 0.9rem; color: var(--muted); margin-top: 1px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.intro { margin-bottom: 20px; }
.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 70ch;
}
.gift-amount { color: var(--navy); }

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.highlight { display: flex; flex-direction: column; gap: 3px; }
.highlight strong { font-size: 1rem; color: var(--text); font-weight: 650; }
.highlight span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

.window-panel {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.window-icon { display: flex; align-items: center; justify-content: center; }
.window-copy { flex: 1 1 220px; min-width: 0; }
.window-kicker { font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.window-label { font-size: 1rem; font-weight: 600; color: var(--text); margin-top: 2px; }
.window-badge {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.location-note { margin-top: 12px; font-size: 0.95rem; color: var(--text-secondary); }
.muted { color: var(--muted); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.info-grid .info-card:only-child { grid-column: 1 / -1; }
.info-card h2 { font-size: 1.05rem; margin-bottom: 14px; }
.info-card p, .info-card li { font-size: 0.97rem; color: var(--text-secondary); }
.info-card ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process-step;
}
.info-card ol li {
  counter-increment: process-step;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.info-card ol li::before {
  content: counter(process-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}

.form-card { margin-bottom: 20px; }
.form-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border); }
.form-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.section-title { font-size: 1.15rem; margin-bottom: 6px; }
.section-help { font-size: 0.98rem; color: var(--text-secondary); margin-bottom: 18px; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label, .label-text {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}
.field-help {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.5;
}
.opt { font-weight: 500; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], select {
  display: block;
  width: 100%;
  min-width: 0;
  appearance: none;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder { color: #94a3b8; }
input:hover, select:hover { border-color: #94a3b8; }
input:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.has-error input, .has-error select { border-color: var(--danger); background: #fff; }
.has-error input:focus, .has-error select:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12); }
.field-error { font-size: 0.9rem; color: var(--danger); margin-top: 7px; font-weight: 500; }

.row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-pair .field { margin-bottom: 18px; }

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* wallet selection */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}
.wallet-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 96px;
  padding: 14px 10px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}
.wallet-card:hover { border-color: #94a3b8; background: var(--bg-soft); color: var(--text); }
.wallet-card:active { background: var(--bg-soft); border-color: #94a3b8; box-shadow: none; }
.wallet-card:focus { outline: none; }
.wallet-card:focus:not(:focus-visible) { box-shadow: none; }
.wallet-card.on:focus:not(:focus-visible),
.wallet-card[aria-pressed="true"]:focus:not(:focus-visible) { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.wallet-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1); border-color: #94a3b8; }
.wallet-card.on, .wallet-card[aria-pressed="true"] {
  position: relative;
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.wallet-card.on::after, .wallet-card[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}
.wicon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 auto; overflow: hidden; border-radius: 12px; }
.wicon svg, .wicon img { width: 48px; height: 48px; display: block; object-fit: contain; border-radius: 12px; }
.wallet-card[data-w="Exchange"] .wicon,
.wallet-card[data-w="Exchange"] .wicon img { width: 52px; height: 52px; flex-basis: 52px; border-radius: 12px; }
.wname { line-height: 1.2; }

.network-panel {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--gold-soft);
  border: 1px solid #ecd9a6;
  border-radius: 10px;
  font-size: 0.95rem;
}
.network-label { color: #7a5a1a; font-weight: 600; }
.network-panel strong { color: var(--navy); }
.hint { font-size: 0.95rem; color: var(--text-secondary); margin-top: 10px; margin-bottom: 4px; }

/* consent */
.check-field { margin-top: 4px; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.55;
}
.check-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--navy);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus { outline: none; }
.btn:focus:not(:focus-visible) { box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18); }
.btn-primary:disabled {
  background: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border-strong);
  margin-top: 18px;
}
.btn-secondary:hover { background: var(--bg-soft); border-color: #94a3b8; }
.btn-secondary:active { background: var(--bg-soft); border-color: #94a3b8; box-shadow: none; }
.btn-small { width: auto; min-height: 42px; padding: 10px 16px; font-size: 0.95rem; border-radius: 10px; }

.notice {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.98rem;
  margin-bottom: 18px;
  line-height: 1.55;
}
.notice-error { background: var(--danger-soft); border: 1px solid #fecaca; color: #991b1b; }
.notice-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }


.hide { display: none !important; }

/* success page */
.success-page { max-width: 760px; }
.success-card { text-align: center; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); border: 1px solid #bbf7d0;
  display: flex; align-items: center; justify-content: center; margin: 4px auto 16px;
}
.page-title { margin-bottom: 8px; }
.success-card .lede { margin: 0 auto 18px; }
.detail-list { margin: 20px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-align: left; }
.detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { font-size: 0.95rem; color: var(--muted); font-weight: 600; }
.detail-row dd { margin: 0; font-size: 1rem; color: var(--text); font-weight: 600; text-align: right; }
.detail-row .ref { color: var(--navy); font-size: 1.05rem; letter-spacing: 0.02em; }
.status-pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 0.9rem; font-weight: 600; }
.next-steps { text-align: left; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 16px; margin-bottom: 8px; }
.next-steps h2 { font-size: 1.05rem; margin-bottom: 10px; }
.next-steps ol { display: grid; gap: 8px; color: var(--text-secondary); font-size: 0.98rem; }
.safety-note { margin-top: 14px; font-size: 0.95rem; color: var(--text-secondary); }

/* admin */
.admin-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 20px calc(40px + env(safe-area-inset-bottom)); }
.admin-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-actions .btn { margin-top: 0; }
.inline-form { margin: 0; }
.admin-header h1 { font-size: 1.8rem; }
.count { font-size: 1rem; font-weight: 700; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.admin-sub { color: var(--muted); font-size: 0.98rem; margin-top: 4px; }
.table-card { padding: 0; overflow: hidden; }
/* admin login */
.admin-login-page {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - 40px);
  margin: 0 auto;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(11, 31, 59, 0.06), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #ffffff 100%);
}
.login-shell {
  width: 100%;
  max-width: 480px;
}
.login-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(11, 31, 59, 0.08);
}
.login-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.login-shield {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e6dcc7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 14px rgba(183, 121, 31, 0.08);
}
.login-shield svg { width: 28px; height: 28px; display: block; }
.login-header-text { min-width: 0; }
.login-eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.login-header h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 6px;
}
.login-header .admin-sub {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
.login-form { margin-top: 4px; }
.login-field { margin-bottom: 20px; }
.login-field label { font-size: 0.95rem; color: var(--text); margin-bottom: 8px; }
.login-field input[type="password"],
.login-field input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}
.login-field input[type="password"]:hover,
.login-field input[type="text"]:hover { border-color: #94a3b8; }
.login-field input[type="password"]:focus,
.login-field input[type="text"]:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(11, 31, 59, 0.12);
}
.login-field .field-help { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.login-form .login-submit {
  margin-top: 4px;
  min-height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  border: 1px solid #0b1f3b;
  box-shadow: 0 8px 18px rgba(11, 31, 59, 0.18);
}
.login-form .login-submit:hover {
  background: #102a43;
  border-color: #102a43;
  box-shadow: 0 10px 22px rgba(11, 31, 59, 0.22);
}
.login-form .login-submit:active {
  transform: translateY(1px);
  box-shadow: 0 5px 12px rgba(11, 31, 59, 0.18);
}
.login-form .login-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.18), 0 8px 18px rgba(11, 31, 59, 0.18);
}
.login-footer-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; background: var(--bg-soft); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td code { font-size: 0.86rem; word-break: break-all; color: var(--text); }
.flag { display: inline-flex; font-size: 0.8rem; font-weight: 700; background: #fffbeb; color: #92400e; border: 1px solid #fde68a; padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
.flag-bot { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }

/* phone country selector */
.phone-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin-top: 0;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: visible;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.phone-control:hover { border-color: #94a3b8; }
.phone-control:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--focus);
}
.has-error .phone-control {
  border-color: var(--danger);
  box-shadow: none;
}
.has-error .phone-control:focus-within {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.country-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  height: 100%;
  min-width: 0;
  padding: 0 14px;
  margin: 0;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: calc(var(--radius-sm) - 1px) 0 0 calc(var(--radius-sm) - 1px);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.country-select-btn:hover { background: #f8fafc; }
.country-select-btn:focus { outline: none; }
.country-select-btn:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.country-flag { font-size: 1.05rem; line-height: 1; flex: 0 0 auto; }
.country-dial { font-weight: 600; color: var(--navy); line-height: 1; }
.country-caret { font-size: 0.72rem; color: var(--muted); line-height: 1; flex: 0 0 auto; }
.phone-control > input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 0;
  height: 100%;
  margin-top: 0;
  border: 0;
  border-radius: 0 calc(var(--radius-sm) - 1px) calc(var(--radius-sm) - 1px) 0;
  background: transparent;
  box-shadow: none;
  padding: 0 14px;
  line-height: 1.4;
}
.phone-control > input[type="tel"]:hover,
.phone-control > input[type="tel"]:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}
.phone-control > input[type="tel"]:disabled {
  background: transparent;
  color: #94a3b8;
  cursor: not-allowed;
}
.phone-valid {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 100%;
  color: var(--success);
  font-size: 0.95rem;
  font-weight: 700;
  padding-right: 10px;
}
.phone-valid[hidden] { display: none !important; }
.phone-control.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.phone-control.is-invalid:focus-within {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.phone-control.is-valid {
  border-color: #86efac;
}
.phone-feedback {
  min-height: 1.2em;
  margin-top: 7px;
}
.phone-feedback:empty { display: none; }
.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  width: min(360px, 100vw - 40px);
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.country-dropdown[hidden] { display: none !important; }
.country-search-wrap {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.country-search-wrap .country-search {
  margin-top: 0;
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 10px;
}
.country-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.country-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.country-item:hover, .country-item[aria-selected="true"] { background: #f1f5f9; }
.country-item .c-flag { width: 1.4em; flex: 0 0 auto; text-align: center; }
.country-item .c-name { flex: 1 1 auto; min-width: 0; color: var(--text); }
.country-item .c-dial { flex: 0 0 auto; color: var(--text-secondary); font-weight: 600; }
.country-empty {
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}
.country-empty[hidden] { display: none !important; }
@media (max-width: 640px) {
  .country-dropdown {
    width: 100%;
    max-width: 100%;
  }
  .country-select-btn { padding: 0 10px; gap: 6px; }
  .country-dial { font-size: 0.95rem; }
  .phone-control > input[type="tel"] { padding: 0 12px; }
}

/* responsive */
@media (max-width: 760px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .info-card:only-child { grid-column: auto; }
  .info-card ol { grid-template-columns: 1fr; gap: 12px; }
  .highlights { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .site { padding: 20px 16px calc(32px + env(safe-area-inset-bottom)); }
  .card { padding: 20px; border-radius: 14px; }
  .row-pair { grid-template-columns: 1fr; gap: 0; }
  .wallet-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-row { flex-direction: column; gap: 4px; }
  .detail-row dd { text-align: left; }
  input[type="text"], input[type="email"], input[type="tel"], select, input[type="password"] { font-size: 16px; }
  .admin-login-page { padding: 24px 16px calc(28px + env(safe-area-inset-bottom)); align-items: flex-start; }
  .login-card { padding: 24px 18px; border-radius: 16px; }
  .login-header { gap: 12px; }
  .login-shield { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; }
  .login-shield svg { width: 24px; height: 24px; }
  .login-header h1 { font-size: 1.5rem; }
}
@media (max-width: 380px) {
  .wallet-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 641px) {
  .row-pair { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .wallet-card, input, select { transition: none; }
}
