/* ─────────────────────────────────────────────
   PBE Cash — jade / metallic gold / parchment
   Premium Asian top-up aesthetic: Cinzel display,
   Cormorant italic eyebrows, Plus Jakarta body,
   gold corner ornaments, ornamental dashed borders.
   ───────────────────────────────────────────── */
:root {
  /* Brand palette (matches ASIA STORE reference) */
  --teal: #4A9A8F;
  --teal-deep: #2F6B62;
  --teal-dark: #1f4a44;
  --gold: #D4AF37;
  --gold-light: #E8C766;
  --gold-deep: #A8861F;
  --gold-soft: #FFF7E0;

  /* Surfaces */
  --cream: #F7F1E1;
  --cream-2: #EFE6CC;
  --paper: #FBF7EC;
  --surface: #FFFFFF;
  --surface-2: #FFFCF3;

  /* Ink */
  --ink: #27332B;
  --ink-soft: #46564c;
  --green-dark: #2D5016;

  /* Lines */
  --border: rgba(74, 154, 143, 0.22);
  --border-strong: rgba(74, 154, 143, 0.42);
  --border-gold: rgba(212, 175, 55, 0.40);

  /* Status */
  --danger: #C0392B;
  --danger-soft: #FBEAE7;
  --success: #3EC07B;
  --info: #6E7E7E;

  /* Legacy aliases (markup still references these) */
  --bg: var(--cream);
  --bg-2: var(--cream-2);
  --text-main: var(--ink);
  --text-muted: var(--ink-soft);
  --primary: var(--gold);
  --primary-2: var(--teal);
  --green: var(--teal);
  --green-deep: var(--teal-deep);
  --green-ink: #FFFFFF;
  --yellow: var(--gold);
  --yellow-deep: var(--gold-deep);
  --deposit: var(--teal);
  --withdraw: var(--gold-deep);
  --redeem: var(--teal-deep);

  --shadow: 0 18px 50px -18px rgba(31, 74, 68, 0.45);
  --shadow-sm: 0 8px 22px -12px rgba(31, 74, 68, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);

  --grad-gold: linear-gradient(180deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  --grad-teal: linear-gradient(180deg, var(--teal), var(--teal-deep));
  --grad-teal-side: linear-gradient(160deg, var(--teal-dark), var(--teal-deep) 60%, #16463f);

  --font-display: 'Cinzel', serif;
  --font-italic: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif, "Myanmar Text", "Padauk";
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,175,55,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(74,154,143,0.22), transparent 60%),
    linear-gradient(180deg, #F7F1E1 0%, #EFE6CC 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%232D5016' stroke-opacity='0.04' stroke-width='2'><path d='M0 150 Q40 110 80 140 T160 130'/></g></svg>");
  background-size: 480px 480px;
}

#bg-canvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.3; }

/* ───────── Scenic background: sun, mountains, clouds, bamboo ───────── */
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* Sun — radial glow top-right, gentle pulse */
.scene-sun {
  position: absolute; top: -8%; right: 6%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(244, 217, 138, 0.75) 0%,
    rgba(212, 175, 55, 0.45) 28%,
    rgba(212, 175, 55, 0.15) 55%,
    transparent 72%);
  filter: blur(2px);
  animation: sunPulse 7s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Layered parallax wrappers */
.scene-layer { position: absolute; will-change: transform; }
.bamboo-wrap { left: 0; right: 0; bottom: 0; }

/* Mountains — bottom band */
.scene-mountains, .scene-mountains-2 { left: -5%; right: -5%; bottom: 0; width: 110%; height: 46vh; }
.scene-mountains-2 { height: 38vh; opacity: 0.9; }

/* Clouds — drifting horizontally */
.scene-cloud { width: 220px; height: 76px; top: 12%; left: -25%; filter: blur(0.4px); }
.cloud-1 { top: 10%; animation: drift 46s linear infinite; }
.cloud-2 { top: 24%; width: 260px; height: 90px; opacity: 0.8; animation: drift 68s linear infinite; animation-delay: -20s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(160vw, 0, 0); }
}

/* Bamboo groves — left & right framing */
.scene-bamboo {
  position: absolute; bottom: -2%; width: 130px; height: 75vh;
  display: flex; gap: 6px; align-items: flex-end; justify-content: center;
  transform-origin: bottom center;
  animation: sway 5.5s ease-in-out infinite;
}
.bamboo-left { left: -10px; }
.bamboo-right { right: -10px; animation-delay: -2.5s; transform: scaleX(-1); }
@keyframes sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
}
.bamboo-right { animation-name: swayRight; }
@keyframes swayRight {
  0%, 100% { transform: scaleX(-1) rotate(-1.4deg); }
  50% { transform: scaleX(-1) rotate(1.4deg); }
}
.culm {
  --s: 1; --d: 0s;
  position: relative; width: calc(10px * var(--s)); height: 100%;
  background: linear-gradient(90deg, #3a6b2e 0%, #5b8c3e 40%, #4a7a33 70%, #2f5016 100%);
  border-radius: 8px 8px 2px 2px;
  box-shadow: inset -2px 0 3px rgba(0,0,0,0.25), inset 2px 0 2px rgba(255,255,255,0.12);
  animation: sway 5.5s ease-in-out infinite;
  animation-delay: var(--d);
  transform-origin: bottom center;
}
/* bamboo joints (segment lines) */
.culm::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: 0; height: 100%;
  background-image: linear-gradient(transparent 12%, rgba(30,50,18,0.55) 13%, transparent 14.5%),
                    linear-gradient(transparent 32%, rgba(30,50,18,0.5) 33%, transparent 34.5%),
                    linear-gradient(transparent 52%, rgba(30,50,18,0.55) 53%, transparent 54.5%),
                    linear-gradient(transparent 72%, rgba(30,50,18,0.5) 73%, transparent 74.5%),
                    linear-gradient(transparent 90%, rgba(30,50,18,0.55) 91%, transparent 92.5%);
}
/* bamboo leaves */
.leaf {
  position: absolute; width: 54px; height: 16px; background: #4a7a33;
  border-radius: 50% 0 50% 0;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.2);
  transform-origin: bottom left;
  animation: leafSway 4s ease-in-out infinite;
}
.leaf-a { top: 14%; left: 8px; --rot: -32deg; transform: rotate(-32deg); }
.leaf-b { top: 30%; left: -10px; width: 46px; height: 14px; --rot: -15deg; transform: rotate(-15deg); animation-delay: -1.5s; }
.leaf-c { top: 22%; left: 28px; width: 40px; height: 13px; --rot: -48deg; transform: rotate(-48deg); animation-delay: -2.8s; }
@keyframes leafSway {
  0%, 100% { transform: rotate(var(--rot, -32deg)); }
  50% { transform: rotate(calc(var(--rot, -32deg) + 7deg)); }
}

