/* ============================================================
   RedotPay — UI replica styles
   ============================================================ */

:root {
  --red: #eb0028;
  --red-dark: #c90022;
  --bg: #f2f3f6;
  --card: #ffffff;
  --ink: #16181d;
  --ink2: #9aa0aa;
  --ink3: #5b616b;
  --line: #eceef2;
  --field: #e9ebf0;
  --circle: #eceef1;
  --navy: #465268;
  --green: #2ecc5b;
  --amber: #f5a623;
  --shadow-card: 0 1px 2px rgba(16, 20, 30, 0.04);
  --font: Inter, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans Arabic", sans-serif;
}

/* ---------- RTL (Arabic) ---------- */
.statusbar { direction: ltr; }
.phone[dir="rtl"] .bal-value,
.phone[dir="rtl"] .calc-amt,
.phone[dir="rtl"] .tx-amt,
.phone[dir="rtl"] .a-amt,
.phone[dir="rtl"] .a-usd,
.phone[dir="rtl"] .tx-sub,
.phone[dir="rtl"] .pcard-num,
.phone[dir="rtl"] .addr-box .a,
.phone[dir="rtl"] .kv-row .v,
.phone[dir="rtl"] .keypad,
.phone[dir="rtl"] .refer-stats .v { direction: ltr; }
.phone[dir="rtl"] .tx-right,
.phone[dir="rtl"] .a-right { direction: ltr; text-align: left; }

.phone.dark {
  --bg: #0e0f12;
  --card: #17181d;
  --ink: #f2f3f5;
  --ink2: #7d838d;
  --ink3: #a6adb8;
  --line: #23252b;
  --field: #212329;
  --circle: #212329;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 15% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    radial-gradient(900px 600px at 110% 20%, #ffe9ec 0%, rgba(255,233,236,0) 55%),
    linear-gradient(180deg, #eef0f4 0%, #e4e7ec 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input { font-family: inherit; border: 0; outline: none; background: none; color: inherit; }
svg { display: block; }
.ic { width: 22px; height: 22px; }

/* ---------- Site chrome around the phone ---------- */
.site { min-height: 100vh; display: flex; flex-direction: column; align-items: center; }
.site-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px 10px;
}
.brand-lockup { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; color: var(--red); letter-spacing: -0.2px; }
.brand-tag {
  font-size: 12px; color: #7b8290; background: rgba(255,255,255,.65);
  border: 1px solid rgba(20,24,32,.08); border-radius: 999px; padding: 5px 11px; font-weight: 600;
}
.stage-wrap { flex: 1; display: flex; justify-content: center; align-items: flex-start; width: 100%; overflow: hidden; }
.stage { position: relative; transform-origin: top center; }
.stage-caption { text-align: center; font-size: 12px; color: #8a919e; padding: 10px 16px 22px; }
.stage-caption b { color: #565d68; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  overflow: clip;
  margin: 0 auto;
}
@media (min-width: 560px) {
  .phone {
    width: 430px;
    height: min(100dvh, 900px);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(15, 20, 35, 0.25), 0 8px 22px rgba(15, 20, 35, 0.12);
    outline: 1px solid rgba(20, 24, 32, 0.08);
  }
}
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 32px; background: #08090b; border-radius: 20px; z-index: 70;
}
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; height: 50px; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0;
  font-size: 13.5px; font-weight: 700; color: var(--ink); pointer-events: none;
}
.statusbar .sicons { display: flex; align-items: center; gap: 5px; }
.statusbar svg { height: 12px; width: auto; }

.app { position: absolute; inset: 0; overflow: clip; color: var(--ink); }

/* ---------- Viewport & screens ---------- */
.viewport { position: absolute; top: 50px; bottom: 0; left: 0; right: 0; overflow: clip; }

.screen {
  position: absolute; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  padding: 8px 16px 110px;
  background: var(--bg);
  display: none;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: block; animation: fadein .18s ease; }
@keyframes fadein { from { opacity: .4; } to { opacity: 1; } }

.screen.page { transform: translateX(70px); opacity: 0; pointer-events: none; }
.screen.page.active { transform: none; opacity: 1; pointer-events: auto; animation: pagein .28s cubic-bezier(.32,.72,.34,1); }
.screen.page.leaving { animation: pageout .24s ease forwards; pointer-events: none; }
@keyframes pagein { from { transform: translateX(70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pageout { from { transform: none; opacity: 1; } to { transform: translateX(70px); opacity: 0; } }

/* ---------- Headers ---------- */
.app-header {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 10px; min-height: 52px;
}
.app-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 17px; font-weight: 700; }
.hdr-left { display: flex; align-items: center; gap: 8px; }
.hdr-ics { display: flex; align-items: center; gap: 4px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  position: relative; transition: background .15s, transform .1s;
}
.icon-btn:active { background: var(--field); transform: scale(.94); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  background: var(--red); border-radius: 50%; border: 1.5px solid var(--bg);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--circle);
  display: grid; place-items: center; color: var(--ink3);
}
.avatar.lg { width: 64px; height: 64px; }
.avatar.lg svg { width: 34px; height: 34px; }
.page-head { display: flex; align-items: center; gap: 6px; padding: 2px 0 12px; }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -0.4px; }

