:root {
  --bg: var(--tg-theme-bg-color, #fff7fb);
  --text: var(--tg-theme-text-color, #1e1b4b);
  --hint: var(--tg-theme-hint-color, #64748b);
  --panel: var(--tg-theme-secondary-bg-color, #fff);
  --btn: var(--tg-theme-button-color, #7c3aed);
  --btn-text: var(--tg-theme-button-text-color, #fff);
  --line: color-mix(in srgb, var(--text) 8%, transparent);
  --shadow: 0 14px 36px color-mix(in srgb, #7c3aed 14%, transparent);
  --shadow-sm: 0 4px 16px color-mix(in srgb, var(--text) 8%, transparent);
  --shadow-glow: 0 8px 28px rgba(124, 58, 237, .28);
  --radius: 20px;
  --radius-sm: 14px;
  --accent: #7c3aed;
  --accent-2: #ec4899;
  --accent-3: #38bdf8;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --grad-main: linear-gradient(135deg, #f472b6 0%, #a78bfa 48%, #6366f1 100%);
  --grad-hero: linear-gradient(135deg, #f472b6 0%, #c084fc 42%, #38bdf8 100%);
  --grad-wallet: linear-gradient(135deg, #34d399, #10b981);
  --grad-card-pay: linear-gradient(135deg, #60a5fa, #2563eb);
  --grad-crypto: linear-gradient(135deg, #fbbf24, #f59e0b);
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .85);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

body {
  margin: 0;
  font-family: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 8% 0%, rgba(244, 114, 182, .24), transparent 44%),
    radial-gradient(circle at 92% 6%, rgba(56, 189, 248, .22), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(167, 139, 250, .2), transparent 48%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, #a78bfa 18%, transparent);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--grad-main);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 8px 22px rgba(167, 139, 250, .45);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 55%);
}

h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, #1e1b4b, #6d28d9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--hint);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  color: #065f46;
  background: linear-gradient(135deg, #d1fae5, #6ee7b7);
  box-shadow: 0 4px 16px rgba(16, 185, 129, .28);
  white-space: nowrap;
}

.pill-icon { font-size: 14px; }

main {
  flex: 1;
  padding: 4px 16px calc(104px + env(safe-area-inset-bottom));
}

.page-enter { animation: fadeUp .32s cubic-bezier(.22, 1, .36, 1); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Bottom nav ── */
nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border-top: 1px solid color-mix(in srgb, #a78bfa 16%, transparent);
  box-shadow: 0 -6px 28px color-mix(in srgb, #7c3aed 10%, transparent);
}

nav button {
  border: 0;
  background: transparent;
  color: var(--hint);
  padding: 7px 2px;
  border-radius: 14px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: background .22s, color .22s, transform .15s, box-shadow .22s;
}

nav button:active { transform: scale(.93); }

nav button.active {
  background: linear-gradient(135deg, rgba(244, 114, 182, .2), rgba(167, 139, 250, .28));
  color: #7c3aed;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #a78bfa 35%, transparent);
}

.nav-icon { font-size: 20px; line-height: 1; }

/* ── Cards ── */
.card {
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid color-mix(in srgb, #a78bfa 14%, transparent);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card.highlight {
  background: linear-gradient(135deg, rgba(244, 114, 182, .07), rgba(167, 139, 250, .1), rgba(56, 189, 248, .07));
  border-color: color-mix(in srgb, #a78bfa 32%, transparent);
  box-shadow: var(--shadow);
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.stat-card { text-align: center; padding: 14px 10px; }
.stat-card .price {
  font-size: 22px;
  margin-top: 4px;
  -webkit-text-fill-color: unset;
  color: #7c3aed;
}
.stat-card.stat-total { background: linear-gradient(135deg, #ede9fe, #fff); border-color: #ddd6fe; }
.stat-card.stat-pending { background: linear-gradient(135deg, #fef3c7, #fff); border-color: #fde68a; }
.stat-card.stat-approved { background: linear-gradient(135deg, #d1fae5, #fff); border-color: #a7f3d0; }
.stat-card.stat-delivered { background: linear-gradient(135deg, #cffafe, #fff); border-color: #a5f3fc; }

/* ── Buttons ── */
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  background: var(--grad-main);
  color: #fff;
  margin-top: 10px;
  box-shadow: var(--shadow-glow);
  transition: transform .15s, opacity .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 50%);
  pointer-events: none;
}

.btn:active { transform: scale(.97); opacity: .94; }

.btn:disabled {
  opacity: .5;
  pointer-events: none;
  box-shadow: none;
}

.btn.secondary {
  background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  color: #6d28d9;
  border: 2px solid color-mix(in srgb, #a78bfa 40%, transparent);
  box-shadow: 0 4px 14px rgba(124, 58, 237, .12);
}

.btn.secondary::after { display: none; }

.btn.ghost {
  background: var(--panel);
  color: var(--hint);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.btn.ghost::after { display: none; }

.btn.btn-wallet {
  background: var(--grad-wallet);
  box-shadow: 0 8px 24px rgba(16, 185, 129, .32);
}

.btn.btn-card {
  background: var(--grad-card-pay);
  box-shadow: 0 8px 24px rgba(37, 99, 235, .28);
  color: #fff;
}

.btn.btn-crypto {
  background: var(--grad-crypto);
  box-shadow: 0 8px 24px rgba(245, 158, 11, .32);
  color: #78350f;
}

.btn.btn-crypto::after {
  background: linear-gradient(180deg, rgba(255,255,255,.25), transparent 50%);
}

.pay-methods {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.pay-methods .btn { margin-top: 0; }

/* ── Hero & guide ── */
.hero-banner {
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  background: var(--grad-hero);
  color: #fff;
  box-shadow: 0 12px 32px rgba(244, 114, 182, .35);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  pointer-events: none;
}

.hero-banner .hero-title {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
}

.hero-banner .hero-text {
  font-size: 13px;
  line-height: 1.75;
  opacity: .96;
  position: relative;
}

.guide-card {
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: linear-gradient(160deg, #fff 0%, #fdf4ff 100%);
  border: 2px solid color-mix(in srgb, #f472b6 22%, transparent);
  box-shadow: var(--shadow-sm);
  color: #1e293b;
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  color: #5b21b6;
  margin-bottom: 12px;
}

.guide-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.65;
  color: #1e293b;
}

.guide-step b { color: #0f172a; }

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.guide-step-num.s1 { background: linear-gradient(135deg, #f472b6, #fb7185); }
.guide-step-num.s2 { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.guide-step-num.s3 { background: linear-gradient(135deg, #38bdf8, #0ea5e9); }
.guide-step-num.s4 { background: linear-gradient(135deg, #34d399, #10b981); }

.quick-label {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 8px;
}

.quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: #1e1b4b;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.quick-chip:active { transform: scale(.94); }

.chip-pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #be185d; }
.chip-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #6d28d9; }
.chip-violet { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); color: #7e22ce; }
.chip-orange { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #c2410c; }
.chip-cyan { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: #0e7490; }
.chip-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #15803d; }
.chip-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.chip-yellow { background: linear-gradient(135deg, #fef9c3, #fde68a); color: #a16207; }
.chip-rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); color: #be123c; }

.guide-map { display: grid; gap: 8px; }

.guide-map-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .2s;
}

.guide-map-item:active {
  transform: scale(.985);
  box-shadow: var(--shadow);
}

.guide-map-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex-shrink: 0;
}

.guide-map-body { flex: 1; min-width: 0; }
.guide-map-title { font-size: 14px; font-weight: 800; display: block; color: #0f172a; }
.guide-map-desc { font-size: 12px; color: #64748b; display: block; margin-top: 2px; }

/* ── Category cards ── */
.cat-grid { display: grid; gap: 10px; }

.cat-card {
  width: 100%;
  text-align: right;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .2s;
  animation: catIn .4s cubic-bezier(.22, 1, .36, 1) both;
}

.cat-card:nth-child(1) { animation-delay: .03s; }
.cat-card:nth-child(2) { animation-delay: .06s; }
.cat-card:nth-child(3) { animation-delay: .09s; }
.cat-card:nth-child(4) { animation-delay: .12s; }
.cat-card:nth-child(5) { animation-delay: .15s; }
.cat-card:nth-child(6) { animation-delay: .18s; }
.cat-card:nth-child(n+7) { animation-delay: .21s; }

@keyframes catIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cat-card:active {
  transform: scale(.982);
  box-shadow: var(--shadow);
}

.cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 23px;
  flex-shrink: 0;
  background: var(--cat-bg, var(--accent-soft));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat-accent, var(--accent)) 22%, transparent);
}

.cat-card.theme-pink { --cat-bg: linear-gradient(135deg, #fce7f3, #fbcfe8); --cat-accent: #ec4899; border-color: #fbcfe8; }
.cat-card.theme-orange { --cat-bg: linear-gradient(135deg, #ffedd5, #fed7aa); --cat-accent: #f97316; border-color: #fed7aa; }
.cat-card.theme-purple { --cat-bg: linear-gradient(135deg, #ede9fe, #ddd6fe); --cat-accent: #8b5cf6; border-color: #ddd6fe; }
.cat-card.theme-yellow { --cat-bg: linear-gradient(135deg, #fef9c3, #fde68a); --cat-accent: #eab308; border-color: #fde68a; }
.cat-card.theme-rose { --cat-bg: linear-gradient(135deg, #ffe4e6, #fecdd3); --cat-accent: #f43f5e; border-color: #fecdd3; }
.cat-card.theme-emerald { --cat-bg: linear-gradient(135deg, #d1fae5, #a7f3d0); --cat-accent: #10b981; border-color: #a7f3d0; }
.cat-card.theme-sky { --cat-bg: linear-gradient(135deg, #e0f2fe, #bae6fd); --cat-accent: #0ea5e9; border-color: #bae6fd; }
.cat-card.theme-cyan { --cat-bg: linear-gradient(135deg, #cffafe, #a5f3fc); --cat-accent: #06b6d4; border-color: #a5f3fc; }
.cat-card.theme-lime { --cat-bg: linear-gradient(135deg, #ecfccb, #d9f99d); --cat-accent: #84cc16; border-color: #d9f99d; }
.cat-card.theme-indigo { --cat-bg: linear-gradient(135deg, #e0e7ff, #c7d2fe); --cat-accent: #6366f1; border-color: #c7d2fe; }

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.cat-info { flex: 1; min-width: 0; }
.cat-title { display: block; font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.cat-desc { display: block; font-size: 12px; color: var(--hint); font-weight: 600; }
.cat-arrow { color: var(--cat-accent, var(--accent)); font-size: 22px; font-weight: 700; opacity: .75; }

/* ── Lists & products ── */
.list-btn {
  width: 100%;
  text-align: right;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .2s;
}

.list-btn:active { transform: scale(.985); }

.list-btn.product-card {
  border-color: color-mix(in srgb, #a78bfa 18%, transparent);
}

.list-btn.product-card:active {
  border-color: color-mix(in srgb, #a78bfa 40%, transparent);
}

.product-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-card .price {
  font-size: 22px;
  white-space: nowrap;
  margin-top: 2px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card-body { flex: 1; min-width: 0; }

.vol-badge {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0;
  margin: 4px 0 6px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.14);
  color: #0e7490;
  font-weight: 800;
  line-height: 1.2;
  unicode-bidi: isolate;
}

.vol-badge--lg {
  margin: 8px 0 10px;
  padding: 6px 12px;
  font-size: 1.05rem;
}

.vol-num { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.vol-unit { white-space: nowrap; }
.vol-users { margin-inline-start: 6px; font-size: 12px; font-weight: 700; color: var(--hint); }
.vol-badge-lg .vol-users { font-size: 13px; }

.muted { color: var(--hint); font-size: 13px; line-height: 1.7; }
.title { font-size: 16px; font-weight: 900; margin-bottom: 6px; }

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent);
}

.status.waiting { background: #fef3c7; color: #b45309; }
.status.review { background: #dbeafe; color: #1d4ed8; }
.status.approved { background: #d1fae5; color: #047857; }
.status.delivered { background: #ccfbf1; color: #065f46; }
.status.rejected { background: #fee2e2; color: #b91c1c; }

/* ── Forms ── */
input, textarea {
  width: 100%;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 15px;
  background: #fff;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
  caret-color: #7c3aed;
  margin: 8px 0;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

input:focus, textarea:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, .22);
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

textarea { min-height: 110px; resize: vertical; }

.error { color: var(--danger); padding: 12px 0; font-weight: 700; }
.hidden { display: none !important; }
.back { margin-bottom: 10px; }

.step-label {
  font-size: 13px;
  font-weight: 800;
  color: #7c3aed;
  margin-bottom: 4px;
}

.price {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 13px;
  font-weight: 900;
  color: #7c3aed;
  margin: 8px 2px 10px;
}

.rules-pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.accept-rules {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.error-text { color: var(--danger); font-weight: 700; }

.notice {
  border-right: 4px solid #38bdf8;
  padding-right: 12px;
  background: linear-gradient(90deg, rgba(56, 189, 248, .1), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.empty-state { text-align: center; padding: 32px 16px; }
.empty-icon { font-size: 48px; margin-bottom: 10px; }

/* ── Loading ── */
.skeleton-grid { display: grid; gap: 10px; }

.skeleton-card {
  height: 72px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #fce7f3 25%, #ede9fe 50%, #cffafe 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #fce7f3 25%, #ede9fe 50%, #cffafe 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Special screens ── */
.gate-hero { text-align: center; padding: 8px 0 4px; }

.gate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #cffafe);
  box-shadow: 0 8px 24px rgba(167, 139, 250, .25);
}

.wallet-hero {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(135deg, rgba(167, 139, 250, .12), rgba(244, 114, 182, .08));
  border-color: color-mix(in srgb, #a78bfa 28%, transparent);
}

.wallet-hero .price {
  font-size: 32px;
  margin-top: 8px;
  -webkit-text-fill-color: unset;
  color: #7c3aed;
  background: none;
}

.stock-tag {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--warning);
}

.list-btn.product-card.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.receipt-deadline-notice {
  color: var(--danger);
  font-weight: 800;
}

.receipt-deadline-at {
  margin-top: 4px;
  font-size: 12px;
}

.card-last4-notice {
  margin-top: 10px;
  line-height: 1.7;
  font-size: 12px;
}

#card-last4 {
  margin-top: 10px;
  letter-spacing: 0.2em;
  text-align: center;
  font-weight: 800;
}

.file-input-wrap { margin-top: 10px; }

.file-input-wrap input[type="file"] {
  padding: 10px;
  font-size: 13px;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

.tip-box {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  border: 1px solid #facc15;
  color: #854d0e;
}

.order-summary-card {
  background: linear-gradient(135deg, rgba(237, 233, 254, .6), rgba(252, 231, 243, .5));
  border-color: color-mix(in srgb, #a78bfa 30%, transparent);
}

/* ── Home & product visuals ── */
.home-hero {
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 14px;
  background: var(--grad-hero);
  color: #fff;
  box-shadow: 0 12px 32px rgba(244, 114, 182, .35);
}

.home-hero-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}

.home-hero-text {
  font-size: 13px;
  line-height: 1.75;
  opacity: .96;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.home-action {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: right;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}

.home-action:active { transform: scale(.97); }

.home-action.shop { background: linear-gradient(135deg, #a78bfa, #6366f1); }
.home-action.advisor { background: linear-gradient(135deg, #f472b6, #ec4899); }

.home-action small {
  display: block;
  font-weight: 600;
  opacity: .9;
  margin-top: 4px;
  font-size: 11px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 10px;
}

.section-head .section-title { margin: 0; }

.section-link {
  border: 0;
  background: transparent;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 0;
}

.scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar { display: none; }

.product-tile {
  flex: 0 0 148px;
  width: 148px;
  border: 1px solid color-mix(in srgb, #a78bfa 18%, transparent);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  overflow: hidden;
  text-align: right;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: transform .15s, box-shadow .2s;
}

.product-tile:active {
  transform: scale(.97);
  box-shadow: var(--shadow);
}

.product-tile-img {
  position: relative;
  min-height: 108px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 6px;
}

.brand-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.brand-logo-wrap-lg {
  gap: 6px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.brand-logo-wrap-lg .brand-logo-img {
  width: 56px;
  height: 56px;
}

.brand-logo-caption {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #7c3aed;
  text-transform: uppercase;
}

.product-tile-img .brand-logo-wrap .brand-logo-img {
  width: 40px;
  height: 40px;
}

.product-tile-img .brand-logo-wrap.product-poster .brand-logo-img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
}

.product-tile-img .brand-logo-wrap.product-poster .brand-logo-caption {
  font-size: 8px;
}

.product-card-v2 .product-thumb,
.product-intro-hero .product-thumb-lg {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid color-mix(in srgb, #a78bfa 16%, transparent);
}

.product-card-v2 .product-thumb { width: 78px; height: 78px; }
.product-intro-hero .product-thumb-lg { width: 96px; height: 96px; }

.category-tile-logo {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fff, #f8fafc);
  padding: 10px;
}

.category-tile-logo .brand-logo-img {
  width: 42px;
  height: 42px;
}

.cat-icon .brand-logo-wrap {
  width: 100%;
  height: 100%;
}

.cat-icon .brand-logo-img {
  width: 34px;
  height: 34px;
}

.product-tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.product-tile-body { padding: 10px 10px 12px; }

.product-tile-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  min-height: 34px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tile-price {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  color: #7c3aed;
}

.product-tile-meta {
  margin-top: 4px;
  font-size: 10px;
  color: var(--hint);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.category-tile {
  border: 1px solid color-mix(in srgb, #a78bfa 16%, transparent);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-align: right;
  transition: transform .15s;
}

.category-tile:active { transform: scale(.98); }

.category-tile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.category-tile span {
  display: block;
  padding: 10px 10px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.product-card-v2 {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  text-align: right;
}

.product-card-v2 .product-thumb {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #a78bfa 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.product-card-v2 .product-thumb .brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.product-intro-hero .product-thumb-lg {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .18);
  background: linear-gradient(180deg, #fff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.product-intro-hero .product-thumb-lg .brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.advisor-hero {
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ede9fe 0%, #fdf4ff 55%, #fce7f3 100%);
  border: 2px solid color-mix(in srgb, #a78bfa 24%, transparent);
}

.advisor-hero-title {
  font-size: 17px;
  font-weight: 900;
  color: #5b21b6;
  margin-bottom: 6px;
}

.advisor-hero-text {
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
}

.advisor-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}

.advisor-example {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  color: #6d28d9;
  box-shadow: 0 2px 8px rgba(124, 58, 237, .12);
}

.advisor-example:active { transform: scale(.96); }

.advisor-result {
  margin-top: 12px;
}

.advisor-summary {
  font-size: 13px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(167, 139, 250, .12), rgba(244, 114, 182, .08));
  border: 1px solid color-mix(in srgb, #a78bfa 20%, transparent);
}

.advisor-loading {
  text-align: center;
  padding: 18px;
  color: var(--hint);
  font-weight: 700;
}

.profile-wallet-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-wallet-card .btn {
  width: auto;
  margin: 0;
  padding: 10px 14px;
  font-size: 13px;
}

/* ── Order wizard / checkout UX ── */
.wizard-progress {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border: 1px solid color-mix(in srgb, #a78bfa 16%, transparent);
}

.wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--hint);
  margin-bottom: 8px;
}

.wizard-progress-meta span:first-child {
  color: #5b21b6;
}

.wizard-progress-track {
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, #a78bfa 16%, #f1f5f9);
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--grad-main);
  transition: width .28s cubic-bezier(.22, 1, .36, 1);
}

.field-error {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
  line-height: 1.5;
}

main.has-sticky {
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

.sticky-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 100%);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid color-mix(in srgb, #a78bfa 16%, transparent);
  box-shadow: 0 -8px 28px color-mix(in srgb, #7c3aed 10%, transparent);
  z-index: 12;
}

.sticky-actions .btn {
  margin-top: 0;
}

.action-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 1.5px solid #fcd34d;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .16);
  cursor: pointer;
  text-align: right;
}

.action-banner-title {
  font-size: 14px;
  font-weight: 900;
  color: #92400e;
}

.action-banner-text {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #a16207;
  line-height: 1.5;
}

.action-banner-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 999px;
  padding: 8px 12px;
  white-space: nowrap;
}

.pay-method-card {
  display: block;
  width: 100%;
  border: 1.5px solid color-mix(in srgb, #a78bfa 18%, transparent);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 14px 14px 14px 12px;
  margin-top: 10px;
  text-align: right;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, border-color .15s, opacity .15s;
}

.pay-method-card:active { transform: scale(.98); }

.pay-method-card:disabled,
.pay-method-card.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.pay-method-card .pm-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
}

.pay-method-card .pm-desc {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hint);
  line-height: 1.5;
}

.pay-method-card.wallet { border-color: color-mix(in srgb, #10b981 35%, transparent); }
.pay-method-card.card-pay { border-color: color-mix(in srgb, #2563eb 35%, transparent); }
.pay-method-card.crypto { border-color: color-mix(in srgb, #f59e0b 40%, transparent); }

.discount-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}

.discount-row input {
  flex: 1;
  margin: 0;
}

.discount-row .btn {
  width: auto;
  margin: 0;
  padding: 12px 14px;
  white-space: nowrap;
}

.checkout-hint {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
}

.pay-checklist {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pay-checklist li {
  position: relative;
  padding: 6px 0 6px 0;
  padding-right: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hint);
  line-height: 1.55;
}

.pay-checklist li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 6px;
  color: var(--success);
  font-weight: 900;
}

.copy-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 8px;
}

.copy-row pre {
  flex: 1;
  margin: 0;
  min-width: 0;
}

.copy-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  color: #6d28d9;
}

.receipt-preview {
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #a78bfa 18%, transparent);
  background: #f8fafc;
  display: none;
}

.receipt-preview.is-visible { display: block; }

.receipt-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #0f172a08;
}

.order-next-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.55;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.support-links a {
  font-size: 12px;
  font-weight: 800;
  color: #6d28d9;
  text-decoration: none;
  background: #f5f3ff;
  border-radius: 999px;
  padding: 8px 12px;
}