@media (max-width: 520px) {
  .scene-sun { width: 240px; height: 240px; top: -10%; }
  .scene-bamboo { height: 60vh; width: 100px; }
  .scene-cloud { width: 160px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-sun, .scene-cloud, .scene-bamboo, .culm, .leaf { animation: none !important; }
}

#boot-loader {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--ink); font-weight: 600; text-align: center;
}
#boot-loader .boot-card { padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
#boot-loader .boot-spin { width: 38px; height: 38px; border: 3px solid rgba(74,154,143,0.2); border-top-color: var(--gold-deep); border-radius: 50%; animation: spin 0.9s linear infinite; }
#boot-loader .boot-sub { font-size: 13px; color: var(--ink-soft); }
body:not(.app-ready) > :not(#boot-loader) { visibility: hidden; }
body.app-ready #boot-loader { display: none; }

.wrap { position: relative; z-index: 2; max-width: 540px; margin: 0 auto; padding: 0 18px 80px; }

/* ───────── Header — brand bar with jade-gold mark ───────── */
.site-head {
  position: relative; z-index: 10; padding: 22px 0 14px; margin-bottom: 18px;
}
.brand-row { display: flex; align-items: center; gap: 12px; max-width: 540px; margin: 0 auto; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--border-gold);
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 8px 18px -8px rgba(168,134,31,0.7);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.14em; margin: 0; color: var(--teal-dark);
}
.brand-sub {
  font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); margin: 3px 0 0;
}
.tg-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal-dark); text-decoration: none; font-size: 12.5px; font-weight: 700;
  padding: 8px 14px; background: #fff; border: 1.5px solid var(--border-strong);
  border-radius: 999px; transition: all var(--transition); letter-spacing: 0.04em;
}
.tg-btn:hover { border-color: var(--gold); color: var(--gold-deep); box-shadow: var(--shadow-sm); }
.tg-btn i { color: var(--teal); font-size: 15px; }

