
/* ============================================================ */
/* BanQi PWA — Real design tokens (extracted from H5 CSS v0.0.38) */
/* Font: Rubik (Arabic+Latin) | Brand: #f2cd00 | 100px root      */
/* 114 verified tokens from m.banqi.qi.iq                        */
/* ============================================================ */

html { font-size: 100px; }

@font-face {
  font-family: 'Rubik';
  src: url('https://m.banqi.qi.iq/page/qicard-web/font/rubik-arabic-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Rubik';
  src: url('https://m.banqi.qi.iq/page/qicard-web/font/rubik-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+0300-036F, U+0400-04FF;
}

:root {
  /* ── Brand (verified from --adw-color-brand-*) ── */
  --brand: #f2cd00;
  --brand-dark: #d4b200;
  --brand-light: #fff1a8;
  --brand-secondary: #ff7500;
  --brand-tertiary: #1c1bc4;

  /* ── Content / Text (verified from --adw-color-content-*) ── */
  --text: #22211f;
  --text-secondary: #494847;
  --text-muted: #70706f;
  --text-quaternary: #979695;
  --text-title: #22211f;
  --text-inverse: #ffffff;
  --text-brand: #f2cd00;
  --text-link: #1c1bc4;
  --text-success: #027a48;
  --text-warning: #b93815;
  --text-error: #b42318;
  --text-positive: #027a48;
  --text-negative: #b42318;

  /* ── Background (verified from --adw-color-bg-*) ── */
  --bg: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-card: #ffffff;
  --bg-input: #f4f4f4;
  --bg-input-focus: #e9e9e9;
  --bg-theme: #f2cd00;
  --bg-dark: #2a3951;
  --bg-mask: rgba(0,0,0,0.55);

  /* ── Button (verified from --adw-color-*) ── */
  --btn-bg: #f2cd00;
  --btn-text: #22211f;
  --btn-disabled-bg: #e9e9e9;
  --btn-disabled-text: #979695;

  /* ── Status (verified from --adw-color-status-*) ── */
  --success: #12b76a;
  --success-bg: rgba(18,183,106,0.1);
  --error: #f04438;
  --error-bg: rgba(240,68,56,0.1);
  --warning: #f79009;
  --warning-bg: rgba(247,144,9,0.1);
  --info: #1c1bc4;
  --info-bg: rgba(28,27,196,0.1);

  /* ── Borders & Dividers (verified from --adw-color-line-*) ── */
  --border: #dedddc;
  --border-light: rgba(0,0,0,0.06);
  --border-input: #c4c3c2;
  --border-focus: #f2cd00;
  --divider: #f4f4f4;

  /* ── Safe Areas ── */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-bottom-c: constant(safe-area-inset-bottom, 0px);

  /* ── Font ── */
  --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ── Shadows (verified from --adw-shadow-*) ── */
  --shadow-sm: 0 0.01rem 0.02rem rgba(0,0,0,0.06);
  --shadow-md: 0 0.02rem 0.06rem rgba(0,0,0,0.08), 0 0.01rem 0.02rem rgba(0,0,0,0.04);
  --shadow-lg: 0 0.04rem 0.12rem rgba(0,0,0,0.1), 0 0.02rem 0.04rem rgba(0,0,0,0.06);
  --shadow-card: 0 0.02rem 0.06rem rgba(0,0,0,0.06);

  /* ── Spacing (verified from --adw-spacing-*) ── */
  --sp-xxs: 0.04rem;
  --sp-xs: 0.08rem;
  --sp-s: 0.12rem;
  --sp-base: 0.16rem;
  --sp-m: 0.24rem;
  --sp-l: 0.32rem;
  --sp-xl: 0.48rem;
  --sp-xxl: 0.64rem;

  /* ── Radius (verified from --adw-radius-*) ── */
  --r-sm: 0.04rem;
  --r-md: 0.08rem;
  --r-lg: 0.12rem;
  --r-xl: 0.16rem;
  --r-pill: 99.99rem;

  /* ── Typography Scale (verified from --adw-font-size-*) ── */
  --fs-xs: 0.10rem;
  --fs-sm: 0.12rem;
  --fs-base: 0.14rem;
  --fs-md: 0.16rem;
  --fs-lg: 0.18rem;
  --fs-xl: 0.20rem;
  --fs-2xl: 0.24rem;
  --fs-3xl: 0.30rem;
  --fs-4xl: 0.36rem;
  --fs-hero: 0.48rem;
}

/* ── Dark Theme (mapped from BanQi dark palette) ─────────── */
[data-theme='dark'] {
  --bg: #101314;
  --bg-secondary: #1a1d1e;
  --bg-card: #1a1d1e;
  --bg-input: #252829;
  --bg-input-focus: #2f3233;
  --text: #f4f4f4;
  --text-secondary: #b0afae;
  --text-muted: #70706f;
  --text-quaternary: #5a5958;
  --text-title: #f4f4f4;
  --border: #333333;
  --border-light: rgba(255,255,255,0.08);
  --border-input: #444;
  --divider: #252829;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-card: 0 0.01rem 0.04rem rgba(0,0,0,0.3);
}

/* ── Reset ──────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  height: 100%; width: 100%;
}
body {
  height: 100%; width: 100%;
  font-family: var(--font);
  font-size: 0.14rem;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  user-select: none;
}

#app {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
}

/* ── Screen Management ──────────────────────────────────────── */
.screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.screen.active { display: flex; opacity: 1; }

/* ── Splash Screen ──────────────────────────────────────────── */
#splash-screen {
  justify-content: center; align-items: center;
  background: linear-gradient(180deg, #f2cd00 0%, #e8c200 100%);
}
.splash-content { text-align: center; }
.splash-logo-img {
  width: 1.20rem; height: 1.20rem;
  object-fit: contain;
  margin-bottom: 0.20rem;
  filter: brightness(0) invert(1);
}
.splash-title {
  font-size: 0.32rem; font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.06rem;
}
.splash-subtitle {
  font-size: 0.14rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.40rem;
}
.spinner {
  width: 0.28rem; height: 0.28rem;
  border: 0.03rem solid rgba(255,255,255,0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Login Screen ───────────────────────────────────────────── */
#login-screen {
  position: relative;
  background: #FFFFFF;
}
.login-stripes {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.stripe {
  position: absolute;
  background: var(--brand);
  transform-origin: center;
}
.s1 {
  width: 280%;
  height: 0.60rem;
  top: 6%;
  left: -90%;
  transform: rotate(-30deg);
  opacity: 0.07;
  border-radius: 0.02rem;
}
.s2 {
  width: 280%;
  height: 0.30rem;
  top: 18%;
  left: -90%;
  transform: rotate(-30deg);
  opacity: 0.12;
  border-radius: 0.02rem;
}
.s3 {
  width: 280%;
  height: 0.90rem;
  top: 26%;
  left: -90%;
  transform: rotate(-30deg);
  opacity: 0.05;
  border-radius: 0.02rem;
}

.login-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.20rem 0.28rem;
  padding-top: calc(0.40rem + var(--safe-top));
  padding-bottom: calc(0.32rem + var(--safe-bottom));
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-self: flex-start;
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 0.01rem solid #E0E0E0;
  margin-bottom: 0.48rem;
  background: #FFFFFF;
}
.lang-btn {
  padding: 0.06rem 0.16rem;
  font-size: 0.12rem;
  font-family: var(--font);
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--brand);
  color: var(--btn-text);
}

/* Brand logo area */
.login-brand {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin-bottom: 0.64rem;
}
.brand-q {
  width: 0.52rem;
  height: 0.52rem;
  object-fit: contain;
}
.brand-text {
  height: 0.24rem;
  object-fit: contain;
}

/* Phone input section */
.login-form {
  width: 100%;
  margin-bottom: 0.28rem;
}
.phone-label {
  display: block;
  text-align: start;
  font-size: 0.14rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.14rem;
}
.phone-line-group {
  display: flex;
  align-items: center;
  direction: ltr;
  padding-bottom: 0.10rem;
  border-bottom: 0.015rem solid var(--border-input, #c4c3c2);
  transition: border-color 0.2s;
}
.phone-line-group:focus-within {
  border-bottom-color: var(--border-focus, var(--brand));
}
.country-code {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  padding-right: 0.12rem;
  color: var(--text);
  font-size: 0.16rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.country-code .chevron {
  font-size: 0.08rem;
  color: var(--text-muted);
}
.phone-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.16rem;
  font-weight: 500;
  padding: 0.04rem 0.08rem;
  font-family: var(--font);
  direction: ltr;
  text-align: left;
}
.phone-input::placeholder {
  color: #C0C0C0;
  font-weight: 400;
}

/* Login button - white/cream */
.btn-login {
  width: 100%;
  padding: 0.14rem;
  background: #FFFFFF;
  color: var(--text);
  border: 0.015rem solid #DDDDDD;
  border-radius: var(--r-pill);
  font-size: 0.15rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0.01rem 0.04rem rgba(0,0,0,0.06);
}
.btn-login:active {
  transform: scale(0.98);
  background: #F8F8F8;
}
.btn-login:disabled {
  color: #C0C0C0;
  border-color: #EEEEEE;
  box-shadow: none;
  cursor: not-allowed;
}

/* Divider between buttons */
.login-divider {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;
  width: 50%;
  margin: 0.20rem auto;
}
.divider-line {
  display: block;
  height: 0.005rem;
  background: #E0E0E0;
}

/* Register button - yellow */
.btn-register {
  width: 100%;
  padding: 0.14rem;
  background: var(--brand);
  color: var(--btn-text);
  border: none;
  border-radius: var(--r-pill);
  font-size: 0.15rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0.02rem 0.08rem rgba(242,205,0,0.3);
}
.btn-register:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.error-text {
  color: #EF4444;
  font-size: 0.13rem;
  font-weight: 500;
  margin-top: 0.08rem;
  margin-bottom: 0.06rem;
  padding: 0.06rem 0.10rem;
  text-align: start;
  background: rgba(239,68,68,0.08);
  border-radius: 0.06rem;
  border-right: 0.03rem solid #EF4444;
}

/* Shared btn-primary (OTP, etc.) */
.btn-primary {
  width: 100%;
  padding: 0.15rem;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: var(--r-pill);
  font-size: 0.16rem; font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 0.20rem;
  transition: opacity 0.2s, transform 0.1s;
  box-shadow: 0 0.02rem 0.08rem rgba(242,205,0,0.35);
}
.btn-primary:active { transform: scale(0.98); opacity: 0.9; }
.btn-primary:disabled {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-text);
  box-shadow: none;
  cursor: not-allowed;
}

/* ── Card KYC Screen ────────────────────────────────────────── */
.card-kyc-content {
  min-height: 100vh;
  padding: 0.24rem 0.20rem;
  padding-top: calc(env(safe-area-inset-top, 0.20rem) + 0.12rem);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.card-kyc-header { text-align: center; margin: 0.12rem 0 0.24rem; }
.card-kyc-icon { margin-bottom: 0.12rem; }
.card-kyc-header h2 { font-size: 0.22rem; font-weight: 700; color: var(--text); margin-bottom: 0.06rem; }
.card-kyc-header p { font-size: 0.13rem; color: var(--text-muted); line-height: 1.5; }
.card-kyc-form { display: flex; flex-direction: column; gap: 0.16rem; }
.card-input-group { display: flex; flex-direction: column; gap: 0.06rem; }
.card-input-group label { font-size: 0.12rem; font-weight: 600; color: var(--text-muted); }
.card-input {
  width: 100%;
  padding: 0.14rem 0.12rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.16rem;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.card-input:focus { border-color: var(--accent); }
.card-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.card-row-inputs { display: flex; gap: 0.12rem; }
.card-half { flex: 1; }
.card-secure-note {
  display: flex; align-items: center; gap: 0.06rem;
  padding: 0.10rem 0.12rem;
  background: rgba(242,205,0,0.08);
  border-radius: var(--r-md);
  margin-top: 0.04rem;
}
.card-secure-note span { font-size: 0.11rem; color: var(--text-muted); }

/* ── OTP Screen ─────────────────────────────────────────────── */
.otp-content {
  flex: 1; display: flex; flex-direction: column;
  padding: 0.24rem;
  padding-top: calc(0.24rem + var(--safe-top));
  text-align: center;
}
.btn-back {
  position: absolute;
  top: calc(0.12rem + var(--safe-top));
  right: 0.16rem;
  background: var(--bg-secondary); border: none;
  color: var(--text);
  width: 0.36rem; height: 0.36rem;
  border-radius: 50%;
  font-size: 0.18rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.btn-back img {
  width: 0.18rem; height: 0.18rem;
}
.otp-content h2 {
  font-size: 0.20rem; font-weight: 600;
  color: var(--text-title);
  margin-top: 0.48rem; margin-bottom: 0.08rem;
}
.otp-content p {
  font-size: 0.13rem;
  color: var(--text-secondary);
  margin-bottom: 0.32rem;
}
.otp-content p strong { color: var(--text); font-weight: 500; }
.otp-inputs {
  display: flex; gap: 0.10rem;
  justify-content: center;
  margin-bottom: 0.16rem;
  direction: ltr;
}
.otp-digit {
  width: 0.48rem; height: 0.52rem;
  text-align: center;
  font-size: var(--fs-xl); font-weight: 600;
  font-family: var(--font);
  background: var(--bg-input);
  border: 0.015rem solid var(--border-input, var(--border));
  border-radius: var(--r-md);
  color: var(--text);
  outline: none;
  caret-color: var(--brand);
  transition: border-color 0.2s;
}
.otp-digit:focus { border-color: var(--border-focus, var(--brand)); }

.otp-timer {
  margin: 0.12rem 0;
  font-size: 0.12rem;
  color: var(--text-muted);
}
.btn-link {
  background: none; border: none;
  color: var(--brand-dark);
  font-size: 0.14rem; font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

/* ── PIN Screen ─────────────────────────────────────────────── */
.pin-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center;
  padding: 0.48rem 0.24rem 0.24rem;
  padding-top: calc(0.48rem + var(--safe-top));
}
.pin-logo-img {
  width: 0.56rem; height: 0.56rem;
  object-fit: contain;
  margin-bottom: 0.20rem;
}
.pin-content h2 {
  font-size: 0.20rem; font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0.06rem;
}
.pin-content p {
  font-size: 0.13rem;
  color: var(--text-secondary);
  margin-bottom: 0.32rem;
}
.pin-dots {
  display: flex; gap: 0.16rem;
  margin-bottom: 0.24rem;
}
.pin-dot {
  width: 0.14rem; height: 0.14rem;
  border-radius: 50%;
  background: var(--bg-input);
  border: 0.02rem solid var(--border);
  transition: all 0.2s ease;
}
.pin-dot.filled {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.15);
}

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.12rem;
  max-width: 3rem;
  width: 100%;
  margin-top: auto;
  padding-bottom: calc(0.24rem + var(--safe-bottom));
  direction: ltr;
}
.numpad-key {
  width: 0.64rem; height: 0.64rem;
  border-radius: 50%; border: none;
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 0.24rem; font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  transition: background 0.15s;
}
.numpad-key:active {
  background: var(--brand);
  color: var(--btn-text);
}
.numpad-empty { visibility: hidden; }
.numpad-delete {
  background: transparent;
}
.numpad-delete img {
  width: 0.24rem; height: 0.24rem;
  object-fit: contain;
}

/* ── Dashboard Screen ───────────────────────────────────────── */
.dashboard-content {
  flex: 1; overflow-y: auto;
  padding: 0.16rem;
  padding-top: calc(0.12rem + var(--safe-top));
  padding-bottom: 0.80rem;
  -webkit-overflow-scrolling: touch;
}

/* Header */
.dash-header {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: 0.16rem;
}
.dash-header-right {
  display: flex; align-items: center; gap: 0.10rem;
}
.avatar-sm {
  width: 0.40rem; height: 0.40rem;
  border-radius: 50%;
  overflow: hidden;
}
.avatar-sm img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.greeting {
  font-size: 0.15rem; font-weight: 500;
  color: var(--text);
}
.dash-header-left {
  display: flex; align-items: center; gap: 0.08rem;
}
.icon-btn {
  width: 0.36rem; height: 0.36rem;
  border-radius: 50%;
  background: transparent; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.icon-btn:active { background: var(--bg-secondary); }
.icon-btn img {
  width: 0.22rem; height: 0.22rem;
  object-fit: contain;
}

/* Balance Card */
.balance-card {
  border-radius: var(--r-lg);
  padding: var(--sp-m) var(--sp-base);
  margin-bottom: var(--sp-base);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3048 50%, #243b5c 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
}
.balance-card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.balance-label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-xxs);
  position: relative;
}
.balance-row {
  display: flex; align-items: center;
  justify-content: space-between;
  position: relative;
}
.balance-amount {
  font-size: var(--fs-3xl); font-weight: 700;
  direction: ltr; text-align: right;
  color: #FFFFFF;
}
.balance-currency {
  font-size: 0.11rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.04rem;
  position: relative;
}
.toggle-balance {
  background: rgba(255,255,255,0.15); border: none;
  width: 0.32rem; height: 0.32rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.toggle-balance:active { background: rgba(255,255,255,0.25); }
.toggle-balance img {
  width: 0.18rem; height: 0.18rem;
  filter: brightness(10);
}

/* Quick Actions */
.quick-actions {
  display: flex; gap: var(--sp-xs);
  margin-bottom: var(--sp-base);
  padding: 0 0.02rem;
}
.action-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; gap: var(--sp-xxs);
  padding: var(--sp-s) var(--sp-xxs) var(--sp-xs);
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: none;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--fs-xs); font-weight: 500;
  transition: background 0.15s;
  box-shadow: var(--shadow-card);
}
.action-item:active { background: var(--bg-secondary); }
.action-icon {
  width: 0.40rem; height: 0.40rem;
}
.action-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* Promo Banner */
.promo-banner {
  display: flex; align-items: center; gap: var(--sp-s);
  padding: var(--sp-s);
  background: #FFF9E0;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-base);
  border: 0.01rem solid rgba(242,205,0,0.3);
}
[data-theme='dark'] .promo-banner {
  background: rgba(242,205,0,0.08);
  border-color: rgba(242,205,0,0.15);
}
.promo-icon { font-size: 0.28rem; flex-shrink: 0; }
.promo-text strong {
  display: block;
  font-size: 0.13rem;
  color: var(--text);
  margin-bottom: 0.02rem;
}
.promo-text p {
  font-size: 0.11rem;
  color: var(--text-secondary);
}

/* Section Header */
.section-header {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: 0.10rem;
}
.section-header h3 {
  font-size: var(--fs-base); font-weight: 600;
  color: var(--text-title);
}
.see-all {
  font-size: var(--fs-sm);
  color: var(--text-link, var(--brand-dark));
  text-decoration: none;
  font-weight: 500;
}

/* Transaction List */
.tx-list {
  display: flex; flex-direction: column;
  gap: 0.01rem;
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.tx-item {
  display: flex; align-items: center;
  padding: var(--sp-s) var(--sp-s);
  gap: var(--sp-xs);
  background: var(--bg-card);
  border-bottom: 0.005rem solid var(--divider);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
  width: 0.36rem; height: 0.36rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.14rem; font-weight: 700;
  flex-shrink: 0;
}
.tx-out { background: var(--error-bg, #FFEBEE); color: var(--text-negative, var(--error)); }
.tx-in { background: var(--success-bg, #E8F5E9); color: var(--text-positive, var(--success)); }
[data-theme='dark'] .tx-out { background: rgba(240,68,56,0.12); }
[data-theme='dark'] .tx-in { background: rgba(18,183,106,0.12); }
.tx-details { flex: 1; min-width: 0; }
.tx-details strong {
  display: block;
  font-size: 0.14rem; font-weight: 500;
  color: var(--text);
  margin-bottom: 0.02rem;
}
.tx-date {
  font-size: 0.11rem;
  color: var(--text-muted);
}
.tx-amount {
  font-size: 0.13rem; font-weight: 600;
  white-space: nowrap;
  direction: ltr;
}
.tx-negative { color: var(--text-negative, var(--error)); }
.tx-positive { color: var(--text-positive, var(--success)); }

/* ── Tab Bar ────────────────────────────────────────────────── */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: none;
  justify-content: space-around;
  align-items: center;
  height: calc(0.56rem + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--bg-card);
  border-top: 0.005rem solid var(--border);
  z-index: 100;
  box-shadow: 0 -0.01rem 0.04rem rgba(0,0,0,0.05);
}
#dashboard-screen.active ~ .tab-bar,
.tab-bar.visible { display: flex; }

.tab-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.03rem;
  background: none; border: none;
  color: var(--text-quaternary, var(--text-muted));
  font-family: var(--font);
  font-size: var(--fs-xs);
  cursor: pointer;
  padding: var(--sp-xxs) var(--sp-xs);
  transition: color 0.2s;
  position: relative;
}
.tab-item.active { color: var(--brand); }

.tab-icon {
  width: 0.22rem; height: 0.22rem;
  display: flex; align-items: center; justify-content: center;
}
.tab-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* Center scan tab — elevated button */
.tab-scan {
  position: relative;
}
.tab-scan .tab-icon {
  width: 0.48rem; height: 0.48rem;
  background: var(--brand);
  border-radius: 50%;
  margin-top: -0.20rem;
  padding: 0.10rem;
  box-shadow: 0 0.02rem 0.08rem rgba(242,205,0,0.4);
}
.tab-scan .tab-icon img {
  filter: brightness(0.2);
}
.tab-scan.active .tab-icon {
  background: var(--brand-dark);
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 0.80rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.10rem 0.20rem;
  background: rgba(33,33,33,0.92);
  color: #FFFFFF;
  border-radius: var(--r-pill);
  font-size: 0.13rem; font-weight: 500;
  z-index: 9999;
  font-family: var(--font);
  text-align: center;
  max-width: 80%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 0.06rem;
  animation: toastIn 0.25s ease;
}
.toast img { width: 0.16rem; height: 0.16rem; }
.toast-success { background: rgba(76,175,80,0.92); }
.toast-error { background: rgba(244,67,54,0.92); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(0.10rem); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Loading Overlay ─────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.loading-overlay .spinner {
  width: 0.36rem; height: 0.36rem;
  border: 0.03rem solid rgba(255,255,255,0.2);
  border-top-color: var(--brand);
}

/* ── Admin Approval Overlay ──────────────────────────────────── */
.approval-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}
.approval-card {
  background: #FFFFFF;
  border-radius: var(--r-xl);
  padding: 0.32rem 0.24rem;
  text-align: center;
  max-width: 85%;
  width: 3.00rem;
  box-shadow: 0 0.10rem 0.40rem rgba(0,0,0,0.25);
}
.approval-spinner {
  width: 0.48rem; height: 0.48rem;
  border: 0.04rem solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 0.20rem;
  animation: spin 0.8s linear infinite;
}
.approval-title {
  font-size: 0.16rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.08rem;
  font-family: var(--font);
}
.approval-desc {
  font-size: 0.13rem;
  color: var(--text-secondary);
  margin: 0 0 0.24rem;
  font-family: var(--font);
}
.approval-cancel {
  background: none;
  border: 0.01rem solid var(--border);
  border-radius: var(--r-pill);
  padding: 0.08rem 0.24rem;
  font-size: 0.13rem;
  color: var(--text-secondary);
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}
.approval-cancel:active {
  background: var(--bg-secondary);
}
.approval-rejected {
  color: #EF4444;
  font-size: 0.14rem;
  font-weight: 600;
  margin-top: 0.12rem;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Profile Screen ──────────────────────────────────────────── */
.profile-content {
  flex: 1; overflow-y: auto;
  padding: 0.16rem;
  padding-top: calc(0.12rem + var(--safe-top));
  padding-bottom: 0.80rem;
  -webkit-overflow-scrolling: touch;
}
.profile-header {
  text-align: center;
  padding: 0.20rem 0 0.24rem;
}
.profile-avatar {
  width: 0.64rem; height: 0.64rem;
  border-radius: 50%;
  margin: 0 auto 0.10rem;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.profile-name {
  font-size: 0.16rem; font-weight: 600;
  color: var(--text-title);
  margin-bottom: 0.04rem;
}
.profile-phone {
  font-size: 0.12rem;
  color: var(--text-secondary);
  direction: ltr;
}

.menu-section {
  margin-bottom: 0.16rem;
}
.menu-section-title {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: var(--sp-xs) var(--sp-xxs);
}
.menu-group {
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.menu-item {
  display: flex; align-items: center;
  padding: var(--sp-s) var(--sp-s);
  gap: var(--sp-s);
  border-bottom: 0.005rem solid var(--divider);
  cursor: pointer;
  transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--bg-secondary); }
.menu-item-icon {
  width: 0.22rem; height: 0.22rem;
  flex-shrink: 0;
}
.menu-item-icon img { width: 100%; height: 100%; object-fit: contain; }
.menu-item-label {
  flex: 1;
  font-size: var(--fs-base); font-weight: 500;
  color: var(--text);
}
.menu-item-arrow {
  width: 0.14rem; height: 0.14rem;
  opacity: 0.4;
  transform: scaleX(-1);
}
.menu-item-arrow img { width: 100%; height: 100%; }
.menu-item-logout .menu-item-label { color: var(--error); }

/* ── Sub-page Overlay ────────────────────────────────────────── */
.sub-page-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sub-page-overlay.open {
  transform: translateX(0);
}
.sub-page-header {
  display: flex; align-items: center; gap: var(--sp-s);
  padding: var(--sp-s) var(--sp-base);
  padding-top: calc(var(--sp-s) + var(--safe-top));
  background: var(--bg);
  border-bottom: 0.005rem solid var(--divider);
  min-height: 0.56rem;
  position: sticky; top: 0; z-index: 1;
}
.sub-page-back {
  width: 0.36rem; height: 0.36rem;
  border-radius: 50%; border: none;
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sub-page-back:active { background: var(--border); }
.sub-page-back img { width: 0.18rem; height: 0.18rem; }
.sub-page-title {
  font-size: var(--fs-lg); font-weight: 600;
  color: var(--text-title);
  flex: 1;
}
.sub-page-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sub-content {
  display: none;
  padding: var(--sp-base);
  padding-bottom: calc(var(--sp-xxl) + var(--safe-bottom));
}
.sub-content.active { display: block; }

/* ── Detail Rows (Personal Details) ──────────────────────────── */
.detail-section {
  margin-bottom: var(--sp-base);
}
.detail-section-title {
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: var(--sp-xs) 0;
  margin-bottom: var(--sp-xxs);
}
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-s) 0;
  border-bottom: 0.005rem solid var(--divider);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-size: var(--fs-sm); color: var(--text-muted);
}
.detail-value {
  font-size: var(--fs-base); font-weight: 500;
  color: var(--text);
  text-align: left;
}

/* ── Toggle Switch ───────────────────────────────────────────── */
.settings-group {
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-s) var(--sp-base);
  border-bottom: 0.005rem solid var(--divider);
  font-size: var(--fs-base); font-weight: 500;
  color: var(--text);
}
.setting-row:last-child { border-bottom: none; }
.toggle {
  position: relative;
  width: 0.48rem; height: 0.26rem;
  cursor: pointer;
}
.toggle input { display: none; }
.toggle-slider {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--border);
  border-radius: var(--r-pill);
  transition: background 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 0.20rem; height: 0.20rem;
  bottom: 0.03rem; left: 0.03rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider {
  background: var(--success);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(0.22rem);
}

/* ── Radio Buttons ───────────────────────────────────────────── */
.radio-row {
  display: flex; align-items: center; gap: var(--sp-s);
  padding: var(--sp-s) var(--sp-base);
  border-bottom: 0.005rem solid var(--divider);
  cursor: pointer;
  font-size: var(--fs-base); font-weight: 500;
  color: var(--text);
}
.radio-row:last-child { border-bottom: none; }
.radio-row input { display: none; }
.radio-dot {
  width: 0.20rem; height: 0.20rem;
  border-radius: 50%;
  border: 0.02rem solid var(--border-input);
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.radio-row input:checked ~ .radio-dot {
  border-color: var(--brand);
}
.radio-row input:checked ~ .radio-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 0.10rem; height: 0.10rem;
  border-radius: 50%;
  background: var(--brand);
}

/* ── Biometrics Card ─────────────────────────────────────────── */
.bio-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: var(--sp-l) var(--sp-base);
  text-align: center;
  box-shadow: var(--shadow-card);
}
.bio-icon { font-size: 0.48rem; margin-bottom: var(--sp-s); }
.bio-card h3 { font-size: var(--fs-lg); font-weight: 600; color: var(--text); margin-bottom: var(--sp-xs); }
.bio-card p { font-size: var(--fs-sm); color: var(--text-secondary); margin-bottom: var(--sp-m); }
.bio-toggle { justify-content: center; gap: var(--sp-s); border-bottom: none; }

/* ── Terms ────────────────────────────────────────────────────── */
.terms-text {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: var(--sp-base);
  box-shadow: var(--shadow-card);
}
.terms-text h3 { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--sp-s); color: var(--text); }
.terms-text p { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--sp-s); }
.terms-text strong { color: var(--text); font-weight: 600; }
.terms-footer { font-size: var(--fs-xs); color: var(--text-muted); text-align: center; margin-top: var(--sp-m); }

/* ── Version ──────────────────────────────────────────────────── */
.version-card {
  text-align: center;
  padding: var(--sp-xl) var(--sp-base);
}
.version-logo { width: 0.80rem; height: 0.80rem; margin-bottom: var(--sp-s); }
.version-card h3 { font-size: var(--fs-xl); font-weight: 700; color: var(--text); margin-bottom: var(--sp-xs); }
.version-num { font-size: var(--fs-lg); font-weight: 600; color: var(--brand); margin-bottom: var(--sp-xxs); }
.version-build { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: var(--sp-m); }
.version-copy { font-size: var(--fs-xs); color: var(--text-quaternary); }

/* ── Support ──────────────────────────────────────────────────── */
.support-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: var(--sp-base);
}
.support-row {
  display: flex; align-items: center; gap: var(--sp-s);
  padding: var(--sp-s) var(--sp-base);
  border-bottom: 0.005rem solid var(--divider);
}
.support-row:last-child { border-bottom: none; }
.support-icon { font-size: 0.24rem; flex-shrink: 0; }
.support-row strong { font-size: var(--fs-base); color: var(--text); display: block; margin-bottom: 0.02rem; }
.support-row p { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-section h3 { font-size: var(--fs-md); font-weight: 600; color: var(--text); margin-bottom: var(--sp-s); }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-xs);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  padding: var(--sp-s) var(--sp-base);
  font-size: var(--fs-base); font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '\25B6'; margin-left: var(--sp-xs); font-size: 0.10rem; color: var(--text-muted); }
