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

:root,
[data-theme="theme1"] {
  --radius: 0.875rem;
  --background: #fef9f5;
  --foreground: #2d2d2d;
  --card: #fff5ef;
  --card-foreground: #1a1a1a;
  --primary: #f16522;
  --primary-foreground: #faf8f5;
  --primary-soft: #fde8d8;
  --muted: #f5ede8;
  --muted-foreground: #8b7a72;
  --accent: #f6921e;
  --accent-foreground: #f8f8f8;
  --border: #e8ddd6;
  --gradient-primary: linear-gradient(160deg, #f16522, #d4551c 55%, #b84414);
  --gradient-start: #f16522;
  --gradient-end: #b84414;
  --shadow-phone: 0 30px 80px -20px rgba(241, 101, 34, 0.30);
  --shadow-soft: 0 10px 40px -12px rgba(241, 101, 34, 0.15);
  --nav: rgba(255,255,255,0.92);
  --nav-foreground: #8b7a72;
  --nav-active: #f16522;
  --tile: #fff5ef;
  --tile-border: #e8ddd6;
  --pill: #fff5ef;
  --pill-foreground: #2d2d2d;
  --kyc-bg: rgba(253, 232, 216, 0.4);
  --kyc-text: #2d2d2d;
  --kyc-btn-bg: #f16522;
  --kyc-btn-text: #faf8f5;
}

[data-theme="theme2"] {
  --radius: 0.875rem;
  --background: #1a0f0a;
  --foreground: #fef9f5;
  --card: #2d1a10;
  --card-foreground: #1a0f0a;
  --primary: #f16522;
  --primary-foreground: #ffffff;
  --primary-soft: #3d2215;
  --primary-light: #3d2215;
  --muted: #2d1a10;
  --muted-foreground: #b89a8a;
  --accent: #f6921e;
  --accent-foreground: #030920;
  --border: #4a3025;
  --gradient-primary: linear-gradient(160deg, #b84414, #8a300a 55%, #5c1f04);
  --gradient-start: #b84414;
  --gradient-end: #5c1f04;
  --shadow-phone: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.4);
  --nav: rgba(45, 26, 22, 0.97);
  --nav-foreground: #b89a8a;
  --nav-active: #f16522;
  --tile: #2d1a10;
  --tile-border: #4a3025;
  --pill: #2d1a10;
  --pill-foreground: #fef9f5;
  --kyc-bg: rgba(253, 232, 216, 0.85);
  --kyc-text: #1a0f0a;
  --kyc-btn-bg: #f16522;
  --kyc-btn-text: #ffffff;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--muted);
  color: var(--foreground);
  min-height: 100vh;
}

.app-container {
  margin: 0 auto;
  min-height: 100vh;
  width: 100%;
  max-width: 448px;
  background-color: var(--background);
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px;
}

.screen { display: none; }
.screen.active { display: block; }

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: 100%;
  max-width: 448px;
  border-top: 1px solid var(--border);
  background-color: var(--nav);
}

.bottom-nav ul {
  display: flex; justify-content: space-around;
  list-style: none; padding: 0; margin: 0;
}
.bottom-nav li { flex: 1; min-width: 0; }

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  font-size: 11px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nav-foreground);
  transition: color 0.15s;
  width: 100%;
}

.nav-btn.active {
  color: var(--nav-active);
}

.nav-btn.active span { font-weight: 600; }

.nav-btn.active svg {
  stroke-width: 2.5;
}

.nav-btn.active span { font-weight: 600; }

.nav-btn svg {
  width: 20px;
  height: 20px;
}

.nav-btn.active svg {
  stroke-width: 2.5;
}

/* Layout helpers */
.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 20px 16px;
}

.screen-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.screen-header p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted-foreground);
}

.card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background-color: var(--card);
  padding: 16px;
}

/* Home */
.gradient-hero {
  border-radius: 0 0 24px 24px;
  padding: 24px 20px 32px;
  color: var(--primary-foreground);
  background: var(--gradient-primary);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

.avatar-sm { width: 40px; height: 40px; background: rgba(255,255,255,0.2); font-size: 14px; }
.avatar-lg { width: 80px; height: 80px; background: var(--primary); color: var(--primary-foreground); font-size: 24px; }
.avatar-store { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: var(--primary-foreground); font-size: 20px; font-weight: 700; }

.hero-greeting { font-size: 12px; opacity: 0.8; }
.hero-name { font-size: 14px; font-weight: 600; }

.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  color: inherit;
}