/* ───────── Hero ───────── */
.hero { text-align: center; margin: 4px auto 22px; padding: 0 6px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-italic); font-style: italic; font-size: 15px;
  color: var(--gold-deep); letter-spacing: 0.08em;
}
.hero .eyebrow::before, .hero .eyebrow::after {
  content: ""; height: 1px; width: 40px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero .eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 6vw, 40px); line-height: 1.05; letter-spacing: 0.04em;
  margin: 6px 0 2px;
  background: linear-gradient(180deg, #F4D98A 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 0 rgba(168,134,31,0.15);
}
.hero p { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em; margin: 0; }

/* ───────── Cards — gold corner ornaments + dashed inner border ───────── */
.card, .panel {
  position: relative; background: linear-gradient(180deg, var(--paper), #fff);
  border: 1px solid var(--border-gold); border-radius: var(--radius);
  padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow); overflow: hidden;
  animation: fadeInUp 0.5s var(--transition) both;
}
.card::before, .panel::before {
  content: ""; position: absolute; inset: 8px; border-radius: 16px;
  border: 1px dashed rgba(74,154,143,0.35); pointer-events: none;
}
/* corner ornaments only on the main wizard card */
.card > .corner {
  position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold);
  opacity: 0.7; z-index: 1; pointer-events: none;
}
.card > .corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.card > .corner.tr { top: 14px; right: 14px; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.card > .corner.bl { bottom: 14px; left: 14px; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.card > .corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

.panel-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: 0.06em; margin: 0 0 6px; color: var(--teal-dark);
  position: relative; z-index: 1;
}
.panel-sub { font-size: 14px; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.55; position: relative; z-index: 1; }
.hint { font-size: 12px; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; position: relative; z-index: 1; }

/* ───────── Step bar ───────── */
.step-bar {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin: 4px 0 28px; position: relative; z-index: 1;
}
.step-bar::before {
  content: ""; position: absolute; top: 17px; left: 24px; right: 24px; height: 2px;
  background: rgba(74,154,143,0.22); z-index: 0; border-radius: 2px;
}
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  border: 1.5px solid rgba(74,154,143,0.35); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink-soft);
  transition: all var(--transition);
}
.step-lbl { font-size: 10px; font-weight: 700; color: var(--ink-soft); text-align: center; letter-spacing: 0.04em; text-transform: uppercase; transition: color var(--transition); }
.step.active .step-num {
  background: var(--grad-teal); color: #fff; border-color: var(--teal-deep);
  box-shadow: 0 8px 18px -8px rgba(47,107,98,0.8); transform: scale(1.08);
}
.step.active .step-lbl { color: var(--teal-dark); }
.step.done .step-num { background: var(--grad-gold); color: #fff; border-color: var(--gold-deep); }
.step.done .step-lbl { color: var(--gold-deep); }

/* ───────── Flow header ───────── */
.flow-head {
  display: flex; align-items: center; justify-content: center; position: relative;
  margin: -6px 0 20px; padding: 0 44px 14px; border-bottom: 1px solid var(--border);
  z-index: 1;
}
.flow-back {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: var(--radius-xs);
  font-size: 18px; color: var(--ink-soft);
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.flow-back:hover { color: var(--teal-dark); border-color: var(--teal); }
.flow-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; margin: 0; text-align: center; color: var(--teal-dark);
}

/* ───────── Step panes ───────── */
.step-pane, .step-pane ~ div[x-show], [x-show*="wizard.step"] { position: relative; z-index: 1; }
.step-pane { animation: fadeInUp 0.4s var(--transition) both; }

/* ID chip */
.id-chip {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 20px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600;
  position: relative; z-index: 1;
}
.id-chip i { color: var(--teal); font-size: 15px; }
.id-chip span { font-family: "Roboto Mono", monospace; letter-spacing: 0.5px; color: var(--ink); }
.id-chip button { background: transparent; border: none; color: var(--ink-soft); cursor: pointer; font-size: 14px; padding: 4px; display: inline-flex; transition: color var(--transition); }
.id-chip button:hover { color: var(--gold-deep); }

/* ───────── Fields ───────── */
.field { margin-bottom: 22px; text-align: left; position: relative; z-index: 1; }
.field label {
  display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 8px;
}
.field label i { color: var(--teal); font-size: 16px; }
.field input, .field select {
  width: 100%; padding: 14px 16px; background: #fff; border: 1.5px solid rgba(74,154,143,0.3);
  border-radius: var(--radius-xs); font-family: inherit; font-size: 15px; color: var(--ink);
  transition: all var(--transition);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(74,154,143,0.15); }
.field input::placeholder { color: #9aa7a3; }

/* ───────── Buttons — gold primary, teal-ghost secondary ───────── */
.btn-primary, .submit {
  width: 100%; padding: 15px 22px; border: none; border-radius: var(--radius-xs);
  font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--grad-gold); color: #3a2c08; cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 12px 24px -12px rgba(168,134,31,0.8), inset 0 1px 0 rgba(255,255,255,0.5);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  position: relative; z-index: 1;
}
.btn-primary:hover, .submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(168,134,31,0.9); }
.btn-primary:active, .submit:active { transform: translateY(0); }
.btn-primary:disabled, .submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
  width: 100%; padding: 13px 22px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-xs);
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  background: transparent; color: var(--teal-dark); cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  position: relative; z-index: 1;
}
.btn-secondary:hover { background: rgba(74,154,143,0.08); border-color: var(--teal); }

