/* Al-Jahfali Unified Yemeni Wallets Hub — Clean Fintech Design System (Light & Dark)
 * Original CSS crafted for Al-Jahfali Digital Solutions.
 */
:root {
  --page: #f6f7fb;
  --surface: #ffffff;
  --surface-alt: #edf1f7;
  --soft: #f6f7fb;
  --header: rgba(255, 255, 255, 0.93);
  --brand: #064e83;
  --brand-solid: #064e83;
  --brand-hover: #08609f;
  --amber: #f4971f;
  --amber-hover: #e68914;
  --amber-ink: #173451;
  --free-accent: #c71d38;
  --text: #242936;
  --muted: #6b7485;
  --line: #e8ebf2;
  --line-strong: #d5dfea;
  --selected: #e8f1f8;
  --blob: #e8eff7;
  --warn-bg: #fff6e6;
  --warn-border: #f7d090;
  --warn-ink: #7a4b04;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --success-ink: #065f46;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-ink: #991b1b;
  --wa-green: #128c7e;
  --wa-green-hover: #0c7e70;
  --shadow-card: 0 3px 15px rgba(23, 47, 76, 0.04);
  --shadow-float: 0 10px 30px rgba(18, 60, 92, 0.22);
  --shadow-modal: 0 24px 64px rgba(12, 24, 44, 0.22);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --font: 'Cairo', 'Tajawal', Tahoma, system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
  --page: #14171f;
  --surface: #20242e;
  --surface-alt: #2a303d;
  --soft: #171b24;
  --header: rgba(27, 31, 41, 0.93);
  --brand: #8ec8f2;
  --brand-solid: #0b63a3;
  --brand-hover: #0d74bf;
  --amber: #f4971f;
  --amber-hover: #ffa634;
  --amber-ink: #13283f;
  --free-accent: #ff5d78;
  --text: #f2f4f8;
  --muted: #acb5c5;
  --line: #343b4a;
  --line-strong: #434d60;
  --selected: #283649;
  --blob: #233044;
  --warn-bg: #332714;
  --warn-border: #6e4e1a;
  --warn-ink: #fbd38d;
  --success-bg: #112b22;
  --success-border: #1e5d47;
  --success-ink: #6ee7b7;
  --danger-bg: #33191e;
  --danger-border: #7f1d1d;
  --danger-ink: #fca5a5;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.22);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--page);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 999;
  background: var(--brand-solid);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1192px;
  margin-inline: auto;
  padding-inline: 22px;
}

.wrap-narrow {
  max-width: 820px;
}

/* ==================== Sticky Frosted Header ==================== */
.wh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 78px;
  background: var(--header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.wh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.wh-brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.wh-brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text);
}

.wh-brand-sep {
  width: 1.5px;
  height: 22px;
  background: var(--line-strong);
}

.wh-brand-sub {
  color: var(--brand);
  font-weight: 800;
}

.wh-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.wh-links a {
  padding: 6px 2px;
  transition: color 0.16s ease;
  position: relative;
}

.wh-links a:hover,
.wh-links a[aria-current="page"] {
  color: var(--brand);
}

.wh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wh-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-alt);
}

.btn:active {
  transform: scale(0.985);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 11px;
}

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--amber-ink);
}

.btn-amber:hover {
  background: var(--amber-hover);
  border-color: var(--amber-hover);
}

.btn-dark {
  background: var(--brand-solid);
  border-color: var(--brand-solid);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--selected);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.btn-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.btn-danger:hover {
  filter: brightness(0.96);
}

.btn-full {
  width: 100%;
}

.theme-pill {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.theme-pill:hover {
  background: var(--surface-alt);
  border-color: var(--line-strong);
}

/* ==================== Hero Section ==================== */
.landing-main {
  padding-bottom: 116px;
}

.landing-hero {
  padding-block: 54px 68px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--selected);
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.landing-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.28;
  letter-spacing: -0.5px;
  font-weight: 800;
  color: var(--text);
}

.landing-copy .free-line {
  display: block;
  color: var(--free-accent);
}