.balance-section { margin-top: 24px; }
.balance-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.8;
}
.balance-amount {
  margin-top: 4px;
  font-size: 32px;
  font-weight: 700;
}
.weekly-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  font-size: 12px;
}

.section { padding: 0 20px; margin-top: 24px; }
.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title-row h2 { font-size: 14px; font-weight: 600; }
.section-link {
  background: none; border: none;
  font-size: 12px; font-weight: 500;
  color: var(--accent); cursor: pointer;
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.activity-list .card { padding: 8px; }
.activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 12px;
}
.activity-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.activity-icon.incoming { background: var(--accent); color: var(--primary); }
.activity-icon.outgoing { background: var(--muted); color: var(--muted-foreground); }
.activity-icon svg { width: 16px; height: 16px; }
.activity-info { flex: 1; min-width: 0; }
.activity-name { font-size: 14px; font-weight: 500; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-time { font-size: 11px; color: var(--muted-foreground); }
.activity-amount { font-size: 14px; font-weight: 600; }
.activity-amount.positive { color: var(--primary); }
.activity-amount.negative { color: var(--foreground); }

.credit-teaser {
  border-radius: 16px;
  padding: 20px;
  color: var(--primary-foreground);
  background: var(--gradient-primary);
  overflow: hidden;
}
.credit-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: 0.8;
}
.credit-teaser-title { margin-top: 8px; font-size: 18px; font-weight: 600; }
.credit-teaser-desc { margin-top: 4px; font-size: 12px; opacity: 0.9; }
.credit-teaser-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--primary-foreground);
  color: var(--primary);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

/* Store */
.store-profile .card { display: flex; flex-direction: column; }
.store-profile-top {
  display: flex; align-items: center; gap: 12px;
}
.store-info { flex: 1; }
.store-name { font-size: 14px; font-weight: 600; }
.store-rating { font-size: 12px; color: var(--muted-foreground); }
.edit-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  background: none;
  cursor: pointer;
}
.store-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin-top: 16px;
}
.store-stat {
  border-radius: 12px;
  background: var(--muted);
  padding: 8px;
  text-align: center;
}
.store-stat-value { font-size: 16px; font-weight: 700; }
.store-stat-label { font-size: 10px; color: var(--muted-foreground); }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px 0;
}
.search-input-wrap {
  position: relative; flex: 1;
}
.search-input-wrap svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--muted-foreground);
}
.search-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  outline: none;
}
.search-input:focus { border-color: var(--primary); }
.add-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
}
.add-btn svg { width: 20px; height: 20px; }

.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.product-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px;
  cursor: pointer;
}
.product-card .product-img {
  aspect-ratio: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}
.product-card .emoji-box {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent);
  font-size: 36px;
}
.product-name {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.product-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.product-sold { font-size: 10px; color: var(--muted-foreground); }

/* Pay */
.tab-switcher {
  padding: 0 20px;
}
.tab-switcher-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  background: var(--muted);
  padding: 4px;
}
.tab-btn {
  border-radius: 999px;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted-foreground);
  transition: all 0.15s;
}
.tab-btn.active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.qr-area {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 32px 0;
}
.qr-code {
  width: 224px; height: 224px;
  border-radius: 16px;
  background: var(--foreground);
  padding: 16px;
}
.qr-inner {
  width: 100%; height: 100%;
  border-radius: 8px;
  background:
    repeating-conic-gradient(#fff 0% 25%, #000 0% 50%)
    50% / 14px 14px;
}
.qr-business { margin-top: 20px; font-size: 14px; font-weight: 600; }
.qr-alt { font-size: 12px; color: var(--muted-foreground); }

.link-area {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 32px 0;
}
.send-area {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 20px 0;
}
.send-icon-box {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
}
.send-icon-box svg { width: 28px; height: 28px; }
.send-label { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--muted-foreground); text-align: center; }
.send-area .field { width: 100%; }
.send-area .field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--foreground); }
.send-area .field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; outline: none; box-sizing: border-box; }
.send-area .field input:focus { border-color: var(--primary); }

.link-icon-box {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: var(--primary);
}
.link-icon-box svg { width: 36px; height: 36px; }
.link-label { margin-top: 16px; font-size: 14px; font-weight: 600; }
.link-field {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 10px 16px;
}
.link-field span { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-btn {
  background: none; border: none;
  color: var(--primary);
  cursor: pointer;
}
.copy-btn svg { width: 16px; height: 16px; }

.action-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 24px; width: 100%;
}
.action-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.action-btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  background: none;
  cursor: pointer;
}