/* ───────── Service cards ───────── */
.service-grid { display: grid; gap: 13px; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card {
  display: flex; align-items: center; gap: 16px; padding: 18px;
  border: 1.5px solid rgba(74,154,143,0.22); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; transition: all var(--transition); position: relative;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 12px 24px -14px rgba(47,107,98,0.6); }
.service-card.deposit:hover { border-color: var(--teal); }
.service-card.withdraw:hover { border-color: var(--gold); }
.service-card.redeem:hover { border-color: var(--teal-deep); }
.service-ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0; transition: transform var(--transition);
}
.service-card.deposit .service-ico { background: rgba(74,154,143,0.14); color: var(--teal-deep); }
.service-card.withdraw .service-ico { background: var(--gold-soft); color: var(--gold-deep); }
.service-card.redeem .service-ico { background: rgba(47,107,98,0.14); color: var(--teal-dark); }
.service-card:hover .service-ico { transform: scale(1.06); }
.service-main { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px; color: var(--ink); }
.service-sub { font-size: 12.5px; color: var(--ink-soft); }
.service-arrow { margin-left: auto; color: var(--ink-soft); font-size: 18px; transition: all var(--transition); }
.service-card:hover .service-arrow { transform: translateX(4px); color: var(--teal); }

/* ───────── Provider grid ───────── */
.prov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 8px; }
.prov-card {
  border: 1.5px solid rgba(74,154,143,0.22); border-radius: var(--radius-sm); padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: pointer; transition: all var(--transition); background: #fff; position: relative;
}
.prov-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.prov-card.on {
  border-color: var(--gold); background: linear-gradient(180deg, #FFFBEF, #FFF7E0);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}
.prov-card.on::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-gold); color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.prov-card img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.prov-card .pn { font-size: 14px; font-weight: 700; color: var(--ink); }

/* ───────── Checkout — receipt with gold top rule ───────── */
.checkout-card {
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 22px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.checkout-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); }