.landing-lead {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-cta-row .btn {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 16px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ==================== Interactive Hero Phone Preview ==================== */
.landing-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.seg-pill {
  display: inline-flex;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  gap: 4px;
}

.seg-pill button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.seg-pill button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.phone-blob {
  position: absolute;
  width: min(370px, 88vw);
  height: min(410px, 95vw);
  background: var(--blob);
  border-radius: 42% 48% 38% 46% / 44% 39% 51% 42%;
  z-index: 0;
  transition: background-color 0.25s ease;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(302px, 100%);
  min-height: 556px;
  border-radius: 38px;
  padding: 12px;
  background: #141923;
  box-shadow: 0 24px 56px rgba(8, 25, 48, 0.24), inset 0 0 0 2px #2c3547;
}

.phone-notch {
  width: 96px;
  height: 22px;
  background: #141923;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.phone-screen {
  --p-bg: #f6f7fb;
  --p-surface: #ffffff;
  --p-text: #242936;
  --p-muted: #6b7485;
  --p-line: #e4e9f2;
  --p-sel: #e8f1f8;
  width: 100%;
  min-height: 532px;
  max-height: 560px;
  overflow-y: auto;
  border-radius: 28px;
  background: var(--p-bg);
  color: var(--p-text);
  padding: 34px 14px 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.phone-screen[data-phone-theme="dark"] {
  --p-bg: #14171f;
  --p-surface: #20242e;
  --p-text: #f2f4f8;
  --p-muted: #acb5c5;
  --p-line: #343b4a;
  --p-sel: #283649;
}

.phone-store-head {
  text-align: center;
  margin-bottom: 12px;
}

.phone-avatar {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin: 0 auto 6px;
  background: #064e83;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  overflow: hidden;
  border: 1px solid var(--p-line);
}

.phone-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-store-head strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.phone-store-head small {
  display: block;
  font-size: 11.5px;
  color: var(--p-muted);
}

.phone-notice {
  background: #fff6e6;
  color: #7a4b04;
  border: 1px solid #f5d196;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.phone-screen[data-phone-theme="dark"] .phone-notice {
  background: #332714;
  color: #fbd38d;
  border-color: #6b4d1a;
}

.phone-wallets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.phone-wallets.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pw-card {
  background: var(--p-surface);
  border: 1px solid var(--p-line);
  border-radius: 15px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-emblem {
  object-fit: contain;
  border-radius: 13px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 2px;
  flex-shrink: 0;
}

.wallet-emblem[src*="hasib.webp"] {
  background: linear-gradient(135deg, #6b3fa0, #4d2680);
  border-color: #5b2f91;
  padding: 4px;
}

.pw-top svg,
.pw-top .wallet-emblem {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.pw-meta {
  min-width: 0;
  flex: 1;
}

.pw-name {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--p-muted);
  direction: ltr;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.phone-wallets.two-col .pw-top {
  flex-direction: column;
  text-align: center;
  gap: 5px;
}

.phone-wallets.two-col .pw-num {
  text-align: center;
  font-size: 11px;
}

.pw-copy-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 7px 8px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.15s ease, transform 0.12s ease;
}

.pw-copy-btn:hover {
  opacity: 0.92;
}

.pw-copy-btn:active {
  transform: scale(0.97);
}

.phone-add-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1.5px dashed #7aa9cf;
  background: var(--p-sel);
  color: #064e83;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.phone-screen[data-phone-theme="dark"] .phone-add-btn {
  color: #8ec8f2;
  border-color: #4f7aa3;
}

.preview-caption {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ==================== Dual-Track Supported Wallets Marquee Band ==================== */
.wallet-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: 52px;
  overflow: hidden;
}

.band-head {
  text-align: center;
  margin-bottom: 30px;
}

.band-head h2 {
  margin: 0 0 8px;
  font-size: 27px;
  font-weight: 800;
}

.band-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.marquee-viewport {
  direction: ltr;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  padding-block: 6px;
}

.marquee-viewport::-webkit-scrollbar {
  display: none;
}

.marquee-viewport.dragging {
  cursor: grabbing;
}

.marquee-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: max-content;
  margin-inline: auto;
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: wh-marquee-left 42s linear infinite;
}

.marquee-track.reverse {
  animation: wh-marquee-right 46s linear infinite;
}

.marquee-viewport:hover .marquee-track,
.marquee-viewport.dragging .marquee-track {
  animation-play-state: paused;
}

@keyframes wh-marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes wh-marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.wallet-tile {
  direction: rtl;
  width: 118px;
  flex-shrink: 0;
  padding: 14px 10px;
  border-radius: 18px;
  background: var(--page);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.wallet-tile:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  background: var(--surface);
}

.wallet-tile svg,
.wallet-tile .wallet-emblem {
  width: 54px;
  height: 54px;
  border-radius: 15px;
}

.wallet-tile span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.band-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.band-foot a {
  color: var(--brand);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.band-foot a:hover {
  text-decoration: underline;
}

/* ==================== Features 3x2 Grid ==================== */
.wh-section {
  padding-block: 68px;
}

.section-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-split h2,
.section-center h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
}

.section-center {
  text-align: center;
  margin-bottom: 34px;
}

.section-center p {
  margin: 8px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15.5px;
}

.text-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-link:hover {
  text-decoration: underline;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.feature-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--selected);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}

.feature-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* ==================== How It Works (3 Steps with Miniature Live Previews) ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.step-copy {
  padding: 24px 24px 20px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--selected);
  color: var(--brand);
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.step-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.step-demo {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 20px;
  min-height: 256px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-ui {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.mini-field {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
}

.mini-slug {
  direction: ltr;
  text-align: left;
  color: var(--brand);
  font-family: ui-monospace, Consolas, monospace;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 8px;
}

.mini-row:last-child {
  margin-bottom: 0;
}

.mini-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.mini-switch {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-solid);
  position: relative;
}

.mini-switch::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
}

.mini-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.mini-qr-box {
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.mini-qr-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.mini-pill-btn {
  flex: 1;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  background: var(--selected);
  color: var(--brand);
}

/* ==================== FAQ Accordion ==================== */
.faq-wrap {
  max-width: 790px;
  margin-inline: auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  transition: border-color 0.16s ease;
}

.faq-item[open] {
  border-color: var(--brand);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16.5px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.faq-toggle::before {
  content: '+';
}

.faq-item[open] .faq-toggle::before {
  content: '−';
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ==================== Floating Bottom CTA & WhatsApp Widget ==================== */
.floating-start {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  width: min(430px, calc(100% - 28px));
  background: #064e83;
  color: #ffffff;
  border-radius: 22px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-float);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.floating-start:hover {
  background: #08609f;
  transform: translateX(-50%) translateY(-2px);
}

.floating-start-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-qr-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-start strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.floating-start small {
  display: block;
  font-size: 12px;
  color: #cde4f7;
}

.floating-arrow {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--amber);
  color: var(--amber-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-help-widget {
  position: fixed;
  left: 20px;
  bottom: 22px;
  z-index: 36;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-help-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
  transition: background-color 0.16s ease, transform 0.15s ease;
}

.wa-help-btn:hover {
  background: var(--wa-green-hover);
  transform: scale(1.05);
}

.wa-bubble {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.wa-bubble-close {
  border: 0;
  background: var(--surface-alt);
  color: var(--muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

/* ==================== Footer ==================== */
.wh-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 24px;
  font-size: 14px;
  color: var(--muted);
}

.wh-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.wh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.wh-footer-links a:hover {
  color: var(--brand);
}

/* ==================== Directory Page ==================== */
.dir-hero {
  padding-block: 44px 28px;
  text-align: center;
}

.dir-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
}

.dir-hero p {
  margin: 0 auto 24px;
  max-width: 600px;
  color: var(--muted);
  font-size: 15.5px;
}

.dir-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14.5px;
}

.search-field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.search-field svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn.active,
.pill-btn:hover {
  background: var(--selected);
  border-color: var(--brand);
  color: var(--brand);
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.dir-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.dir-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.dir-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dir-card-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.dir-card-head small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.dir-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

.dir-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.dir-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 6px;
}

/* ==================== Public Merchant Payment Page (pay.html) ==================== */
.pay-shell {
  min-height: 100vh;
  padding: 20px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pay-container {
  width: 100%;
  max-width: 680px;
}

.pay-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.pay-tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover,
.icon-btn[aria-pressed="true"] {
  background: var(--selected);
  border-color: var(--brand);
  color: var(--brand);
}

.merchant-hero {
  text-align: center;
  margin-bottom: 20px;
}

.merchant-logo {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  margin: 0 auto 14px;
  background: var(--brand-solid);
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-card);
}

.merchant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merchant-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
}

.merchant-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.safety-pill {
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 13px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.currency-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pay-wallets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pay-wallets-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pay-wallet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.16s ease, transform 0.15s ease;
}

.pay-wallet-card:hover {
  border-color: var(--line-strong);
}

.pay-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pay-card-info {
  flex: 1;
  min-width: 0;
}

.pay-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-card-title-row h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--wallet-name-color, var(--text));
}

html[data-theme="dark"] .pay-card-title-row h2 {
  color: var(--text);
}

.pay-dl-icon-btn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.pay-dl-icon-btn:hover {
  border-color: var(--brand);
  background: var(--selected);
  color: var(--brand);
}

.modal-dl-link-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.modal-dl-link-btn:hover {
  background: var(--selected);
  border-color: var(--brand);
}

/* ==================== Smart App Launch & Download Fallback Sheet ==================== */
.launch-copied-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.launch-copied-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.launch-copied-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-ink);
  font-size: 12px;
  font-weight: 800;
}

.launch-branch-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.launch-copied-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.launch-copied-num {
  font-size: 21px;
  font-weight: 800;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  word-break: break-all;
}

.launch-benef {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.launch-benef strong {
  color: var(--text);
}

.store-dl-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 4px 0 8px;
}

.store-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.store-dl-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.store-dl-btn:hover {
  border-color: var(--brand);
  background: var(--selected);
  transform: translateY(-1px);
}

.store-dl-btn.primary-store {
  border-color: var(--brand-solid);
  background: var(--brand-solid);
  color: #ffffff;
}

.store-dl-btn.primary-store small {
  color: #cfe5f7;
}

.store-dl-btn strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.store-dl-btn small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.launch-desktop-qr {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.launch-desktop-qr-svg {
  padding: 5px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.launch-desktop-qr strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
}

.launch-desktop-qr p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.launch-guide-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.pay-branch-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--muted);
}