.payment-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: 12px;
}
.payment-avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}
.payment-info { flex: 1; }
.payment-who { font-size: 14px; font-weight: 500; }
.payment-time { font-size: 11px; color: var(--muted-foreground); }
.payment-amount { font-size: 14px; font-weight: 600; color: var(--primary); }

/* Credit */
/* ─── Credit Check Progress ─── */
.credit-progress {
  padding: 40px 20px;
  text-align: center;
}
.credit-progress h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.credit-progress p {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.credit-steps {
  text-align: left;
  max-width: 280px;
  margin: 0 auto;
}
.credit-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted-foreground);
}
.credit-step.active { color: var(--foreground); font-weight: 600; }
.credit-step.done { color: var(--success); }
.credit-step .step-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── Credit Result ─── */
.credit-result {
  padding: 40px 20px;
  text-align: center;
}
.credit-result-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.credit-result h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.credit-result-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 20px;
  line-height: 1.5;
}
.credit-result-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0;
}
.credit-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 20px;
}
.credit-result .btn-primary {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}
.credit-result .btn-secondary {
  display: block;
  width: 100%;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-foreground);
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-top: 8px;
}
.credit-result-tips {
  text-align: left;
  margin: 16px 0;
  padding: 16px;
  background: var(--muted);
  border-radius: 12px;
}
.credit-result-tips p {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 6px;
  padding-left: 16px;
}

.credit-hero {
  border-radius: 16px;
  padding: 20px;
  color: var(--primary-foreground);
  background: var(--gradient-primary);
}
.credit-hero-label { font-size: 12px; opacity: 0.8; }
.credit-hero-amount { font-size: 32px; font-weight: 700; margin-top: 4px; }
.credit-hero-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  font-size: 11px;
}
.credit-hero-badge svg { width: 12px; height: 12px; }

.loan-slider-section { margin-top: 24px; }
.loan-amount-label { font-size: 12px; color: var(--muted-foreground); }
.loan-amount-value { font-size: 24px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.loan-slider {
  margin-top: 16px; width: 100%;
  accent-color: var(--primary);
}
.loan-range-labels {
  display: flex; justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted-foreground);
}

.breakdown-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 20px;
}
.breakdown-item {
  border-radius: 12px;
  background: var(--muted);
  padding: 12px;
}
.breakdown-item-label { font-size: 11px; color: var(--muted-foreground); }
.breakdown-item-value { font-weight: 600; margin-top: 4px; }

.get-loan-btn {
  width: 100%;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 20px;
}
.funding-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-top: 8px;
}

.qualification-item {
  display: flex; align-items: center; gap: 12px;
}
.qualification-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
}
.qualification-icon svg { width: 16px; height: 16px; }
.qualification-label { flex: 1; font-size: 14px; font-weight: 500; }
.qualification-value { font-size: 14px; font-weight: 600; color: var(--primary); }

/* Profile */
.profile-card {
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
}
.profile-name { margin-top: 12px; font-size: 16px; font-weight: 600; }
.profile-email { font-size: 12px; color: var(--muted-foreground); }
.profile-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--accent);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
}
.profile-badge svg { width: 12px; height: 12px; }

.menu-list .card { padding: 0; }
.menu-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
}
.menu-item-icon svg { width: 16px; height: 16px; }
.menu-item-label { flex: 1; }
.menu-item-arrow svg { width: 16px; height: 16px; color: var(--muted-foreground); }

.footer-text {
  text-align: center;
  font-size: 11px;
  color: var(--muted-foreground);
  padding: 24px 20px;
}

.spacer { height: 24px; }