/* Withdraw info card (City / Street) — same receipt look, gold top rule */
.withdraw-info {
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 18px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.withdraw-info::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-gold); }
.withdraw-info .checkout-row { padding: 11px 0; }
/* Value text — jade theme green, Cinzel display */
.withdraw-info .gold-text {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: 0.04em;
  background: linear-gradient(180deg, #7BC4B8 0%, var(--teal) 45%, var(--teal-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 rgba(47,107,98,0.12);
}
.checkout-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed rgba(74,154,143,0.25); font-size: 14px; }
.checkout-row:last-child { border-bottom: none; }
.checkout-lbl { color: var(--ink-soft); font-weight: 600; }
.checkout-val { font-weight: 700; text-align: right; font-family: "Roboto Mono", monospace; color: var(--ink); }
.checkout-val.amount { font-family: var(--font-display); font-size: 22px; color: var(--gold-deep); font-weight: 800; }
.copy-btn {
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 7px; cursor: pointer; margin-left: 4px; color: var(--teal-deep);
  transition: all var(--transition); font-family: var(--font-body);
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold-deep); }
.copy-btn i { font-size: 16px; }
.copy-btn-icon {
  width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.copy-btn-icon i { font-size: 16px; }

/* Warn banner (provider disabled) */
.warn-banner {
  color: var(--danger); padding: 16px; background: var(--danger-soft);
  border-radius: var(--radius-sm); border: 1px solid rgba(192, 57, 43, 0.25);
  display: flex; align-items: center; gap: 8px; font-weight: 600;
}

/* ───────── Tracker — jade side-card feel ───────── */
.tracker {
  position: relative; overflow: hidden;
  background: var(--grad-teal-side); color: #EAF5F2;
  border: 1px solid var(--border-gold); border-radius: var(--radius);
  padding: 22px; margin-top: 24px; box-shadow: var(--shadow); animation: fadeInUp 0.5s both;
}
.tracker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 90% -20%, rgba(212,175,55,0.25), transparent 60%);
}
.tracker-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; position: relative; z-index: 1; }
.tracker-top h4 { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; color: var(--gold-light); }
.tracker-msg { font-size: 14px; color: #BFD8D2; line-height: 1.5; position: relative; z-index: 1; }
.tracker-msg[style*="primary-2"], .tracker-msg[style*="--primary-2"] { color: var(--gold-light) !important; }
.tracker .hint {
  color: rgba(234, 245, 242, 0.88);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.tracker .hint .spin-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  border: 2px solid rgba(234, 245, 242, 0.28);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
/* Status pills on dark tracker — light text on translucent chips */
.tracker .feed-badge {
  border-color: rgba(234, 245, 242, 0.28);
}
.tracker .feed-badge.b-yellow {
  background: rgba(212, 175, 55, 0.22);
  color: #F4E4A6;
  border-color: rgba(232, 199, 102, 0.45);
}
.tracker .feed-badge.b-blue {
  background: rgba(234, 245, 242, 0.12);
  color: #EAF5F2;
  border-color: rgba(234, 245, 242, 0.3);
}
.tracker .feed-badge.b-green {
  background: rgba(62, 192, 123, 0.22);
  color: #B8F0CF;
  border-color: rgba(62, 192, 123, 0.4);
}
.tracker .feed-badge.b-red {
  background: rgba(239, 201, 195, 0.18);
  color: #F5D0CB;
  border-color: rgba(239, 201, 195, 0.4);
}

/* Feed (kept for compat) */
.feed {
  background: #fff; border: 1px solid var(--border-gold); border-radius: var(--radius);
  padding: 22px; margin-top: 28px; box-shadow: var(--shadow); animation: fadeInUp 0.55s 0.08s both;
}
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.feed-head h3 { font-family: var(--font-display); font-size: 14px; margin: 0; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; color: var(--teal-dark); }
.feed-head h3::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: pulse 2.2s infinite; }
.feed-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); font-size: 13px; }
.feed-row:first-of-type { border-top: none; }
.feed-type { font-weight: 700; width: 62px; color: var(--ink-soft); }
.feed-id { color: var(--ink-soft); font-family: "Roboto Mono", monospace; }
.feed-amt { margin-left: auto; font-weight: 700; font-family: "Roboto Mono", monospace; color: var(--ink); }
.feed-badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid transparent; }
.b-green { background: rgba(62,192,123,0.15); color: var(--success); border-color: rgba(62,192,123,0.3); }
.b-red { background: var(--danger-soft); color: var(--danger); border-color: rgba(192,57,43,0.3); }
.b-yellow { background: var(--gold-soft); color: var(--gold-deep); border-color: var(--border-gold); }
.b-blue { background: rgba(74,154,143,0.12); color: var(--teal-deep); border-color: var(--border-strong); }

/* ───────── Footer ───────── */
.foot { text-align: center; font-size: 12px; color: var(--ink-soft); margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); letter-spacing: 0.05em; }

/* ───────── Modal (themed, morph-in-place) ───────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(31,74,68,0.55); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; z-index: 100;
}
.modal-overlay[x-cloak] { display: none !important; }
.modal-box {
  width: 100%; max-width: 400px; background: linear-gradient(180deg, var(--paper), #fff);
  border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 36px 28px 28px;
  text-align: center; box-shadow: 0 22px 60px -18px rgba(31,74,68,.5);
  position: relative; overflow: hidden;
  animation: modalIn 0.4s var(--transition);
}
/* dashed ornamental inner border (like the cards) */
.modal-box::before {
  content: ""; position: absolute; inset: 8px; border-radius: 16px;
  border: 1px dashed rgba(74,154,143,0.35); pointer-events: none;
}
/* gold corner ornaments */
.m-corner { position: absolute; width: 20px; height: 20px; border: 2px solid var(--gold); opacity: .7; z-index: 2; }
.m-corner.tl { top: 13px; left: 13px; border-right: none; border-bottom: none; border-top-left-radius: 5px; }
.m-corner.tr { top: 13px; right: 13px; border-left: none; border-bottom: none; border-top-right-radius: 5px; }
.m-corner.bl { bottom: 13px; left: 13px; border-right: none; border-top: none; border-bottom-left-radius: 5px; }
.m-corner.br { bottom: 13px; right: 13px; border-left: none; border-top: none; border-bottom-right-radius: 5px; }