.pay-number {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.pay-beneficiary {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.pay-wallets-grid.two-col .pay-card-head {
  flex-direction: column;
  text-align: center;
}

.pay-wallets-grid.two-col .pay-card-title-row {
  justify-content: center;
}

.pay-wallets-grid.two-col .pay-number {
  text-align: center;
  font-size: 17px;
}

.pay-card-actions {
  display: flex;
  gap: 8px;
}

.pay-primary-btn {
  flex: 1;
  min-height: 46px;
  border: 0;
  border-radius: 13px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  transition: opacity 0.16s ease, transform 0.12s ease;
}

.pay-primary-btn:hover {
  opacity: 0.92;
}

.pay-primary-btn:active {
  transform: scale(0.985);
}

.pay-details-btn {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pay-details-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--selected);
}

.pay-wallets-grid.two-col .pay-card-actions {
  flex-direction: column;
}

.pay-wa-bar {
  margin-top: 20px;
  text-align: center;
}

.pay-powered {
  margin-top: 34px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pay-powered a {
  color: var(--brand);
  font-weight: 700;
}

/* ==================== Blurred Backdrop Modal (Branches/Currencies, Wallet Guide, QR Poster) ==================== */
.wh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.wh-modal-backdrop[hidden] {
  display: none;
}

.wh-modal {
  width: 100%;
  max-width: 470px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-modal);
  position: relative;
}

.wh-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wh-modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.wh-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-alt);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.wh-modal-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.radio-account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.radio-account-card {
  width: 100%;
  text-align: right;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.radio-account-card:hover {
  border-color: var(--line-strong);
}

.radio-account-card.selected {
  border-color: var(--accent-color, var(--brand));
  background: var(--selected);
}

.radio-account-meta strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
}