/* ===== Account Row ===== */
.account-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.account-display {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; color: #fff;
}
.account-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; opacity: 0.75;
  display: block; margin-bottom: 2px;
}
.account-number {
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.025em;
}
.account-display svg {
  width: 14px; height: 14px; opacity: 0.7;
}
.add-money-btn {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px; padding: 8px 14px;
  color: #fff; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.add-money-btn:hover { background: rgba(255,255,255,0.28); }
.add-money-btn:active { transform: scale(0.96); }
.add-money-btn svg { width: 16px; height: 16px; }

/* ===== POS Badge ===== */
.pos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem 0.25rem 0.375rem;
}
.pos-avatar {
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.pos-level { font-size: 10px; font-weight: 600; margin: 0; line-height: 1; }
.pos-stars { font-size: 9px; opacity: 0.7; letter-spacing: 0.05em; margin: 0; }

/* ===== Cashback ===== */
.balance-row { display: flex; align-items: flex-end; gap: 1.5rem; }
.cashback-col { text-align: right; }
.cashback-amount { font-size: 16px; font-weight: 600; margin-top: 2px; }

.eye-btn { background: none; border: none; color: inherit; cursor: pointer; display: flex; padding: 0; }

/* ===== Transfer Card ===== */
.transfer-card { background: var(--card); border-radius: 16px; border: 1px solid var(--border); padding: 16px; text-align: center; }
.transfer-header { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.divider-line { height: 1px; width: 2rem; background: rgba(45, 143, 92, 0.3); }
.transfer-title { color: var(--primary); font-weight: 700; letter-spacing: 0.05em; font-size: 0.8rem; }
.transfer-btn-inner { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 auto; background: none; border: none; cursor: pointer; padding: 0; color: var(--foreground); }
.transfer-account { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.025em; }
.transfer-btn-inner svg { width: 18px; height: 18px; color: var(--muted-foreground); }

/* ===== KYC Banner ===== */
.kyc-banner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--kyc-bg); border-radius: 16px; padding: 12px 16px; cursor: pointer; }
.kyc-left { display: flex; align-items: center; gap: 0.75rem; }
.kyc-icon-box { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: var(--kyc-btn-bg); display: flex; align-items: center; justify-content: center; color: var(--kyc-btn-text); flex-shrink: 0; }
.kyc-text { font-weight: 600; font-size: 0.8rem; color: var(--kyc-text); }
.kyc-go-btn { background: var(--kyc-btn-bg); color: var(--kyc-btn-text); font-size: 0.7rem; font-weight: 700; padding: 0.375rem 1rem; border-radius: 9999px; border: none; cursor: pointer; }

/* ===== Services Grid ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.service-btn { background: var(--tile); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--tile-border); cursor: pointer; color: var(--foreground); transition: transform 0.15s; font-family: inherit; aspect-ratio: 1 / 1; }
.service-btn:active { transform: scale(0.97); }
.service-icon-box { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.service-icon-box svg { width: 22px; height: 22px; }
.service-label { font-size: 10px; text-align: center; line-height: 1.2; font-weight: 500; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.service-img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.05)); }

/* ===== Finance Grid ===== */
.finance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.finance-btn { background: var(--tile); border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 1px solid var(--tile-border); cursor: pointer; text-align: left; transition: transform 0.15s; font-family: inherit; color: var(--foreground); }
.finance-btn:active { transform: scale(0.95); }
.finance-icon-box { width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.finance-icon-box svg { width: 16px; height: 16px; }
.finance-label { font-size: 0.75rem; font-weight: 700; }
.finance-sub { font-size: 9px; color: var(--muted-foreground); }

/* ===== Combined Actions Bar ===== */
.quick-actions-bar {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 10px;
  margin: -24px 16px 0;
  position: relative;
  z-index: 2;
  gap: 2px;
}
.quick-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-family: inherit;
  color: var(--foreground);
  font-size: 10px;
  font-weight: 500;
  min-width: 0;
}
.quick-action-btn:active { opacity: 0.7; }
.quick-action-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--muted); display: flex; align-items: center; justify-content: center; color: var(--muted-foreground); }
.quick-action-icon svg { width: 16px; height: 16px; }
.transfer-shortcut { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-left: 8px; border-left: 1px solid var(--border); }
.transfer-btn-inline { display: flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; color: var(--foreground); padding: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.025em; }
.transfer-btn-inline svg { width: 14px; height: 14px; color: var(--muted-foreground); }
.transfer-label { font-size: 9px; color: var(--primary); font-weight: 600; letter-spacing: 0.04em; }