/* Falling leaves — decorative, drift down with sway */
.m-leaf {
  position: absolute; top: -14px; width: 12px; height: 12px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--green-dark) 100%);
  border-radius: 0% 100% 0% 100%;
  opacity: 0.55; z-index: 1; pointer-events: none;
  animation: leafFall 6s linear infinite;
}
.m-box.m-error .m-leaf { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%); }
.m-box.m-success .m-leaf { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); }
.l1 { left: 18%; animation-delay: 0s;   animation-duration: 7s; }
.l2 { left: 48%; animation-delay: -2s;  animation-duration: 5.5s; }
.l3 { left: 72%; animation-delay: -4s;  animation-duration: 6.5s; }
.l4 { left: 32%; animation-delay: -1s;  animation-duration: 8s; }

@keyframes leafFall {
  0%   { transform: translate(0, -10px) rotate(0deg);     opacity: 0; }
  12%  { opacity: .6; }
  50%  { transform: translate(18px, 50%) rotate(180deg); }
  88%  { opacity: .5; }
  100% { transform: translate(-10px, 340px) rotate(360deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){ .m-leaf { animation: none; display: none; } }

/* Panes morph in place — no rebuild flicker */
.m-pane { position: relative; z-index: 2; animation: paneIn 0.35s var(--transition); }

/* Typography — matches hero: Cormorant italic eyebrow + Cinzel title */
.m-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-italic); font-style: italic; font-size: 14px;
  color: var(--gold-deep); letter-spacing: .08em; margin-bottom: 4px;
}
.m-eyebrow::before, .m-eyebrow::after {
  content: ""; height: 1px; width: 26px; background: linear-gradient(90deg, transparent, var(--gold));
}
.m-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.m-eyebrow.success { color: var(--teal-deep); }
.m-eyebrow.success::before, .m-eyebrow.success::after { background: linear-gradient(90deg, transparent, var(--teal)); }
.m-eyebrow.success::after { background: linear-gradient(90deg, var(--teal), transparent); }
.m-eyebrow.error { color: var(--danger); }
.m-eyebrow.error::before, .m-eyebrow.error::after { background: linear-gradient(90deg, transparent, var(--danger)); }
.m-eyebrow.error::after { background: linear-gradient(90deg, var(--danger), transparent); }