.radio-account-meta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.radio-account-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.radio-account-num {
  font-size: 16px;
  font-weight: 800;
  direction: ltr;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.radio-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.radio-account-card.selected .radio-circle {
  border-color: var(--accent-color, var(--brand));
  background: var(--accent-color, var(--brand));
}

.modal-beneficiary-box {
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
}

.modal-note-box {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: center;
}

/* ==================== Dashboard Builder (wallets-dashboard.html) ==================== */
.dash-main {
  padding-block: 28px 72px;
}

.dash-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
}

.dash-banner h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
}

.dash-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--selected);
  color: var(--brand);
}

.sync-badge.cloud {
  background: var(--success-bg);
  color: var(--success-ink);
}

.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.dash-tab-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dash-tab-btn.active {
  background: var(--brand-solid);
  border-color: var(--brand-solid);
  color: #ffffff;
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  gap: 24px;
  align-items: start;
}

.dash-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.dash-panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
}

.dash-panel-sub {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
  font-size: 14.5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  background: var(--surface);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.slug-input-wrap {
  display: flex;
  align-items: center;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  overflow: hidden;
}

.slug-prefix {
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface-alt);
  height: 44px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.slug-input-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.builder-wallet-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--soft);
  margin-bottom: 14px;
}

.builder-wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.builder-wallet-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-wallet-id strong {
  font-size: 16px;
  font-weight: 800;
}

.builder-wallet-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mini-icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.mini-icon-btn.danger:hover {
  border-color: var(--danger-ink);
  color: var(--danger-ink);
}

.account-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-row-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.sticky-preview {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.qr-poster-preview {
  background: #ffffff;
  color: #242936;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-card);
}

.qr-poster-header {
  background: #064e83;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  border-bottom: 4px solid #f4971f;
}

.qr-poster-header h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.qr-poster-header p {
  margin: 0;
  font-size: 13px;
  color: #cfe5f7;
}

.qr-svg-wrap {
  display: inline-flex;
  padding: 12px;
  border-radius: 18px;
  border: 2px solid #e8eff7;
  background: #ffffff;
  margin-bottom: 14px;
}

.qr-poster-wallets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.qr-poster-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf1f7;
  color: #064e83;
  font-size: 12px;
  font-weight: 700;
}