.faq-item[open] summary::before { content: '\25BC'; }
.faq-item p {
  padding: 0 var(--sp-base) var(--sp-s);
  font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.6;
}

/* ── Change PIN (mini) ───────────────────────────────────────── */
.sub-desc {
  text-align: center;
  font-size: var(--fs-md); font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--sp-m);
  margin-top: var(--sp-m);
}
.mini-dots {
  justify-content: center;
  margin-bottom: var(--sp-m);
}
.mini-numpad {
  max-width: 2.80rem;
  margin: 0 auto;
  padding-bottom: var(--sp-base);
}

/* ── Cards Screen ────────────────────────────────────────────── */
.cards-content {
  flex: 1; overflow-y: auto;
  padding: var(--sp-base);
  padding-top: calc(var(--sp-base) + var(--safe-top));
  padding-bottom: 0.80rem;
  -webkit-overflow-scrolling: touch;
}
.page-header {
  margin-bottom: var(--sp-base);
}
.page-header h2 {
  font-size: var(--fs-xl); font-weight: 700;
  color: var(--text-title);
}
.card-visual {
  perspective: 1000;
  margin-bottom: var(--sp-base);
}
.card-face {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3048 50%, #243b5c 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-m) var(--sp-base);
  color: #fff;
  position: relative;
  min-height: 1.80rem;
  box-shadow: var(--shadow-lg);
}
.card-chip {
  width: 0.36rem; height: 0.26rem;
  background: linear-gradient(135deg, #d4af37 0%, #f5d460 100%);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-m);
}
.card-number {
  font-size: var(--fs-xl); font-weight: 600;
  letter-spacing: 0.04rem;
  margin-bottom: var(--sp-m);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.card-row {
  display: flex; justify-content: space-between;
}
.card-label-sm {
  font-size: 0.08rem; color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.card-val {
  font-size: var(--fs-sm); font-weight: 500;
}
.card-brand-logo {
  position: absolute;
  top: var(--sp-s); left: var(--sp-s);
  width: 0.32rem; height: 0.32rem;
  object-fit: contain;
  filter: brightness(10);
}
.card-actions {
  display: flex; gap: var(--sp-xs);
}
.card-action-btn {
  flex: 1;
  padding: var(--sp-s);
  background: var(--bg-card);
  border: 0.01rem solid var(--border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 500;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.card-action-btn:active { background: var(--bg-secondary); }
.card-action-danger { color: var(--error); border-color: var(--error); }
.card-action-danger:active { background: var(--error-bg); }

/* ── Scan Screen ─────────────────────────────────────────────── */
.scan-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #111;
  padding: var(--sp-base);
}
.scan-viewfinder {
  display: flex; flex-direction: column; align-items: center;
}
.scan-frame {
  width: 2.40rem; height: 2.40rem;
  position: relative;
  margin-bottom: var(--sp-m);
}
.scan-corner {
  position: absolute;
  width: 0.32rem; height: 0.32rem;
  border-color: var(--brand);
  border-style: solid;
  border-width: 0;
}
.scan-corner.tl { top: 0; right: 0; border-top-width: 0.03rem; border-right-width: 0.03rem; border-radius: 0 var(--r-sm) 0 0; }
.scan-corner.tr { top: 0; left: 0; border-top-width: 0.03rem; border-left-width: 0.03rem; border-radius: var(--r-sm) 0 0 0; }
.scan-corner.bl { bottom: 0; right: 0; border-bottom-width: 0.03rem; border-right-width: 0.03rem; border-radius: 0 0 var(--r-sm) 0; }
.scan-corner.br { bottom: 0; left: 0; border-bottom-width: 0.03rem; border-left-width: 0.03rem; border-radius: 0 0 0 var(--r-sm); }
.scan-line {
  position: absolute;
  top: 0; left: 0.10rem; right: 0.10rem;
  height: 0.02rem;
  background: var(--brand);
  box-shadow: 0 0 0.06rem var(--brand);
  animation: scanMove 2.5s ease-in-out infinite;
}
@keyframes scanMove {
  0%, 100% { top: 0.10rem; }
  50% { top: calc(100% - 0.10rem); }
}
.scan-hint {
  font-size: var(--fs-sm); color: rgba(255,255,255,0.7);
  text-align: center;
}
.scan-actions {
  margin-top: var(--sp-l);
}
.scan-btn {
  padding: var(--sp-s) var(--sp-m);
  background: rgba(255,255,255,0.15);
  border: 0.01rem solid rgba(255,255,255,0.3);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: var(--fs-sm); font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

/* ── Transaction History (Full) ──────────────────────────────── */
.tx-filters {
  margin-bottom: var(--sp-s);
}
.tx-filter-tabs {
  display: flex; gap: var(--sp-xs);
}
.tx-filter-btn {
  padding: var(--sp-xxs) var(--sp-s);
  border-radius: var(--r-pill);
  border: 0.01rem solid var(--border);
  background: var(--bg-card);
  font-size: var(--fs-sm); font-weight: 500;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.tx-filter-btn.active {
  background: var(--brand);
  color: var(--btn-text);
  border-color: var(--brand);
}
.full-tx-list {
  box-shadow: var(--shadow-card);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-card);
}

/* ── Send Money ──────────────────────────────────────────────── */
.send-step { display: flex; flex-direction: column; min-height: 100%; }
.send-contacts { flex: 1; }
.send-quick-contacts {
  display: flex; gap: var(--sp-s);
  overflow-x: auto;
  padding: var(--sp-s) 0;
  -webkit-overflow-scrolling: touch;
}
.quick-contact {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-xxs);
  min-width: 0.64rem;
  cursor: pointer;
}
.quick-contact-avatar {
  width: 0.48rem; height: 0.48rem;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg); font-weight: 600;
  color: var(--brand-tertiary);
}
.quick-contact-name {
  font-size: 0.09rem; color: var(--text-secondary);
  text-align: center;
  max-width: 0.64rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-contact.selected .quick-contact-avatar {
  border: 0.02rem solid var(--brand);
  background: var(--brand-light);
}
.send-phone-input {
  margin-top: var(--sp-s);
}
.amount-display {
  text-align: center;
  font-size: var(--fs-hero); font-weight: 700;
  color: var(--text);
  margin: var(--sp-m) 0 var(--sp-xxs);
  direction: ltr;
}
.amount-currency {
  text-align: center;
  font-size: var(--fs-sm); color: var(--text-muted);
  margin-bottom: var(--sp-s);
}
.fee-preview {
  display: flex; justify-content: space-between;
  padding: var(--sp-xs) var(--sp-base);
  background: var(--bg-secondary);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); color: var(--text-secondary);
  margin-bottom: var(--sp-s);
}
.send-amount-section { flex: 1; }

/* Review & Success */
.send-review {
  background: var(--bg-card);
  border-radius: var(--r-md);
  padding: var(--sp-base);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--sp-m);
}
.send-review h3 {
  font-size: var(--fs-md); font-weight: 600;
  color: var(--text); margin-bottom: var(--sp-s);
}
.review-row {
  display: flex; justify-content: space-between;
  padding: var(--sp-xs) 0;
  font-size: var(--fs-base); color: var(--text-secondary);
  border-bottom: 0.005rem solid var(--divider);
}
.review-row:last-child { border-bottom: none; }
.review-total { font-weight: 700; color: var(--text); font-size: var(--fs-md); }
.send-success {
  text-align: center;
  padding: var(--sp-xl) 0;
}
.success-check {
  width: 0.80rem; height: 0.80rem;
  margin: 0 auto var(--sp-m);
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.40rem; color: #fff; font-weight: 700;
  animation: successPop 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.success-amount { font-size: var(--fs-2xl); font-weight: 700; color: var(--text); margin-bottom: var(--sp-xxs); }
.success-to { font-size: var(--fs-base); color: var(--text-secondary); margin-bottom: var(--sp-xs); }
.success-ref { font-size: var(--fs-xs); color: var(--text-muted); direction: ltr; margin-bottom: var(--sp-m); }

/* ── Skeleton Loading ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-input) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
.skeleton-line {
  height: 0.14rem; margin-bottom: var(--sp-xs);
  border-radius: var(--r-sm);
}
.skeleton-circle {
  border-radius: 50%;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(0.08rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(0.24rem); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.3s ease forwards; }
.slide-up { animation: slideUp 0.4s ease forwards; }

/* ── Utilities ───────────────────────────────────────────────── */
.hide { display: none !important; }
.ltr { direction: ltr; }

/* ── LTR Language Overrides ──────────────────────────────────── */
[dir="ltr"] .btn-back {
  right: auto;
  left: 0.16rem;
}
[dir="ltr"] .sub-page-back {
  order: -1;
}
[dir="ltr"] .menu-item-arrow {
  transform: none;
}