.m-title {
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  letter-spacing: .05em; margin: 2px 0 8px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-title.success { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-title.error   { background: linear-gradient(180deg, #E05A4E 0%, var(--danger) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.m-sub { font-size: 13px; color: var(--ink-soft); margin: 0 0 6px; }
.m-msg { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; max-width: 320px; margin-left: auto; margin-right: auto; }
.m-ref { font-family: "Roboto Mono", monospace; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 18px; letter-spacing: .5px; }

/* Icon medallion — gold ring, themed fill */
.modal-icon {
  width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold-soft));
  border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(212,175,55,.12);
  animation: pop 0.45s var(--transition);
}
.modal-icon.success { color: var(--teal-deep); border-color: var(--teal); box-shadow: 0 0 0 6px rgba(74,154,143,.14); background: radial-gradient(circle at 30% 30%, #fff, #E6F2EF); }
.modal-icon.error   { color: var(--danger);   border-color: var(--danger); box-shadow: 0 0 0 6px rgba(192,57,43,.12); background: radial-gradient(circle at 30% 30%, #fff, var(--danger-soft)); }

/* Receipt */
.receipt { background: #fff; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 16px 18px; text-align: left; margin-bottom: 22px; position: relative; z-index: 2; }
.rc-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dotted #e3e0d4; font-size: 13px; }
.rc-row:last-child { border-bottom: none; }
.rc-k { color: var(--ink-soft); font-weight: 600; }
.rc-v { font-weight: 700; font-family: "Roboto Mono", monospace; color: var(--ink); }
.rc-v.amt { font-family: var(--font-display); color: var(--gold-deep); font-size: 16px; font-weight: 800; }

.modal-tg { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--gold-deep); text-decoration: none; font-weight: 700; }
.modal-tg:hover { text-decoration: underline; }

/* make sure modal's own submit button sits above leaves */
.modal-box .submit { position: relative; z-index: 2; }

@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes paneIn   { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop      { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* Maintenance */
.maintenance-ico { font-size: 46px; color: var(--gold); margin-bottom: 14px; }
.maintenance-title { color: var(--gold-deep) !important; }

/* ───────── Amount chips ───────── */
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(74,154,143,0.22); background: #fff;
  color: var(--ink-soft); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all var(--transition); font-family: "Roboto Mono", monospace;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); }
.chip.on {
  border-color: var(--gold); background: linear-gradient(180deg, #FFFBEF, #FFF7E0);
  color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
}

/* ───────── Self-hosted captcha ───────── */
.captcha-box {
  margin: 0 0 22px;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(74,154,143,0.22);
  background:
    linear-gradient(165deg, rgba(255,252,243,0.95), rgba(247,241,225,0.9)),
    #FFFCF3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  position: relative;
  z-index: 1;
}
.captcha-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.12), transparent);
  opacity: 0.7;
}
.captcha-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.captcha-head label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.captcha-head label i { color: var(--teal); font-size: 16px; }
.captcha-refresh {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(212,175,55,0.45);
  background: linear-gradient(180deg, #FFFBEF, #F7E8B8);
  color: var(--gold-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.captcha-refresh:hover:not(:disabled) {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.18);
  transform: translateY(-1px);
}
.captcha-refresh:disabled { opacity: 0.55; cursor: wait; }
.captcha-refresh i { font-size: 18px; }
.captcha-refresh i.spinning { animation: spin 0.8s linear infinite; }
.captcha-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #F7F1E1;
  border: 1px solid rgba(168,134,31,0.28);
  margin-bottom: 10px;
}
.captcha-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.captcha-skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #F0E8D0 25%, #FFFCF3 40%, #F0E8D0 55%);
  background-size: 200% 100%;
  animation: captchaShimmer 1.2s ease-in-out infinite;
}
.captcha-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(74,154,143,0.28);
  background: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  position: relative;
  z-index: 1;
}
.captcha-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.18);
}
.captcha-input::placeholder {
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 500;
  color: #9aa7a3;
}
@keyframes captchaShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ───────── Loading spinner ───────── */
.spin-arc { width: 46px; height: 46px; margin: 0 auto 20px; border: 3px solid rgba(74,154,143,0.18); border-top-color: var(--gold-deep); border-radius: 50%; animation: spin 0.9s linear infinite; position: relative; }
.spin-arc::after { content: ""; display: block; position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border: 3px solid rgba(212,175,55,0.18); border-top-color: var(--teal); border-radius: 50%; animation: spin 1.4s linear infinite reverse; }

/* ───────── Animations ───────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

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

@media (max-width: 520px) {
  .card, .panel { padding: 22px; border-radius: 18px; }
  .service-card { padding: 16px; }
  .service-ico { width: 46px; height: 46px; font-size: 22px; }
}


/* ───────── Deposit duplicate-amount warning ───────── */
.deposit-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 0 16px;
  padding: 14px 14px;
  border: 2px solid #F59E0B;
  border-left: 6px solid #DC2626;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FEF2F2 100%);
  color: #7F1D1D;
  box-shadow: 0 10px 26px rgba(220, 38, 38, 0.14);
}
.deposit-warning-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #DC2626;
  color: #fff;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.25);
}
.deposit-warning-icon i { font-size: 22px; }
.deposit-warning-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #B91C1C;
  margin-bottom: 4px;
}
.deposit-warning-text {
  font-size: 15px;
  line-height: 1.55;
  font-weight: 900;
  color: #7F1D1D;
}
.deposit-warning-sub {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: #92400E;
  font-weight: 700;
}
@media (max-width: 480px) {
  .deposit-warning { padding: 12px; gap: 10px; border-radius: 14px; }
  .deposit-warning-icon { width: 30px; height: 30px; }
  .deposit-warning-icon i { font-size: 19px; }
  .deposit-warning-text { font-size: 14px; }
}
