/* FastWallet — экраны приложения */

.page { padding: 0 16px 24px; }
.page-tight { padding: 0 16px 16px; }
.pane-pad { padding: 0 16px; }
.section-gap { height: 12px; }
.mt-4 { margin-top: 4px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.align-start { align-items: flex-start; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Home ---------- */
.home-hero { padding-bottom: 30px; }
.home-sheet { padding-top: 20px; }
.home-sheet .sheet-handle { margin-bottom: 10px; }
.recent-list { margin-top: 0; }
.see-all { display: flex; align-items: center; gap: 3px; color: var(--accent); font-size: 13px; font-weight: 650; }
.rate-strip .rate-scroll { display: flex; gap: 12px; overflow: hidden; flex: 1; }
.asset-row .asset-icon { width: 42px; height: 42px; }
.asset-row .locked-hint { color: var(--warn); font-size: 10.5px; font-weight: 600; }
.home-tip {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  border-radius: 17px;
  background: linear-gradient(135deg, #ece9ff, #e8f0ff);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 12px;
}
.home-tip .ic { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.home-tip b { font-weight: 750; }

/* ---------- Payments ---------- */
.pay-block { background: var(--surface); border-radius: 24px; padding: 17px 15px; margin-bottom: 12px; }
.pay-block h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 13px; }
.pay-block .block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.pay-block .block-head h2 { margin: 0; }
.transfer-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 9px 0 14px;
  border-radius: 17px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
}
.transfer-search:focus-within { border-color: var(--accent); background: #fff; }
.transfer-search .ic { color: var(--muted); }
.transfer-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; }
.transfer-search input::placeholder { color: var(--muted-2); }
.transfer-search .qr-btn { width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.tile-scroll { display: flex; gap: 8px; overflow-x: auto; margin: 11px -15px 0; padding: 0 15px 2px; scrollbar-width: none; }
.tile-scroll::-webkit-scrollbar { display: none; }
.mini-tile {
  flex: 0 0 84px;
  min-height: 92px;
  border-radius: 17px;
  background: var(--surface-2);
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.25;
  text-align: center;
  color: var(--ink-2);
}
.mini-tile-ic { width: 36px; height: 36px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--accent); box-shadow: 0 2px 8px rgba(24,26,51,.06); }
.mini-tile-ic.green { color: var(--ok); }
.mini-tile-ic.orange { color: #e8852e; }
.mini-tile-ic.blue { color: var(--blue); }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pay-tile {
  position: relative;
  min-height: 108px;
  border-radius: 18px;
  background: var(--surface-2);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 550;
  line-height: 1.25;
  color: var(--ink-2);
}
.pay-tile:active { background: var(--surface-3); }
.pay-tile-ic { width: 40px; height: 40px; border-radius: 13px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--accent); box-shadow: 0 2px 8px rgba(24,26,51,.05); }
.pay-tile-ic.dark { background: var(--ink); color: #fff; }
.pay-tile-ic.blue { color: var(--blue); }
.pay-tile-ic.orange { color: #e8852e; }
.pay-tile-ic.green { color: var(--ok); }
.soon-tag { position: absolute; top: 8px; right: 7px; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 8.5px; font-weight: 750; letter-spacing: .2px; }
.pay-footnote { display: flex; gap: 7px; align-items: flex-start; padding: 11px 12px; border-radius: 13px; background: var(--surface-2); color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 13px; }
.pay-footnote .ic { flex: 0 0 auto; color: var(--accent); margin-top: 1px; }

/* ---------- History ---------- */
.history-group { margin-bottom: 16px; }
.history-date { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; padding: 0 6px 7px; }
.history-row { border-radius: 16px; }
.history-row .row-amount { font-size: 14px; }
.op-ic { width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.op-ic.in { background: var(--ok-soft); color: var(--ok); }
.op-ic.out { background: var(--bad-soft); color: var(--bad); }
.op-ic.neutral { background: var(--accent-soft); color: var(--accent); }
.history-empty { padding: 40px 12px; }

/* ---------- Detail screens ---------- */
.detail-page { padding-bottom: calc(28px + var(--safe-bottom)); }
.detail-hero { padding: 8px 18px 18px; text-align: center; }
.detail-hero .detail-icon { margin: 4px auto 12px; }
.detail-hero h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.detail-hero p { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.amount-hero { text-align: center; padding: 8px 18px 18px; }
.amount-display { display: flex; align-items: center; justify-content: center; gap: 6px; }
.amount-display input {
  width: 100%;
  max-width: 280px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.amount-display .cur { font-size: 28px; font-weight: 700; color: var(--muted); letter-spacing: -0.5px; }
.amount-under { font-size: 12.5px; color: var(--muted); margin-top: 5px; min-height: 18px; }
.amount-under b { color: var(--ink); font-weight: 650; }
.asset-picker { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.asset-picker::-webkit-scrollbar { display: none; }
.asset-pick { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--surface); border: 1.5px solid transparent; font-size: 12px; font-weight: 650; }
.asset-pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.asset-pick .asset-icon { width: 26px; height: 26px; }
.asset-pick .net { font-size: 9.5px; color: var(--muted); font-weight: 550; }
.addr-card { background: var(--surface); border-radius: 22px; padding: 18px; text-align: center; }
.addr-card .qr { max-width: 190px; }
.addr-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.addr-text { font-size: 12.5px; font-weight: 600; word-break: break-all; margin-top: 13px; line-height: 1.5; }
.addr-actions { display: flex; gap: 8px; margin-top: 12px; }
.addr-actions .btn { flex: 1; min-height: 42px; font-size: 13px; }
.warning-box { display: flex; gap: 10px; padding: 13px 14px; border-radius: 16px; background: var(--warn-soft); color: #8a5a10; font-size: 12px; line-height: 1.45; }
.warning-box .ic { flex: 0 0 auto; margin-top: 1px; }
.info-box { display: flex; gap: 10px; padding: 13px 14px; border-radius: 16px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 1.45; }
.info-box .ic { flex: 0 0 auto; color: var(--accent); margin-top: 1px; }
.summary { background: var(--surface); border-radius: 18px; padding: 4px 15px; }
.summary-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 11px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.summary-line:last-child { border-bottom: 0; }
.summary-line .k { color: var(--muted); flex: 0 0 auto; }
.summary-line .v { text-align: right; font-weight: 650; word-break: break-word; }
.summary-line .v.mono { font-size: 11.5px; }
.summary-line.total { font-size: 15px; padding: 14px 0; }
.summary-line.total .v { font-size: 17px; font-weight: 800; }
.fee-note { font-size: 11px; color: var(--muted); padding: 9px 6px 0; line-height: 1.5; }
.detail-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.max-chip { min-height: 52px; padding: 0 13px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; }
.op-status-hero { padding: 20px 18px 14px; text-align: center; }
.op-status-hero .op-big-ic { width: 66px; height: 66px; border-radius: 22px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: var(--shadow); }
.op-status-hero .op-big-ic.in { background: var(--ok-soft); color: var(--ok); }
.op-status-hero .op-big-ic.out { background: var(--bad-soft); color: var(--bad); }
.op-status-hero .op-big-ic.neutral { background: var(--accent-soft); color: var(--accent); }
.op-status-hero .amount-value { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-top: 6px; }
.op-status-hero .amount-value.in { color: var(--ok); }
.op-status-hero .amount-value.out { color: var(--ink); }
.op-status-hero .amount-value.neutral { color: var(--accent); }
.op-status-hero .op-amount-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.op-status-hero h3 { font-size: 16px; font-weight: 700; margin-top: 12px; }
.receipt-card { border-radius: 22px; overflow: hidden; background: var(--surface); }

/* ---------- Products ---------- */
.product-hero {
  position: relative;
  border-radius: 26px;
  padding: 22px 20px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 90% 0%, rgba(150, 132, 255, .85), transparent 60%),
    linear-gradient(140deg, #27224f, #40338a 60%, #5144a8);
  overflow: hidden;
  margin-bottom: 14px;
}
.product-hero h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; max-width: 230px; line-height: 1.15; }
.product-hero p { font-size: 12.5px; color: rgba(255,255,255,.68); margin-top: 7px; max-width: 240px; line-height: 1.45; }
.product-hero .btn { margin-top: 16px; min-height: 42px; font-size: 13px; position: relative; z-index: 1; }
.product-hero .hero-art { position: absolute; right: 12px; bottom: 8px; opacity: .95; }
.bank-card {
  position: relative;
  width: 142px;
  aspect-ratio: 1.58;
  border-radius: 15px;
  background: linear-gradient(140deg, #9b8cff, #4d78e8 60%, #6d5ce7);
  box-shadow: 0 14px 30px rgba(9, 10, 30, .35);
  padding: 11px;
  color: #fff;
  overflow: hidden;
  transform: rotate(-7deg);
}
.bank-card::before { content: ""; position: absolute; width: 100px; height: 100px; right: -30px; top: -30px; border-radius: 50%; border: 14px solid rgba(255,255,255,.14); }
.bank-card .bc-brand { font-size: 7px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; opacity: .9; }
.bank-card .bc-chip { width: 22px; height: 16px; border-radius: 4px; background: linear-gradient(135deg, #f5dd9b, #c9a14e); margin-top: 12px; }
.bank-card .bc-num { font-size: 8px; letter-spacing: 1px; margin-top: 9px; opacity: .82; }
.bank-card .bc-net { position: absolute; right: 10px; bottom: 9px; font-size: 9px; font-weight: 800; font-style: italic; }
.bank-card.silver { background: linear-gradient(140deg, #d7dbe7, #98a0b5 55%, #6c7488); color: #222539; }
.bank-card.dark { background: linear-gradient(140deg, #262a3e, #40445c 60%, #262a3e); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-card { background: var(--surface); border-radius: 20px; padding: 15px; text-align: left; display: flex; flex-direction: column; min-height: 132px; }
.product-card .pc-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.product-card h3 { font-size: 14px; font-weight: 700; margin-top: 12px; letter-spacing: -0.2px; }
.product-card p { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.product-card .tag { margin-top: auto; align-self: flex-start; }
.product-wide { background: var(--surface); border-radius: 20px; padding: 15px; display: flex; align-items: center; gap: 13px; }
.product-wide .pw-main { flex: 1; }
.product-wide h3 { font-size: 14px; font-weight: 700; }
.product-wide p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.product-wide .pw-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.product-note { font-size: 11px; color: var(--muted); line-height: 1.5; padding: 12px 6px 0; }

/* ---------- Cards ---------- */
.card-product { background: var(--surface); border-radius: 22px; padding: 17px; margin-bottom: 11px; }
.card-product-top { display: flex; gap: 13px; align-items: center; }
.card-product-info { flex: 1; min-width: 0; }
.card-product-info h3 { font-size: 15.5px; font-weight: 750; }
.card-product-info p { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.card-features { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; }
.card-features li { display: flex; gap: 8px; font-size: 12px; color: var(--ink-2); }
.card-features .ic { color: var(--ok); flex: 0 0 auto; margin-top: 1px; }
.card-price { font-size: 12px; font-weight: 700; color: var(--accent); }
.card-request-status { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border-radius: 13px; background: var(--accent-soft); color: var(--ink-2); font-size: 11.5px; line-height: 1.4; }
.card-request-status .ic { color: var(--accent); flex: 0 0 auto; }

/* ---------- Cashback ---------- */
.bonus-card {
  position: relative;
  border-radius: 26px;
  padding: 20px;
  color: #fff;
  background:
    radial-gradient(80% 100% at 85% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, #7467f3 0%, #5f7ef0 55%, #6d5ce7 100%);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(89, 79, 220, .25);
}
.bonus-card::after { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 30px solid rgba(255,255,255,.07); right: -70px; bottom: -100px; }
.bonus-label { font-size: 12px; color: rgba(255,255,255,.72); font-weight: 550; }
.bonus-value { font-size: 38px; font-weight: 800; letter-spacing: -1.4px; margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.bonus-value span { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: 0; }
.bonus-card .btn { margin-top: 16px; width: 100%; background: #fff; color: var(--ink); min-height: 44px; font-size: 13.5px; position: relative; z-index: 1; }
.bonus-card .btn:disabled { opacity: .55; }
.cash-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cash-stat { background: var(--surface); border-radius: 20px; padding: 15px; }
.cash-stat .cs-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.cash-stat h3 { font-size: 13px; font-weight: 700; }
.cash-stat p { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.cash-stat .link { font-size: 11.5px; margin-top: 8px; display: inline-block; }
.referral-card { background: var(--surface); border-radius: 22px; padding: 16px; }
.referral-code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-top: 12px;
}
.referral-code span { flex: 1; }
.referral-code button { color: var(--accent); }
.referral-stats { display: flex; gap: 20px; margin-top: 14px; }
.referral-stats b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.referral-stats span { font-size: 10.5px; color: var(--muted); }
.offer-row { display: flex; align-items: center; gap: 12px; padding: 13px 15px; }
.offer-ic { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); flex: 0 0 auto; }
.offer-skel { filter: blur(0); }
.bonus-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.bonus-history-row:last-child { border-bottom: 0; }
.bonus-history-row b { font-variant-numeric: tabular-nums; }
.bonus-history-row b.plus { color: var(--ok); }
.bonus-history-row b.minus { color: var(--bad); }

/* ---------- More / profile ---------- */
.profile-card { display: flex; align-items: center; gap: 13px; background: var(--surface); border-radius: 22px; padding: 16px; }
.profile-card .pc-main { flex: 1; min-width: 0; }
.profile-card h2 { font-size: 17px; font-weight: 750; letter-spacing: -0.2px; }
.profile-card p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.menu-group { background: var(--surface); border-radius: 20px; overflow: hidden; margin-top: 12px; }
.menu-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 15px; text-align: left; position: relative; background: var(--surface); }
.menu-row + .menu-row::before { content: ""; position: absolute; top: 0; left: 61px; right: 15px; height: 1px; background: var(--line); }
.menu-ic { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); flex: 0 0 auto; }
.menu-main { flex: 1; min-width: 0; }
.menu-main b { display: block; font-size: 14px; font-weight: 650; }
.menu-main span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.menu-row .chev { color: var(--muted-2); }
.menu-row.danger .menu-main b { color: var(--bad); }
.menu-row.danger .menu-ic { color: var(--bad); background: var(--bad-soft); }
.menu-badge { font-size: 10px; padding: 3px 7px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.menu-badge.red { background: var(--bad-soft); color: var(--bad); }
.app-version { text-align: center; color: var(--muted-2); font-size: 10.5px; padding: 22px 0 8px; line-height: 1.5; }
.about-logo { width: 90px; height: 90px; border-radius: 26px; background: #fff; padding: 8px; box-shadow: var(--shadow); margin: 10px auto 16px; }
.about-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 19px; }
.about-text { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.55; padding: 0 8px; }
.about-version { text-align: center; font-size: 11px; color: var(--muted-2); margin-top: 8px; }
.legal { font-size: 11px; line-height: 1.6; color: var(--muted); padding: 14px 4px; }
.legal b { color: var(--ink-2); }

/* ---------- Security ---------- */
.sec-section { margin-bottom: 14px; }
.sec-section h2 { font-size: 16px; font-weight: 750; padding: 0 4px 9px; letter-spacing: -0.2px; }
.sec-card { background: var(--surface); border-radius: 20px; padding: 15px; }
.session-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.session-row:last-child { border-bottom: 0; }
.session-row .sr-main { flex: 1; min-width: 0; }
.session-row b { font-weight: 650; }
.session-row p { color: var(--muted); font-size: 11px; margin-top: 2px; word-break: break-word; }
.totp-secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 2px; background: var(--surface-2); border-radius: 12px; padding: 12px; text-align: center; word-break: break-all; margin-top: 10px; }

/* ---------- Support / notifications ---------- */
.notif-card { display: flex; gap: 12px; background: var(--surface); border-radius: 18px; padding: 14px; margin-bottom: 9px; position: relative; text-align: left; width: 100%; }
.notif-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.notif-card.unread { box-shadow: inset 3px 0 0 var(--accent); }
.notif-main { flex: 1; min-width: 0; }
.notif-main h3 { font-size: 13.5px; font-weight: 700; }
.notif-main p { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.notif-main time { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 6px; }
.ticket-card { background: var(--surface); border-radius: 18px; padding: 15px; margin-bottom: 9px; width: 100%; text-align: left; }
.ticket-card .tc-top { display: flex; align-items: flex-start; gap: 10px; }
.ticket-card h3 { flex: 1; font-size: 13.5px; font-weight: 650; }
.ticket-card p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.notif-bell { position: relative; }
.notif-bell .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border: 1.5px solid var(--bg); }

/* ---------- P2P ---------- */
.p2p-page { padding: 0 16px 24px; }
.p2p-switch { margin-bottom: 12px; }
.p2p-note { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border-radius: 14px; background: var(--accent-soft); color: #4d4691; font-size: 11.5px; line-height: 1.45; margin-bottom: 11px; }
.p2p-note .ic { flex: 0 0 auto; margin-top: 1px; }
.ad-card { background: var(--surface); border-radius: 20px; padding: 15px; margin-bottom: 10px; }
.ad-top { display: flex; align-items: flex-start; gap: 12px; }
.merchant { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.merchant .avatar { width: 38px; height: 38px; font-size: 13px; }
.merchant b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.merchant span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.ad-price { text-align: right; }
.ad-price b { font-size: 20px; font-weight: 800; letter-spacing: -0.6px; display: block; }
.ad-price span { font-size: 10.5px; color: var(--muted); }
.ad-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 11.5px; }
.ad-meta span { color: var(--muted); }
.ad-meta b { font-weight: 650; }
.ad-terms { margin-top: 10px; font-size: 10.5px; color: var(--muted); background: var(--surface-2); border-radius: 9px; padding: 7px 9px; line-height: 1.4; }
.ad-actions { display: flex; gap: 8px; margin-top: 12px; }
.ad-actions .btn { flex: 1; min-height: 40px; font-size: 13px; border-radius: 12px; }
.p2p-empty { padding: 36px 20px; }
.order-banner { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border-radius: 16px; font-size: 12px; line-height: 1.45; margin-bottom: 12px; }
.order-banner.warn { background: var(--warn-soft); color: #8a5a10; }
.order-banner.ok { background: var(--ok-soft); color: #136b4f; }
.order-banner.bad { background: var(--bad-soft); color: #972f36; }
.order-banner .ic { flex: 0 0 auto; margin-top: 1px; }
.order-progress { display: flex; align-items: center; gap: 5px; margin: 14px 0 4px; }
.order-progress i { height: 5px; flex: 1; border-radius: 3px; background: var(--surface-3); }
.order-progress i.on { background: var(--accent); }
.order-progress-labels { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); }
.chat-page { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 0; background: var(--bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-top) + 12px) 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.chat-head .ch-main { flex: 1; min-width: 0; }
.chat-head h1 { font-size: 15px; font-weight: 750; }
.chat-head p { font-size: 11px; color: var(--muted); margin-top: 1px; }
.chat-body { flex: 1; padding: 14px 14px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 15px 15px 15px 5px; background: #fff; font-size: 13px; line-height: 1.4; align-self: flex-start; box-shadow: 0 1px 2px rgba(17,19,38,.04); }
.msg.mine { align-self: flex-end; background: var(--grad); color: #fff; border-radius: 15px 15px 5px 15px; }
.msg .m-time { display: block; font-size: 9px; opacity: .6; margin-top: 3px; text-align: right; }
.msg .m-name { display: block; font-size: 9.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.chat-day { text-align: center; font-size: 10px; color: var(--muted); padding: 6px 0; }
.chat-composer { display: flex; gap: 8px; padding: 9px 12px calc(9px + var(--safe-bottom)); background: var(--surface); border-top: 1px solid var(--line); position: sticky; bottom: 0; }
.chat-composer input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: var(--surface-2); border-radius: 14px; padding: 0 14px; font-size: 15px; }
.chat-composer button { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.chat-actions { padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.ad-form .cash-hint { font-size: 11px; color: var(--muted); padding: 6px 4px 0; line-height: 1.45; }
.quick-amounts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick-amounts button { padding: 6px 11px; border-radius: 9px; background: var(--surface); font-size: 11.5px; font-weight: 600; color: var(--muted); }

/* ---------- Notification / ticket chat layout ---------- */
.detail-chat { display: flex; flex-direction: column; min-height: 100vh; }
.detail-chat .chat-body { flex: 1; }

/* ---------- Admin teaser ---------- */
.admin-teaser { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--grad-deep); color: #fff; margin-top: 12px; }
.admin-teaser .at-main { flex: 1; }
.admin-teaser b { display: block; font-size: 13.5px; font-weight: 700; }
.admin-teaser span { display: block; font-size: 11px; color: rgba(255,255,255,.6); margin-top: 1px; }
.admin-teaser .ic { color: #cfc8ff; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 360px) {
  .pay-tile { min-height: 100px; font-size: 10.5px; }
  .asset-card { flex-basis: 146px; }
  .quick { font-size: 10.5px; }
  .product-hero h2 { font-size: 20px; }
}