/* ---------- Balance block ---------- */
.bal-block { padding: 10px 2px 16px; }
.bal-label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink3); font-weight: 500; }
.bal-label .ic { width: 15px; height: 15px; }
.bal-line { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.bal-value { font-size: 36px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 8px; }
.bal-value .cur { font-size: 15px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 3px; }
.bal-value .cur .ic { width: 13px; height: 13px; }
.bal-dots { display: none; letter-spacing: 2px; }
.app.hidebal .bal-text, .app.hidebal .amt-text { display: none; }
.app.hidebal .bal-dots { display: inline; }
.eye-btn:active { opacity: .6; }

/* ---------- Action circles ---------- */
.actions-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 2px 0 18px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.act:active { transform: scale(.95); }
.act-circle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--circle);
  display: grid; place-items: center; color: var(--ink); transition: filter .15s;
}
.act-circle svg { width: 22px; height: 22px; }
.act.red .act-circle { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(235, 0, 40, 0.28); }
.act-label { font-size: 11.5px; color: var(--ink3); font-weight: 500; }

/* ---------- Banners ---------- */
.banner-navy {
  background: var(--navy); border-radius: 18px; padding: 14px;
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.banner-navy .b-ic {
  width: 38px; height: 38px; border-radius: 11px; background: var(--red);
  display: grid; place-items: center; color: #fff; flex: none;
}
.banner-navy p { color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.45; flex: 1; }
.banner-navy .apply-btn {
  display: block; width: 100%; margin-top: 10px; height: 36px; border-radius: 999px;
  background: #fff; color: #16181d; font-size: 13px; font-weight: 700;
}
.banner-navy .txt-wrap { flex: 1; }
.banner-navy .apply-btn:active { transform: scale(.98); }

.banner-refer {
  background: #e3eaf2; border-radius: 18px; padding: 16px 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; position: relative; cursor: pointer;
}
.phone.dark .banner-refer { background: #20242c; }
.banner-refer .t1 { font-size: 12.5px; color: var(--ink3); font-weight: 500; margin-bottom: 4px; }
.banner-refer .t2 { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.coin-art { position: relative; width: 74px; height: 54px; flex: none; }
.coin-art .coin {
  position: absolute; right: 16px; top: 3px; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fdfdfd, #c9ced8 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 3px 8px rgba(20,30,50,.18);
  display: grid; place-items: center; color: #8d97ab; font-weight: 800; font-size: 19px;
}
.coin-art .minicard {
  position: absolute; right: 0; bottom: 0; width: 26px; height: 19px; border-radius: 4px;
  background: linear-gradient(135deg, #ff5f6d, var(--red)); transform: rotate(-14deg);
  box-shadow: 0 2px 6px rgba(235,0,40,.35);
}
.dots { display: flex; gap: 5px; justify-content: center; padding: 10px 0 0; }
.dots i { width: 5.5px; height: 5.5px; border-radius: 50%; background: #c3cad4; }
.dots i.on { background: var(--ink); }
.phone.dark .dots i { background: #3a3e47; }
.phone.dark .dots i.on { background: var(--ink); }

/* ---------- List cards & transactions ---------- */
.list-card { background: var(--card); border-radius: 18px; padding: 4px 16px; box-shadow: var(--shadow-card); margin-bottom: 14px; }
.list-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 0 5px; }
.list-head h3 { font-size: 15px; font-weight: 700; }
.list-head .icon-btn.sm { color: var(--ink2); }

.tx-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.tx-row:first-of-type { border-top: 0; }
.tx-ic {
  width: 40px; height: 40px; border-radius: 50%; background: var(--circle);
  display: grid; place-items: center; color: var(--ink3); flex: none; font-weight: 800; font-size: 15px;
}
.tx-ic svg { width: 18px; height: 18px; }
.tx-ic.tx-brand { background: transparent; }
.tx-ic .mlogo { width: 27px; height: 27px; }
.tx-main { flex: 1; min-width: 0; }
.tx-name { font-size: 14px; font-weight: 650; }
.tx-sub { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.tx-right { text-align: right; }
.tx-amt { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tx-amt.plus { color: var(--green); }
.tx-status { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.tx-status.ok { color: var(--green); }

/* ---------- Learn cards ---------- */
.sec-label { font-size: 15px; font-weight: 700; padding: 2px 2px 10px; }
.learn-scroller { display: flex; gap: 12px; overflow-x: auto; padding: 0 2px 6px; scrollbar-width: none; }
.learn-scroller::-webkit-scrollbar { display: none; }
.learn-card {
  min-width: 216px; height: 128px; border-radius: 18px; padding: 14px;
  color: #fff; position: relative; overflow: hidden; flex: none; cursor: pointer;
}
.learn-card h4 { font-size: 15px; font-weight: 750; margin-top: 8px; letter-spacing: -0.1px; }
.learn-card p { font-size: 11.5px; opacity: .75; margin-top: 4px; font-weight: 500; }
.lc-navy { background: linear-gradient(135deg, #3d4a63, #202b40); }
.lc-pink { background: linear-gradient(135deg, #ff7a8a, #e63757); }
.lc-mint { background: linear-gradient(135deg, #0fb37f, #0a7d59); }
.lc-blob { position: absolute; right: -26px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.12); }
.lc-blob.b2 { right: 24px; bottom: -58px; width: 74px; height: 74px; }
.tag-hot {
  display: inline-block; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 800;
  padding: 2.5px 8px; border-radius: 999px; letter-spacing: .4px;
}

/* ---------- Tab bar ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 50;
  background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: flex-start;
  padding: 9px 8px 0;
}
.tabbtn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: #a8aeb9; font-size: 10px; font-weight: 600; width: 60px; padding-top: 2px;
  border-radius: 12px; transition: color .15s;
}
.tabbtn svg { width: 23px; height: 23px; }
.tabbtn.on { color: var(--ink); }
.tabbtn:active { transform: scale(.94); }
.home-indicator {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 130px; height: 4.5px; border-radius: 3px; background: #16181d; opacity: .9;
}
.phone.dark .home-indicator { background: #f2f3f5; }

/* ---------- Card screen ---------- */
.cards-scroller {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 2px; scrollbar-width: none;
}
.cards-scroller::-webkit-scrollbar { display: none; }
.pcard {
  min-width: calc(100% - 0px); scroll-snap-align: center;
  aspect-ratio: 1.586; border-radius: 18px; padding: 18px;
  position: relative; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: filter .3s;
}
.pcard.pc-black { background: linear-gradient(150deg, #2c2f36 0%, #17181c 55%, #0e0f12 100%); box-shadow: 0 10px 24px rgba(10,12,20,.35); }
.pcard.pc-navy { background: linear-gradient(150deg, #33507c 0%, #1d2f4d 60%, #14203a 100%); box-shadow: 0 10px 24px rgba(10,12,20,.35); }
.pcard.pc-graphite { background: linear-gradient(150deg, #4a4d55 0%, #26282e 60%, #191a1f 100%); box-shadow: 0 10px 24px rgba(10,12,20,.35); }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pcard-logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15.5px; }
.pcard-logo svg { width: 20px; height: 20px; }
.gpay-g { width: 21px; height: 21px; }
.pcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.pcard-num { font-size: 14px; font-weight: 650; letter-spacing: 1px; opacity: .95; }
.pcard-num .pnum-dots { letter-spacing: 2px; }
.visa { font-size: 17px; font-weight: 900; font-style: italic; letter-spacing: .5px; }
.mc-badge { display: flex; }
.mc-badge i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.mc-badge i:first-child { background: #eb001b; }
.mc-badge i:last-child { background: #f79e1b; margin-left: -9px; mix-blend-mode: screen; opacity: .92; }
.pcard .chip-ic { width: 34px; height: 25px; border-radius: 5px; background: linear-gradient(135deg, #d9b968, #b48f3e); opacity: .95; }
.pcard .phys-tag {
  position: absolute; top: 16px; right: 18px; font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
  border: 1px solid rgba(255,255,255,.5); padding: 3px 8px; border-radius: 999px;
}
.pcard.frozen { filter: grayscale(.95) brightness(.75); }
.frozen-tag {
  position: absolute; inset: 0; display: none; place-items: center;
  font-weight: 800; letter-spacing: 3px; font-size: 15px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.pcard.frozen .frozen-tag { display: grid; }

.btn-wallet {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 190px; height: 42px; margin: 16px auto 4px; border-radius: 11px;
  background: #101114; color: #fff; font-size: 13px; font-weight: 650;
}
.phone.dark .btn-wallet { background: #26272c; border: 1px solid #33353c; }
.btn-wallet:active { transform: scale(.98); }
.btn-wallet svg { width: 17px; height: 17px; }

/* ---------- Send screen ---------- */
.send-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 0 14px; }
.mode-btn {
  background: var(--card); border-radius: 14px; height: 52px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; box-shadow: var(--shadow-card);
}
.mode-btn .ic { width: 18px; height: 18px; color: var(--ink3); }
.mode-btn:active { transform: scale(.98); }

.calc-card { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow-card); margin-bottom: 14px; }
.calc-row {
  border: 1.5px solid var(--line); border-radius: 15px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px; gap: 10px;
}
.calc-row .cur-pick { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.calc-row .cur-pick .ic { width: 13px; height: 13px; color: var(--ink3); }
.calc-amt { font-size: 22px; font-weight: 800; text-align: right; min-width: 0; flex: 1; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.calc-amt input { width: 100%; text-align: right; font-size: 22px; font-weight: 800; }
.rate-row { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--ink3); padding: 9px 0; font-weight: 550; }
.rate-row .ic { width: 14px; height: 14px; }
.calc-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink3); padding: 2px 2px 12px; font-weight: 500; }
.calc-foot b { color: var(--ink); font-weight: 650; }
.btn-continue {
  width: 100%; height: 50px; border-radius: 15px; background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 700;
}
.btn-continue:active { transform: scale(.985); opacity: .9; }
.btn-continue.red { background: var(--red); color: #fff; }

.recip-card { display: flex; gap: 20px; padding: 16px 18px; }
.recip { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--ink3); font-weight: 550; }
.recip .rav {
  width: 46px; height: 46px; border-radius: 50%; position: relative;
  background: linear-gradient(160deg, #c8ccd6, #aab0bd); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 17px;
}
.recip .rav.b { background: linear-gradient(160deg, #b7c3d6, #8e9cb5); }
.recip .flag { position: absolute; right: -2px; bottom: -2px; border: 2px solid var(--card); }

/* ---------- Flags & tokens ---------- */
.flag { width: 17px; height: 17px; border-radius: 50%; overflow: hidden; position: relative; display: inline-block; flex: none; }
.flag-eu { background: #0b3d91; }
.flag-eu::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255,204,0,.9); }
.flag-us { background: repeating-linear-gradient(180deg, #b22234 0 2.4px, #fff 2.4px 4.8px); }
.flag-us::after { content: ""; position: absolute; left: 0; top: 0; width: 55%; height: 45%; background: #3c3b6e; }
.flag-gb { background:
  linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%),
  linear-gradient(-45deg, transparent 44%, #fff 44% 56%, transparent 56%),
  linear-gradient(45deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
  linear-gradient(-45deg, transparent 47%, #c8102e 47% 53%, transparent 53%),
  #012169;
}
.flag-br { background: radial-gradient(circle at 50% 50%, #1c40a0 0 32%, #f7d618 32% 42%, #159b3f 42%); }
.flag-ph { background: linear-gradient(180deg, #0038a8 50%, #ce1126 50%); }
.flag-ph::after { content: ""; position: absolute; left: -3px; top: 50%; transform: translateY(-50%); width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.flag-cn { background: #de2910; }

.tok { border-radius: 50%; flex: none; display: grid; place-items: center; }
.tok svg { width: 100%; height: 100%; }

/* ---------- Assets screen ---------- */
.pill-btns { display: flex; gap: 10px; padding: 0 0 16px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: var(--field); color: var(--ink); }
.pill-btns button { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.pill-btns .btn-dark { flex: none; }
.pill-btns .btn-ghost { flex: 1; }
button:active { transform: scale(.97); }

.seg-tabs { display: flex; gap: 20px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.seg-tab { font-size: 15px; font-weight: 600; color: var(--ink2); padding: 6px 2px 10px; position: relative; }
.seg-tab.on { color: var(--ink); font-weight: 750; }
.seg-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--ink); }

.asset-list { padding-top: 2px; }
.asset-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.asset-row:last-child { border-bottom: 0; }
.a-main { flex: 1; min-width: 0; }
.a-sym { font-size: 15px; font-weight: 700; }
.a-name { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.a-right { text-align: right; }
.a-amt { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-usd { font-size: 12px; color: var(--ink2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.fiat-row { display: flex; }

/* ---------- Reward screen ---------- */
.refer-hero { background: #f4efe7; border-radius: 20px; padding: 14px 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.phone.dark .refer-hero { background: #23242a; }
.refer-art { height: 150px; position: relative; overflow: hidden; margin: 0 -6px 8px; }
.refer-art .blob { position: absolute; border-radius: 50%; }
.refer-art .bl1 { width: 190px; height: 190px; left: 50%; transform: translateX(-50%); top: 24px; background: #e8ddca; }
.app.dark .refer-art .bl1 { background: #33353c; }
.refer-art .bl2 { width: 120px; height: 120px; left: 8%; top: 60px; background: #f3d9c4; opacity: .8; }
.refer-art .bl3 { width: 120px; height: 120px; right: 6%; top: 58px; background: #d9e4f5; opacity: .9; }
.refer-phone {
  position: absolute; left: 50%; top: 34px; transform: translateX(-50%) rotate(-4deg);
  width: 62px; height: 106px; background: #17181d; border-radius: 12px; padding: 5px;
  box-shadow: 0 10px 22px rgba(30,30,40,.25);
}
.refer-phone .scr { background: #fff; border-radius: 8px; height: 100%; display: grid; place-items: center; }
.refer-chip {
  position: absolute; background: #fff; border-radius: 10px; padding: 6px 8px;
  display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(30,30,40,.14); color: var(--ink);
}
.refer-chip .mini { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; }
.refer-chip .mini svg { width: 11px; height: 11px; }
.rc1 { left: 12%; top: 12px; }
.rc2 { right: 10%; top: 6px; }
.rc3 { right: 16%; bottom: 8px; }
.refer-hero h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.25; }
.refer-stats { display: flex; gap: 40px; padding: 14px 2px 16px; }
.refer-stats .k { font-size: 12px; color: var(--ink3); font-weight: 500; }
.refer-stats .v { font-size: 19px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.refer-btns { display: flex; gap: 10px; }
.refer-btns .btn-white { flex: 1; height: 44px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; }
.phone.dark .refer-btns .btn-white { background: #2c2e35; }
.refer-btns .btn-black { flex: 1; height: 44px; border-radius: 999px; background: #131418; color: #fff; font-weight: 700; font-size: 14px; }
.phone.dark .refer-btns .btn-black { background: #f2f3f5; color: #131418; }

.picks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-card { border-radius: 18px; padding: 14px; height: 138px; position: relative; overflow: hidden; cursor: pointer; }
.pick-card h4 { font-size: 14.5px; font-weight: 800; margin-top: 8px; line-height: 1.3; padding-right: 54px; }
.pick-card p { font-size: 11px; font-weight: 600; opacity: .8; margin-top: 3px; }
.pick-pink { background: linear-gradient(160deg, #ff8fa0, #f43f5e 70%); color: #fff; }
.pick-mint { background: linear-gradient(160deg, #4ce0a6, #0ca678 75%); color: #fff; }
.pick-tag {
  position: absolute; top: 10px; right: 10px; background: rgba(20,20,25,.35); backdrop-filter: blur(4px);
  color: #fff; font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  display: flex; align-items: center; gap: 4px;
}
.pick-tag i { width: 5px; height: 5px; border-radius: 50%; background: #4ade80; }
.pick-art { position: absolute; right: -8px; bottom: -12px; width: 74px; height: 74px; opacity: .95; }
.tier-rows { background: var(--card); border-radius: 18px; padding: 4px 16px; box-shadow: var(--shadow-card); }
.tier-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tier-row:first-child { border-top: 0; }
.tier-num { width: 30px; height: 30px; border-radius: 50%; background: var(--circle); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink3); flex: none; }
.tier-main { flex: 1; }
.tier-name { font-size: 13.5px; font-weight: 650; }
.tier-sub { font-size: 11.5px; color: var(--ink2); margin-top: 1px; }
.tier-pct { font-size: 14px; font-weight: 800; color: var(--red); }

/* ---------- Profile & generic menu pages ---------- */
.id-card { background: var(--card); border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-card); margin-bottom: 12px; }
.id-name { font-size: 18px; font-weight: 800; }
.id-uid { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.id-uid .icon-btn { width: 20px; height: 20px; color: var(--ink2); }
.id-uid .icon-btn svg { width: 13px; height: 13px; }
.chips-line { display: flex; gap: 6px; margin-top: 8px; }
.kyc-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 3.5px 9px; border-radius: 999px; }
.kyc-chip.ok { background: rgba(46,204,91,.14); color: #1da34b; }
.phone.dark .kyc-chip.ok { color: #4ade80; }
.kyc-chip.pro { background: rgba(245, 166, 35, .16); color: #c47f0e; }
.phone.dark .kyc-chip.pro { color: #fbbf24; }

.pro-banner {
  background: linear-gradient(120deg, #23252d, #101114 70%); border-radius: 18px; padding: 15px 16px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #fff;
}
.pro-banner .t { font-size: 14px; font-weight: 750; }
.pro-banner .s { font-size: 11.5px; color: #b9bdc7; margin-top: 3px; font-weight: 500; }
.pro-badge { color: #f5c14e; font-weight: 900; font-size: 13px; letter-spacing: 1px; }
.pro-banner button { background: #f5c14e; color: #16181d; font-size: 12px; font-weight: 800; padding: 8px 14px; border-radius: 999px; }

.menu-group { background: var(--card); border-radius: 18px; padding: 2px 16px; box-shadow: var(--shadow-card); margin-bottom: 12px; }
.menu-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 13.5px 0; border-top: 1px solid var(--line); }
.menu-row:first-child { border-top: 0; }
.menu-row > svg:first-child { width: 21px; height: 21px; color: var(--ink3); flex: none; }
.menu-label { flex: 1; font-size: 14.5px; font-weight: 600; }
.menu-val { font-size: 13px; color: var(--ink2); font-weight: 550; display: flex; align-items: center; gap: 4px; }
.menu-val .ic { width: 14px; height: 14px; }
.menu-row.danger .menu-label { color: var(--red); }
.menu-row.danger > svg:first-child { color: var(--red); }

/* ---------- Security page ---------- */
.sec-card { background: #eef1f5; border-radius: 18px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.phone.dark .sec-card { background: #20232a; }
.sec-card .t { font-size: 14.5px; font-weight: 700; }
.sec-card .t em { font-style: normal; color: #1da34b; }
.phone.dark .sec-card .t em { color: #4ade80; }
.sec-card .s { font-size: 12px; color: var(--ink3); margin-top: 5px; line-height: 1.5; max-width: 230px; }
.gauge { width: 64px; height: 64px; position: relative; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .gd { position: absolute; inset: 12px; border-radius: 50%; background: linear-gradient(150deg, #dfe3e9, #b9c0cb); display: grid; place-items: center; color: #6b7280; }
.gauge .gd svg { width: 20px; height: 20px; transform: none; }
.group-label { font-size: 13px; color: var(--ink3); font-weight: 600; padding: 2px 2px 8px; }
.check-dot { width: 21px; height: 21px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; flex: none; }
.check-dot svg { width: 11px; height: 11px; }
.check-dot.off { background: #c6cad2; }

/* ---------- Notifications page ---------- */
.notif-row { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.notif-row:first-child { border-top: 0; }
.notif-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.notif-ic svg { width: 18px; height: 18px; }
.notif-ic.n-red { background: var(--red); }
.notif-ic.n-navy { background: var(--navy); }
.notif-ic.n-green { background: var(--green); }
.notif-ic.n-ink { background: #23252d; }
.notif-t { font-size: 13.5px; font-weight: 650; line-height: 1.4; }
.notif-s { font-size: 11.5px; color: var(--ink2); margin-top: 3px; }
.notif-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; margin-top: 6px; }
.filter-chips { display: flex; gap: 8px; padding-bottom: 12px; }
.filter-chips .chip.on { background: var(--ink); color: var(--bg); }

/* ---------- Card settings / asset detail ---------- */
.setting-row .menu-val .reveal { color: var(--ink); font-weight: 700; letter-spacing: 1px; }
.detail-balance { padding: 6px 2px 14px; }
.detail-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-bottom: 18px; }
.kv-row { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.kv-row:first-child { border-top: 0; }
.kv-row .k { color: var(--ink3); font-weight: 500; }
.kv-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.kv-row .v.up { color: #1da34b; }
.app.dark .kv-row .v.up { color: #4ade80; }

/* ---------- Sheets ---------- */
.sheet-layer { position: absolute; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.sheet-layer.open { pointer-events: auto; }
.backdrop { position: absolute; inset: 0; background: rgba(12, 14, 20, 0.45); opacity: 0; transition: opacity .25s; }
.sheet-layer.open .backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 82%;
  background: var(--card); border-radius: 22px 22px 0 0;
  transform: translateY(103%); transition: transform .3s cubic-bezier(.32,.72,.34,1);
  display: flex; flex-direction: column; padding-bottom: 18px;
}
.sheet.open { transform: translateY(0); }
.sheet-grab { width: 38px; height: 4.5px; border-radius: 3px; background: var(--line); margin: 8px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 4px; flex: none; }
.sheet-head h3 { font-size: 17px; font-weight: 800; }
.sheet-body { overflow-y: auto; padding: 8px 18px 6px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-close { width: 30px; height: 30px; border-radius: 50%; background: var(--field); display: grid; place-items: center; color: var(--ink3); }
.sheet-close svg { width: 15px; height: 15px; }

.grid-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; padding: 8px 0 6px; }
.grid-actions .act-circle { width: 52px; height: 52px; }
.grid-actions .act-circle.red { background: var(--red); color: #fff; }
.grid-actions .act-circle svg { width: 20px; height: 20px; }

.opt-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1.5px solid var(--line); border-radius: 15px; padding: 13px 14px; margin-bottom: 10px; }
.opt-row.on { border-color: var(--ink); }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c6cad2; flex: none; display: grid; place-items: center; }
.opt-row.on .radio-dot { border-color: var(--red); }
.opt-row.on .radio-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.opt-main { flex: 1; }
.opt-name { font-size: 14px; font-weight: 650; }
.opt-sub { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }

.addr-box { background: var(--bg); border-radius: 13px; padding: 13px 14px; margin-bottom: 12px; }
.addr-box .l { font-size: 11px; color: var(--ink3); font-weight: 600; margin-bottom: 5px; }
.addr-box .a { font-size: 12.5px; font-weight: 650; font-family: "SF Mono", ui-monospace, Consolas, monospace; word-break: break-all; line-height: 1.5; }
.copy-btn { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--red); }
.copy-btn svg { width: 14px; height: 14px; }

.amt-field { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 14px; height: 52px; padding: 0 15px; margin-bottom: 12px; }
.amt-field input { flex: 1; font-size: 18px; font-weight: 800; min-width: 0; }
.amt-field .unit { font-size: 13px; font-weight: 700; color: var(--ink3); }

.chip-line { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 12px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--field); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--ink); color: var(--bg); }
.chip .flag { width: 15px; height: 15px; }

.earn-prod { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.earn-prod.on { border-color: var(--ink); }
.earn-top { display: flex; align-items: center; gap: 10px; }
.earn-top .n { font-size: 14px; font-weight: 700; flex: 1; }
.earn-top .apy { font-size: 16px; font-weight: 800; color: var(--red); }
.earn-tags { display: flex; gap: 6px; margin-top: 10px; }
.earn-tag { font-size: 10.5px; font-weight: 700; background: var(--field); color: var(--ink3); padding: 3px 8px; border-radius: 999px; }

.qr-wrap { display: grid; place-items: center; padding: 8px 0 14px; }
.qr-box { width: 190px; height: 190px; border-radius: 18px; border: 1.5px solid var(--line); display: grid; place-items: center; padding: 16px; }
.qr-box svg { width: 100%; height: 100%; }

.offer-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.offer-row:first-child { border-top: 0; }
.offer-m { flex: 1; }
.offer-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.verified { color: #1da34b; display: inline-flex; }
.verified svg { width: 13px; height: 13px; }
.offer-sub { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.offer-price { font-size: 15px; font-weight: 800; text-align: right; }
.offer-btn { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 999px; }

.checkin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 6px 0 14px; }
.checkin-day { border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.checkin-day .d { font-size: 9.5px; color: var(--ink3); font-weight: 700; }
.checkin-day .r { font-size: 9px; font-weight: 800; color: var(--ink3); }
.checkin-day.done { background: rgba(46,204,91,.1); border-color: transparent; }
.checkin-day.done .r { color: #1da34b; }
.checkin-day.today { border-color: var(--red); }
.checkin-day.today .r { color: var(--red); }

.voucher-row { display: flex; align-items: center; gap: 12px; border: 1.5px dashed #d8b64a; background: rgba(245,193,78,.08); border-radius: 15px; padding: 12px 14px; margin-bottom: 10px; }
.voucher-ic { width: 38px; height: 38px; border-radius: 10px; background: #f5c14e; display: grid; place-items: center; color: #16181d; flex: none; }
.voucher-ic svg { width: 18px; height: 18px; }
.voucher-row .vm { flex: 1; }
.voucher-row .vn { font-size: 13.5px; font-weight: 750; }
.voucher-row .vs { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.voucher-row button { background: var(--ink); color: var(--bg); font-size: 11.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px; }

/* Success sheet */
.success-wrap { display: flex; flex-direction: column; align-items: center; padding: 18px 10px 8px; text-align: center; }
.success-ring { width: 74px; height: 74px; border-radius: 50%; background: rgba(46,204,91,.14); display: grid; place-items: center; margin-bottom: 14px; }
.success-ring i { width: 54px; height: 54px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; }
.success-ring svg { width: 26px; height: 26px; }
.success-wrap h3 { font-size: 18px; font-weight: 800; }
.success-wrap p { font-size: 13px; color: var(--ink3); margin-top: 6px; line-height: 1.55; }

/* Confirm sheet */
.confirm-wrap { padding: 10px 4px 4px; text-align: center; }
.confirm-wrap h3 { font-size: 17px; font-weight: 800; }
.confirm-wrap p { font-size: 13px; color: var(--ink3); margin: 8px 0 18px; line-height: 1.55; }
.confirm-btns { display: flex; gap: 10px; }
.confirm-btns button { flex: 1; height: 46px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.confirm-btns .c-cancel { background: var(--field); color: var(--ink); }
.confirm-btns .c-ok { background: var(--red); color: #fff; }
.confirm-btns .c-ok.safe { background: var(--ink); color: var(--bg); }

/* Language / picker list */
.pick-list { padding-bottom: 6px; }
.pick-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 2px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.pick-item:first-child { border-top: 0; }
.pick-item .grow { flex: 1; }
.pick-item .pick-check { color: var(--red); opacity: 0; }
.pick-item.on .pick-check { opacity: 1; }
.pick-item .sub { display: block; font-size: 11.5px; color: var(--ink2); font-weight: 500; margin-top: 2px; }

/* ---------- Toast ---------- */
.toast {
  position: absolute; left: 50%; bottom: 104px; transform: translate(-50%, 14px);
  background: rgba(20, 21, 26, 0.93); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 10px 17px; border-radius: 999px; opacity: 0; transition: all .25s; z-index: 95;
  pointer-events: none; max-width: 86%; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lock screen ---------- */
.lockscreen {
  position: absolute; inset: 0; z-index: 90;
  background:
    radial-gradient(500px 380px at 50% -60px, rgba(235,0,40,.5), rgba(235,0,40,0) 70%),
    linear-gradient(180deg, #17181d 0%, #0d0e12 100%);
  color: #fff; display: flex; flex-direction: column; align-items: center;
  padding: 84px 30px 30px; transition: opacity .35s, transform .35s;
}
.lockscreen.hidden { opacity: 0; transform: scale(1.04); pointer-events: none; }
.lock-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lock-logo .brand-lockup { color: #fff; font-size: 23px; }
.lock-sub { font-size: 13px; color: #9aa0ab; margin-top: 34px; font-weight: 550; }
.pcode-dots { display: flex; gap: 15px; margin: 22px 0 8px; height: 14px; }
.pcode-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid rgba(255,255,255,.5); transition: all .15s; }
.pcode-dots i.fill { background: #fff; border-color: #fff; }
.pcode-dots.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 74px); gap: 16px; margin-top: 26px; }
.key {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.1);
  font-size: 26px; font-weight: 500; color: #fff; display: grid; place-items: center;
  transition: background .15s; backdrop-filter: blur(2px);
}
.key:active { background: rgba(255,255,255,.28); }
.key.aux { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #d3d6dc; }
.key.aux svg { width: 26px; height: 26px; }
.lock-hint { margin-top: auto; font-size: 11px; color: #6d727c; }

/* ---------- Appearance switch ---------- */
.switch { width: 46px; height: 27px; border-radius: 999px; background: #d9dce2; position: relative; transition: background .2s; flex: none; }
.switch::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: left .2s;
}
.switch.on { background: #34c759; }
.switch.on::after { left: 21.5px; }

/* QR mini for deposit */
.mini-qr { display: grid; place-items: center; padding: 4px 0 12px; }
.mini-qr .qr-box { width: 128px; height: 128px; border-radius: 14px; padding: 12px; }

@media (max-width: 460px) {
  .site-brand { flex-direction: column; gap: 6px; }
}

/* ---------- Full transaction history page ---------- */
.pro-strip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border-radius: 14px; padding: 12px 8px 12px 12px;
  margin: 2px 0 6px; box-shadow: var(--shadow-card);
}
.pro-tag {
  background: var(--ink); color: var(--bg); font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px; letter-spacing: .5px; flex: none;
}
.pro-strip p { flex: 1; font-size: 13px; font-weight: 650; }
.txsec-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 2px 4px; }
.txsec-head h3 { font-size: 17px; font-weight: 750; }
.txfilters { display: flex; gap: 8px; padding: 2px 0 4px; flex-wrap: wrap; }
.filter-pill {
  height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: 13.5px; font-weight: 650; box-shadow: var(--shadow-card);
}
.filter-pill:active { transform: scale(.97); }
.txday { font-size: 13px; color: var(--ink2); font-weight: 650; padding: 18px 2px 4px; }
.txrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.txlogo {
  width: 44px; height: 44px; border-radius: 50%; background: var(--circle);
  display: grid; place-items: center; flex: none; overflow: hidden; color: var(--ink);
}
.txlogo .mlogo { width: 22px; height: 22px; }
.txlogo .ic { width: 20px; height: 20px; color: var(--ink3); }
.txlogo.flat { background: transparent; border-radius: 0; }
.txlogo.flat .mlogo { width: 40px; height: 40px; }
.txrow .tx-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.1px; }
.txrow .tx-sub { font-size: 12px; }
.txrow .tx-amt { font-size: 14.5px; }
.tx-empty { text-align: center; color: var(--ink2); font-size: 13px; padding: 36px 0 10px; }
.txrow[data-txd] { cursor: pointer; border-radius: 12px; }
.txrow[data-txd]:active { background: var(--field); }

/* ---------- Transaction detail page ---------- */
.txd-hero { text-align: center; padding: 6px 0 2px; }
.txd-hero .txlogo { width: 72px; height: 72px; margin: 0 auto; }
.txd-hero .txlogo.flat .mlogo { width: 64px; height: 64px; }
.txd-name { font-size: 14px; color: var(--ink2); font-weight: 650; letter-spacing: 0.4px; margin-top: 14px; }
.txd-amt { margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.txd-amt .sc { font-size: 17px; font-weight: 750; margin-right: 7px; letter-spacing: 0; }
.txd-status { margin-top: 12px; font-weight: 650; color: #1da34b; text-decoration: underline dotted; text-underline-offset: 5px; }
.phone.dark .txd-status { color: #4ade80; }
.txd-chip {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 18px 7px 8px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.txd-chip .ci {
  width: 30px; height: 30px; border-radius: 50%; background: var(--circle);
  display: grid; place-items: center; color: var(--ink3);
}
.txd-chip .ci svg { width: 15px; height: 15px; }
.txd-card { background: var(--card); border-radius: 18px; padding: 2px 16px 6px; margin-top: 18px; box-shadow: var(--shadow-card); }
.txd-card h3 { font-size: 16.5px; font-weight: 750; padding: 15px 0 5px; }
.txd-card .kv-row { padding: 11px 0; font-size: 13.5px; }
.txd-card .kv-copy { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 650; }
.txd-card .kv-copy svg { width: 14px; height: 14px; color: var(--ink3); }
.txd-card .kv-note { width: 100%; }
.txd-card .kv-note .v { display: inline-flex; align-items: center; gap: 4px; }
.txd-card .kv-note .v .ic { width: 15px; height: 15px; color: var(--ink3); }

/* ---------- Screenshot panel (beside the phone) ---------- */
.snap-panel {
  position: fixed; left: calc(50% + 238px); top: 150px; width: 225px; z-index: 5;
}
.snap-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 47px; border-radius: 14px;
  background: #101114; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 26px rgba(15, 20, 35, 0.28);
  transition: transform .12s, opacity .2s;
}
.snap-btn .ic { width: 18px; height: 18px; }
.snap-btn:hover { transform: translateY(-1px); }
.snap-btn:active { transform: scale(.97); }
.snap-btn.busy { opacity: .65; pointer-events: none; }
.snap-btn.saved { background: #1da34b; }
.snap-hint { font-size: 11.5px; color: #8a919e; line-height: 1.6; margin-top: 11px; text-align: center; }
.snap-hint b { color: #565d68; }
@media (max-width: 1180px) {
  .snap-panel { left: auto; right: 14px; top: 14px; width: auto; }
  .snap-hint { display: none; }
}


/* ---------- Admin panel ---------- */
.admin-open {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 42px; margin-top: 10px; border-radius: 12px;
  background: #fff; color: #16181d; border: 1.5px solid rgba(20,24,32,.14);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.admin-open .ic { width: 16px; height: 16px; }
.admin-open:hover { background: #f6f7f9; }
.admin-panel {
  position: fixed; right: 16px; top: 64px; bottom: 16px; width: 392px;
  background: #101114; color: #e8eaee; border-radius: 16px; z-index: 300;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.admin-panel.open { display: flex; }
.admin-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 8px; font-size: 15px; }
.admin-x { background: #26272c; color: #cfd3da; border: 0; border-radius: 8px; width: 26px; height: 26px; cursor: pointer; }
.admin-tabs { display: flex; gap: 6px; padding: 4px 12px 10px; border-bottom: 1px solid #23252b; }
.admin-tabs button {
  background: #1c1e24; color: #aeb4bd; border: 0; border-radius: 8px;
  padding: 7px 11px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.admin-tabs button.on { background: #eb0028; color: #fff; }
.admin-body { flex: 1; overflow-y: auto; padding: 12px 14px 20px; }
.admin-body label { display: block; font-size: 10.5px; color: #8d939d; margin: 10px 0 4px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.admin-body input, .admin-body select {
  width: 100%; box-sizing: border-box; background: #1c1e24; border: 1px solid #2a2d35;
  color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none;
}
.admin-body input:focus, .admin-body select:focus { border-color: #eb0028; }
.admin-row { display: flex; gap: 8px; }
.admin-row > div { flex: 1; min-width: 0; }
.admin-btn {
  background: #eb0028; color: #fff; border: 0; border-radius: 9px;
  padding: 9px 14px; font-size: 13px; font-weight: 800; cursor: pointer; width: 100%;
}
.admin-btn.ghost { background: #26272c; color: #dfe3e9; }
.admin-btn.sm { width: auto; padding: 6px 10px; font-size: 11.5px; }
.admin-tx { border: 1px solid #2a2d35; border-radius: 10px; padding: 8px 10px; margin-bottom: 7px; font-size: 12px; line-height: 1.5; }
.admin-tx b { color: #fff; }
.admin-tx .muted { color: #8d939d; }
.admin-tx .ops { display: flex; gap: 6px; margin-top: 6px; }
.admin-asset { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.admin-asset span { width: 52px; font-size: 11.5px; font-weight: 800; color: #cfd3da; flex: none; }
.admin-ok { position: fixed; right: 24px; bottom: 24px; background: #1da34b; color: #fff; padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 700; z-index: 400; }
@media (max-width: 1180px) { .admin-panel { left: 16px; width: auto; } }

/* full web-app mode */
.island, .statusbar, .home-indicator { display: none; }
.viewport { top: 0; }
.tabbar { padding-bottom: max(9px, env(safe-area-inset-bottom)); height: calc(84px + env(safe-area-inset-bottom)); }
.screen { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.lockscreen { padding-top: max(84px, env(safe-area-inset-top)); }
.sheet { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.toast { bottom: calc(104px + env(safe-area-inset-bottom)); }