.share-url-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.share-url-box input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
  direction: ltr;
  font-size: 13px;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat-tile {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.stat-tile span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.stat-tile strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.3;
}

.stat-bar-row {
  margin-bottom: 12px;
}

.stat-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--brand-solid);
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.picker-item {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.picker-item:hover {
  border-color: var(--brand);
  background: var(--selected);
}

/* ==================== Notices & Toast ==================== */
.wh-notice {
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--selected);
  color: var(--brand);
}

.wh-notice.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-ink);
}

.wh-notice.warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn-ink);
}

.wh-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: #141923;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wh-toast[hidden] {
  display: none;
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .landing-lead {
    margin-inline: auto;
  }
  .hero-cta-row,
  .hero-points {
    justify-content: center;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .sticky-preview {
    position: static;
  }
}

@media (max-width: 1040px) {
  .wh-links {
    display: none;
    position: fixed;
    top: 78px;
    inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    box-shadow: var(--shadow-modal);
  }
  .wh-links.open {
    display: flex;
  }
  .wh-menu-btn {
    display: inline-flex;
  }
  .wa-help-widget {
    bottom: 92px;
    left: 14px;
  }
  .wa-bubble {
    display: none;
  }
}

@media (max-width: 820px) {
  .features-grid,
  .dir-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 14px;
  }
  .wh-header {
    height: 66px;
  }
  .wh-nav {
    gap: 8px;
  }
  .wh-brand {
    gap: 8px;
  }
  .wh-brand img {
    width: 34px;
    height: 34px;
  }
  .wh-brand-text {
    font-size: 14.5px;
    gap: 6px;
  }
  .wh-brand-sep,
  .wh-brand-sub {
    display: none;
  }
  .wh-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .theme-pill {
    min-height: 36px;
    width: 36px;
    padding: 0;
    justify-content: center;
    font-size: 13px;
  }
  .theme-pill .theme-label {
    display: none;
  }
  .wh-actions .btn-sm {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12.5px;
  }
  .wh-menu-btn {
    width: 36px;
    height: 36px;
  }
  .landing-hero {
    padding-block: 32px 44px;
    gap: 30px;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
  .features-grid,
  .dir-grid,
  .form-grid,
  .account-row,
  .stats-cards,
  .store-dl-grid {
    grid-template-columns: 1fr;
  }
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Keep 2-column mode working cleanly on mobile phones when the user toggles 2-col */
  .pay-wallets-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pay-wallets-grid.two-col .pay-wallet-card {
    padding: 13px 10px;
    border-radius: 16px;
    gap: 10px;
  }
  .pay-wallets-grid.two-col .pay-card-title-row h2 {
    font-size: 15px;
  }
  .pay-wallets-grid.two-col .pay-branch-badge {
    font-size: 10.5px;
    padding: 2px 6px;
  }
  .pay-wallets-grid.two-col .pay-number {
    font-size: 14px;
  }
  .pay-wallets-grid.two-col .pay-primary-btn,
  .pay-wallets-grid.two-col .pay-details-btn {
    min-height: 40px;
    font-size: 12.5px;
    padding: 0 8px;
  }
  .pay-wallets-grid.two-col .pay-dl-icon-btn {
    width: 100%;
    height: 36px;
    font-size: 12px;
  }
  .dash-panel {
    padding: 16px;
    border-radius: 18px;
  }
  .dash-banner {
    padding: 16px;
  }
  .dash-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .dash-tabs::-webkit-scrollbar {
    display: none;
  }
  .dash-tab-btn {
    flex-shrink: 0;
    font-size: 13.5px;
    padding: 0 14px;
  }
  .floating-start {
    bottom: 12px;
    padding: 10px 13px;
    border-radius: 18px;
  }
  .floating-start strong {
    font-size: 14px;
  }
  .wa-help-widget {
    bottom: 84px;
    left: 12px;
  }
  .wa-help-btn {
    width: 46px;
    height: 46px;
  }
  .wh-modal {
    padding: 18px;
    border-radius: 22px;
  }
}

/* ==================== Print Styles (Clean Printable QR Poster) ==================== */
@media print {
  body * {
    visibility: hidden;
  }
  .printable-qr-area,
  .printable-qr-area * {
    visibility: visible;
  }
  .printable-qr-area {
    position: fixed;
    inset: 0;
    margin: auto;
    box-shadow: none;
    border: 2px solid #064e83;
  }
}
