:root {
  --opay: #00b876;
  --opay-dark: #00905c;
  --opay-light: #e2f5eb;
  --opay-mint: #f2f9f6;
  --bg: #f7f8fa;
  --text: #1a1a1a;
  --muted: #8a8f99;
  --muted-light: #a0a5b0;
  --card: #ffffff;
  --danger: #ff3b30;
  --black: #1f2329;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Roboto, system-ui, -apple-system, sans-serif;
  background: #d1d5db;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

/* ── Overflow helpers ── */
.nowrap {
  white-space: nowrap;
  overflow: hidden;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fit-text {
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.workspace {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  padding: 16px;
  gap: 16px;
}

/* ── Left nav panel ── */
.nav-panel {
  width: 280px;
  min-width: 280px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 16px 12px;
  flex-shrink: 0;
}
.nav-panel-head h2 {
  margin: 0 0 4px; font-size: 15px; color: #fff; font-weight: 700;
}
.nav-version {
  margin: 0 0 14px; font-size: 11px; color: #94a3b8;
}
.nav-section { margin-bottom: 8px; }
.nav-section-toggle {
  width: 100%; border: 0; background: transparent; color: #cbd5e1;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 6px; font-size: 12px; font-weight: 700; cursor: pointer;
  border-radius: 8px;
}
.nav-section-toggle .ph-caret-down { margin-left: auto; }
.nav-section-title { flex: 1; min-width: 0; text-align: left; }
.nav-section-count, .nav-folder-count {
  font-size: 10px; font-weight: 600; color: #64748b;
  background: #0f172a; padding: 1px 6px; border-radius: 999px;
  flex-shrink: 0;
}
.nav-section-branch .nav-section-toggle { color: #fde68a; }
.nav-section-branch .nav-section-count { background: #422006; color: #fcd34d; }
.nav-section-toggle:hover { background: rgba(255,255,255,.06); }
.nav-section-toggle i { font-size: 12px; transition: transform .2s; }
.nav-section-toggle:not(.on) i { transform: rotate(-90deg); }
.nav-section-body { padding: 2px 0 8px 4px; }
.nav-section-body.collapsed { display: none; }
.nav-folder { margin-left: calc(var(--nav-depth, 0) * 6px); }
.nav-folder-toggle {
  width: 100%; border: 0; background: transparent; color: #cbd5e1;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; text-align: left;
}
.nav-folder-toggle:hover { background: rgba(255,255,255,.06); }
.nav-folder-toggle .ph-folder { font-size: 14px; color: #94a3b8; flex-shrink: 0; }
.nav-folder-label { flex: 1; min-width: 0; text-align: left; }
.nav-folder-caret { margin-left: 0; font-size: 11px; transition: transform .2s; flex-shrink: 0; }
.nav-folder-toggle:not(.on) .nav-folder-caret { transform: rotate(-90deg); }
.nav-folder-body { padding: 2px 0 4px 8px; }
.nav-folder-body.collapsed { display: none; }
.nav-folder-body > .nav-item { padding-left: 18px; }
.nav-branch-summary {
  margin: 0 0 8px; padding: 0 6px; font-size: 11px; color: #94a3b8; line-height: 1.4;
}
.nav-subhead {
  font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 6px 6px 4px;
}
.nav-item {
  width: 100%; border: 0; background: transparent; color: #cbd5e1;
  text-align: left; padding: 8px 8px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 12px; line-height: 1.3;
}
.nav-item:hover { background: rgba(255,255,255,.08); }
.nav-item.on { background: rgba(0,184,118,.2); color: #6ee7b7; }
.nav-item-label { flex: 1; min-width: 0; }
.nav-tag {
  font-size: 9px; font-weight: 700; padding: 2px 5px; border-radius: 4px;
  background: #f59e0b; color: #1e293b; white-space: nowrap; flex-shrink: 0;
}
.nav-tag.reuse { background: #334155; color: #94a3b8; }
.nav-branch-actions {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #334155;
  display: flex; flex-direction: column; gap: 6px;
}
.nav-branch-action {
  width: 100%; border: 1px solid #475569; background: #0f172a; color: #94a3b8;
  border-radius: 8px; padding: 8px 10px; font-size: 11px; cursor: pointer;
  display: flex; align-items: center; gap: 6px; justify-content: flex-start;
}
.nav-branch-action:hover { background: #1e293b; color: #e2e8f0; }
.nav-section-branch .nav-branch-action {
  border-color: #78350f; background: #1c1917; color: #fcd34d;
}
.nav-section-branch .nav-branch-action:hover { background: #292524; color: #fde68a; }

.nav-section-assets .nav-section-toggle.on { color: #a5f3fc; }
.nav-asset-group { margin-bottom: 12px; }
.nav-asset-group:last-child { margin-bottom: 0; }
.nav-asset-cat {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: #94a3b8;
  padding: 4px 2px 8px; text-transform: uppercase; letter-spacing: .03em;
}
.nav-asset-cat-code {
  font-size: 10px; font-weight: 800; color: #22d3ee;
  background: rgba(34, 211, 238, .12); padding: 2px 6px; border-radius: 4px;
}
.nav-asset-item {
  background: rgba(255,255,255,.04); border: 1px solid #334155;
  border-radius: 10px; padding: 10px; margin-bottom: 8px;
}
.nav-asset-item:last-child { margin-bottom: 0; }
.nav-asset-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.nav-asset-code {
  font-size: 10px; font-weight: 800; color: #6ee7b7;
  background: rgba(0,184,118,.15); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, monospace; flex-shrink: 0;
}
.nav-asset-name {
  font-size: 12px; font-weight: 600; color: #e2e8f0; line-height: 1.3;
}
.nav-asset-thumb {
  width: 100%; border-radius: 8px; display: block; margin-bottom: 8px;
  background: #1e293b;
}
.nav-asset-desc {
  margin: 0 0 6px; font-size: 10px; color: #94a3b8; line-height: 1.4;
}
.nav-asset-binds { display: flex; flex-direction: column; gap: 4px; }
.nav-asset-bind {
  font-size: 10px; color: #cbd5e1; line-height: 1.35;
  padding-left: 8px; border-left: 2px solid var(--opay);
}
.nav-asset-bind.muted { border-left-color: #475569; color: #64748b; }

.phone-stage {
  flex: 1; display: flex; flex-direction: row; align-items: center;
  justify-content: center; gap: 16px; min-width: 0;
}
.phone-stage-main {
  display: flex; flex-direction: column; align-items: center;
  flex: 0 0 auto; width: 390px; max-width: 100%;
}
.stage-badge {
  font-size: 11px; font-weight: 600; color: #475569;
  background: #f1f5f9; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 10px; white-space: nowrap;
}
.stage-badge.branch { background: #fef3c7; color: #92400e; }

.debug-panel {
  width: 200px; flex-shrink: 0; align-self: center;
  padding: 12px; background: #fff;
  border: 1px dashed #cbd5e1; border-radius: 12px;
}
.debug-panel[hidden] { display: none !important; }
.debug-panel-label {
  font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
  line-height: 1.35;
}
.debug-panel-chips { display: flex; flex-direction: column; gap: 6px; }
.debug-panel-chip {
  border: 0; background: #f1f5f9; border-radius: 8px;
  padding: 7px 10px; font-size: 11px; color: #334155; cursor: pointer;
  text-align: left; line-height: 1.3;
}
.debug-panel-chip.on {
  background: #dcfce7; color: #166534; font-weight: 600;
}

@media (max-width: 900px) {
  .workspace { flex-direction: column; align-items: stretch; }
  .nav-panel { width: 100%; min-width: 0; max-height: 240px; }
  .phone-stage {
    flex-direction: column; align-items: center;
  }
  .debug-panel {
    width: 100%; max-width: 390px; order: 1;
  }
  .phone-stage-main { order: 0; }
  .debug-panel-chips {
    flex-direction: row; flex-wrap: wrap;
  }
  .debug-panel-chip { width: auto; flex: 1 1 auto; text-align: center; }
}

.phone {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-width: 0;
  height: 100dvh;
  max-height: 844px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .phone {
    height: 844px;
    border-radius: 2rem;
    border: 8px solid #111;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
  }
}

.view {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.view.active { display: flex; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 44px 12px 10px;
  background: transparent;
  flex-shrink: 0;
}
.topbar h1 {
  flex: 1; font-size: 17px; margin: 0; text-align: center; font-weight: 700;
  white-space: nowrap;
}
.icon-btn {
  border: 0; background: transparent; width: 36px; height: 36px;
  border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  font-size: 20px; color: var(--text); flex-shrink: 0;
}
.link-btn {
  border: 0; background: transparent; color: var(--text);
  font-weight: 500; font-size: 14px; cursor: pointer; padding: 4px 6px;
  white-space: nowrap; flex-shrink: 0; min-width: 36px; text-align: right;
}

/* ── Rate / status pills ── */
.rate-pill {
  display: inline-flex; align-items: center; gap: 2px;
  background: #3d4450; color: #fff;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap; line-height: 1.3; flex-shrink: 0;
}
.rate-pill.light {
  background: var(--opay-light); color: var(--opay-dark);
}
.rate-pill.sm { font-size: 9px; padding: 2px 6px; }
.badge-on {
  display: inline-flex; align-items: center;
  background: var(--opay); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  white-space: nowrap;
}
.badge-hot {
  position: absolute; top: -2px; right: 0;
  background: var(--danger); color: #fff;
  font-size: 8px; font-weight: 700;
  padding: 1px 4px; border-radius: 3px;
  white-space: nowrap; line-height: 1.3;
}

/* ── Finance Home Header ── */
.finance-header {
  padding: 44px 16px 0;
  background: #fff;
  flex-shrink: 0;
}
.finance-header.compact { padding-bottom: 8px; }
.finance-header .row { display: flex; align-items: center; justify-content: space-between; }
.finance-header h1 { font-size: 22px; font-weight: 700; margin: 0; white-space: nowrap; }
.finance-tabs {
  display: flex; gap: 28px; margin-top: 14px;
  border-bottom: 1px solid #f0f0f0;
}
.finance-tabs button {
  border: 0; background: transparent; padding: 8px 0 10px;
  font-size: 15px; font-weight: 500; color: #999; cursor: pointer;
  position: relative; white-space: nowrap;
}
.finance-tabs button.on { color: var(--text); font-weight: 700; }
.finance-tabs button.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--opay); border-radius: 999px;
}
.tab-badge {
  position: absolute; top: 0; right: -26px;
  background: var(--danger); color: #fff; font-size: 9px;
  font-weight: 700; padding: 1px 5px; border-radius: 4px;
  white-space: nowrap;
}

/* ── Onboarding overlay ── */
.onboarding-overlay {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(0,0,0,.45);
  display: none; align-items: flex-end; justify-content: center;
}
.onboarding-overlay.show { display: flex; }
.onboarding-sheet {
  width: 100%; background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px 16px;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.onboarding-frame.hidden { display: none; }
.onboarding-art {
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 16px; min-height: 140px;
}
.onboarding-img {
  max-width: 100%; max-height: 160px; border-radius: 12px;
  object-fit: contain;
}
.upgrade-art {
  flex-direction: column; gap: 10px; position: relative;
  background: linear-gradient(160deg, #e8faf3, #f0fdf8);
  border-radius: 16px; padding: 24px 20px; width: 100%;
}
.upgrade-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--opay); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.upgrade-arrow {
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--opay); color: #fff; font-size: 22px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,184,118,.35);
}
.upgrade-labels {
  display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700;
}
.upgrade-labels .old {
  color: #94a3b8; text-decoration: line-through; font-size: 16px;
}
.upgrade-labels .arrow { color: var(--opay); font-size: 20px; }
.upgrade-labels .new { color: var(--opay-dark); font-size: 22px; }
.onboarding-title {
  margin: 0 0 8px; font-size: 17px; font-weight: 700; text-align: center;
  line-height: 1.3;
}
.onboarding-desc {
  margin: 0 0 18px; font-size: 13px; color: var(--muted);
  text-align: center; line-height: 1.5;
}
.onboarding-dots {
  display: flex; justify-content: center; gap: 6px; margin-top: 14px;
}
.onboarding-dots span {
  width: 6px; height: 6px; border-radius: 999px; background: #ddd;
}
.onboarding-dots span.on { background: var(--opay); width: 16px; }

/* ── Balance Card (green) ── */
.balance-wrap {
  margin: 14px 16px 0;
}
.balance-section {
  border-radius: 14px;
  overflow: hidden;
}
.balance-card {
  padding: 14px 14px 10px;
  background: #00b876;
  color: #fff;
}
.balance-card .bc-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.balance-card .bc-label {
  font-size: 11px; opacity: .92; display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.balance-card .bc-label.right { text-align: right; opacity: .88; font-size: 10px; }
.balance-card .bc-mid {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin-top: 4px;
}
.balance-card .bc-amount {
  font-size: clamp(18px, 5.4vw, 22px);
  font-weight: 700; letter-spacing: -.3px;
  white-space: nowrap; line-height: 1.2;
  min-width: 0; flex: 1;
}
.balance-card .bc-amt-main { font-size: 1em; }
.balance-card .bc-amt-dec {
  font-size: 0.72em; font-weight: 700; vertical-align: baseline;
}
.balance-card .bc-interest {
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.balance-banner {
  margin-top: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.32);
  font-size: clamp(9px, 2.5vw, 10px);
  line-height: 1.35; width: 100%;
  color: #fff; font-weight: 500;
}
.balance-banner .banner-text {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.balance-banner .banner-chev {
  flex-shrink: 0; font-size: 11px; opacity: .9; margin-left: 2px;
}
.view-breakdown {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; border: 0;
  background: #ecf9f2;
  text-align: center; font-size: 12px; color: var(--opay);
  padding: 10px 8px; cursor: pointer; font-weight: 500;
  white-space: nowrap;
}
.view-breakdown i { font-size: 12px; }

/* ── Product Grid ── */
.product-grid {
  display: flex; justify-content: space-between;
  padding: 10px 12px 14px; gap: 2px;
}
.product-item {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
  gap: 5px; cursor: pointer; border: 0; background: transparent;
  position: relative; padding: 0;
}
.product-item .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: #ecf9f2; display: grid; place-items: center;
  font-size: 18px; font-weight: 700; color: var(--opay);
  overflow: hidden;
}
.product-item .icon-wrap:has(.product-icon-img) {
  background: #ecf9f2; padding: 6px;
}
.product-item .icon-wrap .product-icon-img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.product-item .name {
  font-size: clamp(8px, 2.45vw, 10px);
  color: var(--text); font-weight: 500;
  white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
  text-align: center; line-height: 1.2;
}

/* ── Promo Banner ── */
.promo-banner {
  margin: 0 16px 12px; padding: 12px; border-radius: 14px;
  background: #dff7ee;
  display: grid; grid-template-columns: 1fr 72px; gap: 8px; align-items: center;
}
.promo-banner-img,
.targets-promo-img {
  margin: 0 16px 12px;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}
.promo-banner-img img,
.targets-promo-img img {
  display: block;
  width: 100%;
  height: auto;
}
.promo-banner .promo-copy { min-width: 0; }
.promo-banner h3 {
  margin: 0 0 2px; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-banner .promo-sub {
  margin: 0; font-size: 12px; color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-banner .promo-detail {
  margin: 2px 0 0; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo-banner .promo-art {
  width: 72px; height: 68px; border-radius: 10px;
  background: linear-gradient(145deg, #f5d76e, #e8a838);
  display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.btn-black {
  border: 0; background: #1a1a1a; color: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: 12px;
  font-weight: 700; cursor: pointer; margin-top: 8px;
  white-space: nowrap; display: inline-block;
}

/* ── Featured Cards Grid ── */
.featured-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 0 16px 12px; align-items: stretch;
}
.featured-right { display: flex; flex-direction: column; gap: 8px; }
.featured-card {
  border-radius: 14px; padding: 12px; background: #f3f4f6;
  min-width: 0;
}
.featured-card.tall {
  background: #e8f8f0;
  display: flex; flex-direction: column;
}
.featured-card.clickable {
  cursor: pointer;
  padding: 12px;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.featured-card.tall.clickable { background: #e8f8f0; }
.featured-card.clickable:not(.tall) { background: #f3f4f6; }
.featured-card h4 {
  margin: 0 0 6px; font-size: 14px; font-weight: 700;
  white-space: nowrap; display: flex; align-items: center; gap: 2px;
}
.featured-card p {
  margin: 0; font-size: 12px; color: #555; line-height: 1.35;
  flex: 1;
}
.featured-card .green { color: var(--opay); font-weight: 600; }
.featured-card .btn-black { margin-top: 10px; align-self: flex-start; padding: 5px 12px; font-size: 11px; }
.featured-dots { display: flex; gap: 4px; margin-top: 10px; }
.featured-dots span { width: 10px; height: 3px; border-radius: 2px; background: #ddd; }
.featured-dots span.on { background: var(--opay); }

/* ── Bottom Nav ── */
.bottom-nav {
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 0 16px; background: #fff;
  border-top: 1px solid #f0f0f0; flex-shrink: 0;
}
.bottom-nav button {
  border: 0; background: transparent; display: flex;
  flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; color: #999; cursor: pointer; padding: 4px 6px;
  white-space: nowrap;
}
.bottom-nav button.on { color: var(--opay); }
.bottom-nav button i { font-size: 22px; }

/* ── Product Hero Card ── */
.hero-card {
  margin: 4px 16px 12px; padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, #eaf8f1 0%, #fff 55%);
  position: relative; overflow: hidden;
}
.hero-card .hero-top {
  display: flex; align-items: center; gap: 8px;
  padding-right: 64px; min-width: 0;
}
.hero-card .hero-title {
  font-size: 15px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.hero-card .hero-balance {
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 700; margin: 10px 0 4px;
  display: flex; align-items: center; gap: 2px;
  white-space: nowrap; letter-spacing: -.5px;
  padding-right: 56px;
}
.hero-card .hero-balance .chev {
  font-size: 16px; font-weight: 500; color: #666; margin-left: 2px;
}
.hero-card .hero-sub {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 56px;
}
.hero-card .hero-sub .green { color: var(--opay); font-weight: 700; }
.hero-art {
  position: absolute; right: 10px; top: 12px;
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(0,184,118,.12); display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: var(--opay);
  pointer-events: none;
}

/* ── Tier capsules (OWealth) — inline horizontal pills ── */
.tier-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px;
}
.tier-box {
  background: #fff; border-radius: 10px; padding: 8px 10px;
  font-size: 11px; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; min-width: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.tier-box .rate {
  color: var(--opay); font-weight: 700; flex-shrink: 0;
  font-size: clamp(10px, 2.8vw, 12px);
}
.tier-box .amt {
  font-weight: 600; color: var(--text);
  font-size: clamp(10px, 2.8vw, 12px);
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}

/* ── Action buttons ── */
.action-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 14px;
}
.btn {
  border: 0; border-radius: 999px; padding: 12px 16px;
  font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
  white-space: nowrap;
}
.btn-outline {
  background: #fff; color: var(--opay);
  border: 1.5px solid var(--opay);
}
.btn-primary { background: var(--opay); color: #fff; }
.btn-light { background: var(--opay-light); color: var(--opay-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ── Section ── */
.section { padding: 0 16px 12px; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; gap: 8px;
}
.section-head h3 {
  margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap;
}
.section-head .link {
  font-size: 13px; color: var(--muted); font-weight: 500;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.section-more {
  border: 0; background: transparent; padding: 0;
  font-size: 13px; color: #7a9489; font-weight: 500;
  display: inline-flex; align-items: center; gap: 1px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.section-more i { font-size: 12px; color: #7a9489; }

.card {
  background: var(--card); border-radius: 14px; padding: 14px;
  margin-bottom: 10px;
}
.card > p.section-desc {
  margin: 0 0 10px; font-size: 12px; color: var(--muted); line-height: 1.4;
}

/* ── Optimize (OWealth) ── */
.optimize-title {
  margin: 4px 0 4px; font-size: 15px; font-weight: 700;
}
.optimize-desc {
  margin: 0 0 10px; font-size: 12px; color: var(--muted); line-height: 1.4;
}
.fixed-mini {
  background: #fff; border-radius: 14px; padding: 14px;
}
.fixed-mini .fm-head {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.fixed-mini .fm-head .fm-name {
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.fixed-mini .fm-head .fm-select {
  margin-left: auto; border: 1px solid #e5e7eb; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; background: #f9fafb;
  white-space: nowrap; flex-shrink: 0;
}
.fixed-mini .fm-desc {
  margin: 6px 0 0; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-chart {
  display: flex; align-items: flex-end; gap: 24px; height: 72px;
  margin: 16px 8px 28px; padding: 0 12px;
}
.bar-chart .bar {
  flex: 1; border-radius: 6px 6px 0 0; position: relative; max-width: 48px;
}
.bar-chart .bar.grey { background: #d1d5db; height: 28%; }
.bar-chart .bar.green { background: var(--opay); height: 78%; }
.bar-chart .bar-rate {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.bar-chart .bar.grey .bar-rate { color: #888; }
.bar-chart .bar.green .bar-rate { color: var(--opay); }
.bar-chart .bar-label {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--muted); white-space: nowrap;
}
.slider-hint {
  font-size: 11px; color: var(--muted); margin: 0 0 8px; line-height: 1.35;
}
.slider-track {
  height: 6px; background: #e5e7eb; border-radius: 999px; margin: 8px 0;
  position: relative;
}
.slider-track .fill { height: 100%; background: var(--opay); border-radius: 999px; width: 82%; }
.slider-track .thumb {
  position: absolute; top: -7px; left: 82%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 999px; background: var(--opay);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.slider-labels {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; color: var(--muted); margin-top: 4px;
}
.slider-labels > div { min-width: 0; }
.slider-labels .sl-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
}
.slider-labels strong {
  display: block; color: var(--text); font-size: clamp(11px, 3vw, 13px);
  white-space: nowrap; margin-top: 2px;
}

/* ── Cross-sell row ── */
.cross-sell {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.cross-sell:last-child { border-bottom: 0; padding-bottom: 0; }
.cross-sell:first-child { padding-top: 0; }
.cross-sell .cs-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--opay-light); display: grid; place-items: center;
  font-size: 16px; flex-shrink: 0; color: var(--opay); font-weight: 700;
}
.cross-sell .cs-body { flex: 1; min-width: 0; }
.cross-sell .cs-body h4 {
  margin: 0 0 2px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.cross-sell .cs-body p {
  margin: 0; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cross-sell .cs-save {
  border: 0; background: var(--opay-light); color: var(--opay-dark);
  border-radius: 999px; padding: 6px 14px; font-size: 12px;
  font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}

/* ── Activity list ── */
.activity-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px; padding: 10px 0; border-bottom: 1px solid #f3f4f6;
}
.activity-item:last-child { border-bottom: 0; }
.activity-item .act-left { min-width: 0; flex: 1; }
.activity-item .act-right { flex-shrink: 0; text-align: right; }
.activity-item .act-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.activity-item .act-date { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.activity-item .act-amt {
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.activity-item .act-amt.positive { color: var(--opay); }
.activity-item .act-amt.negative { color: var(--text); }
.activity-item .act-bal { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; }

/* ── Targets ── */
.targets-promo {
  margin: 0 16px 12px; padding: 12px; border-radius: 14px;
  background: linear-gradient(90deg, #0d8f6a, #14b886);
  color: #fff; display: grid; grid-template-columns: 1fr 64px; gap: 8px;
  align-items: center;
}
.targets-promo h3 {
  margin: 0 0 2px; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.targets-promo p {
  margin: 0; font-size: 11px; opacity: .9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.targets-promo .btn-white {
  border: 0; background: #fff; color: var(--opay-dark);
  border-radius: 999px; padding: 5px 12px; font-size: 11px;
  font-weight: 700; cursor: pointer; margin-top: 8px; white-space: nowrap;
}
.targets-promo .promo-art {
  width: 64px; height: 56px; border-radius: 10px;
  background: rgba(255,215,0,.35); display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: #fff;
}

.find-targets-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.find-targets-scroll::-webkit-scrollbar { display: none; }
.find-target-card {
  flex-shrink: 0; width: 112px; padding: 10px; border-radius: 12px;
  background: #fff; position: relative; border: 0; cursor: pointer;
  text-align: left;
}
.find-target-card .ft-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 4px; margin-bottom: 6px; min-height: 40px;
}
.find-target-card .ft-icon-img {
  width: 40px; height: 40px; border-radius: 10px; background: #ecf9f2;
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.find-target-card .ft-hot-tag {
  background: #e8f8ef; color: #1a7f4b;
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 999px; line-height: 1.3; white-space: nowrap; margin-top: 1px;
}
.find-target-card .ft-icon-img img {
  width: 100%; height: 100%; object-fit: contain;
}
.find-target-card .ft-icon { font-size: 24px; margin-bottom: 6px; }
.find-target-card .ft-name {
  font-size: 11px; font-weight: 700; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.find-target-card .ft-joined {
  font-size: 10px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.tab-bar {
  display: flex; gap: 24px; border-bottom: 1px solid #eee; margin-bottom: 10px;
}
.tab-bar button {
  border: 0; background: transparent; padding: 8px 0;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
  position: relative; white-space: nowrap;
}
.tab-bar button.on { color: var(--text); }
.tab-bar button.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--opay); border-radius: 999px;
}
.alert-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--opay-light); border-radius: 10px; padding: 8px 10px;
  margin-bottom: 10px; font-size: 12px;
}
.alert-bar span {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.alert-bar .alert-btn {
  border: 0; background: var(--opay); color: #fff;
  border-radius: 999px; padding: 5px 10px; font-size: 11px;
  font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}

.target-item {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid #f3f4f6; align-items: start;
}
.target-item:last-child { border-bottom: 0; }
.target-item .ti-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--opay-light); display: grid; place-items: center;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.target-item .ti-mid { min-width: 0; }
.target-item .ti-name {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.target-item .ti-progress {
  font-size: 11px; color: var(--muted); margin: 2px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.progress-bar { height: 4px; background: #e5e7eb; border-radius: 999px; margin: 4px 0; }
.progress-bar .fill { height: 100%; border-radius: 999px; background: var(--opay); }
.progress-bar .fill.grey { background: #d1d5db; }
.progress-bar .fill.warn { background: #fbbf24; }
.progress-bar .fill.ahead { background: var(--opay); }
.target-item .ti-desc {
  font-size: 10px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.target-item .ti-right {
  text-align: right; flex-shrink: 0; white-space: nowrap;
}
.target-item .ti-status {
  font-size: 12px; font-weight: 700; line-height: 1.25;
}
.target-item .ti-status.completed { color: var(--opay); }
.target-item .ti-status.expired { color: var(--muted); }
.target-item .ti-status.active { color: var(--text); }
.target-item .ti-status.behind { color: var(--text); }
.target-item .ti-days {
  font-size: 10px; color: var(--muted); margin-top: 2px;
}

/* ── My Targets cards (shared hero layout with detail page) ── */
.my-targets-list {
  display: flex; flex-direction: column; gap: 10px;
}
.my-targets-list .my-target-card {
  cursor: pointer; padding: 14px; margin-bottom: 0;
}
.my-target-card .mtc-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 4px;
}
.my-target-card .mtc-desc {
  margin: 0; font-size: 10px; color: var(--muted); line-height: 1.35;
  flex: 1; min-width: 0;
}
.my-target-card .mtc-topup-btn {
  border: 0; background: var(--opay); color: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  white-space: nowrap;
}

/* ── SafeBox ── */
.status-pill {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  background: rgba(0,0,0,.05); border-radius: 999px; padding: 7px 12px;
  font-size: 11px; margin-top: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status-pill .green { color: var(--opay); font-weight: 700; }
.regular-save-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 14px; background: #fff; margin: 0 16px 10px;
  border-radius: 12px;
}
.regular-save-row .rs-left {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.regular-save-row .rs-right {
  font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  color: var(--text);
}
.quick-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 0 16px 12px;
}
.quick-action {
  background: #fff; border-radius: 12px; padding: 14px 6px;
  text-align: center; cursor: pointer;
}
.quick-action .qa-icon { font-size: 22px; margin-bottom: 4px; color: var(--opay); }
.quick-action .qa-label { font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ── Fixed ── */
.fixed-hero {
  padding: 16px 16px 14px;
  background: linear-gradient(145deg, #e8f7ef 0%, #f7fcf9 42%, #fff 100%);
}
.fixed-hero-top {
  display: flex; align-items: center; gap: 8px;
  min-width: 0; position: relative; z-index: 1;
}
.fixed-hero-top-left {
  display: flex; align-items: center; gap: 8px; min-width: 0; flex-shrink: 1;
}
.fixed-hero-tx {
  margin-left: auto; flex-shrink: 0;
  font-size: 12px; color: #6b7280; font-weight: 500;
  white-space: nowrap; cursor: pointer; text-align: right;
}
.fixed-hero .hero-balance {
  margin: 12px 0 14px; padding-right: 70px;
  font-size: 28px; font-weight: 800; letter-spacing: -.4px;
  position: relative; z-index: 1;
}
.fixed-hero .my-plans-pill {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 10px; width: auto; max-width: calc(100% - 78px);
  box-sizing: border-box; padding: 10px 14px;
  background: #fff; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  margin-top: 0; cursor: pointer;
}
.fixed-hero .my-plans-pill .green { font-weight: 700; white-space: nowrap; }
.fixed-hero-art {
  top: 52px; right: 12px;
  width: 58px; height: 58px; border-radius: 16px;
  background: rgba(0,184,118,.14);
  font-size: 28px; color: var(--opay);
}
.fixed-hero-art i { line-height: 1; }

.maturity-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px;
  margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.maturity-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.maturity-card {
  flex-shrink: 0; width: 318px; background: #fff; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  border: 1px solid #f0f1f3;
  padding: 14px 14px 12px;
  box-sizing: border-box;
}
.maturity-card .mc-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  margin-bottom: 12px;
}
.maturity-card .mc-name {
  font-size: 13px; font-weight: 700; min-width: 0; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.maturity-card .mc-matures {
  font-size: 12px; color: var(--opay); font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.maturity-card .mc-matures em {
  font-style: normal; color: var(--opay); font-weight: 700;
}
.maturity-card .mc-body {
  display: flex; justify-content: space-between; padding: 0 0 12px; gap: 12px;
}
.maturity-card .mc-body > div { min-width: 0; }
.maturity-card .mc-col-right { text-align: left; }
.maturity-card .mc-val {
  font-size: 18px; font-weight: 800; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; letter-spacing: -.3px;
}
.maturity-card .mc-val.green { color: var(--opay); }
.maturity-card .mc-lab { font-size: 12px; color: #9ca3af; white-space: nowrap; margin-top: 2px; }
.maturity-card .mc-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #eef8f3; border-radius: 10px; padding: 8px 10px;
  font-size: 11px; color: #6b7280; font-weight: 500; line-height: 1.25;
  border: 0; width: 100%; box-sizing: border-box; font-family: inherit; text-align: left;
}
.maturity-card .mc-banner-on {
  justify-content: center; gap: 4px; cursor: pointer; font-weight: 600; color: #5f746a;
}
.maturity-card .mc-banner-on:active { opacity: .85; }
.maturity-card .mc-banner-off span {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.maturity-card .mc-apply {
  border: 0; background: var(--opay); color: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 12px; font-weight: 700; cursor: pointer;
  flex-shrink: 0; white-space: nowrap; min-width: 92px;
}
.maturity-card .mc-banner i { font-size: 13px; color: #8a9a92; flex-shrink: 0; }

.featured-plan {
  background: #e8f6ef; border-radius: 14px; padding: 14px 14px 10px;
  margin-bottom: 12px; border: 1px solid #d4ecdf;
}
.featured-plan .fp-name {
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.featured-plan .fp-main {
  display: flex; align-items: center; gap: 10px;
}
.featured-plan .fp-cols {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: auto 1px minmax(0, 1fr);
  gap: 12px; align-items: stretch;
}
.featured-plan .fp-divider {
  width: 1px; background: #d7e5dd; align-self: stretch; margin: 2px 0;
}
.featured-plan .fp-rate {
  font-size: 20px; font-weight: 800; color: var(--opay); line-height: 1.15;
  white-space: nowrap;
}
.featured-plan .fp-duration {
  font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.2;
  white-space: nowrap;
}
.featured-plan .fp-sub {
  margin-top: 2px; font-size: 11px; color: #7a8b83; line-height: 1.3;
}
.featured-plan .fp-sub.nowrap {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.featured-plan .fp-save {
  border: 0; background: var(--opay); color: #fff; border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  align-self: center;
}
.featured-plan .featured-dots {
  justify-content: center; margin-top: 12px;
}
.featured-plan .featured-dots span {
  width: 14px; height: 3px; border-radius: 2px;
}

/* Fixed plans list */
.fx-plans-tabs {
  display: flex; gap: 24px; padding: 4px 16px 0; background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.fx-plans-tabs button {
  border: 0; background: transparent; padding: 10px 2px 12px;
  font-size: 14px; font-weight: 600; color: #9ca3af; cursor: pointer;
  position: relative; font-family: inherit;
}
.fx-plans-tabs button.on { color: var(--text); }
.fx-plans-tabs button.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 2px; background: var(--opay);
}
#view-fixed_plans .scroll { background: #f5f6f8; padding: 12px 16px 24px; }
.fx-plan-card {
  display: block; width: 100%; border: 0; background: #fff; border-radius: 14px;
  padding: 14px; margin-bottom: 10px; text-align: left; cursor: pointer;
  font-family: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.fx-plan-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.fx-plan-head strong { font-size: 14px; font-weight: 700; }
.fx-plan-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; line-height: 1.3;
  background: #eef8f3; color: var(--opay);
}
.fx-plan-tag::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.fx-plan-tag.payback { color: var(--opay); background: #eef8f3; }
.fx-plan-tag.auto { color: var(--opay); background: #eef8f3; }
.fx-plan-badge {
  font-size: 11px; font-weight: 700; color: var(--opay-dark);
  background: var(--opay-light); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.fx-plan-badge.liquidated {
  color: #1f7a4d; background: #e8f6ef;
}
.fx-plan-dash {
  height: 0; border-bottom: 1px dashed #e5e7eb; margin: 10px 0;
}
.fx-plan-solid {
  height: 0; border-bottom: 1px solid #f0f0f0; margin: 10px 0 8px;
}
.fx-plan-body {
  display: flex; justify-content: space-between; gap: 12px;
}
.fx-plan-body > div:last-child { text-align: right; }
.fx-plan-card.ended .fx-plan-body { margin-top: 0; }
.fx-plan-amt { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.fx-plan-amt.green { color: var(--opay); }
.fx-plan-lab { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.fx-plan-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #6b7280;
}
.fx-plan-foot em { font-style: normal; color: var(--opay); font-weight: 700; }
.fx-plan-foot.ended { margin-top: 0; color: var(--text); }
.fx-plan-foot .muted { color: #9ca3af; }
.fx-plans-end {
  text-align: center; color: #9ca3af; font-size: 12px; margin: 16px 0 8px;
}

/* Fixed holding detail */
#view-fixed_holding { background: #f5f6f8; }
#view-fixed_holding .scroll { padding: 12px 16px 24px; }
.fx-hold-card { margin: 0 0 12px; padding: 16px; }
.fx-hold-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.fx-hold-title strong { font-size: 16px; font-weight: 700; }
.fx-hold-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.fx-hold-badge.investing { background: #e8f1ff; color: #3b82f6; }
.fx-hold-badge.renewed { background: #e8f1ff; color: #3b82f6; }
.fx-hold-badge.liquidated { background: #e8f6ef; color: #1f7a4d; }
.fx-hold-dash {
  height: 0; border-bottom: 1px solid #f0f0f0; margin: 4px 0 8px;
}
.fx-hold-tip.liquidated {
  background: #f3f4f6; border-color: #e5e7eb; color: #6b7280;
}
.fx-hold-kv {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 8px 0; font-size: 13px;
}
.fx-hold-kv span { color: #6b7280; }
.fx-hold-kv strong { font-weight: 700; text-align: right; }
.fx-hold-kv .green { color: var(--opay); }
.fx-hold-kv.total {
  border-top: 1px solid #f0f0f0; margin-top: 4px; padding-top: 12px;
}
.fx-hold-kv.total strong { font-size: 16px; }
.fx-hold-tip {
  margin-top: 12px; padding: 12px; border-radius: 12px;
  background: #eef8f3; border: 1px solid #cfe9db;
  font-size: 12px; color: #4b5563; line-height: 1.45;
}
.fx-hold-tip.warn { background: #eef8f3; }
.fx-hold-tip .link {
  border: 0; background: transparent; color: var(--opay); font-weight: 700;
  padding: 0; cursor: pointer; font-size: 12px; font-family: inherit;
}
.fx-hold-sec-title { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.fx-act-row {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 0; background: transparent; padding: 12px 0; border-bottom: 1px solid #f3f4f6;
  text-align: left; cursor: pointer; font-family: inherit;
}
.fx-act-row:last-child { border-bottom: 0; }
.fx-act-row:disabled { cursor: default; }
.fx-act-row strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.fx-act-row span { font-size: 11px; color: #9ca3af; }
.fx-act-right {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.fx-act-right strong { font-size: 13px; }
.fx-act-right i { color: #9ca3af; font-size: 14px; }
.fx-liquidate {
  background: #e8f6ef !important; color: #0a7a4b !important; font-weight: 700;
}

/* Fixed liquidate flow */
#view-fixed_liquidate { background: #f5f6f8; }
#view-fixed_liquidate_result { background: #fff; }
#view-fixed_liquidate .scroll { padding: 12px 16px 24px; }
#view-fixed_liquidate_result .scroll { padding: 0 0 24px; }
.fx-liq-card { margin: 0 0 12px; padding: 16px; }
.fx-liq-agree {
  margin: 4px 4px 16px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.45;
}
.fx-liq-agree .link {
  border: 0; background: transparent; color: var(--opay); font-weight: 700;
  padding: 0; cursor: pointer; font-size: 12px; font-family: inherit;
}
.fx-liq-sheet { padding-bottom: 20px; }
.fx-liq-sheet-amt {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin: 4px 0 14px;
}
.fx-liq-sheet-card {
  background: #f5f6f8;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.fx-liq-warn {
  margin: 0 0 14px;
  font-size: 12px;
  color: #c49a3c;
  line-height: 1.45;
}
.fx-liq-reason-lab {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 8px;
}
.fx-liq-reason-field {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.fx-liq-reason-field .placeholder { color: #9ca3af; font-weight: 500; }
.fx-liq-reason-field i { color: #9ca3af; font-size: 16px; }
.fx-liq-reason-list { padding-top: 4px; padding-bottom: 12px; }
.fx-liq-reason-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  padding: 14px 4px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.fx-liq-reason-row:last-child { border-bottom: 0; }
.fx-liq-radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #d1d5db; flex-shrink: 0;
  box-sizing: border-box;
}
.fx-liq-radio.on {
  border: 5px solid var(--opay);
}
.fx-liq-result { padding-top: 40px; }
.fx-liq-result-head {
  text-align: center;
  padding: 0 16px 0;
}
.fx-liq-result-head .fx-result-sub {
  margin-bottom: 12px;
}
.fx-liq-result .promo-banner-img {
  margin-top: 4px;
}

/* Fixed more sheet */
.fx-more-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  border: 0; border-bottom: 1px solid #f0f0f0; background: transparent;
  padding: 16px 4px; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; font-family: inherit; text-align: left;
}
.fx-more-item:last-child { border-bottom: 0; }
.fx-more-item i { font-size: 20px; color: #374151; }

.plan-table { padding: 4px 14px !important; }
.plan-table .plan-row {
  display: grid; grid-template-columns: 108px minmax(0, 1fr) auto;
  column-gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}
.plan-table .plan-row.plan-head {
  padding: 10px 0 6px; border-bottom: 0;
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.plan-table .plan-row.plan-head .plan-rate,
.plan-table .plan-row.plan-head .plan-dur {
  color: var(--muted); font-weight: 600; font-size: 12px;
}
.plan-table .plan-row:last-child { border-bottom: 0; }
.plan-table .plan-rate {
  color: var(--opay); font-weight: 700; white-space: nowrap; text-align: left;
}
.plan-table .plan-dur {
  white-space: nowrap; color: var(--text); font-weight: 700; text-align: left;
  justify-self: start;
}
.plan-table .plan-head .plan-dur { font-weight: 600; color: var(--muted); }
.plan-table .plan-save {
  border: 0; background: var(--opay); color: #fff;
  border-radius: 999px; padding: 6px 14px; font-size: 12px;
  font-weight: 700; cursor: pointer; white-space: nowrap;
}
.my-plans-pill {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  background: #fff; border-radius: 999px; padding: 7px 12px;
  font-size: 12px; margin-top: 10px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.my-plans-pill .green { color: var(--opay); font-weight: 700; }
.hero-top-right {
  margin-left: auto; font-size: 12px; color: var(--muted);
  white-space: nowrap; flex-shrink: 0; cursor: pointer;
}

/* ── Spend & Save ── */
.upgrade-card {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; background: #fff; border-radius: 12px;
  margin-bottom: 10px;
}
.upgrade-card .up-icon { font-size: 18px; color: var(--opay); flex-shrink: 0; }
.upgrade-card .up-body { flex: 1; min-width: 0; }
.upgrade-card .up-body h4 {
  margin: 0 0 2px; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upgrade-card .up-body p {
  margin: 0; font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upgrade-card .up-body .green { color: var(--opay); font-weight: 600; }
.settings-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.settings-row .sr-left { min-width: 0; }
.settings-row .sr-head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
  white-space: nowrap;
}
.settings-row .sr-head strong { font-size: 13px; }
.settings-row .sr-val-row {
  display: flex; align-items: baseline; gap: 4px; white-space: nowrap;
}
.settings-row .sr-val { font-size: 26px; font-weight: 700; }
.settings-row .sr-label { font-size: 12px; color: var(--muted); }
.trend-card { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.trend-card .trend-left { min-width: 0; }
.trend-card .trend-title { font-size: 13px; font-weight: 700; white-space: nowrap; }
.trend-card .trend-val { font-size: 26px; font-weight: 700; }
.trend-bars { display: flex; align-items: flex-end; gap: 3px; height: 36px; flex-shrink: 0; }
.trend-bars span { width: 7px; border-radius: 2px 2px 0 0; background: var(--opay-light); }
.trend-bars span.active { background: var(--opay); }

/* ── Footer ── */
.footer-bar {
  padding: 10px 16px 16px; background: #fff;
  border-top: 1px solid #f0f0f0; flex-shrink: 0;
}
.channel-footer {
  text-align: center; font-size: 10px; color: var(--muted-light);
  line-height: 1.4; padding: 10px 16px 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.csr-float {
  position: absolute; bottom: 76px; right: 14px; z-index: 10;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--opay-light); border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: grid; place-items: center; font-size: 10px;
  font-weight: 700; color: var(--opay-dark);
}

.toast {
  position: absolute; left: 50%; bottom: 80px; transform: translateX(-50%);
  background: #111; color: #fff; padding: 10px 14px; border-radius: 999px;
  font-size: 13px; z-index: 50; display: none; white-space: nowrap;
}
.toast.show { display: block; }

.muted { color: var(--muted); font-size: 12px; }
.green { color: var(--opay); }

/* ── Finance: clickable / asset breakdown ── */
.clickable {
  border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; padding: 0;
}
button.rate-pill.clickable,
button.rate-pill-dark.clickable {
  display: inline-flex; align-items: center; gap: 2px;
  background: #3d4450 !important; color: #fff !important;
  font-size: 10px; font-weight: 600;
  padding: 3px 8px !important; border-radius: 999px;
  white-space: nowrap; line-height: 1.3; flex-shrink: 0;
}
.bc-label.clickable { opacity: .92; }
.bc-interest.clickable { font-size: clamp(12px, 3.4vw, 14px); font-weight: 700; color: #fff; }
.balance-banner.clickable {
  display: flex; align-items: center; gap: 4px; text-align: left;
  background: rgba(255,255,255,.32) !important;
  color: #fff !important;
  padding: 6px 12px !important;
  border-radius: 999px;
  width: 100%;
  font-size: clamp(9px, 2.5vw, 10px);
  font-weight: 500;
  line-height: 1.35;
}
.balance-banner.clickable .banner-chev { color: #fff; }

.asset-panel {
  background: #ecf9f2;
  border-radius: 0;
  padding: 8px 14px 4px;
  margin-top: 0;
}
.asset-group-label {
  font-size: 11px; color: #7a9e8e; font-weight: 500;
  margin: 2px 0 4px; white-space: nowrap;
}
.asset-divider {
  border: 0; border-top: 1px dashed #c5ddd2;
  margin: 6px 0;
}
.asset-row {
  width: 100%; border: 0; background: transparent; color: var(--text);
  display: flex; align-items: center;
  padding: 8px 0; cursor: pointer; font-size: 13px;
}
.asset-name {
  width: 88px; flex-shrink: 0;
  white-space: nowrap; font-weight: 500; font-size: 13px; text-align: left;
}
.asset-bal {
  width: 108px; flex-shrink: 0; margin-left: 8px;
  font-weight: 600; white-space: nowrap; font-size: 13px; text-align: left;
}
.asset-int {
  flex: 1; min-width: 0;
  font-size: 11px; white-space: nowrap; color: var(--opay); font-weight: 600;
  text-align: right; padding-right: 6px;
}
.asset-chev { color: #aaa; flex-shrink: 0; font-size: 14px; }
.asset-collapse {
  display: block; width: 100%; border: 0; background: transparent;
  color: var(--opay); padding: 4px 0 0; cursor: pointer; text-align: center;
}
.asset-collapse i { font-size: 16px; }

/* ── OWealth: tier help + modals ── */
.tier-help {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 999px;
  background: #1a1a1a; color: #fff; border: 0;
  font-size: 10px; font-weight: 700; cursor: pointer;
  padding: 0; line-height: 1;
}
.modal-overlay {
  position: absolute; inset: 0; z-index: 70;
  background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.info-modal {
  background: #fff; border-radius: 14px; padding: 20px 18px 14px;
  max-width: 320px; width: 100%;
}
.info-modal p {
  margin: 0 0 12px; font-size: 13px; color: #444; line-height: 1.5;
}
.info-formula {
  font-size: 11px !important; color: var(--muted) !important;
  background: #f9fafb; padding: 10px; border-radius: 8px;
}
.info-ok {
  display: block; width: 100%; border: 0; background: transparent;
  color: var(--opay); font-size: 16px; font-weight: 700; cursor: pointer;
  padding: 10px 0 0; text-align: center;
}
.picker-overlay.show { align-items: flex-end; padding: 0; }
.picker-sheet {
  background: #fff; border-radius: 16px 16px 0 0;
  animation: slideUp .2s ease; width: 100%;
}
.picker-overlay .picker-sheet { max-width: 100%; }
.picker-head {
  display: flex; justify-content: space-between; padding: 14px 16px;
  border-bottom: 1px solid #eee;
}
.picker-cancel, .picker-confirm {
  border: 0; background: transparent; font-size: 15px; cursor: pointer; padding: 0;
}
.picker-cancel { color: #888; }
.picker-confirm { color: var(--opay-dark); font-weight: 600; }
.picker-wheel {
  padding: 24px 16px 32px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; max-height: 220px; overflow-y: auto;
}
.picker-item {
  border: 0; background: transparent; font-size: 18px; color: #ccc;
  padding: 8px 0; cursor: pointer; width: 100%; text-align: center;
}
.picker-item.on {
  color: var(--text); font-weight: 700; font-size: 22px;
  border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}

/* ── OWealth optimize cards ── */
.optimize-cards { display: flex; flex-direction: column; gap: 10px; }
.opt-featured-card {
  background: #fff; border-radius: 16px; padding: 14px;
  margin-bottom: 0;
}
.opt-featured-card .fm-head {
  display: flex; align-items: flex-start; gap: 10px; min-width: 0;
}
.opt-featured-card .fm-body {
  flex: 1; min-width: 0;
}
.opt-featured-card .fm-title-row {
  display: flex; align-items: center; gap: 6px; flex-wrap: nowrap;
}
.opt-featured-card .fm-name {
  font-size: 15px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
}
.opt-featured-card .fm-desc {
  margin: 3px 0 0; font-size: 11px; color: var(--muted); line-height: 1.35;
}
.fm-term-select {
  flex-shrink: 0; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid #b8e6d0; border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  color: var(--text); background: #fff;
  white-space: nowrap; flex-shrink: 0; cursor: pointer;
  line-height: 1.3;
}
.fm-term-select i { font-size: 10px; color: var(--muted); }
.opt-featured-panel {
  background: #f5f7f6; border-radius: 12px;
  padding: 12px; margin-top: 4px;
}
.opt-featured-panel .slider-hint { margin-top: 0; }
.opt-featured-panel .opt-save-btn { margin-top: 14px; border-radius: 999px; }
.opt-secondary-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 14px;
}
.opt-secondary-card .cs-body { flex: 1; min-width: 0; }
.opt-secondary-card h4 {
  margin: 0 0 3px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.opt-secondary-card p {
  margin: 0; font-size: 11px; color: var(--muted); line-height: 1.35;
}
.opt-save-pill {
  border: 0; background: var(--opay); color: #fff;
  border-radius: 999px; padding: 8px 20px; font-size: 13px;
  font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.opt-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--opay-light); display: grid; place-items: center;
  font-size: 15px; flex-shrink: 0; color: var(--opay-dark);
}
.compare-chart {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 56px; margin: 12px 8px 4px; padding: 0 8px;
}
.compare-col {
  display: flex; flex-direction: column; align-items: center;
  width: 72px;
}
.compare-bars {
  width: 100%; height: 72px;
  display: flex; align-items: flex-end; justify-content: center;
  border-bottom: 1px solid #e5e7eb;
}
.compare-bar-stack {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.compare-bar-stack .compare-rate {
  font-size: 12px; font-weight: 700; margin-bottom: 4px; white-space: nowrap;
}
.compare-rate.muted-rate { color: #9ca3af; }
.compare-rate.green-rate { color: var(--opay); }
.compare-bar {
  width: 40px; border-radius: 6px 6px 0 0; flex-shrink: 0;
}
.compare-bar.grey { background: #d1d5db; height: 24px; }
.compare-bar.green { background: var(--opay); height: 52px; }
.compare-label {
  font-size: 10px; color: var(--muted); margin-top: 6px;
  white-space: nowrap; text-align: center;
}
.opt-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px;
  outline: none; cursor: pointer; margin: 10px 0 8px;
  background: transparent;
  --slider-pct: 33%;
}
.opt-slider::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, #00b876 var(--slider-pct), #d6efe4 var(--slider-pct));
}
.opt-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--opay); border: none;
  box-shadow: none;
  cursor: pointer; margin-top: -7px;
}
.opt-slider::-moz-range-track {
  height: 6px; border-radius: 999px; background: #d6efe4;
}
.opt-slider::-moz-range-progress {
  height: 6px; border-radius: 999px; background: var(--opay);
}
.opt-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--opay); border: none;
  box-shadow: none;
  cursor: pointer;
}
.opt-slider::-webkit-slider-thumb:hover,
.opt-slider::-webkit-slider-thumb:active,
.opt-slider::-moz-range-thumb:hover,
.opt-slider::-moz-range-thumb:active {
  transform: none; background: var(--opay); box-shadow: none;
}
.slider-labels .sl-right { text-align: right; }

/* ── Wallet page ── */
.wallet-card {
  margin: 12px 16px; background: #fff; border-radius: 14px; padding: 16px;
}
.wallet-card-label {
  font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px;
}
.wallet-card-bal {
  font-size: 32px; font-weight: 700; margin: 8px 0 14px;
  white-space: nowrap;
}
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-list { padding: 0 16px 16px; }
.wallet-month {
  font-size: 14px; font-weight: 700; margin: 12px 0 8px;
}
.wallet-txn {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #f0f0f0; align-items: start;
}
.wallet-txn-icon {
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.wallet-txn-icon.target { background: #dbeafe; color: #2563eb; }
.wallet-txn-icon.owealth { background: #ede9fe; color: #7c3aed; }
.wallet-txn-title {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wallet-txn-date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.wallet-txn-amt { text-align: right; }
.wallet-txn-amt .positive { color: var(--opay); font-weight: 700; font-size: 13px; }
.wallet-txn-amt .negative { font-weight: 700; font-size: 13px; }
.wallet-txn-bal { font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; }

/* ── Interest Details ── */
.interest-hero {
  background: linear-gradient(180deg, var(--opay) 0%, var(--opay) 120px, var(--bg) 120px);
  flex-shrink: 0;
}
.interest-topbar { background: transparent !important; }
.interest-topbar h1 { color: #fff; }
.icon-btn.light { color: #fff; }
.interest-scroll { padding: 0 16px 16px; margin-top: -8px; }
.interest-overview { margin-bottom: 12px; }
.io-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.io-metrics {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.io-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; }
.io-val { font-size: 20px; font-weight: 700; white-space: nowrap; }
.io-val.green { color: var(--opay); }
.io-progress-wrap { margin-top: 4px; }
.io-progress {
  height: 8px; background: #e5e7eb; border-radius: 999px;
  position: relative; margin-bottom: 8px;
}
.io-progress-fill {
  height: 100%; width: 92%; background: var(--opay); border-radius: 999px;
}
.io-runner {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--opay); color: #fff;
  display: grid; place-items: center; font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,184,118,.4);
}
.io-beat { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.interest-calendar .ic-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.ic-tabs {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.ic-tabs button {
  border: 0; background: #f3f4f6; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; cursor: pointer; color: var(--muted);
}
.ic-tabs button.on { background: var(--opay-light); color: var(--opay-dark); font-weight: 600; }
.ic-month-row {
  display: flex; justify-content: space-between; font-size: 12px;
  margin-bottom: 10px; white-space: nowrap;
}
.ic-month-nav { color: var(--muted); }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-dow {
  font-size: 10px; color: var(--muted); text-align: center; padding: 4px 0;
}
.cal-cell {
  background: var(--opay-mint); border-radius: 6px; padding: 4px 2px;
  min-height: 44px; text-align: center;
}
.cal-cell.empty { background: transparent; }
.cal-day { font-size: 10px; font-weight: 600; }
.cal-amt { font-size: 8px; color: var(--opay); font-weight: 600; white-space: nowrap; overflow: hidden; }

/* ── Disabled button ── */
.btn-primary.btn-disabled,
.btn-primary:disabled {
  background: #b8e6d0; color: #fff; cursor: not-allowed;
}

/* ── OWealth Deposit ── */
.deposit-page { padding: 12px 16px 20px; }
.deposit-row-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; margin-bottom: 10px;
}
.deposit-row-label { font-size: 14px; font-weight: 500; }
.deposit-row-value {
  border: 0; background: transparent; display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text);
}
.deposit-row-value .dep-icon {
  width: 22px; height: 22px; border-radius: 6px; background: var(--opay-light);
  display: grid; place-items: center; color: var(--opay); font-size: 13px;
}
.deposit-row-value i.ph-caret-right { color: #aaa; font-size: 12px; }
.deposit-amount-card { padding: 14px 16px; margin-bottom: 10px; }
.deposit-amount-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
  font-size: 14px; font-weight: 600;
}
.deposit-amount-head .rate-pill.light strong { color: var(--opay); }
.deposit-input-row {
  display: flex; align-items: baseline; gap: 6px;
}
.deposit-currency {
  font-size: 28px; font-weight: 700; color: var(--text);
}
.deposit-input {
  border: 0; outline: none; flex: 1; min-width: 0;
  font-size: 32px; font-weight: 700; background: transparent; color: var(--text);
  padding: 0;
}
.deposit-input-line {
  height: 1px; background: #eee; margin: 10px 0 8px;
}
.deposit-balance-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 12px;
}
.deposit-all-link {
  border: 0; background: transparent; color: var(--opay);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.deposit-alert {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #f3f4f6; border-radius: 8px; padding: 10px 12px;
  font-size: 12px; color: #555;
}
.deposit-alert-link {
  border: 0; background: transparent; color: var(--opay);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.deposit-estimate-card { padding: 14px 16px; }
.deposit-estimate-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 600; margin-bottom: 14px;
}
.link-like { font-weight: 500; cursor: pointer; }
.deposit-estimate-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
}
.deposit-estimate-grid > div {
  text-align: center; padding: 0 6px;
  border-right: 1px solid #eee;
}
.deposit-estimate-grid > div:last-child { border-right: 0; }
.est-label {
  display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px;
}
.deposit-estimate-grid strong {
  font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* ── Deposit source sheet ── */
.deposit-sheet, .more-menu-sheet {
  background: #fff; border-radius: 16px 16px 0 0;
  width: 100%; animation: slideUp .2s ease;
}
.sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; border-bottom: 1px solid #f0f0f0;
}
.sheet-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.sheet-body { padding: 16px; }
.source-option {
  width: 100%; border: 1px solid #eee; border-radius: 12px;
  background: #fff; padding: 14px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-size: 14px; font-weight: 600; text-align: left;
}
.source-option.on { border-color: var(--opay); }
.source-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.source-icon.wallet { background: var(--opay-light); color: var(--opay); font-size: 18px; }
.source-icon.add { background: #f3f4f6; color: #666; font-size: 18px; }
.source-label { flex: 1; min-width: 0; }
.source-radio {
  width: 20px; height: 20px; border-radius: 999px; border: 2px solid #ddd; flex-shrink: 0;
}
.source-radio.on {
  border-color: var(--opay); box-shadow: inset 0 0 0 4px var(--opay);
}
.source-option.muted-opt { color: var(--text); }

/* ── PIN sheet ── */
.pin-sheet { background: #fff; border-radius: 16px 16px 0 0; width: 100%; animation: slideUp .2s ease; }
.pin-sheet-inner { padding: 8px 16px 12px; }
.pin-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 16px;
}
.pin-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.pin-dots {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 14px;
}
.pin-dot {
  width: 48px; height: 48px; border-radius: 12px;
  border: 1.5px solid #dce3ea; background: #fff;
  position: relative;
}
.pin-dot.filled {
  border-color: var(--opay); background: #fff;
}
.pin-dot.filled::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px; border-radius: 999px; background: var(--opay);
}
.pin-forgot {
  display: block; width: 100%; border: 0; background: transparent;
  text-align: center; color: var(--opay); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 4px 0 12px;
}
.pin-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #f5f7f6; border-radius: 8px; padding: 8px;
  font-size: 11px; color: var(--muted); margin-bottom: 8px;
}
.pin-secure i { color: var(--opay); font-size: 14px; }
.pin-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #eee;
}
.pin-key {
  border: 0; background: #fff; border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0; padding: 16px 0;
  font-size: 22px; font-weight: 500; cursor: pointer; color: var(--text);
}
.pin-key:nth-child(3n) { border-right: 0; }
.pin-key.empty { background: #fafafa; cursor: default; }
.pin-key i { font-size: 20px; }

/* ── Processing ── */
.processing-overlay {
  position: absolute; inset: 0; z-index: 80;
  background: rgba(255,255,255,.92);
  display: none; align-items: center; justify-content: center;
}
.processing-overlay.show { display: flex; }
.processing-box { text-align: center; }
.processing-spinner {
  width: 40px; height: 40px; border-radius: 999px;
  border: 3px solid #e5e7eb; border-top-color: var(--opay);
  margin: 0 auto 12px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing-box p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 500; }

/* ── Deposit result ── */
.result-page { padding: 8px 16px 24px; }
.result-success { text-align: center; padding: 12px 0 20px; }
.result-icon {
  width: 56px; height: 56px; border-radius: 999px; background: var(--opay);
  color: #fff; display: grid; place-items: center; font-size: 28px;
  margin: 0 auto 12px;
}
.result-amount { font-size: 28px; font-weight: 700; }
.result-status { font-size: 14px; color: var(--muted); margin-top: 4px; }
.result-timeline {
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px 8px 20px; gap: 0;
}
.tl-step {
  display: flex; flex-direction: column; align-items: center;
  width: 90px; text-align: center;
}
.tl-dot {
  width: 24px; height: 24px; border-radius: 999px;
  background: #e5e7eb; display: grid; place-items: center;
  font-size: 12px; color: #fff; flex-shrink: 0;
}
.tl-step.done .tl-dot { background: var(--opay); }
.tl-step.pending .tl-dot.clock { background: #f59e0b; }
.tl-text {
  margin-top: 8px; font-size: 9px; line-height: 1.35; color: var(--muted);
}
.tl-text strong { display: block; font-size: 9px; color: var(--text); font-weight: 600; }
.tl-line {
  flex: 1; height: 2px; background: #e5e7eb; margin-top: 11px; min-width: 20px; max-width: 40px;
}
.tl-line.done { background: var(--opay); }
.result-balances h4 {
  margin: 0 0 10px; font-size: 14px; font-weight: 700;
}
.result-bal-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.result-bal-card {
  background: var(--opay-light); border-radius: 12px; padding: 12px;
}
.result-bal-card.highlight { background: #e8f8f1; }
.rb-label { font-size: 12px; font-weight: 600; display: block; }
.result-bal-card strong {
  display: block; font-size: 15px; font-weight: 700; margin: 4px 0;
  white-space: nowrap;
}
.rb-sub { font-size: 10px; color: var(--muted); }
.result-share-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--opay-light); border-radius: 12px;
  padding: 12px; margin-top: 16px;
}
.share-avatars { font-size: 20px; flex-shrink: 0; }
.share-copy { flex: 1; min-width: 0; }
.share-copy strong { display: block; font-size: 13px; }
.share-copy span { font-size: 11px; color: var(--muted); }
.opt-save-pill.sm { padding: 6px 14px; font-size: 12px; }

/* ── More menu ── */
.more-menu-head {
  display: flex; justify-content: flex-end; padding: 12px 12px 0;
}
.more-menu-list { padding: 4px 16px 24px; }
.more-menu-item {
  width: 100%; border: 0; background: transparent;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 15px; font-weight: 500; cursor: pointer; text-align: left;
  color: var(--text);
}
.more-menu-item:last-child { border-bottom: 0; }
.more-menu-item i { font-size: 20px; color: var(--text); width: 24px; }
.more-menu-item span:nth-child(2) { flex: 1; }
.more-badge-on {
  font-size: 10px; font-weight: 700; color: var(--opay-dark);
  background: var(--opay-light); padding: 2px 8px; border-radius: 4px;
}

/* ── AutoSave ── */
.autosave-page { padding: 12px 16px 24px; }
.autosave-status-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 700; margin-bottom: 14px;
}
.autosave-flow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.autosave-box {
  flex: 1; background: var(--opay-mint); border-radius: 12px;
  padding: 12px 8px; text-align: center; min-width: 0;
}
.autosave-box strong { display: block; font-size: 11px; margin: 6px 0 2px; }
.autosave-box span { font-size: 10px; display: block; }
.as-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--opay-light);
  display: grid; place-items: center; margin: 0 auto; color: var(--opay); font-size: 16px;
}
.as-icon.owealth { font-weight: 800; color: var(--opay); }
.autosave-arrow { color: var(--opay); font-size: 18px; font-weight: 700; flex-shrink: 0; }
.autosave-desc {
  margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45;
}
.autosave-remember { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.autosave-tip {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; font-size: 13px; line-height: 1.35;
}
.tip-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--opay-light);
  display: grid; place-items: center; flex-shrink: 0; color: var(--opay); font-size: 16px;
}
.tip-icon.owealth { font-weight: 800; }
.autosave-back { margin-top: 16px; border-radius: 999px; }
.autosave-off-link {
  display: block; width: 100%; border: 0; background: transparent;
  text-align: center; color: var(--opay); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 16px 0;
}

/* ── Interest Setting ── */
.interest-setting-topbar {
  display: grid; grid-template-columns: 36px 36px 1fr 36px; align-items: center;
}
.interest-setting-page { padding: 8px 16px 24px; }
.is-title {
  margin: 0 0 10px; font-size: 22px; font-weight: 700; color: var(--opay);
}
.is-desc {
  margin: 0 0 10px; font-size: 13px; color: var(--muted); line-height: 1.5;
}
.is-toggle-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-size: 14px; font-weight: 500; margin-bottom: 10px;
}
.toggle-switch {
  width: 44px; height: 26px; border-radius: 999px; border: 0;
  background: #e5e7eb; cursor: pointer; position: relative; flex-shrink: 0;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 999px; background: #fff;
  transition: transform .15s;
}
.toggle-switch.on { background: var(--opay); }
.toggle-switch.on::after { transform: translateX(18px); }
.is-activity-card { padding: 14px 16px; }
.is-activity-card h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.is-activity-row {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.is-activity-row:last-child { border-bottom: 0; }
.is-dot {
  width: 8px; height: 8px; border-radius: 999px; margin-top: 5px; flex-shrink: 0;
}
.is-dot.off { background: #ef4444; }
.is-dot.on { background: var(--opay); }
.is-act-text { font-size: 13px; line-height: 1.35; }
.is-act-date { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ── Targets Create Flow ── */
#targets-create-body { padding: 0 16px 24px; }

.tc-stepper {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 0; padding: 4px 0 12px;
}
.tc-step { display: flex; align-items: center; }
.tc-step-dot {
  width: 28px; height: 28px; border-radius: 999px;
  border: 2px solid var(--opay-light); color: var(--opay);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--opay-light);
}
.tc-step.active .tc-step-dot {
  background: var(--opay); color: #fff; border-color: var(--opay);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--opay);
}
.tc-step.done .tc-step-dot {
  background: var(--opay); color: #fff; border-color: var(--opay);
}
.tc-step-line {
  width: 36px; height: 2px; background: var(--opay-light);
  display: inline-block;
}
.tc-step.done + .tc-step-line,
.tc-step.active + .tc-step-line { background: var(--opay); }

.tc-heading {
  margin: 0 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3;
}
.tc-card { padding: 14px 16px; margin-bottom: 10px; }
.tc-label {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.tc-label .muted { font-weight: 400; font-size: 11px; }
.tc-input, .tc-select {
  width: 100%; border: 0; background: #f3f4f6; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--text);
  text-align: left; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 10px;
}
.tc-input { cursor: text; margin-bottom: 8px; }
.tc-select.static { cursor: default; }
.tc-select .placeholder { color: #aaa; font-weight: 400; }
.tc-select i { color: #aaa; font-size: 14px; }
.tc-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.tc-chips:last-child { margin-bottom: 0; }
.tc-chip {
  border: 0; background: #f3f4f6; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--text); cursor: pointer;
}
.tc-chip.on { background: var(--opay-light); color: var(--opay-dark); font-weight: 600; }
.tc-amount-row {
  display: flex; align-items: center; gap: 6px;
  background: #f3f4f6; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px;
}
.tc-currency { font-size: 22px; font-weight: 700; }
.tc-amount-input {
  border: 0; outline: none; flex: 1; min-width: 0; background: transparent;
  font-size: 22px; font-weight: 700; color: var(--text);
}
.tc-segment {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.tc-segment button {
  flex: 1; border: 0; background: #f3f4f6; border-radius: 10px;
  padding: 10px 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.tc-segment button.on {
  background: var(--opay-light); color: var(--opay-dark);
}
.tc-segment button.off {
  opacity: 0.35; cursor: not-allowed;
}
.tc-segment button:disabled { pointer-events: none; }
.tc-toggle-row, .tc-toggle-card {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 500; margin: 4px 0 10px;
}
.tc-toggle-card { margin: 0; }
.tc-plan-gap { margin-bottom: 10px; }
.tc-duration-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; font-size: 13px;
}
.tc-duration-row .green { color: var(--opay); font-weight: 700; }
.tc-highlight-box {
  background: #f3f4f6; border-radius: 10px; padding: 14px;
  font-size: 22px; font-weight: 700;
}
.tc-highlight-box.payment {
  font-size: 14px; font-weight: 500; line-height: 1.4;
}
.tc-footer-note {
  text-align: center; font-size: 11px; color: var(--muted); margin-top: 16px;
}
.tc-footer-note strong { color: var(--text); font-weight: 700; }

#targets-create-result-body { padding: 0 16px 24px; }

.tc-preview-card { padding: 16px; margin-bottom: 10px; }
.tc-preview-amount {
  text-align: center; padding-bottom: 12px;
}
.tc-preview-amount .muted { display: block; font-size: 12px; margin-bottom: 4px; }
.tc-preview-amount strong.green {
  font-size: 28px; font-weight: 700; color: var(--opay);
}
.tc-preview-divider {
  border-top: 1px dashed #ddd; margin: 0 0 10px;
}
.tc-preview-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 8px 0; font-size: 13px;
}
.tc-preview-row span { color: var(--muted); flex-shrink: 0; }
.tc-preview-row strong { text-align: right; font-weight: 600; font-size: 13px; }
.tc-edit-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 12px auto 0; border: 0; background: var(--opay-light);
  color: var(--opay-dark); border-radius: 999px; padding: 8px 20px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.tc-disclaimer {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 11px; color: var(--muted); line-height: 1.45;
  margin: 4px 0 8px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tc-check-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tc-check-box {
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid #d1d5db; background: #fff;
  display: grid; place-items: center; color: transparent;
}
.tc-check-box i { font-size: 11px; font-weight: 700; line-height: 1; }
.tc-check-input:checked + .tc-check-box {
  background: var(--opay); border-color: var(--opay); color: #fff;
}
.tc-disclaimer-text { flex: 1; min-width: 0; }

.tc-success { text-align: center; padding: 24px 0 16px; }
.tc-success-icon {
  width: 64px; height: 64px; margin: 0 auto 12px;
  background: var(--opay); clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  display: grid; place-items: center; color: #fff; font-size: 28px;
}
.tc-success h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }

.tc-sheet-head {
  display: grid; grid-template-columns: 36px 1fr 36px; align-items: center;
  padding: 14px 8px; border-bottom: 1px solid #f0f0f0;
}
.tc-sheet-head h3 { margin: 0; text-align: center; font-size: 16px; font-weight: 700; }
.tc-sheet-list { max-height: 360px; overflow-y: auto; }
.tc-sheet-item {
  width: 100%; border: 0; background: transparent;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
  font-size: 15px; cursor: pointer; text-align: left; color: var(--text);
}
.tc-sheet-item:last-child { border-bottom: 0; }
.tc-radio {
  width: 20px; height: 20px; border-radius: 999px; border: 2px solid #ddd; flex-shrink: 0;
}
.tc-radio.on { border-color: var(--opay); box-shadow: inset 0 0 0 4px var(--opay); }

.tc-picker-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid #eee;
}
.tc-picker-head span { font-size: 15px; font-weight: 700; }
.tc-picker-cancel, .tc-picker-confirm {
  border: 0; background: transparent; font-size: 15px; cursor: pointer; padding: 0;
}
.tc-picker-cancel { color: #888; }
.tc-picker-confirm { color: var(--opay); font-weight: 600; }
.tc-date-input-wrap { padding: 20px 16px 28px; }
.tc-date-native {
  width: 100%; border: 0; background: #f3f4f6; border-radius: 12px;
  padding: 16px; font-size: 18px; font-weight: 600; color: var(--text);
  box-sizing: border-box; min-height: 52px;
}
.tc-date-native::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: 0.6;
}

/* ── REQ-002 Target coupons (branch-only UI) ── */
.tcoup-entry {
  display: flex; align-items: center; gap: 12px;
  width: calc(100% - 32px); margin: 0 16px 12px;
  padding: 12px 14px; border: 0; border-radius: 14px;
  background: linear-gradient(90deg, #e8faf2, #fff);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
  text-align: left; cursor: pointer; color: inherit;
}
.tcoup-entry-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: var(--opay); color: #fff;
  display: grid; place-items: center; font-size: 20px;
}
.tcoup-entry-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcoup-entry-body strong { font-size: 14px; font-weight: 700; }
.tcoup-entry-body span { font-size: 12px; color: var(--muted); }
.tcoup-entry-chev { color: var(--muted); font-size: 18px; flex-shrink: 0; }

.tcoup-page { padding: 4px 16px 24px; }
.tcoup-tabs {
  display: flex; gap: 0; margin-bottom: 14px;
  background: #eee; border-radius: 10px; padding: 3px;
}
.tcoup-tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 8px 6px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tcoup-tabs button.on { background: #fff; color: var(--text); }

.tcoup-ticket {
  display: flex; background: #fff; border-radius: 14px;
  margin-bottom: 10px; overflow: hidden;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.tcoup-ticket.used { opacity: .55; }
.tcoup-ticket-value {
  width: 92px; flex-shrink: 0;
  background: var(--opay-mint); color: var(--opay-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 14px 8px;
  position: relative;
}
.tcoup-ticket-value::after {
  content: '';
  position: absolute; right: -6px; top: 0; bottom: 0; width: 12px;
  background: repeating-linear-gradient(
    to bottom, transparent 0 6px, #fff 6px 12px
  );
}
.tcoup-ticket-value strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.tcoup-ticket-value span { font-size: 10px; font-weight: 600; color: var(--muted); text-align: center; }
.tcoup-ticket-body { flex: 1; min-width: 0; padding: 12px 14px 12px 16px; }
.tcoup-ticket-title { font-size: 14px; font-weight: 700; }
.tcoup-ticket-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tcoup-ticket-meta { font-size: 11px; color: var(--muted-light); margin-top: 6px; }
.tcoup-ticket-action { margin-top: 8px; display: flex; justify-content: flex-end; }
.tcoup-status {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.tcoup-status.used { background: #f3f4f6; color: #6b7280; }
.tcoup-status.expired { background: #fef2f2; color: #ef4444; }

.tcoup-empty {
  text-align: center; padding: 48px 16px; color: var(--muted);
}
.tcoup-empty i { font-size: 36px; color: var(--opay); display: block; margin-bottom: 8px; }
.tcoup-empty p { margin: 0; font-size: 13px; }

.tcoup-create-link {
  display: block; width: 100%; border: 0; background: transparent;
  color: var(--opay); font-size: 13px; font-weight: 600;
  padding: 8px 0 4px; cursor: pointer; text-align: center;
}

.tcoup-label {
  font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 8px;
}
.tcoup-terms-card p {
  margin: 0; font-size: 12px; color: var(--text); line-height: 1.5;
}
.tcoup-target {
  width: 100%; border: 0; background: transparent;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f3f4f6;
  text-align: left; cursor: pointer; color: inherit;
}
.tcoup-target:last-child { border-bottom: 0; }
.tcoup-target.on { background: transparent; }
.tcoup-target-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcoup-target-mid strong { font-size: 13px; }
.tcoup-target-mid span { font-size: 11px; color: var(--muted); }
.tcoup-target-pct { font-size: 12px; font-weight: 700; color: var(--opay); flex-shrink: 0; }

.tcoup-dur-label {
  font-size: 11px; color: var(--muted); font-weight: 600; margin: 10px 0 6px;
}
.tcoup-inline {
  display: flex; align-items: center; gap: 10px;
  width: 100%; margin-top: 12px; padding: 10px 12px;
  border: 1px dashed #b7e4ce; border-radius: 12px;
  background: linear-gradient(90deg, #f2fbf6, #fff);
  text-align: left; cursor: pointer; color: inherit;
}
.tcoup-inline.on { border-style: solid; border-color: var(--opay); }
.tcoup-inline.invalid {
  border-style: dashed;
  border-color: #ddd5cc;
  background: #faf9f7;
}
.tcoup-inline.invalid .tcoup-inline-face {
  background: #f0ece8;
  color: #8c8178;
}
.tcoup-inline.invalid .tcoup-inline-copy strong {
  color: #8c8178;
  font-weight: 600;
}
.tcoup-inline.invalid .tcoup-inline-copy span { color: #a39a92; }
.tcoup-inline.invalid .tcoup-inline-change { color: #8c8178; }
.tcoup-inline.wait { border-color: #e5e7eb; background: #fafafa; }
.tcoup-inline-face {
  flex-shrink: 0; background: var(--opay); color: #fff;
  font-size: 12px; font-weight: 800; padding: 8px 8px;
  border-radius: 8px; min-width: 58px; text-align: center;
}
.tcoup-inline-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--opay-light); color: var(--opay-dark);
  display: grid; place-items: center; font-size: 16px;
}
.tcoup-inline-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcoup-inline-copy strong { font-size: 12px; font-weight: 700; }
.tcoup-inline-copy span { font-size: 11px; color: var(--muted); }
.tcoup-inline-change { font-size: 12px; font-weight: 700; color: var(--opay); flex-shrink: 0; }

.footer-bar.tcoup-split {
  display: flex; align-items: stretch; gap: 10px;
}
.tcoup-footer-pick {
  flex: 1; min-width: 0; border: 0; border-radius: 14px;
  background: var(--opay-mint); color: inherit;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; text-align: left; cursor: pointer;
}
.tcoup-footer-pick.on { background: var(--opay-light); }

/* ── Target Templates / Popular Targets ── */
#view-targets_popular { position: relative; }
#view-targets_popular.filter-collapsed #targets-popular-body { padding-bottom: 132px; }
#view-targets_popular.filter-expanded #targets-popular-body { padding-bottom: 240px; }
#targets-popular-body { padding: 0 0 16px; }
.tp-page { padding: 0 16px 16px; }
.tp-counter-label {
  margin: 0 0 10px; font-size: 13px; font-weight: 600; text-align: center;
}
.tp-counter-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  margin-bottom: 16px;
}
.tp-counter-digit {
  min-width: 28px; height: 36px; padding: 0 6px;
  background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: grid; place-items: center; font-size: 18px; font-weight: 700;
}
.tp-counter-comma {
  display: grid; place-items: end; font-size: 18px; font-weight: 700;
  padding-bottom: 4px; color: var(--muted);
}
.tp-list { display: flex; flex-direction: column; gap: 10px; }
.tp-card {
  display: grid; grid-template-columns: 88px 1fr; gap: 10px;
  background: #fff; border-radius: 14px; padding: 10px; align-items: start;
}
.tp-card-img {
  position: relative; width: 88px; height: 88px; border-radius: 12px; overflow: hidden;
  background: #f3f4f6; flex-shrink: 0;
}
.tp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.tp-hot-tag {
  position: absolute; top: 4px; left: 4px;
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 700; line-height: 1.2;
  background: linear-gradient(135deg, #ff7b7b, #ff5252);
  color: #fff; border-radius: 999px; padding: 2px 6px;
}
.tp-hot-tag i { font-size: 10px; }
.tp-card-main { min-width: 0; }
.tp-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 4px;
}
.tp-card-title-row {
  display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1;
}
.tp-card-title-row h4 {
  margin: 0; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp-rank {
  min-width: 20px; height: 20px; border-radius: 6px;
  background: #e8f8ef; color: var(--opay);
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center; flex-shrink: 0;
}
.tp-members {
  margin: 0 0 8px; font-size: 11px; color: var(--muted); font-weight: 500;
}
.tp-members-num { color: var(--opay); font-weight: 700; }
.tp-stats {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.tp-stat {
  display: inline-flex; flex-direction: row; align-items: baseline; gap: 4px;
  min-width: 0;
}
.tp-stat-right { margin-left: auto; }
.tp-stat-label { font-size: 10px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tp-stat strong { font-size: 12px; color: var(--text); font-weight: 700; white-space: nowrap; }
.tp-join-btn {
  border: 0; background: var(--opay); color: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.tp-filter-panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  transition: padding .2s ease;
}
.tp-filter-panel.collapsed { padding: 6px 16px 12px; }
.tp-filter-panel.expanded { padding: 8px 16px 20px; }
.tp-filter-panel.collapsed .tp-filter-grid { margin-top: 4px; }
.tp-filter-toggle {
  display: block; width: 100%; border: 0; background: transparent;
  padding: 4px 0 0; cursor: pointer;
}
.tp-filter-handle {
  width: 40px; height: 4px; background: #ddd; border-radius: 999px;
  margin: 0 auto;
}
.tp-filter-panel.expanded .tp-filter-handle { margin-bottom: 16px; }
.tp-filter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.tp-filter-chip {
  border: 0; background: #f3f4f6; border-radius: 12px;
  padding: 10px 12px; display: flex; flex-direction: row; align-items: center;
  gap: 8px; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--text);
  justify-content: flex-start;
}
.tp-filter-chip i { font-size: 18px; color: var(--opay); flex-shrink: 0; }
.tp-filter-chip.on { background: var(--opay-light); color: var(--opay-dark); }
.tp-filter-expand-hint {
  display: flex; justify-content: center; align-items: center;
  width: 100%; border: 0; background: transparent;
  padding: 4px 0 0; cursor: pointer; color: #9ca3af;
}
.tp-filter-expand-hint i { font-size: 18px; }
.tcoup-footer-pick.invalid { background: #faf9f7; }
.tcoup-footer-pick.invalid .tcoup-footer-face { color: #8c8178; }
.tcoup-footer-pick.invalid .tcoup-footer-copy strong { color: #8c8178; font-weight: 600; }
.tcoup-footer-pick.invalid .tcoup-footer-copy span { color: #a39a92; }
.tcoup-footer-edit {
  flex-shrink: 0; font-size: 11px; font-weight: 700; color: #8c8178;
}
.tcoup-footer-pick > i { color: var(--opay); font-size: 18px; flex-shrink: 0; }
.tcoup-footer-face {
  flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--opay-dark);
}
.tcoup-footer-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tcoup-footer-copy strong {
  font-size: 12px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcoup-footer-copy span {
  font-size: 10px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tcoup-footer-next {
  width: 112px; flex-shrink: 0; border-radius: 999px;
}

.tcoup-pick-intro {
  margin: 0; padding: 0 16px 10px; font-size: 12px; color: var(--muted); line-height: 1.45;
}
.tcoup-sheet-body {
  max-height: min(62vh, 480px); overflow-y: auto; padding-bottom: 8px;
}
.tcoup-sheet-foot {
  padding: 12px 16px 16px; border-top: 1px solid #f0f0f0;
}
.tcoup-skip-row {
  width: calc(100% - 32px); margin: 8px 16px 4px; border: 0; border-radius: 12px;
  background: #fafafa; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; text-align: left; cursor: pointer; color: inherit;
}
.tcoup-skip-row.on { background: var(--opay-light); }
.tcoup-create-ticket-wrap {
  position: relative;
  width: calc(100% - 32px);
  margin: 0 16px 10px;
}
.tcoup-create-ticket-btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
.tcoup-create-ticket-wrap.locked .tcoup-create-ticket-btn {
  cursor: default;
  pointer-events: none;
}
.tcoup-create-ticket-wrap .tcoup-ticket {
  margin-bottom: 0;
}
.tcoup-create-ticket-wrap.on:not(.invalid) .tcoup-ticket {
  box-shadow: 0 0 0 2px var(--opay);
}
.tcoup-create-ticket-wrap.invalid .tcoup-ticket {
  box-shadow: 0 0 0 2px #ddd5cc;
}
.tcoup-create-ticket-wrap.invalid .tcoup-ticket-value {
  background: #f0ece8;
  color: #8c8178;
}
.tcoup-create-ticket-wrap.invalid .tcoup-ticket-title {
  color: #8c8178;
}
.tcoup-create-ticket-wrap.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 1;
}
.tcoup-ticket-badge {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}
.tcoup-ticket-badge.warn {
  color: #8c8178;
  background: rgba(250, 249, 247, 0.95);
  max-width: calc(100% - 110px);
  text-align: right;
}
.tcoup-invalid-modal h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700;
}
.tcoup-invalid-actions {
  display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
}
.tcoup-invalid-back {
  border: 0; background: transparent; color: var(--opay);
  font-size: 15px; font-weight: 700; cursor: pointer; padding: 10px 0;
}
.tcoup-pick-item {
  width: 100%; border: 0; background: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
  text-align: left; cursor: pointer; color: inherit;
}
.tcoup-pick-item.locked { opacity: .45; cursor: default; }
.tcoup-pick-item.skip { background: #fafafa; }
.tcoup-pick-face {
  font-size: 13px; font-weight: 800; color: var(--opay-dark);
  background: var(--opay-light); padding: 8px 8px; border-radius: 8px;
  min-width: 64px; text-align: center; flex-shrink: 0;
}
.tcoup-pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcoup-pick-body strong { font-size: 13px; }
.tcoup-pick-body span { font-size: 11px; color: var(--muted); }
.tcoup-lock { font-size: 11px; font-weight: 700; color: var(--muted); flex-shrink: 0; }

.tcoup-claim {
  margin: 0 16px 12px; padding: 20px 16px 16px;
  border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, #e8faf2, #fff);
  border: 1px solid #d8f3e6;
}
.tcoup-claim.done { background: #fff; }
.tcoup-claim-kicker {
  font-size: 12px; font-weight: 700; color: var(--opay-dark);
  text-transform: uppercase; letter-spacing: .04em;
}
.tcoup-claim-amt {
  margin: 8px 0 6px; font-size: 32px; font-weight: 800; color: var(--opay);
}
.tcoup-claim-copy {
  margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45;
}
.tcoup-claim-icon {
  width: 48px; height: 48px; border-radius: 999px; margin: 0 auto 8px;
  background: var(--opay); color: #fff; display: grid; place-items: center; font-size: 24px;
}
.tcoup-claim h3 { margin: 0 0 4px; font-size: 18px; }

/* ── Target coupon cashier (REQ-002 scheme A/B/C) ── */
.cashier-sheet { padding-bottom: 8px; }
.cashier-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.cashier-amt {
  flex: 1; text-align: center; font-size: 28px; font-weight: 800;
  letter-spacing: -.02em; margin: 0;
}
.cashier-summary {
  margin: 0 16px 12px; padding: 12px 14px; border-radius: 12px;
  background: #f5f6f8;
}
.cashier-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding: 6px 0; font-size: 13px;
}
.cashier-row span { color: var(--muted); flex-shrink: 0; }
.cashier-row strong { text-align: right; font-weight: 600; }
.cashier-row.coupon strong { color: var(--opay); }
.cashier-row.total {
  border-top: 1px solid #e8eaed; margin-top: 4px; padding-top: 10px;
}
.cashier-row.total strong { font-size: 15px; font-weight: 800; }
.cashier-note {
  margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--opay-light); font-size: 12px; color: var(--opay-dark); line-height: 1.45;
}
.cashier-section-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 16px 8px; font-size: 14px; font-weight: 700;
}
.cashier-section-head span { font-size: 12px; font-weight: 600; color: var(--muted); }
.cashier-method {
  margin: 0 16px 8px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid #eee; background: #fff;
}
.cashier-method.on { border-color: var(--opay); }
.cashier-method-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
}
.cashier-method-head .check {
  width: 20px; height: 20px; border-radius: 999px; background: var(--opay);
  color: #fff; display: grid; place-items: center; font-size: 12px;
}
.cashier-split {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.cashier-split-row {
  display: flex; justify-content: space-between; align-items: center;
}
.cashier-split-row em {
  font-style: normal; font-weight: 700; color: var(--text);
}
.cashier-method.alt {
  display: flex; align-items: center; gap: 10px; opacity: .55;
}
.cashier-method.alt .bank-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--opay-light);
  color: var(--opay); display: grid; place-items: center; font-size: 16px;
}
.cashier-method.alt .bank-copy { flex: 1; min-width: 0; }
.cashier-method.alt .bank-copy strong {
  display: block; font-size: 13px; font-weight: 700;
}
.cashier-method.alt .bank-copy span { font-size: 11px; color: var(--muted); }
.cashier-foot { padding: 8px 16px 16px; }

/* ── Target Top-up batch sheet ── */
.tu-batch-sheet { padding: 4px 0 0; }
.tu-batch-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.tu-batch-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.tu-batch-balance {
  margin: 0 0 12px; font-size: 12px; color: var(--muted);
}
.tu-batch-balance strong.green { color: var(--opay); font-weight: 700; }
.tu-batch-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tu-batch-item {
  display: grid; grid-template-columns: 24px 40px 1fr auto; gap: 10px; align-items: center;
  width: 100%; border: 0; background: #f9fafb; border-radius: 12px; padding: 10px;
  text-align: left; cursor: pointer;
}
.tu-batch-item.on { background: #f0fdf4; }
.tu-batch-item.disabled { opacity: .55; cursor: not-allowed; }
.tu-item-check {
  width: 20px; height: 20px; border-radius: 999px; border: 2px solid #d1d5db;
  display: grid; place-items: center; color: #fff; font-size: 12px;
}
.tu-item-check.on { background: var(--opay); border-color: var(--opay); }
.tu-item-icon {
  width: 40px; height: 40px; border-radius: 10px; background: #fff;
  display: grid; place-items: center; overflow: hidden;
}
.tu-item-icon img { width: 100%; height: 100%; object-fit: contain; }
.tu-item-mid { min-width: 0; }
.tu-item-mid strong {
  display: block; font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tu-item-mid span { font-size: 11px; color: var(--muted); }
.tu-item-right { text-align: right; }
.tu-item-right strong { display: block; font-size: 13px; font-weight: 700; }
.tu-item-right span { font-size: 10px; color: var(--muted); }
.tu-batch-foot {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  padding-top: 8px; border-top: 1px solid #f0f0f0;
}
.tu-all-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer;
}
.tu-check {
  width: 18px; height: 18px; border-radius: 999px; border: 2px solid #d1d5db;
}
.tu-check.on { border-color: var(--opay); background: var(--opay); }
.tu-total {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.tu-total strong { color: var(--text); font-size: 14px; }
.tu-submit-btn { grid-column: 1 / -1; margin-top: 4px; }
.tu-result-page { padding: 24px 16px; }
.tu-share-banner {
  display: flex; align-items: center; gap: 10px;
  background: #e8f8f0; border-radius: 14px; padding: 12px; margin-top: 24px;
}
.tu-share-icon { font-size: 28px; }
.tu-share-copy { flex: 1; min-width: 0; }
.tu-share-copy strong { display: block; font-size: 13px; }
.tu-share-copy span { font-size: 11px; color: var(--muted); }
.tu-share-btn {
  border: 0; background: var(--opay); color: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}

/* ── Single Target Top-up form ── */
.tu-form-sheet .sheet-head { padding: 14px 16px; }
.tu-form-body { padding: 16px 16px 20px; }
.tu-form-body .tu-single-sub {
  margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--opay);
}
.tu-form-body .tu-single-label {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px;
}
.tu-form-body .tu-single-input {
  display: flex; align-items: center; gap: 8px;
  background: #f3f4f6; border-radius: 12px; padding: 14px 16px; margin-bottom: 8px;
}
.tu-single-currency { font-size: 16px; font-weight: 600; color: var(--muted); }
.tu-form-body .tu-single-input input {
  flex: 1; border: 0; background: transparent; font-size: 18px; font-weight: 700;
  outline: none; min-width: 0;
}
.tu-amount-error { margin: 0 0 12px; font-size: 12px; color: #dc2626; }
.tu-form-body .tu-single-submit { margin-top: 16px; }
.tu-single-submit.btn-disabled {
  background: #c8e6d6; color: #fff; cursor: not-allowed;
}

/* ── Target Detail ── */
.td-page { padding: 0 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.td-hero { padding: 14px; }
.td-hero-head {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 2px 10px; align-items: center;
}
.td-hero-icon {
  width: 44px; height: 44px; border-radius: 12px; background: #f3f4f6;
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.td-hero-icon img { width: 100%; height: 100%; object-fit: contain; }
.td-hero-mid { grid-column: 2; min-width: 0; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.td-hero-body { margin-top: 10px; }
.td-hero-name { font-size: 14px; font-weight: 700; line-height: 1.15; }
.td-hero-status-col { grid-column: 3; text-align: right; flex-shrink: 0; }
.td-hero-pct { font-size: 14px; font-weight: 800; }
.td-hero-pct.completed { color: var(--opay); }
.td-hero-pct.expired { color: var(--muted); }
.td-hero-status { font-size: 10px; font-weight: 600; color: var(--muted); }
.td-hero-status.completed { color: var(--opay); }
.td-hero-amount {
  font-size: 12px; color: var(--muted); line-height: 1.15;
}
.td-hero-amount strong { color: var(--text); font-weight: 700; }
.td-progress-row {
  display: flex; align-items: center; gap: 8px;
}
.td-progress-row .td-progress-wrap {
  flex: 1; min-width: 0; margin-bottom: 0;
}
.td-progress-wrap {
  position: relative;
}
.td-progress-row + .td-ahead-msg,
.td-progress-row + .td-schedule-msg,
.td-progress-row + .td-behind-row,
.td-progress-row + .mtc-bottom {
  margin-top: 6px;
}
.td-progress-wrap.behind .td-time-ghost {
  border-color: #fbbf24; background: rgba(251, 191, 36, .08);
}
.td-progress-wrap.ahead .td-time-ghost {
  border-color: #86efac; background: rgba(134, 239, 172, .1);
}
.td-time-ghost {
  position: absolute; left: 0; top: 0; height: 5px;
  border-right: 2px dashed #c4c9d0;
  border-radius: 999px 0 0 999px;
  pointer-events: none; z-index: 1;
}
.td-progress-track {
  position: relative; height: 5px; background: #e5e7eb; border-radius: 999px;
}
.td-progress-track .fill { height: 100%; border-radius: 999px; background: var(--opay); }
.td-progress-track .fill.warn { background: #fbbf24; }
.td-progress-track .fill.ahead { background: var(--opay); }
.td-progress-track .fill.grey { background: #d1d5db; }
.td-withdraw-btn {
  border: 0; background: var(--opay); color: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 10px; font-weight: 700; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.td-withdraw-btn.block {
  display: block; margin-top: 10px; margin-left: auto; width: fit-content;
}
.td-behind-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px;
}
.td-behind-row p { margin: 0; font-size: 10px; color: var(--muted); line-height: 1.35; flex: 1; }
.td-inline-topup {
  border: 0; background: var(--opay); color: #fff; border-radius: 999px;
  padding: 5px 12px; font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.td-ahead-msg { margin: 6px 0 0; font-size: 10px; color: var(--opay); font-weight: 600; }
.td-schedule-msg { margin: 6px 0 0; font-size: 10px; color: var(--muted); line-height: 1.35; }
.td-schedule-msg.behind { color: #b45309; }
.td-expired-note { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.td-interest-box {
  background: #e8f8f0; border-radius: 12px; padding: 12px;
}
.td-interest-box.completed p {
  margin: 8px 0 0; font-size: 11px; color: var(--opay); line-height: 1.45;
}
.td-interest-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
}
.td-interest-head strong { color: var(--opay); font-size: 15px; }
.td-info-box {
  background: #f3f4f6; border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.td-info-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.td-info-row strong { font-size: 13px; }
.td-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.td-action {
  border: 0; margin-bottom: 0; padding: 12px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.td-action-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--opay-light);
  color: var(--opay); display: grid; place-items: center; font-size: 20px;
}
.td-config { padding: 14px; }
.td-config-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
}
.td-config-label {
  display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px;
}
.td-config-grid strong, .td-config-full strong {
  font-size: 13px; font-weight: 700;
}
.td-config-full {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f0f0;
}
.td-activities h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.td-act-list { padding: 0 14px; }
.td-act-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid #f3f4f6;
}
.td-act-item:last-of-type { border-bottom: 0; }
.td-act-left strong { display: block; font-size: 13px; font-weight: 600; }
.td-act-left span { font-size: 10px; color: var(--muted); }
.td-act-amt { font-size: 13px; font-weight: 700; white-space: nowrap; }
.td-view-more {
  display: block; width: 100%; border: 0; background: transparent;
  color: var(--opay); font-size: 12px; font-weight: 600; padding: 12px 0; cursor: pointer;
}

/* ── Fixed create flow ── */
#view-fixed_create .topbar,
#view-fixed_create_preview .topbar,
#view-fixed_create_result .topbar {
  gap: 4px;
}
.fx-card { margin: 0 16px 12px; padding: 16px; }
.fx-label {
  display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.fx-label.muted-lab { color: var(--text); }
.fx-amount-row {
  display: flex; align-items: center; gap: 4px;
  border-bottom: 1px dashed #d1d5db; padding-bottom: 10px;
}
.fx-amount-row.error { border-bottom-color: #ef4444; border-bottom-style: solid; }
.fx-naira { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.fx-amount-row input {
  flex: 1; border: 0; outline: none; font-size: 28px; font-weight: 700; min-width: 0;
  background: transparent; color: var(--text); line-height: 1.1;
}
.fx-amount-row input::placeholder { color: #c4c4c4; font-weight: 600; }
.fx-amount-row .green { color: var(--opay); font-size: 16px; }
.fx-bal { margin-top: 10px; font-size: 13px; color: var(--muted); }
.fx-bal strong { color: var(--opay); font-weight: 700; }
.fx-err { margin: 8px 0 0; font-size: 12px; color: #ef4444; }
.fx-kv {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 14px; font-size: 14px;
}
.fx-kv span { color: var(--muted); }
.fx-kv strong { font-weight: 700; text-align: right; color: var(--text); }
.fx-kv .green { color: var(--opay); }
.fx-switch-row { align-items: center; }
.fx-switch-row > span { color: var(--text); font-weight: 600; font-size: 13px; }
.fx-slider-row {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
}
.fx-bound {
  font-size: 13px; font-weight: 600; color: var(--muted); flex-shrink: 0; min-width: 18px;
  text-align: center;
}
.fx-step {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--opay);
  background: #fff; color: var(--opay); font-size: 18px; line-height: 1;
  cursor: pointer; flex-shrink: 0; display: grid; place-items: center; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.fx-step:active { background: var(--opay-light); }
.fx-step:hover { background: #fff; }
.fx-slider-wrap { flex: 1; min-width: 0; position: relative; height: 36px; }
.fx-range-track {
  position: absolute; left: 16px; right: 16px; top: 0; bottom: 0; pointer-events: none;
}
.fx-range-rail {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 6px; border-radius: 999px; background: #d8f0e4;
}
.fx-range-fill {
  height: 100%; border-radius: 999px; background: var(--opay); width: 0%;
}
.fx-range-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px;
  background: var(--opay); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center; z-index: 1;
  box-shadow: 0 1px 3px rgba(0,184,117,.35);
}
.fx-range-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer; z-index: 2;
  -webkit-appearance: none; appearance: none;
  touch-action: none;
}
.fx-range-input:hover,
.fx-range-input:active,
.fx-range-input:focus {
  outline: none;
}
.fx-date-field {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  border: 0; border-radius: 10px; padding: 12px 14px;
  background: #f3f4f6; font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; font-family: inherit;
}
.fx-date-field i { color: var(--muted); font-size: 18px; }
.fx-ar-label { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fx-badge {
  background: var(--opay-light); color: var(--opay-dark);
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 999px;
}
.fx-ar-desc {
  margin: 8px 0 0; padding: 10px 12px; background: #f3f4f6; border-radius: 10px;
  font-size: 11px; color: var(--muted); line-height: 1.4;
}
.fx-name-input {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px;
  font-size: 14px; outline: none; box-sizing: border-box;
}
.fx-date-sheet { padding-top: 8px; max-height: 70vh; display: flex; flex-direction: column; }
.fx-date-search {
  display: flex; align-items: center; gap: 8px; background: #f3f4f6;
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px;
}
.fx-date-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-size: 11px; color: var(--muted); font-weight: 600; padding: 0 8px 8px 36px;
}
.fx-date-list { overflow-y: auto; flex: 1; }
.fx-date-row {
  width: 100%; display: grid; grid-template-columns: 24px 1fr 1fr; gap: 8px; align-items: center;
  border: 0; background: transparent; padding: 12px 8px; border-bottom: 1px solid #f3f4f6;
  font-size: 13px; text-align: left; cursor: pointer;
}
.fx-date-row.on .fx-date-radio {
  border-color: var(--opay); background: var(--opay);
  box-shadow: inset 0 0 0 3px #fff;
}
.fx-date-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d5db;
}
.fx-date-days { font-weight: 600; }
.fx-date-mat { color: var(--muted); text-align: right; }
.fx-preview-card { margin: 0 16px; }
.fx-preview-label { font-size: 12px; color: var(--muted); }
.fx-preview-amt { font-size: 28px; font-weight: 800; color: var(--opay); margin: 4px 0 12px; }
.fx-divider { height: 1px; background: #f0f0f0; margin: 12px 0; }
.fx-warn {
  margin: 14px 0 0; padding: 10px 12px; background: #f3f4f6; border-radius: 10px;
  font-size: 11px; color: var(--muted);
}
.fx-result { text-align: center; padding: 32px 16px 16px; }
.fx-result-icon { font-size: 64px; color: var(--opay); line-height: 1; }
.fx-result-amt { font-size: 28px; font-weight: 800; margin-top: 12px; }
.fx-result-sub { margin: 6px 0 24px; color: var(--muted); font-size: 14px; }
.fx-share-banner {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--opay-light); border-radius: 12px; padding: 12px;
}
.fx-share-art {
  width: 40px; height: 40px; border-radius: 50%; background: var(--opay); color: #fff;
  display: grid; place-items: center; font-weight: 800; flex-shrink: 0;
}
.fx-share-text { flex: 1; min-width: 0; }
.fx-share-text strong { display: block; font-size: 13px; }
.fx-share-text span { font-size: 11px; color: var(--muted); }
.tu-cashier-amt {
  text-align: center; font-size: 28px; font-weight: 800; margin: 8px 0;
}