/* ===== Transfer Action Bar ===== */
.transfer-action-bar { display: flex; gap: 8px; }
.transfer-action-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 8px; cursor: pointer; font-family: inherit; color: var(--foreground); font-size: 12px; font-weight: 600; transition: transform 0.15s; }
.transfer-action-btn:active { transform: scale(0.96); }
.transfer-action-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.transfer-action-icon svg { width: 20px; height: 20px; }
.transfer-action-icon.send { background: #dbeafe; color: #1d4ed8; }
.transfer-action-icon.bank { background: #d1fae5; color: #059669; }
.transfer-action-icon.withdraw { background: #fef3c7; color: #d97706; }
[data-theme="theme2"] .transfer-action-icon.send { background: #1e3a5f; color: #60a5fa; }
[data-theme="theme2"] .transfer-action-icon.bank { background: #064e3b; color: #34d399; }
[data-theme="theme2"] .transfer-action-icon.withdraw { background: #78350f; color: #fbbf24; }

/* ===== Finance Inline ===== */
.finance-inline { display: flex; gap: 8px; margin-top: 8px; }
.finance-pill { display: flex; align-items: center; gap: 6px; background: var(--pill); border: 1px solid var(--tile-border); border-radius: 9999px; padding: 10px 18px; cursor: pointer; font-family: inherit; color: var(--pill-foreground); font-size: 13px; font-weight: 600; transition: transform 0.15s; }
.finance-pill:active { transform: scale(0.96); }
.finance-pill svg { width: 16px; height: 16px; color: var(--primary); }

/* ===== Hero Left ===== */
.hero-left { display: flex; flex-direction: column; gap: 4px; }

/* ===== Voice Recording ===== */
.icon-btn-circle.recording { background: #dc2626; color: #fff; animation: pulse 1s infinite; border-color: #dc2626; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
#voice-indicator audio { border-radius: 4px; }

/* ===== Send Options Grid ===== */
.send-options-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 16px; }
.send-option-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 4px; cursor: pointer; transition: transform 0.15s; font-family: inherit; color: var(--foreground); }
.send-option-btn:active { transform: scale(0.95); }
.send-option-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.send-option-icon svg { width: 20px; height: 20px; }
.send-option-btn span { font-size: 10px; font-weight: 500; text-align: center; line-height: 1.2; }
.icon-btn-circle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--foreground); flex-shrink: 0; }
.icon-btn-circle svg { width: 16px; height: 16px; }

/* ===== Discover Cards / Previews ===== */
.discover-card { flex-shrink: 0; width: 160px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; transition: transform 0.15s; }
.discover-card:active { transform: scale(0.97); }
.discover-card-image { font-size: 28px; margin-bottom: 6px; }
.discover-card-title { font-size: 12px; font-weight: 600; }
.discover-card-desc { font-size: 10px; color: var(--muted-foreground); margin-top: 2px; }
.discover-card-commission { font-size: 11px; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* ===== Job item ===== */
.job-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.job-item:last-child { border-bottom: none; }
.job-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.job-info { flex: 1; min-width: 0; }
.job-title { font-size: 13px; font-weight: 600; }
.job-reward { font-size: 13px; color: var(--primary); font-weight: 600; }
.job-desc { font-size: 11px; color: var(--muted-foreground); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Content item ===== */
.content-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.content-item:last-child { border-bottom: none; }
.content-author-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* ===== Lead item ===== */
.lead-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.lead-item:last-child { border-bottom: none; }

/* ===== Group item ===== */
.group-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.group-item:last-child { border-bottom: none; }
.progress-bar { height: 6px; background: var(--muted); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; }

/* ===== Leaderboard ===== */
.leaderboard-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.leaderboard-item:last-child { border-bottom: none; }
.lb-rank { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.lb-rank.gold { background: #fff3cd; color: #856404; }
.lb-rank.silver { background: #e9ecef; color: #495057; }
.lb-rank.bronze { background: #fde8d6; color: #a8642a; }

/* ===== QR Scanner ===== */
.qr-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 2000; align-items: center; justify-content: center; flex-direction: column; gap: 20px; }
.qr-overlay.active { display: flex; }

/* ===== Theme Switcher ===== */
.theme-option { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 2px solid var(--border); background: var(--card); cursor: pointer; font-family: inherit; font-size: 14px; color: var(--foreground); transition: border-color 0.2s; }
.theme-option.active { border-color: var(--primary); }
.theme-option:active { transform: scale(0.98); }
.theme-swatch { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.theme1-swatch { background: linear-gradient(160deg, #f16522, #d4551c 55%, #b84414); }
.theme2-swatch { background: linear-gradient(160deg, #b84414, #8a300a 55%, #5c1f04); }

/* ─── Subscription UI ─── */
.freq-group { display: flex; gap: 8px; }
.freq-btn { flex: 1; padding: 10px; border-radius: 10px; border: 2px solid var(--border); background: transparent; color: var(--foreground); font-weight: 500; font-size: 13px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.freq-btn.freq-active { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.ins-price { font-size: 28px; font-weight: 800; color: var(--primary); text-align: center; margin: 16px 0; }
.ins-price-period { font-size: 13px; font-weight: 400; color: var(--muted-foreground); }
.sub-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; color: var(--foreground); cursor: pointer; }
.sub-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* ===== Service Modal ===== */
.service-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.service-modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--muted-foreground); padding: 0; display: flex; }

@keyframes spin { to { transform: rotate(360deg); } }

/* SVG Icons inline */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }
