/* wallet-v1 — forked from profile-v1.
   Self-contained per prototype principle. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============ APP SHELL ============ */
.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 680px) 320px;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

/* ============ SIDEBAR ============ */
.sidebar { position: sticky; top: 24px; height: calc(100vh - 48px); display: flex; flex-direction: column; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 32px; font-weight: 800; margin-bottom: 36px; color: var(--text); }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.sidebar nav { display: flex; flex-direction: column; gap: 8px; }
.sidebar nav a {
  padding: 14px 18px;
  color: var(--text-soft);
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.sidebar nav a.active,
.sidebar nav a:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.sidebar-foot { display: flex; flex-direction: column; gap: 10px; }
.user-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s, transform 0.05s;
}
.user-pill:hover { border-color: var(--primary); transform: translateY(-1px); }
.user-pill:active { transform: translateY(0); }
.up-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-weight: 800; font-size: 13px;
  background: linear-gradient(135deg, var(--primary), var(--ai));
  flex-shrink: 0; overflow: hidden;
}
.up-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-info { min-width: 0; flex: 1; }
.up-info b {
  display: block; font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.up-info small {
  display: block; font-size: 11px; color: var(--text-soft); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.new-post {
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  padding: 14px 22px;
  font-size: 16px;
}

/* ============ MAIN COLUMN ============ */
.main { min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  min-height: 44px;
}
.topbar .back {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-soft);
  transition: background 0.15s, color 0.15s;
}
.topbar .back:hover { background: var(--surface-soft); color: var(--text); }
.topbar h1 { font-size: 28px; margin: 0; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.topbar-brand { display: none; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.topbar-brand img { width: 24px; height: 24px; object-fit: contain; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.wallet-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700; font-size: 13px;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.wallet-chip:hover { background: var(--surface); border-color: var(--primary); transform: translateY(-1px); }
.wallet-chip .ic { display: inline-flex; align-items: center; line-height: 1; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ============ WALLET HERO (the one place full purple is allowed) ============ */
.wallet-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-md);
  padding: 28px 24px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.wallet-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.15), transparent);
  pointer-events: none;
}
.wallet-hero .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.wallet-hero .eye {
  color: rgba(255,255,255,0.78);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.wallet-hero .eye:hover { background: rgba(255,255,255,0.14); color: white; }
.wallet-hero .eye svg { display: block; }
.wallet-hero .balance {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.wallet-hero .balance small { font-size: 16px; font-weight: 700; opacity: 0.85; margin-left: 6px; }
.wallet-hero .usd {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  margin-top: 6px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.hero-actions::-webkit-scrollbar { display: none; }
.hero-actions.dragging { cursor: grabbing; }
.hero-actions .act {
  flex: 0 0 calc((100% - 42px) / 4);   /* 4 visible, 3 gaps × 14px */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-actions .act .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: background 0.15s;
}
.hero-actions .act:hover .ic { background: rgba(255,255,255,0.26); }

/* ============ TABS ============ */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.tabs .tab {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tabs .tab.active { color: var(--text); border-bottom-color: var(--text); }
.tabs .tab:hover:not(.active) { color: var(--text); background: var(--surface-soft); }

/* ============ TRANSACTION LIST ============ */
.tx-list { list-style: none; padding: 0; margin: 0; }
.tx-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.tx-list li:last-child { border-bottom: 0; }
.tx-list .ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--surface-soft);
}
.tx-list .ic.earned { background: rgba(16,185,129,0.12); }
.tx-list .ic.spent  { background: rgba(107,114,128,0.12); }
.tx-list .ic.topup  { background: rgba(59,130,246,0.12); }
.tx-list .meta { flex: 1; min-width: 0; }
.tx-list .meta b { display: block; font-weight: 700; font-size: 14px; line-height: 1.4; }
.tx-list .meta .note {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-list .meta .time { color: var(--text-muted); font-size: 12px; margin-top: 2px; display: block; }
.tx-list .amt {
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tx-list .amt.earned { color: var(--success); }
.tx-list .amt.spent  { color: var(--text); }
.tx-list .amt.topup  { color: var(--secondary); }
.tx-list .amt .unit { font-size: 11px; font-weight: 600; opacity: 0.7; margin-left: 4px; }

/* ============ RIGHT PANEL ============ */
.right-panel { display: flex; flex-direction: column; gap: 18px; }
.right-panel .card { padding: 20px; }
.right-panel h2 { font-size: 16px; margin: 0 0 14px; font-weight: 700; }

/* Month stats */
.month-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.month-stats .cell {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.month-stats .cell .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-soft);
}
.month-stats .cell.earned .k { color: var(--success); }
.month-stats .cell .v {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.month-stats .cell .unit { font-size: 11px; font-weight: 600; opacity: 0.6; margin-left: 3px; }

/* Sources stacked bar */
.sources-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-soft);
  margin-bottom: 12px;
}
.sources-bar .seg { height: 100%; }
.sources-list { list-style: none; padding: 0; margin: 0; }
.sources-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
}
.sources-list .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sources-list .lbl { flex: 1; color: var(--text-soft); }
.sources-list .val { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Token rate card */
.rate-card { text-align: left; }
.rate-card .rate {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.rate-card .rate small { font-size: 13px; font-weight: 600; color: var(--text-soft); margin-left: 4px; }
.rate-card .desc { color: var(--text-soft); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.rate-card .buy {
  margin-top: 14px;
  width: 100%;
  padding: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
  font-size: 13px;
}

/* Quick send (contacts) */
.contacts { display: flex; gap: 14px; }
.contacts .c {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-soft);
}
.contacts .avatar { width: 44px; height: 44px; font-size: 16px; }

/* ============ AVATAR ============ */
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: white; font-weight: 800; flex-shrink: 0; user-select: none; }
.avatar.g1 { background: linear-gradient(135deg, var(--primary), var(--ai)); }
.avatar.g2 { background: linear-gradient(135deg, var(--ai), var(--info)); }
.avatar.g3 { background: linear-gradient(135deg, var(--success), var(--ai)); }
.avatar.g4 { background: linear-gradient(135deg, var(--accent), var(--accent-warm)); }
.avatar.g5 { background: linear-gradient(135deg, var(--primary), var(--accent)); }

/* ============ BACK TO TOP ============ */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.32);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background 0.15s;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
@media (hover: hover) {
  .to-top:hover { background: var(--primary-dark); }
}
.to-top:active { transform: translateY(0) scale(0.94); }
@media (max-width: 720px) {
  .to-top {
    bottom: 88px; right: 16px; width: 42px; height: 42px;
    transition: opacity 0.2s, transform 0.2s, background 0.15s,
                bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body.nav-hidden .to-top { bottom: 28px; }
}

/* ============ MOBILE NAV ============ */
.mobile-nav { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 12px;
    padding-bottom: 96px;
    gap: 12px;
  }
  .sidebar,
  .right-panel { display: none; }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 4px;
    margin: 0 0 12px;
  }
  .topbar h1 { display: none; }
  .topbar-brand { display: inline-flex; flex: 1; }

  .wallet-hero .balance { font-size: 32px; }

  .sum-card { padding: 14px 16px; gap: 8px; }
  .sum-cell b { font-size: 15px; }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 10px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 20;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  }
  .mobile-nav.nav-hidden {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }
  .mobile-nav a {
    text-align: center;
    font-size: 12px;
    color: var(--text-soft);
    padding: 8px 4px;
  }
  .mobile-nav a.active { color: var(--text); font-weight: 600; }
  .mobile-nav .compose-btn {
    width: 46px;
    height: 46px;
    margin: auto;
    padding: 0;
    border-radius: 50%;
    background: var(--cta-bg);
    color: var(--cta-text);
    display: grid;
    place-items: center;
    line-height: 1;
  }
}

/* ============ TOKEN-DETAIL ADDITIONS ============ */
.tx-list .ic.gas  { background: rgba(245, 158, 11, 0.14); }
.tx-list .amt.gas { color: #b45309; }

.month-extra {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.6;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.info-card ul { list-style: none; margin: 0; padding: 0; }
.info-card li {
  position: relative;
  padding: 6px 0 6px 16px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}
.info-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.info-card li b { color: var(--text); }

.w-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--text);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.2s, transform 0.2s;
}
.w-toast.show { opacity: 0.92; transform: translate(-50%, 0); }
.w-toast[hidden] { display: none !important; }

/* ============ ADS-WALLET ADDITIONS ============ */

/* Hero breakdown */
.hero-break {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.hero-break .hb {
  flex: 1;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 0;
}
.hero-break .hb small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-break .hb b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.hero-actions .act { flex: 0 0 calc((100% - 28px) / 3); }

/* Today summary */
.sum-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.sum-cell small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.sum-cell b {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.sum-cell .unit { font-size: 11px; font-weight: 600; color: var(--text-soft); }

/* Campaigns (merchant view) */
.camps-card { padding: 20px; margin-bottom: 18px; }
.camps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.camps-head h2 { font-size: 16px; margin: 0; }
.camps-note { font-size: 12px; color: var(--text-soft); white-space: nowrap; }
.camps-note a { color: var(--primary-dark); font-weight: 700; }
.camps-note a:hover { color: var(--primary); }
.camps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.camps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.camps-list li:last-child { border-bottom: 0; }
.camps-list li.paused .avatar,
.camps-list li.paused .c-body { opacity: 0.55; }
.camps-list .avatar { width: 40px; height: 40px; font-size: 14px; }
.c-body { flex: 1; min-width: 0; }
.c-body b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.c-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.c-meta, .c-stats {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.c-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-soft);
  margin-top: 6px;
  overflow: hidden;
}
.c-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.camps-list li.paused .c-bar i { background: var(--text-muted); }
.c-actions { flex-shrink: 0; }
.c-adjust {
  display: inline-block;
  text-align: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  transition: border-color 0.15s, background 0.15s;
}
.c-adjust:hover { border-color: var(--primary); background: var(--primary-soft); }
.camps-foot {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.5;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

/* Explainer card */
.explain-card { padding: 20px; margin-bottom: 18px; }
.explain-card h2 { font-size: 16px; margin: 0 0 14px; }
.explain-flow { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.explain-flow li { display: flex; gap: 12px; align-items: flex-start; }
.explain-flow .step {
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.explain-flow b { font-size: 14px; }
.explain-flow small { display: block; color: var(--text-soft); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.explain-flow small b { font-size: 12px; color: var(--text); }

/* Fee list (right panel) */
.fee-list { list-style: none; padding: 0; margin: 0; }
.fee-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.fee-list li:last-child { border-bottom: 0; }
.fee-list .k { color: var(--text-soft); }
.fee-list .v { font-weight: 700; text-align: right; }
.fee-list .v.free { color: var(--success); }

/* Tx icon tints per kind */
.tx-list .ic.k-affiliate { background: var(--primary-soft); color: var(--primary-dark); }
.tx-list .ic.k-deposit   { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.tx-list .ic.k-income    { color: #047857; }

/* ============ MODALS ============ */
.aw-modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
}
.aw-modal[hidden] { display: none !important; }
.aw-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
}
.aw-card {
  position: relative;
  width: 100%; max-width: 380px;
  background: var(--surface);
  border-radius: 22px;
  padding: 24px 22px 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
  animation: aw-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes aw-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.aw-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.aw-sub { margin: 0 0 16px; font-size: 12px; color: var(--text-soft); line-height: 1.6; }
.aw-sub b { color: var(--text); }

.aw-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.aw-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  outline: none;
  font-variant-numeric: tabular-nums;
}
.aw-input input::-webkit-outer-spin-button,
.aw-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.aw-input input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.aw-input span { font-size: 12px; font-weight: 700; color: var(--text-soft); }

.aw-chips { display: flex; gap: 8px; margin-top: 10px; }
.aw-chips button {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  transition: border-color 0.15s, color 0.15s;
}
.aw-chips button:hover { border-color: var(--primary); color: var(--primary-dark); }

.aw-breakdown {
  margin-top: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 4px 14px;
}
.aw-breakdown > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--line);
}
.aw-breakdown > div:last-child { border-bottom: 0; }
.aw-breakdown span { color: var(--text-soft); }
.aw-breakdown b { font-weight: 700; font-variant-numeric: tabular-nums; }
.aw-breakdown .total b { color: var(--primary-dark); font-weight: 800; }

.aw-note { margin: 12px 2px 0; font-size: 11px; color: var(--text-muted); }
.aw-note b { color: var(--text-soft); font-variant-numeric: tabular-nums; }

.aw-actions { display: flex; gap: 10px; margin-top: 16px; }
.aw-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 13px;
}
.aw-cancel:hover { color: var(--text); }
.aw-confirm {
  flex: 1.6;
  padding: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 800;
  font-size: 13px;
  transition: opacity 0.15s, transform 0.05s;
}
.aw-confirm:disabled { opacity: 0.4; cursor: not-allowed; }
.aw-confirm:not(:disabled):active { transform: translateY(1px); }
