/* ==========================================================
   MIZU EMPOWERMENT SCHEME — Design System
   ========================================================== */
:root {
  --ink: #061723;
  --ink-2: #0a2233;
  --ink-3: #10324a;
  --ocean: #0b6475;
  --aqua: #14c3b4;
  --aqua-2: #5eead4;
  --aqua-soft: #e4f8f5;
  --sky: #eef7f8;
  --bg: #f3f7f8;
  --card: #ffffff;
  --line: #e2eaed;
  --line-2: #d3dfe3;
  --text: #0c2130;
  --muted: #5b707d;
  --faint: #8a9ca6;
  --gold: #f0b13e;
  --gold-2: #ffd98a;
  --gold-soft: #fff6e1;
  --coral: #f2664b;
  --coral-soft: #fff0ec;
  --green: #12a150;
  --green-soft: #e6f7ee;
  --amber: #c27a06;
  --amber-soft: #fff5e0;
  --red: #d33a3a;
  --red-soft: #fdecec;
  --violet: #6d4fd8;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(6, 23, 35, .06), 0 1px 1px rgba(6, 23, 35, .04);
  --shadow: 0 10px 30px -12px rgba(6, 23, 35, .18), 0 2px 6px rgba(6, 23, 35, .05);
  --shadow-lg: 0 30px 70px -20px rgba(6, 23, 35, .35);
  --ff: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-d: 'Fraunces', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ff); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.serif { font-family: var(--ff-d); font-weight: 600; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, opacity .2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: linear-gradient(135deg, #17d1bf, #0b8f9a); color: #fff; box-shadow: 0 10px 24px -10px rgba(14, 160, 160, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(14, 160, 160, .9), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #ffd98a, #f0a92a); color: #3a2400; box-shadow: 0 10px 24px -10px rgba(240, 169, 42, .9), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-gold:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,.14); }
.btn-soft { background: var(--aqua-soft); color: var(--ocean); }
.btn-soft:hover { background: #d3f3ee; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); position: relative; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--sky); color: var(--text); }
.badge-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

/* ---------- Pills & tags ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.no-dot::before { display: none; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-aqua { background: var(--aqua-soft); color: var(--ocean); }
.pill-gray { background: #eef2f4; color: var(--muted); }
.pill-gold { background: var(--gold-soft); color: #9a6200; }
.pill-violet { background: #efeafd; color: var(--violet); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 6px 12px rgba(20, 195, 180, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.brand-text b span { color: var(--aqua); }
.brand-text small { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-top: 3px; }

/* ==========================================================
   LANDING
   ========================================================== */
.l-nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.l-nav.scrolled { background: rgba(6, 23, 35, .78); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.l-nav-in { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; gap: 30px; color: #fff; }
.l-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; }
.l-links a { opacity: .75; transition: opacity .2s; }
.l-links a:hover { opacity: 1; }
.l-cta { display: flex; gap: 10px; }

.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(1200px 600px at 85% -10%, rgba(20, 195, 180, .35), transparent 60%),
  radial-gradient(900px 500px at -10% 20%, rgba(14, 116, 144, .45), transparent 60%),
  linear-gradient(180deg, #051520 0%, #082233 60%, #0a2c3f 100%);
  padding: 150px 0 190px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 70%); }
.hero-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero .eyebrow { color: var(--aqua-2); }
.hero h1 { font-family: var(--ff-d); font-weight: 600; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.035em; margin: 22px 0 24px; }
.hero h1 em { font-style: italic; font-weight: 500; background: linear-gradient(100deg, #5eead4, #a7f3d0 40%, #ffd98a 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.72); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: 13.5px; color: rgba(255,255,255,.65); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--aqua-2); width: 17px; height: 17px; }

.hero-art { position: relative; height: 480px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-1 { width: 380px; height: 380px; right: 0; top: 30px; background: radial-gradient(circle at 30% 30%, rgba(94, 234, 212, .5), rgba(14, 116, 144, .15) 60%, transparent 70%); animation: float 9s ease-in-out infinite; }
.orb-2 { width: 120px; height: 120px; left: 10px; bottom: 30px; background: radial-gradient(circle at 30% 30%, rgba(255, 217, 138, .55), transparent 70%); animation: float 7s ease-in-out infinite reverse; }

.mcard {
  position: absolute; left: 50%; top: 50%; width: 400px; max-width: 92%; aspect-ratio: 1.586; transform: translate(-50%, -50%) rotate(-7deg);
  border-radius: 24px; padding: 26px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 195, 180, .95), rgba(11, 100, 117, .95) 55%, #072a3a);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.12);
  animation: cardFloat 8s ease-in-out infinite;
}
.mcard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.35), transparent 40%), repeating-linear-gradient(120deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.mcard::after { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -150px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.mcard > * { position: relative; z-index: 1; }
.mcard-top { display: flex; justify-content: space-between; align-items: center; }
.mcard-top .brand-text b { font-size: 14px; }
.mcard-label { font-size: 10.5px; font-weight: 800; letter-spacing: .2em; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.16); }
.chip { width: 46px; height: 34px; border-radius: 8px; margin: 26px 0 16px; background: linear-gradient(135deg, #ffe7a8, #e3a53a 60%, #ffd98a); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.chip::before { content: ''; position: absolute; inset: 8px 10px; border: 1.5px solid rgba(90, 55, 0, .35); border-radius: 4px; }
.mcard-id { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 19px; letter-spacing: .16em; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.mcard-row { display: flex; justify-content: space-between; margin-top: 18px; font-weight: 700; font-size: 14px; }
.mcard-row small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .65; font-weight: 700; margin-bottom: 2px; }

.float-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.96); color: var(--text); box-shadow: var(--shadow-lg); font-size: 13px; }
.float-chip .fc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.float-chip b { display: block; font-size: 14px; }
.float-chip small { color: var(--muted); font-weight: 600; }
.fc-1 { left: -10px; top: 40px; animation: float 6s ease-in-out infinite; }
.fc-2 { right: -6px; bottom: 50px; animation: float 7s ease-in-out infinite .8s; }
.fc-3 { right: 30px; top: 0; animation: float 8s ease-in-out infinite .4s; }
.strike { text-decoration: line-through; color: var(--faint); font-weight: 600; }

.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 140px; }
.waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.wave-a { animation: wave 18s linear infinite; opacity: .35; }
.wave-b { animation: wave 12s linear infinite reverse; opacity: .55; }
.wave-c { animation: wave 24s linear infinite; }

@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes cardFloat { 0%, 100% { transform: translate(-50%, -50%) rotate(-7deg); } 50% { transform: translate(-50%, -53%) rotate(-5deg); } }

.section { max-width: 1240px; margin: 0 auto; padding: 110px 28px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { font-family: var(--ff-d); font-weight: 600; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.03em; margin: 16px 0 16px; }
.section-head p { font-size: 17px; color: var(--muted); line-height: 1.7; }

.stats-band { position: relative; z-index: 2; max-width: 1100px; margin: -90px auto 0; padding: 0 28px; }
.stats-band-in { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--ff-d); font-size: 40px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.stat b sup { font-size: 18px; color: var(--aqua); margin-left: 2px; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }

.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { position: relative; padding: 30px 26px 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; overflow: hidden; }
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.benefit-num { position: absolute; right: 22px; top: 18px; font-family: var(--ff-d); font-size: 54px; color: #eef3f5; font-weight: 600; line-height: 1; }
.benefit-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; }
.benefit-ic .ic { width: 26px; height: 26px; }
.benefit h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -.01em; }
.benefit p { color: var(--muted); font-size: 14.5px; }
.tone-aqua { background: var(--aqua-soft); color: var(--ocean); }
.tone-gold { background: var(--gold-soft); color: #a86b00; }
.tone-coral { background: var(--coral-soft); color: var(--coral); }
.tone-violet { background: #efeafd; color: var(--violet); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-ink { background: #e8eef1; color: var(--ink-3); }

.steps-wrap { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 70px 60px; position: relative; overflow: hidden; }
.steps-wrap::before { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(20,195,180,.35), transparent 65%); }
.steps-wrap .section-head h2 { color: #fff; }
.steps-wrap .section-head p { color: rgba(255,255,255,.65); }
.steps-wrap .eyebrow { color: var(--aqua-2); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps::before { content: ''; position: absolute; left: 30px; right: 30px; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(94,234,212,.6), rgba(94,234,212,.1)); }
.step { position: relative; }
.step-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-2); border: 2px solid rgba(94,234,212,.5); color: var(--aqua-2); font-weight: 800; font-size: 18px; margin-bottom: 20px; box-shadow: 0 0 0 8px var(--ink); }
.step h4 { font-size: 16.5px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: rgba(255,255,255,.6); }

.market-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.cat-list { display: grid; gap: 12px; margin-top: 30px; }
.cat-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.cat-row .ce { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none; }
.cat-row b { display: block; font-size: 15px; }
.cat-row span { font-size: 13px; color: var(--muted); }

.price-table { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.pt-head { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfdfd, #fff); }
.pt-head h4 { font-size: 16px; }
.pt-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr .8fr; align-items: center; padding: 16px 26px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pt-row:last-of-type { border-bottom: 0; }
.pt-row.th { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding-top: 12px; padding-bottom: 12px; background: #fafcfc; }
.pt-prod { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.pt-prod i { font-style: normal; font-size: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.pt-mes { font-weight: 800; color: var(--ocean); }
.save-tag { display: inline-flex; padding: 4px 9px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 12.5px; font-weight: 800; }
.pt-foot { padding: 14px 26px; font-size: 12.5px; color: var(--muted); background: #fafcfc; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--line); }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.price-card { padding: 54px 50px; background: linear-gradient(160deg, #0a2c3f, #061723); color: #fff; position: relative; overflow: hidden; }
.price-card::after { content: ''; position: absolute; width: 380px; height: 380px; right: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(20,195,180,.4), transparent 65%); }
.price-amt { display: flex; align-items: flex-start; gap: 6px; margin: 26px 0 6px; }
.price-amt .cur { font-size: 32px; font-weight: 700; margin-top: 14px; color: var(--aqua-2); }
.price-amt .num { font-family: var(--ff-d); font-size: 112px; line-height: .9; font-weight: 600; letter-spacing: -.05em; }
.price-amt .per { align-self: flex-end; margin-bottom: 14px; color: rgba(255,255,255,.6); font-weight: 600; }
.price-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 32px; }
.price-meta span { padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; font-weight: 700; }
.price-list { padding: 54px 50px; background: #fff; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.check-list li .ck { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua-soft); color: var(--ocean); flex: none; margin-top: -1px; }
.check-list li .ck .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.check-list li b { display: block; }
.check-list li span { color: var(--muted); font-size: 13.5px; }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.status-card { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.status-card .pill { margin-bottom: 16px; }
.status-card h4 { font-size: 17px; margin-bottom: 8px; }
.status-card p { font-size: 14px; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.principle { background: #fff; padding: 26px 22px; transition: background .3s; }
.principle:hover { background: #fbfefe; }
.principle .pn { font-family: var(--ff-d); font-size: 15px; font-weight: 600; color: var(--aqua); margin-bottom: 14px; }
.principle h5 { font-size: 15px; margin: 0 0 6px; }
.principle p { font-size: 13px; color: var(--muted); }
.disclaimer { margin-top: 24px; display: flex; gap: 14px; padding: 18px 22px; border-radius: var(--r); background: var(--gold-soft); border: 1px solid #f6e2b3; font-size: 14px; color: #6a4a07; }
.disclaimer .ic { color: #b67a00; margin-top: 2px; }

.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.road { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); border: 1.5px dashed var(--line-2); background: rgba(255,255,255,.5); }
.road .ri { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ocean); flex: none; }
.road b { display: block; font-size: 15px; margin-bottom: 3px; }
.road span { font-size: 13.5px; color: var(--muted); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 24px; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .3s; color: var(--ocean); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

.cta-band { margin: 0 28px 28px; border-radius: var(--r-xl); padding: 90px 28px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 50% 120%, rgba(94, 234, 212, .45), transparent 60%), linear-gradient(160deg, #0b4b5c, #061723); }
.cta-band h2 { font-family: var(--ff-d); font-size: clamp(38px, 5vw, 64px); font-weight: 600; letter-spacing: -.035em; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 17px; margin: 18px auto 34px; max-width: 560px; }

.footer { max-width: 1240px; margin: 0 auto; padding: 50px 28px 60px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; font-size: 14px; }
.footer h6 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.footer a { display: block; color: var(--muted); margin-bottom: 9px; }
.footer a:hover { color: var(--text); }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 22px 28px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   AUTH
   ========================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 44px 56px; display: flex; flex-direction: column;
  background: radial-gradient(700px 500px at 100% 0%, rgba(20,195,180,.4), transparent 60%), linear-gradient(170deg, #082233, #051520); }
.auth-art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 80%); }
.auth-art > * { position: relative; }
.auth-quote { margin-top: auto; }
.auth-quote h2 { font-family: var(--ff-d); font-size: 46px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.auth-quote h2 em { color: var(--aqua-2); }
.auth-quote p { color: rgba(255,255,255,.65); margin-top: 16px; max-width: 420px; }
.auth-points { display: grid; gap: 12px; margin-top: 34px; }
.auth-points div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.85); }
.auth-points .ic { color: var(--aqua-2); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 50px 28px; background: #fff; }
.auth-form { width: 100%; max-width: 440px; }
.auth-form h1 { font-family: var(--ff-d); font-size: 38px; font-weight: 600; letter-spacing: -.03em; }
.auth-form > p { color: var(--muted); margin: 10px 0 30px; }
.auth-steps { display: flex; gap: 6px; margin-bottom: 28px; }
.auth-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.auth-steps span.on { background: linear-gradient(90deg, var(--aqua), var(--ocean)); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text); }
.field .hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none; font-size: 15px;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b707d' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(20, 195, 180, .14); }
.input-ic { position: relative; }
.input-ic .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-ic .input { padding-left: 44px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; width: 20px; height: 20px; border-radius: 6px; border: 1.8px solid var(--line-2); flex: none; margin: 0; display: grid; place-items: center; transition: background .2s, border-color .2s; cursor: pointer; }
.check input:checked { background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; border-color: var(--aqua); }
.check b { color: var(--text); }
.form-err { padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.alt-link { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }
.alt-link a { color: var(--ocean); font-weight: 700; }

/* ==========================================================
   APP SHELL
   ========================================================== */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 24px 18px; overflow-y: auto;
  background-image: radial-gradient(400px 300px at 0% 0%, rgba(20,195,180,.18), transparent 60%); }
.side .brand { padding: 0 8px 26px; }
.side-label { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.35); padding: 0 12px; margin: 12px 0 8px; }
.nav { display: grid; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 14px; border-radius: 13px; font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.62); transition: background .2s, color .2s; position: relative; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.on { color: #fff; background: linear-gradient(90deg, rgba(20,195,180,.22), rgba(20,195,180,.05)); }
.nav a.on::before { content: ''; position: absolute; left: -18px; top: 11px; bottom: 11px; width: 4px; border-radius: 0 4px 4px 0; background: var(--aqua-2); }
.nav a.on .ic { color: var(--aqua-2); }
.nav .nav-badge { margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.1); }
.nav .nav-lock { margin-left: auto; opacity: .45; }
.side-foot { margin-top: auto; padding-top: 20px; }
.side-member { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, var(--aqua-2), var(--ocean)); color: #fff; flex: none; }
.side-member b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-member small { font-size: 11.5px; color: rgba(255,255,255,.5); font-family: ui-monospace, Menlo, Consolas, monospace; }
.side-member .icon-btn { color: rgba(255,255,255,.5); margin-left: auto; }
.side-member .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.demo-clock { margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.18); font-size: 12px; color: rgba(255,255,255,.6); }
.demo-clock b { color: #fff; font-size: 12.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.demo-clock .dc-btns { display: flex; gap: 6px; margin-top: 10px; }
.demo-clock button { flex: 1; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font-size: 12px; font-weight: 700; }
.demo-clock button:hover { background: rgba(255,255,255,.16); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 16px 36px; background: rgba(243, 247, 248, .82); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid rgba(226, 234, 237, .7); }
.topbar h1 { font-size: 22px; letter-spacing: -.02em; }
.topbar .crumb { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.top-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.top-actions .avatar { width: 38px; height: 38px; margin-left: 6px; }
.m-brand { display: none; }
.view { padding: 28px 36px 60px; max-width: 1320px; width: 100%; animation: viewIn .45s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.banner { margin: 22px 36px 0; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r); font-size: 14px; }
.banner .ic { flex: none; }
.banner b { display: block; }
.banner .btn { margin-left: auto; }
.banner-warn { background: var(--amber-soft); color: #7a4c00; border: 1px solid #f8e1b0; }
.banner-red { background: var(--red-soft); color: #8b1f1f; border: 1px solid #f6caca; }
.banner-aqua { background: linear-gradient(90deg, #e3f8f5, #eef9fb); color: var(--ocean); border: 1px solid #c8eee8; }

.mobile-nav { display: none; }

/* ---------- Cards / Panels ---------- */
.card { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.card-pad { padding: 26px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 26px 0; }
.card-head h3 { font-size: 17px; letter-spacing: -.01em; }
.card-head .link { font-size: 13px; font-weight: 700; color: var(--ocean); display: inline-flex; align-items: center; gap: 4px; }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-main { grid-template-columns: 1.55fr 1fr; }
.mt { margin-top: 20px; }
.mt-lg { margin-top: 32px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 36px 0 16px; }
.section-title h2 { font-size: 20px; letter-spacing: -.02em; }
.section-title p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.welcome h2 { font-family: var(--ff-d); font-size: 36px; font-weight: 600; letter-spacing: -.03em; }
.welcome p { color: var(--muted); margin-top: 6px; }

/* Membership hero card in dashboard */
.mem-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: radial-gradient(500px 300px at 100% 0%, rgba(94,234,212,.35), transparent 60%), linear-gradient(140deg, #0b6475, #082a3c 70%); box-shadow: var(--shadow); }
.mem-hero.expired { background: radial-gradient(500px 300px at 100% 0%, rgba(242,102,75,.3), transparent 60%), linear-gradient(140deg, #3a2a35, #1a1720 70%); }
.mem-hero.registered { background: radial-gradient(500px 300px at 100% 0%, rgba(255,217,138,.35), transparent 60%), linear-gradient(140deg, #23415a, #0b1d2b 70%); }
.mem-hero::after { content: ''; position: absolute; width: 260px; height: 260px; left: -80px; bottom: -150px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); }
.mem-hero > * { position: relative; z-index: 1; }
.mh-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mh-id { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .1em; font-weight: 600; margin: 18px 0 20px; }
.mh-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 36px; justify-content: start; }
.mh-grid small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.mh-grid b { font-size: 15px; }
.pill-glass { background: rgba(255,255,255,.14); color: #fff; }
.pill-glass.ok::before { background: #5eead4; box-shadow: 0 0 0 4px rgba(94,234,212,.25); }
.pill-glass.bad::before { background: #ff8f7a; }
.pill-glass.wait::before { background: var(--gold-2); }

.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: rgba(255,255,255,.12); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.ring-txt { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-txt b { font-family: var(--ff-d); font-size: 44px; line-height: 1; font-weight: 600; display: block; }
.ring-txt span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 700; }

.kpi { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.kpi b { font-size: 28px; letter-spacing: -.03em; font-weight: 800; display: block; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }

.dl { display: grid; }
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dl-row:last-child { border-bottom: 0; }
.dl-row span { color: var(--muted); }
.dl-row b { text-align: right; }
/* button rows that must fit a phone: long labels wrap instead of pushing the page sideways */
.btn-wrap-group .btn { white-space: normal; height: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; text-align: center; line-height: 1.3; max-width: 100%; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; }

.activate { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 44px; color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: radial-gradient(600px 400px at 100% 0%, rgba(20,195,180,.4), transparent 60%), linear-gradient(150deg, #0a2c3f, #061723); box-shadow: var(--shadow-lg); }
.activate h2 { font-family: var(--ff-d); font-size: 40px; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 12px; }
.activate p { color: rgba(255,255,255,.7); }
.activate .check-list li { color: rgba(255,255,255,.9); }
.activate .check-list li span { color: rgba(255,255,255,.55); }
.activate .check-list .ck { background: rgba(94,234,212,.15); color: var(--aqua-2); }
.activate-pay { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.activate-pay .amt { font-family: var(--ff-d); font-size: 48px; font-weight: 600; letter-spacing: -.04em; }
.activate-pay .amt small { font-family: var(--ff); font-size: 14px; color: rgba(255,255,255,.55); letter-spacing: 0; font-weight: 600; }

.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.li-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.li-main { min-width: 0; flex: 1; }
.li-main b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main span { font-size: 12.5px; color: var(--muted); }
.li-end { text-align: right; font-size: 14px; font-weight: 700; }
.li-end small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.empty { padding: 44px 26px; text-align: center; color: var(--muted); }
.empty .em { font-size: 40px; margin-bottom: 10px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------- Marketplace ---------- */
.mk-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fff8e6 0%, #fdf0d8 40%, #e7f8f4 100%); border: 1px solid #f3e6c6; }
.mk-hero h2 { font-family: var(--ff-d); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.mk-hero p { color: #6a5a3a; margin-top: 6px; max-width: 520px; }
.mk-hero-emojis { font-size: 44px; letter-spacing: 6px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.08)); }
.mk-tools { display: flex; gap: 12px; align-items: center; margin: 24px 0 18px; flex-wrap: wrap; }
.tabs { display: inline-flex; padding: 4px; border-radius: 14px; background: #e8eff1; gap: 2px; }
.tabs button, .tabs a { height: 38px; padding: 0 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.tabs .on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.tabs .tcount { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--line); }
.search { position: relative; flex: 1; min-width: 220px; max-width: 380px; margin-left: auto; }
.search .input { height: 46px; padding-left: 44px; border-radius: 14px; background: #fff; }
.search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip-btn { height: 38px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.chip-btn:hover { border-color: var(--text); color: var(--text); }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn i { width: 8px; height: 8px; border-radius: 50%; }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.p-card { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-img { position: relative; height: 150px; display: grid; place-items: center; font-size: 66px; }
.p-img .emo { filter: drop-shadow(0 12px 14px rgba(0,0,0,.14)); transition: transform .4s var(--ease); }
.p-card:hover .emo { transform: scale(1.08) rotate(-4deg); }
.p-save { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 99px; background: #fff; color: var(--green); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm); }
.p-stock { position: absolute; top: 12px; right: 12px; }
.p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.p-name { font-size: 15.5px; font-weight: 700; margin: 4px 0 2px; line-height: 1.3; }
.p-unit { font-size: 12.5px; color: var(--muted); }
.p-prices { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 14px; flex-wrap: wrap; }
.p-mes { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.p-reg { font-size: 13px; }
.p-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); display: block; margin-bottom: -10px; margin-top: 12px; }
.p-actions { margin-top: auto; }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 42px; border-radius: 99px; background: var(--aqua-soft); padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ocean); box-shadow: var(--shadow-sm); }
.stepper button:hover { background: var(--ocean); color: #fff; }
.stepper button[disabled] { opacity: .35; pointer-events: none; }
.stepper b { font-size: 14.5px; color: var(--ocean); }
.stepper-sm { height: 34px; } .stepper-sm button { width: 26px; height: 26px; } .stepper-sm .ic { width: 14px; height: 14px; }
.p-card.oos .p-img { filter: grayscale(.8); opacity: .6; }

/* Orders */
.order { padding: 22px 26px; border-bottom: 1px solid var(--line); }
.order:last-child { border-bottom: 0; }
.order-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.order-top b { font-size: 15px; }
.order-items { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.order-items span { padding: 5px 10px; border-radius: 99px; background: var(--sky); font-size: 12.5px; font-weight: 600; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; position: relative; }
.track-step { position: relative; text-align: center; font-size: 12px; color: var(--faint); font-weight: 600; padding-top: 30px; }
.track-step::before { content: ''; position: absolute; top: 10px; left: 0; right: 0; height: 3px; background: var(--line); }
.track-step:first-child::before { left: 50%; }
.track-step:last-child::before { right: 50%; }
.track-step.done::before { background: var(--aqua); }
.track-step.cur::before { background: linear-gradient(90deg, var(--aqua) 50%, var(--line) 50%); }
.track-step:last-child.cur::before { background: var(--aqua); }
.track-step:first-child.cur::before { background: var(--line); }
.track-step i { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 3px solid var(--line-2); }
.track-step.done i { background: var(--aqua); border-color: var(--aqua); }
.track-step.cur i { border-color: var(--aqua); box-shadow: 0 0 0 5px rgba(20,195,180,.18); }
.track-step.done, .track-step.cur { color: var(--text); }

/* Drawer */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(6, 23, 35, .5); backdrop-filter: blur(4px); animation: fadeIn .25s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 101; width: 460px; max-width: 100%; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideIn .35s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 19px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px 20px; }
.drawer-foot { padding: 20px 26px 24px; border-top: 1px solid var(--line); background: #fbfdfd; }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-img { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; flex: none; }
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .ci-main b { display: block; font-size: 14px; }
.cart-item .ci-main span { font-size: 12.5px; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.sum-row.total { font-size: 18px; font-weight: 800; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line-2); }
.sum-row.save { color: var(--green); font-weight: 700; }
.opt-group { display: grid; gap: 10px; margin: 8px 0 14px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: all .2s; }
.opt:hover { border-color: var(--faint); }
.opt.on { border-color: var(--aqua); background: #f3fcfb; box-shadow: 0 0 0 4px rgba(20,195,180,.1); }
.opt .opt-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--sky); display: grid; place-items: center; color: var(--ocean); flex: none; }
.opt.on .opt-ic { background: var(--aqua); color: #fff; }
.opt b { display: block; font-size: 14px; }
.opt small { font-size: 12.5px; color: var(--muted); }
.opt .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.opt.on .radio { border: 6px solid var(--aqua); }
.sub-label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 20px 0 6px; }

/* Modal */
.modal-wrap { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal { width: 100%; max-width: 500px; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: pop .35s var(--ease); position: relative; overflow: hidden; }
.modal-lg { max-width: 640px; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.modal-head { padding: 30px 30px 6px; }
.modal-head h3 { font-size: 22px; letter-spacing: -.02em; }
.modal-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.modal-body { padding: 18px 30px 30px; }
.pay-summary { border-radius: 18px; background: var(--sky); padding: 18px 20px; margin-bottom: 8px; }
.pay-summary .ps-amt { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.demo-note { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #f1f4ff; color: #3b4a9a; font-size: 12.5px; font-weight: 600; margin: 14px 0; }
.processing { padding: 60px 30px; text-align: center; }
.spinner { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; border: 5px solid var(--aqua-soft); border-top-color: var(--aqua); animation: spin 1s linear infinite; }
.success-mark { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--aqua-2), var(--ocean)); color: #fff; box-shadow: 0 16px 34px -10px rgba(14,160,160,.7); animation: pop .5s var(--ease); }
.success-mark .ic { width: 40px; height: 40px; stroke-width: 2.6; }
.success { padding: 44px 30px 30px; text-align: center; }
.success h3 { font-size: 24px; }
.success p { color: var(--muted); margin: 8px auto 0; max-width: 360px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.4s ease-in forwards; }
@keyframes fall { to { transform: translateY(560px) rotate(540deg); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Receipt */
.receipt { padding: 34px 34px 30px; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px dashed var(--line-2); }
.receipt-head .brand-text b { font-size: 15px; }
.receipt-amt { text-align: center; padding: 26px 0; border-bottom: 2px dashed var(--line-2); }
.receipt-amt b { font-size: 38px; letter-spacing: -.03em; display: block; }
.receipt .dl-row { font-size: 13.5px; padding: 11px 0; }
.receipt-foot { margin-top: 18px; font-size: 12px; color: var(--faint); text-align: center; }

/* ---------- Digital product ---------- */
.dp-feature { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 34px; align-items: center; }
.book { position: relative; width: 240px; aspect-ratio: 3/4; margin: 0 auto; border-radius: 6px 16px 16px 6px; padding: 26px 22px; color: #fff; display: flex; flex-direction: column;
  box-shadow: 22px 26px 40px -16px rgba(6, 23, 35, .45), inset 6px 0 0 rgba(0,0,0,.18), inset 8px 0 0 rgba(255,255,255,.12); transform: perspective(900px) rotateY(-14deg); transition: transform .5s var(--ease); overflow: hidden; }
.book:hover { transform: perspective(900px) rotateY(-4deg) translateY(-4px); }
.book::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 0%, rgba(255,255,255,.35), transparent 50%), repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 10px, transparent 10px 20px); }
.book::after { content: ''; position: absolute; width: 200px; height: 200px; right: -70px; bottom: -70px; border-radius: 50%; border: 26px solid rgba(255,255,255,.12); }
.book > * { position: relative; z-index: 1; }
.book .bk-type { font-size: 9.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.book .bk-title { font-family: var(--ff-d); font-size: 30px; font-weight: 600; line-height: 1.02; letter-spacing: -.02em; margin-top: 16px; }
.book .bk-sub { font-size: 12.5px; opacity: .85; margin-top: 10px; }
.book .bk-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.book .bk-foot .logo-mark { width: 22px; height: 22px; filter: none; }
.book-sm { width: 100%; padding: 18px 16px; transform: none; box-shadow: 10px 14px 24px -12px rgba(6,23,35,.4), inset 5px 0 0 rgba(0,0,0,.18); }
.book-sm:hover { transform: translateY(-4px); }
.book-sm .bk-title { font-size: 20px; margin-top: 10px; }
.book-sm .bk-sub { font-size: 11px; }
.dp-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.dp-feature h2 { font-family: var(--ff-d); font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 26px; }
.chapters div { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--sky); font-size: 13.5px; font-weight: 600; }
.chapters div i { font-style: normal; width: 24px; height: 24px; border-radius: 8px; background: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--ocean); flex: none; }
.licence { font-size: 12.5px; color: var(--faint); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.dp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.dp-item b { display: block; font-size: 14px; margin-top: 14px; }
.dp-item span { font-size: 12.5px; color: var(--muted); }
.dp-item .btn { margin-top: 10px; }
.next-month { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 26px; background: repeating-linear-gradient(135deg, #f4f8f9 0 12px, #eef3f5 12px 24px); border: 1.5px dashed var(--line-2); display: flex; align-items: center; gap: 20px; }
.next-month .nm-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--ocean); box-shadow: var(--shadow-sm); flex: none; }

/* ---------- Wallet ---------- */
.wallet-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px; color: #fff; min-height: 240px; display: flex; flex-direction: column;
  background: radial-gradient(500px 300px at 100% 0%, rgba(255,217,138,.35), transparent 55%), radial-gradient(400px 300px at 0% 100%, rgba(20,195,180,.3), transparent 60%), linear-gradient(150deg, #10324a, #061723); box-shadow: var(--shadow); }
.wallet-card::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 20px 20px; }
.wallet-card > * { position: relative; }
.wc-top { display: flex; justify-content: space-between; align-items: center; }
.wc-bal { margin-top: auto; }
.wc-bal small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.wc-bal b { display: flex; align-items: baseline; gap: 10px; font-family: var(--ff-d); font-size: 64px; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.wc-bal b span { font-family: var(--ff); font-size: 18px; letter-spacing: .1em; color: var(--gold-2); font-weight: 800; }
.wc-addr { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 13px; }
.wc-addr button { color: rgba(255,255,255,.7); display: grid; place-items: center; }
.wc-addr button:hover { color: #fff; }
.token-coin { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #fff1c8, #f0b13e 55%, #b07500); box-shadow: 0 8px 18px -6px rgba(240, 177, 62, .7), inset 0 -3px 0 rgba(0,0,0,.15); color: #5b3a00; font-weight: 900; font-size: 13px; letter-spacing: .02em; }
.alloc { display: flex; gap: 20px; align-items: center; padding: 24px 26px; }
.alloc-amt { font-family: var(--ff-d); font-size: 46px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: #a86b00; }
.alloc-amt small { font-family: var(--ff); font-size: 14px; font-weight: 800; letter-spacing: .1em; margin-left: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 14px 26px; background: #fafcfc; border-bottom: 1px solid var(--line); }
.table td { padding: 16px 26px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-weight: 800; }
.table-wrap { overflow-x: auto; }
.utility { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.utility:last-child { border-bottom: 0; }

/* ---------- Benefits ---------- */
.ben-card { padding: 26px; position: relative; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ben-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ben-card .pill { position: absolute; top: 22px; right: 22px; }
.ben-card h4 { font-size: 17px; margin-top: 8px; }
.ben-card p { font-size: 14px; color: var(--muted); flex: 1; }
.ben-card .link { font-size: 13.5px; font-weight: 700; color: var(--ocean); display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.offer { position: relative; overflow: hidden; padding: 28px; border-radius: var(--r-lg); color: #fff; }
.offer.aqua { background: linear-gradient(135deg, #0fb3a5, #0b6475); }
.offer.gold { background: linear-gradient(135deg, #f0a92a, #c56a00); }
.offer::after { content: ''; position: absolute; width: 200px; height: 200px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.12); }
.offer > * { position: relative; }
.offer .tag { display: inline-block; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.2); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.offer h4 { font-size: 21px; margin: 14px 0 8px; }
.offer p { opacity: .85; font-size: 14px; }

/* ---------- Account ---------- */
.acc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.acc-nav { position: sticky; top: 96px; padding: 10px; display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .2s; }
.acc-nav a:hover { background: var(--sky); color: var(--text); }
.acc-nav a.on { background: var(--aqua-soft); color: var(--ocean); }
.acc-nav a .nav-badge { margin-left: auto; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--coral); color: #fff; }
.notif { display: flex; gap: 14px; padding: 18px 26px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: #f6fcfb; }
.notif .n-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.notif b { font-size: 14px; display: block; }
.notif p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.notif small { font-size: 12px; color: var(--faint); }
.policy h4 { font-size: 16px; margin: 22px 0 8px; }
.policy h4:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 14px; color: var(--muted); }
.policy ul { padding-left: 20px; margin: 8px 0; }
.policy li { margin-bottom: 6px; }
.renew-panel { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(120deg, #e7f8f5, #f3fbfc); border: 1px solid #ccefe9; }
.renew-panel h3 { font-size: 20px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { position: relative; padding: 10px 0; }
.tl::before { content: ''; position: absolute; left: -25px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--aqua); }
.tl.past::before { border-color: var(--line-2); }
.tl b { font-size: 14px; display: block; }
.tl span { font-size: 13px; color: var(--muted); }

/* ---------- Toasts ---------- */
#toasts { position: fixed; z-index: 200; top: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { pointer-events: none;display: flex; align-items: center; gap: 12px; padding: 13px 18px 13px 14px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease); }
.toast .t-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(94,234,212,.18); color: var(--aqua-2); }
.toast.err .t-ic { background: rgba(255,143,122,.2); color: #ff8f7a; }
.toast.out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1180px) {
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: 1fr 1fr; }
  .app { grid-template-columns: 236px 1fr; }
}
@media (max-width: 980px) {
  .l-links { display: none; }
  .hero { padding: 120px 0 170px; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { height: 400px; }
  .stats-band-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 27px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
  .step-n { margin: 0; }
  .steps-wrap { padding: 50px 26px; }
  .market-split, .pricing { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }

  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 12px 18px; }
  .m-brand { display: inline-flex; }
  .m-brand .logo-mark { width: 32px; height: 32px; }
  .topbar .t-title { display: none; }
  .view { padding: 20px 18px 110px; }
  .banner { margin: 16px 18px 0; flex-wrap: wrap; }
  .banner .btn { margin-left: 0; }
  .mobile-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; padding: 8px; border-radius: 22px; background: rgba(6, 23, 35, .94); backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 14px; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.55); }
  .mobile-nav a.on { color: #fff; background: rgba(20,195,180,.2); }
  .mobile-nav a.on .ic { color: var(--aqua-2); }
  .g-main, .g-2, .g-3 { grid-template-columns: 1fr; }
  .mem-hero { grid-template-columns: 1fr; }
  .mem-hero .ring { justify-self: start; }
  .activate { grid-template-columns: 1fr; padding: 30px; }
  .dp-feature { grid-template-columns: 1fr; padding: 26px; }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-nav { position: static; display: flex; overflow-x: auto; padding: 6px; }
  .acc-nav a { white-space: nowrap; }
  .renew-panel { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .l-nav-in { padding: 14px 16px; }
  .l-cta .btn-glass { display: none; }
  .section { padding: 80px 16px; }
  .hero-in, .stats-band { padding: 0 16px; }
  .hero-art { height: 330px; }
  .mcard { width: 300px; padding: 20px; }
  .mcard-id { font-size: 15px; }
  .chip { margin: 16px 0 10px; }
  .fc-1 { left: 0; top: 10px; } .fc-2 { right: 0; bottom: 10px; } .fc-3 { display: none; }
  .benefit-grid, .status-grid, .principles, .g-4, .footer { grid-template-columns: 1fr; }
  .stat { padding: 20px; } .stat b { font-size: 30px; }
  .pt-row { grid-template-columns: 1.4fr 1fr 1fr; padding: 14px 16px; }
  .pt-row > :nth-child(4) { display: none; }
  .price-card, .price-list { padding: 36px 26px; }
  .price-amt .num { font-size: 88px; }
  .cta-band { margin: 0 12px 12px; padding: 64px 20px; }
  .row-2 { grid-template-columns: 1fr; }
  .mh-grid { grid-template-columns: 1fr 1fr; }
  .mh-id { font-size: 19px; }
  .welcome h2 { font-size: 28px; }
  .p-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-img { height: 110px; font-size: 48px; }
  .p-body { padding: 12px 12px 14px; }
  .p-name { font-size: 14px; }
  .p-mes { font-size: 17px; }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .chapters { grid-template-columns: 1fr; }
  .modal-head, .modal-body { padding-left: 22px; padding-right: 22px; }
  .table th, .table td { padding: 12px 16px; }
  .list-item, .order, .notif { padding-left: 18px; padding-right: 18px; }
  .card-head { padding: 20px 18px 0; }
  .card-pad { padding: 20px; }
  .alloc { flex-wrap: wrap; }
}

@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   PROGRAMME PHASES
   ========================================================== */
.phase-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.phase-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; overflow: hidden; }
.phase-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pc); opacity: .9; }
.phase-card.upcoming { background: #fbfcfd; border-style: dashed; }
.phase-card.upcoming::before { opacity: .25; }
.phase-card.current { box-shadow: 0 20px 44px -18px color-mix(in srgb, var(--pc) 55%, transparent); border-color: color-mix(in srgb, var(--pc) 45%, white); }
.ph-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ph-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--ff-d); font-size: 22px; font-weight: 600; color: #fff; background: var(--pc); }
.upcoming .ph-n { background: #e8eef1; color: var(--muted); }
.phase-card h4 { font-size: 19px; }
.ph-tag { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.ph-why { margin: 16px 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--pc) 8%, white); font-size: 13.5px; color: var(--text); line-height: 1.6; }
.ph-why b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--pc) 75%, black); margin-bottom: 4px; }
.upcoming .ph-why { background: #f2f5f7; }
.phase-card ul, .pr-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.phase-card li, .pr-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; font-weight: 600; }
.phase-card li .ic, .pr-list li .ic { color: var(--pc); margin-top: 2px; }
.upcoming li, .pr-list li.off { color: var(--muted); font-weight: 500; }
.upcoming li .ic, .pr-list li.off .ic { color: var(--faint); }
.pr-list.ms li .ic { color: var(--pc); }

.phase-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.pb-seg i { display: block; height: 8px; border-radius: 8px; background: #e6edf0; }
.pb-seg.on i { background: var(--pc); }
.pb-seg span { display: block; font-size: 11px; font-weight: 700; color: var(--faint); margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-seg.on span { color: var(--text); }
.phase-hero .pb-seg i { background: rgba(255,255,255,.15); }
.phase-hero .pb-seg.on i { background: var(--pc); box-shadow: 0 0 14px color-mix(in srgb, var(--pc) 70%, transparent); }
.phase-hero .pb-seg span { color: rgba(255,255,255,.45); }
.phase-hero .pb-seg.on span { color: #fff; }

.phase-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 32px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(500px 300px at 100% 0%, rgba(109,79,216,.4), transparent 60%), radial-gradient(400px 300px at 0% 100%, rgba(20,195,180,.3), transparent 60%), linear-gradient(140deg, #10324a, #061723); box-shadow: var(--shadow); }
.phase-hero h2 { font-family: var(--ff-d); font-size: 34px; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 6px; }
.phase-hero p { color: rgba(255,255,255,.65); }

.phase-list { display: grid; gap: 16px; }
.phase-row { display: grid; grid-template-columns: 76px 1fr; overflow: hidden; }
.phase-row.upcoming { border-style: dashed; background: #fbfcfd; }
.pr-n { background: color-mix(in srgb, var(--pc) 10%, white); display: flex; justify-content: center; padding-top: 28px; border-right: 1px solid var(--line); }
.pr-n span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--ff-d); font-size: 22px; font-weight: 600; color: #fff; background: var(--pc); }
.phase-row.upcoming .pr-n { background: #f2f5f7; }
.phase-row.upcoming .pr-n span { background: #dfe7ea; color: var(--muted); }
.phase-row.current { box-shadow: 0 0 0 2px var(--pc), var(--shadow); border-color: transparent; }
.pr-main { padding: 26px; }
.pr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pr-head h3 { font-size: 20px; }
.pr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.admin-panel { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px; border-radius: var(--r-lg); border: 1.5px dashed #cfc4f5; background: linear-gradient(120deg, #f7f4ff, #fbfaff); }

.auth-mobile-brand { display: none; }
@media (max-width: 1180px) { .phase-track { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) { .auth-mobile-brand { display: block; } }
@media (max-width: 620px) {
  .phase-track, .pr-cols { grid-template-columns: 1fr; }
  .phase-row { grid-template-columns: 1fr; }
  .pr-n { justify-content: flex-start; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pr-main { padding: 20px; }
  .phase-hero h2 { font-size: 26px; }
  .pb-seg span { font-size: 0; } .pb-seg span::first-letter { font-size: 11px; }
}
.book-sm .bk-title { overflow-wrap: anywhere; }
.card .book-sm .bk-title { font-size: 16px; }
.dp-grid .book-sm .bk-title { font-size: 20px; }
.card-head .link { white-space: nowrap; }

/* ==========================================================
   SUPPORT THREADS + ADMIN CONSOLE
   ========================================================== */
details.ticket > summary { list-style: none; }
details.ticket > summary::-webkit-details-marker { display: none; }
details.ticket[open] > summary { background: #f8fbfc; }
.thread { padding: 6px 26px 22px; display: grid; gap: 10px; background: #f8fbfc; border-bottom: 1px solid var(--line); }
.msg { max-width: 85%; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.msg small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 700; margin-bottom: 4px; }
.msg p { font-size: 14px; white-space: pre-wrap; }
.msg.admin { justify-self: end; background: var(--aqua-soft); border-color: #c8eee8; }
.reply { display: grid; gap: 8px; margin-top: 4px; }

.side-admin { background-image: radial-gradient(400px 300px at 0% 0%, rgba(109,79,216,.28), transparent 60%); }
.side-admin .nav a.on { background: linear-gradient(90deg, rgba(167,139,250,.22), rgba(167,139,250,.04)); }
.side-admin .nav a.on::before { background: #a78bfa; }
.side-admin .nav a.on .ic { color: #c4b5fd; }
.side-admin .brand-text b span { color: #a78bfa; }
.side-admin .nav a { height: 42px; }
body.admin .topbar .t-title { display: block; }
.row-link { cursor: pointer; transition: background .15s; }
.row-link:hover { background: #f7fbfb; }
.in-sm { height: 38px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; }
.select.in-sm { padding-right: 30px; background-position: right 10px center; }
.prod-table td { padding: 10px 14px; }
.prod-table th { padding: 12px 14px; }
.dp-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.dpa { overflow: hidden; }
.dpa.cur { box-shadow: 0 0 0 2px var(--aqua), var(--shadow); }
.dpa-cover { height: 130px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.dpa-cover small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.dpa-cover b { font-family: var(--ff-d); font-size: 22px; font-weight: 600; line-height: 1.1; margin-top: 4px; }
@media (max-width: 980px) {
  body.admin .topbar .t-title { display: block; }
  body.admin .topbar h1 { font-size: 18px; }
  .admin-mnav a { font-size: 10px; }
  form[data-form="prod-new"] .grid { grid-template-columns: 1fr 1fr !important; }
}

/* grid children must be allowed to shrink (prevents mobile overflow) */
.grid > *, .acc-layout > *, .g-main > * { min-width: 0; }

/* ==========================================================
   MIZU PAYMENTS
   ========================================================== */
.wc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.wc-split > div { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.wc-split small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; }
.wc-split b { font-size: 18px; display: block; margin-top: 2px; }
.wc-split i { font-style: normal; font-size: 12px; color: var(--gold-2); font-weight: 600; }
.wc-bal > b { font-size: 52px; }
.price-big { font-size: 15px; color: var(--muted); margin-top: 14px; }
.price-big b { font-family: var(--ff-d); font-size: 40px; color: var(--ink); letter-spacing: -.03em; font-weight: 600; }
.price-big small { font-size: 22px; }
.welcome-use { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1.5px dashed #f0d48f; background: var(--gold-soft); cursor: pointer; }
.welcome-use.on { border-style: solid; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(240,177,62,.15); }
.welcome-use b { display: block; font-size: 14px; }
.welcome-use small { font-size: 12.5px; color: #7a5200; }
.mizu-quote { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(120deg, #fff8e6, #fffdf6); border: 1px solid #f6e2b3; }
.mq-row { display: flex; justify-content: space-between; align-items: baseline; }
.mq-row span { font-size: 13px; color: #7a5200; font-weight: 700; }
.mq-row b { font-size: 22px; letter-spacing: -.02em; color: #5b3a00; }
.mq-meta { font-size: 12px; color: #8a6a2a; margin-top: 6px; line-height: 1.5; }
.mq-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--red-soft); color: #8b1f1f; font-size: 12.5px; font-weight: 600; }
.mq-warn a { text-decoration: underline; }
.send-box { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.sb-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.sb-row:last-child { border-bottom: 0; }
.sb-row small { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sb-row b { font-size: 13.5px; word-break: break-all; }
.sb-row .icon-btn { width: 32px; height: 32px; grid-row: 2; grid-column: 2; }
.timer { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--aqua-soft); color: var(--ocean); font-size: 13px; font-weight: 600; }
.timer.low { background: var(--red-soft); color: var(--red); }
.timer b { font-variant-numeric: tabular-nums; }
.fee-calc { padding: 14px 16px; border-radius: 14px; background: var(--sky); font-size: 13.5px; }
.fee-calc b { font-size: 20px; }
@media (max-width: 620px) { .wc-bal > b { font-size: 40px; } }

/* Treasury wallet */
.treasury-empty { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border: 1.5px dashed #f0d48f; background: linear-gradient(120deg, #fffaf0, #fff); }
.te-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--gold-soft); color: #a86b00; flex: none; }
.treasury-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--sky); font-size: 13.5px; word-break: break-all; }
.phrase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; border-radius: 16px; background: #0b1d2b; }
.phrase div { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.06); color: #fff; }
.phrase i { font-style: normal; font-size: 11px; color: rgba(255,255,255,.45); width: 16px; text-align: right; }
.phrase b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .02em; }
.pk { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--red-soft); color: #8b1f1f; font-size: 12px; word-break: break-all; }
.tw-rules li .ck { width: 32px; height: 32px; }
.tw-rules li .ck .ic { width: 16px; height: 16px; stroke-width: 2; }
@media (max-width: 620px) { .phrase { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================
   MODAL USABILITY — always reachable on short screens
   ========================================================== */
.modal-wrap { display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; }
.modal { margin: auto; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.modal-pay { max-width: 620px; }
.modal-actions { position: sticky; bottom: 0; z-index: 2; background: #fff; margin: 4px -30px -30px; padding: 12px 30px 22px; border-top: 1px solid var(--line); box-shadow: 0 -10px 18px -14px rgba(6,23,35,.25); }
.modal-actions .check { margin: 0 0 12px !important; font-size: 12.5px; }
@media (min-width: 700px) {
  .modal-pay .opt-group.methods { grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal-pay .opt-group.methods .opt { padding: 10px 12px; gap: 10px; }
  .modal-pay .opt-group.methods .opt .opt-ic { width: 34px; height: 34px; }
  .modal-pay .opt-group.methods .opt b { font-size: 13.5px; }
  .modal-pay .opt-group.methods .opt small { font-size: 11.5px; }
}
.drawer { height: 100vh; height: 100dvh; }

/* ==========================================================
   DENSITY — laptop screens (1366/1440/1536 wide, or short windows)
   Sized for comfortable reading at 100% browser zoom.
   ========================================================== */
@media (min-width: 981px) and (max-width: 1600px), (min-width: 981px) and (max-height: 860px) {
  body { font-size: 14px; }
  .app { grid-template-columns: 236px 1fr; }
  .side { padding: 18px 14px; }
  .side .brand { padding: 0 6px 16px; }
  .logo-mark { width: 34px; height: 34px; }
  .side-label { margin: 8px 0 6px; }
  .nav a { height: 40px; font-size: 13.5px; gap: 11px; }
  .nav a.on::before { left: -14px; top: 9px; bottom: 9px; }
  .side-member { padding: 10px; } .side-member .avatar { width: 34px; height: 34px; }
  .demo-clock { padding: 10px 12px; margin-top: 8px; }
  .topbar { padding: 10px 26px; }
  .topbar h1 { font-size: 19px; }
  .icon-btn { width: 36px; height: 36px; }
  .top-actions .avatar { width: 34px; height: 34px; }
  .view { padding: 20px 26px 44px; }
  .banner { margin: 14px 26px 0; padding: 11px 16px; font-size: 13.5px; }
  .welcome { margin-bottom: 18px; } .welcome h2 { font-size: 28px; }
  .mem-hero { padding: 22px 24px; }
  .mh-id { font-size: 20px; margin: 12px 0 14px; }
  .mh-grid b { font-size: 14px; }
  .ring { width: 120px; height: 120px; } .ring-txt b { font-size: 34px; }
  .kpi { padding: 16px 18px; gap: 10px; } .kpi b { font-size: 22px; } .kpi-ic { width: 36px; height: 36px; border-radius: 11px; }
  .grid { gap: 16px; } .mt { margin-top: 16px; } .mt-lg { margin-top: 24px; }
  .card-pad { padding: 20px 22px; } .card-head { padding: 18px 22px 0; }
  .list-item { padding: 12px 22px; } .order { padding: 18px 22px; } .notif { padding: 14px 22px; }
  .table th { padding: 11px 20px; } .table td { padding: 13px 20px; }
  .btn { height: 42px; padding: 0 18px; font-size: 14px; }
  .btn-lg { height: 48px; padding: 0 22px; font-size: 14.5px; }
  .btn-sm { height: 34px; padding: 0 13px; font-size: 12.5px; }
  .input, .select { height: 44px; font-size: 14px; border-radius: 12px; }
  .field { margin-bottom: 12px; }
  .modal-head { padding: 22px 26px 4px; } .modal-head h3 { font-size: 19px; } .modal-head p { font-size: 13.5px; }
  .modal-body { padding: 12px 26px 24px; }
  .modal-actions { margin: 4px -26px -24px; padding: 12px 26px 18px; }
  .pay-summary { padding: 12px 16px; } .pay-summary .sum-row { font-size: 13px; padding: 3px 0; } .pay-summary .ps-amt { font-size: 22px; }
  .sum-row.total { padding-top: 8px; margin-top: 4px; font-size: 16px; }
  .sub-label { margin: 14px 0 6px; font-size: 11px; }
  .opt { padding: 10px 12px; gap: 12px; } .opt .opt-ic { width: 34px; height: 34px; }
  .demo-note { margin: 10px 0; padding: 8px 12px; font-size: 12px; }
  .mizu-quote { padding: 12px 14px; } .mq-row b { font-size: 19px; }
  .drawer { width: 420px; } .drawer-head { padding: 16px 22px; } .drawer-body { padding: 4px 22px 16px; } .drawer-foot { padding: 14px 22px 16px; }
  .cart-item { padding: 12px 0; } .cart-item .ci-img { width: 48px; height: 48px; font-size: 24px; }
  .mk-hero { padding: 20px 24px; } .mk-hero h2 { font-size: 24px; } .mk-hero-emojis { font-size: 34px; }
  .mk-tools { margin: 18px 0 14px; } .chips { margin-bottom: 16px; } .chip-btn { height: 34px; padding: 0 13px; font-size: 13px; }
  .p-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .p-img { height: 112px; font-size: 50px; } .p-body { padding: 12px 14px 14px; } .p-name { font-size: 14.5px; } .p-mes { font-size: 19px; }
  .stepper { height: 38px; } .stepper button { width: 30px; height: 30px; }
  .activate { padding: 30px; gap: 28px; } .activate h2 { font-size: 30px; } .activate-pay .amt { font-size: 38px; }
  .dp-feature { grid-template-columns: 220px 1fr; padding: 26px; gap: 28px; } .book { width: 190px; } .book .bk-title { font-size: 24px; } .dp-feature h2 { font-size: 28px; }
  .chapters { margin: 14px 0 18px; } .chapters div { padding: 9px 12px; font-size: 13px; }
  .dp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .wallet-card { padding: 22px 24px; min-height: 200px; } .wc-bal > b { font-size: 40px; } .wc-split b { font-size: 16px; }
  .price-big b { font-size: 32px; }
  .phase-hero { padding: 24px; } .phase-hero h2 { font-size: 26px; }
  .pr-main { padding: 20px 22px; } .pr-head h3 { font-size: 18px; } .ph-why { margin: 12px 0; padding: 12px 14px; font-size: 13px; }
  .section-title { margin: 26px 0 12px; } .section-title h2 { font-size: 18px; }
  .ben-card { padding: 20px; } .offer { padding: 22px; } .offer h4 { font-size: 18px; }
  .acc-layout { grid-template-columns: 210px 1fr; gap: 18px; } .acc-nav a { padding: 10px 12px; font-size: 13.5px; }
  .renew-panel { padding: 20px 22px; } .renew-panel h3 { font-size: 18px; }
  .success { padding: 32px 26px 24px; } .success-mark { width: 68px; height: 68px; margin-bottom: 16px; } .success-mark .ic { width: 32px; height: 32px; }
  .receipt { padding: 26px 26px 22px; } .receipt-amt { padding: 18px 0; } .receipt-amt b { font-size: 30px; }
  .send-box .sb-row { padding: 9px 12px; }
  .phrase div { padding: 7px 9px; }
  /* landing + auth */
  .l-nav-in { padding: 14px 28px; }
  .hero { padding: 116px 0 160px; }
  .hero-in { gap: 40px; }
  .hero h1 { font-size: clamp(40px, 5vw, 66px); margin: 16px 0 18px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { margin-top: 26px; } .hero-trust { margin-top: 26px; font-size: 13px; }
  .hero-art { height: 400px; } .mcard { width: 350px; padding: 22px; } .mcard-id { font-size: 17px; }
  .float-chip { padding: 9px 13px 9px 9px; font-size: 12.5px; } .float-chip .fc-ic { width: 34px; height: 34px; }
  .stat { padding: 22px 24px; } .stat b { font-size: 32px; }
  .section { padding: 80px 28px; }
  .section-head { margin-bottom: 36px; } .section-head h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 12px 0; } .section-head p { font-size: 15.5px; }
  .benefit { padding: 24px 22px; } .benefit h3 { font-size: 17px; }
  .steps-wrap { padding: 52px 44px; }
  .price-card, .price-list { padding: 40px 38px; } .price-amt .num { font-size: 88px; }
  .cta-band { padding: 70px 28px; }
  .auth-art { padding: 34px 44px; } .auth-quote h2 { font-size: 36px; }
  .auth-form-wrap { padding: 32px 28px; } .auth-form h1 { font-size: 30px; } .auth-form > p { margin: 8px 0 20px; }
  .auth-steps { margin-bottom: 20px; }
}
/* Short laptop windows (e.g. 1366x768 / 1280x720 with browser bars) */
@media (min-width: 981px) and (max-height: 700px) {
  .nav a { height: 36px; }
  .side-label { display: none; }
  .demo-clock { display: none; }
  .hero { padding-top: 96px; } .hero-art { height: 360px; } .mcard { width: 320px; }
  .modal-head { padding: 18px 24px 2px; } .modal-body { padding: 10px 24px 20px; }
  .modal-actions { margin: 4px -24px -20px; padding: 10px 24px 14px; }
  .pay-summary .sum-row:not(.total) { font-size: 12.5px; }
  .welcome h2 { font-size: 25px; }
}
/* Topbar + tabs on small screens (member and admin) */
@media (max-width: 620px) {
  .top-actions .pill { display: none; }
  .topbar { gap: 8px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .modal-actions { margin: 4px -22px -30px; padding: 12px 22px 18px; }
  .modal-wrap { padding: 12px 10px; }
  .modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 22px; }
}

/* phase progress labels must be allowed to shrink */
.pb-seg { min-width: 0; }

/* single-line sidebar labels */
.nav a, .side .brand-text small, .side .brand-text b { white-space: nowrap; }
.side-member small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 981px) and (max-width: 1600px), (min-width: 981px) and (max-height: 860px) {
  .nav a { font-size: 13px; padding: 0 12px; }
  .side .brand-text small { letter-spacing: .1em; font-size: 9.5px; }
  .side .brand-text b { font-size: 15px; }
}

/* ===== MIZU LOGO ===== */
img.logo-mark { object-fit: contain; filter: drop-shadow(0 4px 8px rgba(6, 23, 35, .25)); }
.token-coin { background: radial-gradient(circle at 30% 30%, #ffffff, #e6f6fb 70%); box-shadow: 0 8px 18px -8px rgba(14, 116, 144, .55), inset 0 0 0 2px rgba(255,255,255,.7); overflow: hidden; }
.token-coin img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.12); }
/* MEMS brand lockup — full name wraps neatly under the short name */
.brand-text small, .side .brand-text small { white-space: normal; letter-spacing: .08em; font-size: 9px; line-height: 1.3; max-width: 175px; }
.mcard-top .brand-text small { max-width: 150px; }
/* ===== MIZU auto-detection ===== */
.watch-box { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--aqua-soft, #e4f8f5); border: 1px solid rgba(20, 195, 180, .25); }
.watch-box b { display: block; font-size: 14.5px; }
.watch-box small { display: block; font-size: 12.5px; opacity: .7; margin-top: 2px; }
.watch-dot { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--aqua, #14c3b4); }
.watch-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--aqua, #14c3b4); animation: watch-pulse 1.6s ease-out infinite; }
@keyframes watch-pulse { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .watch-dot::after { animation: none; opacity: .4; } }
.hash-fallback { margin-top: 12px; font-size: 13px; }
.hash-fallback summary { cursor: pointer; color: var(--ocean); font-weight: 600; list-style: none; }
.hash-fallback summary::-webkit-details-marker { display: none; }
.hash-fallback summary::before { content: "▸ "; }
.hash-fallback[open] summary::before { content: "▾ "; }
/* ===== Account recovery & message preferences ===== */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.label-row label { margin-bottom: 0; }
.forgot-link { font-size: 13px; font-weight: 600; color: var(--ocean); }
.label-row + .input-ic { margin-top: 8px; }
.recov-done { text-align: center; padding: 10px 0; }
.recov-done > .ic { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--aqua-soft, #e4f8f5); color: var(--ocean); margin-bottom: 16px; }
.recov-done.bad > .ic { background: #fdecec; color: var(--red); }
.recov-done.good > .ic { background: #e3f7ea; color: var(--green); }
.recov-done h1 { margin-bottom: 10px; }
.recov-done p { margin-bottom: 16px; }
.recov-done .spinner { margin: 0 auto 18px; }
.banner-verify { background: #eef6ff; border: 1px solid #cfe2fb; color: #12396b; }
.mb { margin-bottom: 18px; }
.pref-head { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; min-width: 0; overflow-wrap: anywhere; }
.pref-head .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line, #e3ecef); font-size: 14px; cursor: pointer; }
.pref-row:last-child { border-bottom: 0; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 23px; border-radius: 99px; background: #cfdbe0; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch:checked { background: var(--aqua, #14c3b4); }
.switch:checked::after { transform: translateX(17px); }
.switch:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
/* ===== Admin tools (Phase 8) ===== */
.export-btn { margin-left: auto; }
.export-card { display: flex; gap: 14px; align-items: flex-start; }
.export-card .li-ic { flex: none; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.role-card { border: 1px solid var(--line, #e3ecef); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.role-card ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.mb { margin-bottom: 18px; }
@media (max-width: 620px) { .export-btn { margin-left: 0; } }
.loc-info { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--sky, #f1f7f9); font-size: 12.5px; line-height: 1.55; color: var(--muted); display: grid; gap: 2px; }
.loc-info .ic { width: 13px; height: 13px; vertical-align: -2px; }
.invite-form { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; gap: 14px; align-items: end; }
.invite-form .field { margin-bottom: 0; }
@media (max-width: 900px) { .invite-form { grid-template-columns: 1fr; } }
/* ===== Community: link, team, matrix, leaderboard, health (blueprint v2) ===== */
.side-label + .nav { margin-bottom: 4px; }
.side .side-label { margin-top: 14px; }
.hint-ok { color: var(--green, #13a36b); font-weight: 600; }
.hint-bad { color: var(--red, #e5484d); font-weight: 600; }
.community-card .cc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.community-card .cc-stats a { display: block; padding: 12px 14px; border-radius: 14px; background: var(--sky, #f1f7f9); min-width: 0; }
.community-card .cc-stats b { display: block; font-size: 20px; font-weight: 800; }
.community-card .cc-stats b small { font-size: 13px; color: var(--muted); font-weight: 700; }
.community-card .cc-stats span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ref-row, .ref-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line, #d7e4e8); border-radius: 14px; min-width: 0; }
.ref-row .mono, .ref-box .mono { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ref-box { padding: 14px 16px; background: var(--sky, #f1f7f9); border-style: solid; }
.ref-box .mono { font-size: 14.5px; font-weight: 700; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.plain-list { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.rank-pill { font-size: 11.5px; background: #eef2f5; color: #42566a; }
.rank-starter, .rank-no-rank-yet { background: #e4f8f5; color: #0e7490; }
.rank-explorer { background: #e6f0ff; color: #2456b4; }
.rank-catalyst { background: #efe9ff; color: #5b3fc4; }
.rank-magnate { background: #fff3d6; color: #8a5a00; }
.rank-ambassador { background: #ffe8e1; color: #b0391d; }
.rank-imperial, .rank-imperial-diamond { background: linear-gradient(135deg, #ffe7a3, #f0b13e); color: #5b3a00; }
.rank-ladder { display: grid; gap: 6px; margin: 14px 0; }
.rank-ladder .rl { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: #f5f8f9; font-size: 13px; color: var(--muted); }
.rank-ladder .rl b { color: var(--text); font-weight: 700; }
.rank-ladder .rl.done { background: #e9f8ef; }
.rank-ladder .rl.on { background: var(--ink, #061723); color: #cfe; }
.rank-ladder .rl.on b { color: #fff; }
.next-rank { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line, #e3ecef); }
.next-rank small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.next-rank b { font-size: 16px; }
.next-rank p { font-size: 13px; margin: 4px 0 8px; color: var(--muted); }
.next-rank .bar, .lvl-bar { height: 7px; border-radius: 99px; background: #e8eff2; overflow: hidden; margin: 4px 0; }
.next-rank .bar i, .lvl-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua, #14c3b4), #0e7490); border-radius: 99px; }
.lvl-bar { width: 160px; max-width: 100%; }
.matrix-empty { text-align: center; padding: 48px 24px; }
.matrix-empty .em { font-size: 40px; margin-bottom: 10px; }
.mx-tree { display: grid; gap: 14px; margin: 18px 0 8px; overflow-x: auto; padding-bottom: 4px; }
.mx-row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; min-width: 0; }
.mx-node { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: default; min-width: 0; font: inherit; color: inherit; }
.mx-node[data-act] { cursor: pointer; }
.mx-node > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: #e9f8ef; color: #0f7a4f; border: 2px solid transparent; }
.mx-node.off > span { background: #eef2f5; color: #7a8e99; }
.mx-node.direct > span { border-color: var(--aqua, #14c3b4); }
.mx-node.spill > span { border-color: #f0b13e; }
.mx-node.you > span { background: var(--ink, #061723); color: #fff; }
.mx-node.open > span { background: transparent; border: 2px dashed #cfdbe0; color: #a9bac3; }
.mx-node small { font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-node[data-act]:hover > span { transform: translateY(-2px); box-shadow: 0 6px 14px -6px rgba(6, 23, 35, .35); }
.mx-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.mx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mx-legend .lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.lg.act { background: #bfeccf; } .lg.off { background: #dde5ea; } .lg.direct { border: 2px solid var(--aqua, #14c3b4); } .lg.spill { border: 2px solid #f0b13e; } .lg.open { border: 2px dashed #cfdbe0; }
@media (max-width: 620px) { .mx-node > span { width: 30px; height: 30px; font-size: 10.5px; } .mx-node small { display: none; } .mx-row { gap: 3px; } .community-card .cc-stats { grid-template-columns: 1fr; } }
.lb-row { display: flex; align-items: center; gap: 14px; padding: 12px 26px; border-top: 1px solid var(--line, #eef3f5); }
.lb-row.me { background: #f0fbf9; }
.lb-pos { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #eef2f5; flex: none; }
.lb-pos.top1 { background: linear-gradient(135deg, #ffe7a3, #f0b13e); } .lb-pos.top2 { background: #e6ebef; } .lb-pos.top3 { background: #f6dcc6; }
.lb-count { font-size: 18px; }
.lb-me { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.lb-me b { font-size: 34px; font-family: Fraunces, serif; }
.lb-me span { color: var(--muted); font-size: 13.5px; }
.tips { padding: 6px 0; }
.tip { border-top: 1px solid var(--line, #eef3f5); padding: 0 26px; }
.tip summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary b { flex: 1; font-size: 14.5px; }
.tip summary small { color: var(--muted); font-size: 12px; }
.tip p { margin: 0 0 16px 46px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.health-card .li-ic { width: 46px; height: 46px; }
.menu-group { margin-bottom: 18px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.menu-tile { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line, #e3ecef); font-weight: 700; font-size: 14px; min-width: 0; }
.menu-tile .ic { color: var(--ocean); flex: none; }
.pay-rules { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
/* ===== Product photos, product page, ratings & reviews ===== */
.p-img { height: auto; aspect-ratio: 1 / 1; overflow: hidden; display: block; padding: 0; }
.p-img .p-photo, .p-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.p-card:hover .p-img img { transform: scale(1.04); }
.p-img .p-save, .p-img .p-stock { z-index: 1; }
.p-ph { display: grid; place-items: center; width: 100%; height: 100%; color: #6b8592; }
.p-ph .ic { width: 38%; height: 38%; stroke-width: 1.2; opacity: .5; }
a.p-name { display: block; color: inherit; }
a.p-name:hover { color: var(--ocean); }
@media (max-width: 1600px) and (min-width: 981px) { .p-img { height: auto; } }
@media (max-width: 980px) { .p-img { height: auto; } }
.p-rating { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: 4px 0 2px; min-height: 18px; }
.p-rating b { font-weight: 800; } .p-rating small { color: var(--muted); }
.p-rating.none { color: var(--muted); font-size: 12px; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars i { width: var(--s); height: var(--s); background: #d9e1e5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat; display: inline-block; }
.stars i.on { background: #f2b316; }
.stars i.half { background: linear-gradient(90deg, #f2b316 50%, #d9e1e5 50%); }
.cart-item .ci-img { overflow: hidden; }
.cart-item .ci-img img, .cat-row .ce img, .pt-prod i img, .li-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cat-row .ce, .pt-prod i, .li-ic.li-img { overflow: hidden; }
.order-items .oi { display: inline-flex; align-items: center; gap: 6px; }
.order-items .oi img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.crumb-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--ocean); margin-bottom: 14px; }
.crumb-link .ic { transform: rotate(180deg); }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pd-main { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1 / 1; box-shadow: var(--shadow, 0 10px 30px -14px rgba(6, 23, 35, .25)); }
.pd-main img, .pd-main .p-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-main .p-save { position: absolute; top: 16px; left: 16px; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; cursor: pointer; }
.pd-thumbs button.on { border-color: var(--aqua, #14c3b4); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-info { background: #fff; border-radius: 22px; padding: 26px 28px; border: 1px solid var(--line, #e3ecef); min-width: 0; }
.pd-name { font-family: Fraunces, serif; font-size: 30px; line-height: 1.15; margin: 6px 0 4px; }
.pd-unit { color: var(--muted); font-weight: 600; }
.pd-rate { display: inline-block; margin-top: 8px; color: inherit; }
.pd-price { margin: 18px 0 12px; padding: 16px 18px; border-radius: 16px; background: var(--sky, #f1f7f9); }
.pd-price > div { display: flex; align-items: baseline; gap: 12px; margin: 2px 0 8px; flex-wrap: wrap; }
.pd-price b { font-size: 32px; font-weight: 800; }
.pd-price .strike { color: var(--muted); font-size: 16px; }
.pd-stock { display: flex; align-items: center; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.pd-buy { margin: 18px 0; }
.stepper.big { height: 52px; }
.pd-notes { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line, #e3ecef); padding-top: 16px; }
.pd-notes .ic { vertical-align: -3px; color: var(--ocean); }
.pd-desc { font-size: 15px; line-height: 1.75; color: #3b4a54; white-space: pre-line; }
.rv-wrap { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 26px; padding: 6px 26px 26px; }
.rv-big { display: flex; flex-direction: column; gap: 6px; }
.rv-big b { font-size: 46px; font-family: Fraunces, serif; line-height: 1; }
.rv-bars { display: grid; gap: 6px; margin: 16px 0 18px; }
.rv-bars div { display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.rv-bars i { height: 8px; border-radius: 99px; background: #e8eff2; overflow: hidden; display: block; }
.rv-bars i b { display: block; height: 100%; background: #f2b316; border-radius: 99px; }
.rv-form { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line, #e3ecef); border-radius: 16px; }
.rv-form .textarea { min-height: 90px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input label { cursor: pointer; position: relative; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input i { display: block; width: 30px; height: 30px; background: #d9e1e5; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .15s; }
.star-input label:hover i, .star-input label:hover ~ label i, .star-input input:checked ~ i, .star-input label:has(input:checked) ~ label i { background: #f2b316; }
.star-input input:focus-visible + i { outline: 2px solid var(--ocean); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rv { padding: 16px 0; border-top: 1px solid var(--line, #eef3f5); }
.rv:first-child { border-top: 0; padding-top: 4px; }
.rv-head { display: flex; gap: 10px; align-items: center; }
.rv-head b { font-size: 14px; }
.rv p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: #3b4a54; }
.rv-reply { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--sky, #f1f7f9); border-left: 3px solid var(--aqua, #14c3b4); }
.rv-reply b { font-size: 12.5px; color: var(--ocean); }
.rv-reply p { margin-top: 4px; }
@media (max-width: 900px) { .pd, .rv-wrap { grid-template-columns: minmax(0, 1fr); } .pd-info { padding: 20px; } .pd-name { font-size: 25px; } .rv-wrap { padding: 6px 18px 20px; } }
/* Admin: product photos & reviews */
.prod-thumb { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; flex: none; }
.prod-thumb img, .prod-thumb .pt-empty { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; display: grid; place-items: center; background: #f1f5f7; border: 1px dashed #cfdbe0; }
.prod-thumb small { font-size: 10.5px; color: var(--ocean); font-weight: 700; white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line, #e3ecef); display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 10px; background: #fff; }
.photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.photo.main { border-color: var(--aqua, #14c3b4); box-shadow: 0 0 0 2px rgba(20, 195, 180, .25); }
.photo .gen { position: absolute; top: 8px; left: 8px; font-size: 10.5px; }
.photo-del { position: absolute; top: 6px; right: 6px; background: #fff; }
.photo.add { justify-content: center; min-height: 170px; border-style: dashed; cursor: pointer; color: var(--ocean); font-weight: 700; font-size: 13.5px; padding: 10px; }
.photo-opts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.rv-stars { color: #f2b316; letter-spacing: 1px; } .rv-stars span { color: #d9e1e5; }
.rv-quote { padding: 10px 14px; border-radius: 12px; background: #f5f8f9; font-size: 13.5px; margin-bottom: 14px; }
.mk-hero-pics { display: flex; gap: 10px; flex: none; }
.mk-hero-pics a { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 18px -10px rgba(6, 23, 35, .4); transition: transform .2s; }
.mk-hero-pics a:hover { transform: translateY(-3px); }
.mk-hero-pics img, .mk-hero-pics .p-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 620px) { .mk-hero-pics { display: none; } }
.pd-notes > div { display: flex; gap: 8px; align-items: flex-start; }
.pd-notes > div .ic { flex: none; margin-top: 2px; }
/* ===== Pick-up centres directory ===== */
.ctr-tools { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ctr-tools .search { flex: 1; max-width: 380px; min-width: 220px; }
.ctr-stats { font-size: 14px; color: var(--muted); } .ctr-stats b { color: var(--text); }
.ctr-country { margin-top: 10px; }
.ctr-country h3 { font-size: 20px; display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.ctr-country h3 small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ctr-state { margin-top: 14px; }
.ctr-state-h { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ocean); margin-bottom: 8px; }
.ctr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ctr-card { background: #fff; border: 1px solid var(--line, #e3ecef); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ctr-card.soon { background: #fbfcfd; border-style: dashed; }
.ctr-top { display: flex; gap: 12px; align-items: flex-start; }
.ctr-top > div { flex: 1; }
.ctr-top b { display: block; font-size: 15.5px; line-height: 1.3; }
.ctr-top small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ctr-top .li-ic { flex: none; }
.ctr-addr { margin: 0; font-size: 14px; line-height: 1.55; color: #3b4a54; overflow-wrap: anywhere; }
.ctr-meta { display: grid; gap: 6px; font-size: 13.5px; }
.ctr-meta > div { display: flex; gap: 8px; align-items: flex-start; }
.ctr-meta .ic { flex: none; margin-top: 2px; color: var(--ocean); }
.ctr-meta a { color: var(--ocean); font-weight: 700; white-space: nowrap; }
.ctr-meta .sep { margin: 0 6px; color: var(--muted); }
.ctr-dir { align-self: flex-start; margin-top: auto; }
.ctr-teaser { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 900px; margin: 0 auto; }
.ctr-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line, #e3ecef); box-shadow: 0 8px 20px -14px rgba(6, 23, 35, .3); transition: transform .2s; }
.ctr-chip:hover { transform: translateY(-2px); }
.ctr-chip .ic { color: var(--ocean); }
.ctr-chip b { display: block; font-size: 14.5px; } .ctr-chip small { display: block; font-size: 12px; color: var(--muted); }
.ctr-chip.soon { border-style: dashed; opacity: .85; }
.ctr-page { min-height: 100vh; background: var(--bg, #f3f7f8); }
.ctr-head { background: var(--ink, #061723); color: #fff; }
.ctr-head-in { max-width: 1180px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ctr-head .l-cta { display: flex; gap: 8px; }
.ctr-head .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.ctr-main { max-width: 1180px; margin: 0 auto; padding: 26px 24px 60px; }
.ctr-title { font-family: Fraunces, serif; font-size: 36px; margin: 6px 0 0; }
@media (max-width: 620px) { .ctr-head-in, .ctr-main { padding-left: 16px; padding-right: 16px; } .ctr-title { font-size: 28px; } .ctr-grid { grid-template-columns: minmax(0, 1fr); } .ctr-tools .search { max-width: none; } }
.ctr-card > .ctr-state-h { margin: 0 0 -2px; font-size: 11.5px; }
.ctr-country + .ctr-country { margin-top: 26px; }
/* ===== Track Order ===== */
.ot-find { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ot-search { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.ot-search .search { flex: 1; }
.ot-list { padding: 4px 0 8px; }
.ot-row { display: flex; align-items: center; gap: 16px; padding: 16px 26px; border-top: 1px solid var(--line, #eef3f5); color: inherit; }
.ot-row:hover { background: #f8fbfc; }
.ot-thumbs { display: flex; flex: none; }
.ot-thumbs span { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; border: 2px solid #fff; margin-left: -12px; background: var(--sky, #f1f7f9); display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 10px -6px rgba(6, 23, 35, .35); }
.ot-thumbs span:first-child { margin-left: 0; }
.ot-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ot-main { flex: 1; min-width: 0; }
.ot-main small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.ot-main .track { margin-top: 10px; }
.ot-go { flex: none; }
.ot-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ot-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 20px; }
.ot-next { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: #eef6ff; color: #12396b; font-size: 14px; font-weight: 600; max-width: 560px; }
.ot-next .ic { flex: none; margin-top: 1px; }
.ot-next.ready { background: #fff6e0; color: #7a4c00; }
.ot-next.good { background: #e9f8ef; color: #0f6a42; }
.ot-next.bad { background: #fdecec; color: #9b1c1c; }
.ot-timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.ot-timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 22px; }
.ot-timeline li:last-child { padding-bottom: 0; }
.ot-timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: #e1e9ed; }
.ot-timeline li:last-child::before { display: none; }
.ot-timeline li > i { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #cfdbe0; position: relative; z-index: 1; }
.ot-timeline li.done > i { background: var(--aqua, #14c3b4); border-color: var(--aqua, #14c3b4); }
.ot-timeline li.done > i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.ot-timeline li.done::before { background: var(--aqua, #14c3b4); }
.ot-timeline li.cur > i { border-color: var(--aqua, #14c3b4); box-shadow: 0 0 0 5px rgba(20, 195, 180, .18); }
.ot-timeline li.cur > i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--aqua, #14c3b4); animation: watch-pulse 1.6s ease-out infinite; }
.ot-timeline li.cancel > i { background: #e5484d; border-color: #e5484d; }
.ot-timeline b { display: block; font-size: 15px; }
.ot-timeline small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.ot-timeline li:not(.done):not(.cur):not(.cancel) b { color: var(--muted); }
.ot-items { padding: 4px 26px 6px; }
.ot-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line, #eef3f5); }
.ot-item:first-child { border-top: 0; }
.ot-img { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: var(--sky, #f1f7f9); display: grid; place-items: center; font-size: 24px; }
.ot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ot-item .li-main a { color: inherit; }
.ot-rate { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #b07800; margin-top: 4px; }
.ot-sum { padding: 6px 26px 20px; border-top: 1px solid var(--line, #eef3f5); }
.ot-code { text-align: center; background: linear-gradient(160deg, #061723, #0c3a47); color: #fff; border: 0; }
.ot-code small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.ot-code b { display: block; font-size: 40px; letter-spacing: .12em; margin: 6px 0 10px; color: #5eead4; }
.ot-code p { font-size: 13px; line-height: 1.55; opacity: .85; margin: 0; }
.ot-addr { margin: 6px 0 10px; font-size: 14px; line-height: 1.55; color: #3b4a54; }
.ot-actions { display: grid; gap: 10px; }
.code-input { font-size: 26px; letter-spacing: .2em; text-align: center; height: 60px; }
@media (max-width: 620px) { .ot-row { padding: 14px 16px; flex-wrap: wrap; } .ot-go { display: none; } .ot-items, .ot-sum { padding-left: 18px; padding-right: 18px; } .ot-code b { font-size: 34px; } }
.ot-thumbs { width: 116px; }
@media (max-width: 620px) { .ot-thumbs { width: auto; } }
/* ===== Pick-up centre dashboard (admin) ===== */
.c-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.c-bar .search { flex: 1; min-width: 220px; max-width: 380px; }
.c-title { font-family: Fraunces, serif; font-size: 24px; margin: 0; }
a.c-kpi { color: inherit; transition: transform .15s; } a.c-kpi:hover { transform: translateY(-2px); }
.c-member { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; }
.c-member .ic { color: var(--ocean); }
.c-member a { color: var(--ocean); font-weight: 700; }
.c-issue { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff3f0; color: #8a2b16; font-size: 13px; }
.c-issue .ic { flex: none; margin-top: 2px; }
.c-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.c-wait { padding: 14px 26px; gap: 12px; flex-wrap: wrap; }
.c-loc + .c-loc { margin-top: 18px; }
.c-note { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line, #eef3f5); font-size: 13px; }
.c-note:first-of-type { border-top: 0; }
.c-note span { color: var(--muted); } .c-note small { color: var(--muted); font-size: 11.5px; }
.team-centres { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; align-items: center; }
.team-centres .pill { font-size: 11px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ocean); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.centre-checks { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--line, #e3ecef); border-radius: 14px; max-height: 260px; overflow: auto; }
.invite-centres { grid-column: 1 / -1; }
.c-mgrs { font-size: 12px; color: var(--ocean); font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.c-mgrs.none { color: #b0391d; } .c-mgrs.none a { text-decoration: underline; }
@media (max-width: 620px) { .c-actions .btn { flex: 1 1 100%; } .c-wait { padding: 14px 16px; } }
@media print {
  .side, .topbar, .mobile-nav, .no-print, #toasts { display: none !important; }
  .app { display: block !important; } .main { margin: 0 !important; } .view { padding: 0 !important; }
  .print-area { box-shadow: none !important; border: 0 !important; }
}
/* ===== Two-step login ===== */
.tf-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 500px at 100% 0%, rgba(109, 79, 216, .18), transparent 60%), var(--bg, #f3f7f8); }
.tf-gate-card { max-width: 460px; width: 100%; text-align: left; }
.tf-gate-card .logo-mark { width: 48px; height: 48px; }
.tf-gate-card h2 { font-family: Fraunces, serif; font-size: 26px; margin: 12px 0 6px; }
.tf-steps { margin: 16px 0 20px; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.tf-qr { width: 220px; height: 220px; margin: 0 auto; padding: 8px; background: #fff; border-radius: 16px; border: 1px solid var(--line, #e3ecef); display: grid; place-items: center; }
.tf-qr svg { width: 100%; height: 100%; }
.tf-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 14px; background: #f5f8f9; border-radius: 14px; font-size: 15px; letter-spacing: .06em; }
.tf-codes span { text-align: center; padding: 6px; background: #fff; border-radius: 8px; }
.sec-roles { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ==========================================================
   Reports (admin) — charts follow the dataviz method: thin marks, recessive chrome, one tooltip
   ========================================================== */
.vz-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vz-presets { flex-wrap: wrap; max-width: 100%; }
.vz-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vz-custom .input { width: 160px; }
.vz-range { font-size: 13px; }
.vz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vz-stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vz-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.vz-value { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -.01em; overflow-wrap: anywhere; line-height: 1.2; }
.vz-delta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.vz-delta.up b { color: #006300; }
.vz-delta.down b { color: #d03b3b; }
.vz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.vz-head h3 { font-size: 16px; }
.vz-head p { font-size: 12.5px; margin-top: 2px; }
.vz { width: 100%; min-height: 230px; position: relative; }
.vz svg { display: block; overflow: visible; }
.vz-tick { font-size: 11px; fill: #898781; font-variant-numeric: tabular-nums; font-family: var(--ff); }
.vz-val { font-size: 11.5px; fill: #52514e; font-weight: 700; font-family: var(--ff); }
.vz-end { font-size: 11.5px; fill: #52514e; font-weight: 600; font-family: var(--ff); }
.vz-hit, .vz-overlay { cursor: crosshair; outline: none; }
.vz-hit:focus-visible, .vz-overlay:focus-visible { stroke: var(--ocean); stroke-width: 2; }
.vz-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: -2px 0 6px; }
.vz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vz-legend i { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.vz-tablewrap { margin-top: 8px; }
.vz-tablewrap summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ocean); width: max-content; }
.vz-tablewrap .table-wrap { max-height: 260px; overflow: auto; margin-top: 8px; }
.vz-table td, .vz-tablewrap td { font-variant-numeric: tabular-nums; }
.vz-cellbar { display: flex; flex-direction: column; gap: 5px; min-width: 120px; }
.vz-cellbar span { font-weight: 700; font-variant-numeric: tabular-nums; }
.vz-cellbar i { display: block; height: 6px; border-radius: 3px; background: #2a78d6; }
.vz-flag { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); font-weight: 700; }
.vz-hbars { display: flex; flex-direction: column; gap: 4px; }
.vz-hrow { display: grid; grid-template-columns: minmax(80px, 34%) 1fr; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; outline: none; }
.vz-hrow:hover, .vz-hrow:focus-visible { background: #f3f6f7; }
.vz-hname { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-htrack { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vz-htrack i { display: block; height: 14px; border-radius: 0 4px 4px 0; background: #2a78d6; flex: none; }
.vz-hrow:hover .vz-htrack i, .vz-hrow:focus-visible .vz-htrack i { background: #5598e7; }
.vz-htrack b { font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: #52514e; }
#vz-tip { position: fixed; z-index: 400; display: none; pointer-events: none; background: #fff; border: 1px solid rgba(11, 11, 11, .1); border-radius: 10px; box-shadow: var(--shadow); padding: 9px 12px; font-size: 12.5px; max-width: 260px; }
#vz-tip .vt-head { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
#vz-tip .vt-row { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
#vz-tip .vt-row i { width: 12px; height: 2px; border-radius: 2px; flex: none; }
#vz-tip .vt-row b { color: #0b0b0b; font-size: 13.5px; font-variant-numeric: tabular-nums; }
#vz-tip .vt-row span { color: #52514e; }
#vz-tip .vt-note { color: #52514e; line-height: 1.5; }
@media (max-width: 1100px) { .vz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .vz-stats { gap: 10px; } .vz-stat { padding: 13px 14px; } .vz-value { font-size: 19px; } .vz-presets button { padding: 0 11px; } .vz-custom .input { width: 140px; } }

/* Backups (admin) */
.bk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.bk-steps { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.55; }
.bk-steps code, .card code { font-size: 12.5px; background: #eef3f5; padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* Phone app & notifications panel (member + admin) */
.dev-box { display: flex; flex-direction: column; }
.dev-box .spinner { width: 26px; height: 26px; border-width: 3px; margin: 10px auto; }
.dev-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dev-row:last-child { border-bottom: 0; }
.dev-txt { flex: 1; min-width: 200px; }
.dev-txt b { display: block; font-size: 14px; }
.dev-txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 2px; }
.dev-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pref-push { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pref-more { margin-top: 4px; }
.pref-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ocean); padding: 6px 0; width: max-content; max-width: 100%; }
.install-banner .icon-btn { margin-left: auto; flex: none; }
.install-banner .btn { flex: none; }

/* QR pickup */
.ot-qr { background: #fff; border-radius: 14px; padding: 8px; width: min(220px, 72%); margin: 12px auto 2px; }
.ot-qr svg { display: block; width: 100%; height: auto; }
.qr-cam { position: relative; border-radius: 16px; overflow: hidden; background: #061723; aspect-ratio: 1 / 1; max-width: 360px; margin: 0 auto; }
.qr-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-frame { position: absolute; inset: 16%; border: 3px solid rgba(94, 234, 212, .9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(6, 23, 35, .35); }
.qr-msg { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0; min-height: 21px; }
.qr-ok { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 14px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 700; margin-bottom: 14px; }
.or-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--faint); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.c-bar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.install-banner .btn + .icon-btn { margin-left: 0; }
@media (max-width: 980px) { .ot-ready > div:last-child { order: -1; } }
@media (max-width: 620px) { .bk-dl span { display: none; } .bk-dl { padding: 0 10px; } }

/* ==========================================================
   Phase 4 — Digital Marketplace, MIZU-KAPPA Market, My Downloads, Affiliate Links
   ========================================================== */
.dm-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px;
  background: linear-gradient(120deg, #eef2ff 0%, #f3efff 45%, #e7f8f4 100%); border: 1px solid #dfe3fb; }
.dm-hero h2 { font-family: var(--ff-d); font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin-top: 10px; }
.dm-hero p { color: #4b5470; margin-top: 6px; max-width: 600px; font-size: 14.5px; }
.dm-hero-ic { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: #fff; color: var(--violet); box-shadow: var(--shadow-sm); flex: none; }
.aff-hero { background: linear-gradient(120deg, #e7f8f4 0%, #eef7f8 50%, #fff6e1 100%); border-color: #cdeee8; }
.aff-hero .dm-hero-ic { color: var(--ocean); }
.dm-tools { margin-top: 0; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.dcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: inherit; transition: transform .25s var(--ease), box-shadow .25s var(--ease); min-width: 0; }
.dcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dcard-cover { position: relative; aspect-ratio: 3 / 4; background: #eef2f5; overflow: hidden; display: block; }
.dcard-cover img, .dpd-cover img, .dl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; color: #fff; text-align: left; }
.dc-ph small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.dc-ph b { font-family: var(--ff-d); font-size: 19px; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.dc-ph i { font-style: normal; font-size: 12px; opacity: .85; }
.dcard-flag, .dcard-own { position: absolute; top: 10px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.dcard-flag { left: 10px; background: var(--gold); color: #3d2a00; }
.dcard-own { right: 10px; background: var(--green); color: #fff; }
.dcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dcard-body small { font-size: 11.5px; font-weight: 700; color: var(--ocean); }
.dcard-body > b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.dcard-by { font-size: 12.5px; color: var(--muted); }
.dcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dcard-price b { font-size: 17px; }
.dcard-price span { font-size: 12px; color: var(--muted); font-weight: 600; }
.dpd { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.dpd-cover { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow); background: #eef2f5; }
.dpd-cover .dc-ph b { font-size: 28px; }
.dpd-sub { color: var(--muted); font-size: 15.5px; margin-top: 2px; }
.dpd-by { margin-top: 10px; font-size: 14px; color: var(--muted); }
.dpd-by b { color: var(--text); }
.dpd-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 16px; }
.dpd-price b { font-size: 32px; letter-spacing: -.02em; }
.dpd-price span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.dpd-buy { max-width: 380px; }
.dpd-owned { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.dpd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dpd-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: var(--sky); font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.dpd-own { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--aqua-soft); color: var(--ocean); font-size: 13px; line-height: 1.5; }
.dpd-own .ic { flex: none; margin-top: 2px; }
.dpd-text p, .dpd-preview p { font-size: 14.5px; line-height: 1.7; color: #31424e; margin-bottom: 10px; }
.dpd-preview { background: #fbfaf6; border: 1px dashed #e6dfc8; border-radius: 14px; padding: 16px 18px; }
.aff-link { display: flex; gap: 8px; }
.aff-link .input { flex: 1; min-width: 0; font-size: 12.5px; height: 40px; }
.aff-row { display: flex; align-items: center; gap: 12px; padding: 13px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.aff-row:last-child { border-bottom: 0; }
.dl-item { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dl-item:last-child { border-bottom: 0; }
.dl-item.off { opacity: .65; }
.dl-cover { position: relative; width: 54px; height: 72px; border-radius: 10px; overflow: hidden; flex: none; background: #eef2f5; display: block; }
.dl-cover .dc-ph { padding: 6px; }
.dl-cover .dc-ph b { font-size: 9px; -webkit-line-clamp: 3; }
.dl-cover .dc-ph small, .dl-cover .dc-ph i { display: none; }
.dl-item .li-main b { white-space: normal; }
.dl-item .li-main small { display: block; font-size: 12px; margin-top: 2px; }
.kap-hero { background: linear-gradient(120deg, #e4f8f5 0%, #eef2ff 55%, #fff6e1 100%); border-color: #cdeee8; }
.kap-hero h2 { margin-top: 10px; }
.kap-hero p { color: #3c5560; }
.kap-limit { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 9px 13px; border-radius: 12px; background: rgba(255, 255, 255, .8); font-size: 13px; color: var(--ink-3); }
.kap-limit .ic { flex: none; margin-top: 2px; color: var(--ocean); }
.shop-intro, .join-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.shop-intro > div, .join-card > div { flex: 1; min-width: 220px; }
.join-card { background: linear-gradient(120deg, #fff8e6, #fdf0d8); border-color: #f3e6c6; }
.shopper-link { margin-top: 10px; font-size: 13.5px; }
@media (max-width: 860px) {
  .dpd { grid-template-columns: 1fr; }
  .dpd-cover { max-width: 300px; width: 100%; margin: 0 auto; }
  .dpd-buy { max-width: none; }
}
@media (max-width: 620px) {
  .dm-hero { padding: 22px 20px; }
  .dm-hero h2 { font-size: 22px; }
  .dm-hero-ic { display: none; }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dcard-body { padding: 11px 12px 13px; }
  .dcard-body > b { font-size: 13.5px; }
  .dc-ph b { font-size: 15px; }
  .aff-row, .dl-item { padding: 12px 16px; }
  .dpd-price b { font-size: 26px; }
}

/* Admin: digital marketplace, creators, MIZU-KAPPA limits */
.dm-row { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dm-row:last-child { border-bottom: 0; }
.dm-row .li-main b { white-space: normal; }
.dm-cover { width: 42px; height: 56px; border-radius: 8px; overflow: hidden; flex: none; background: linear-gradient(155deg, #6d4fd8, #2b1a6b); display: grid; place-items: center; }
.dm-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmini { color: #fff; font-weight: 800; font-size: 18px; }
.dm-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 12.5px; color: #7a4c00; background: var(--amber-soft); padding: 6px 10px; border-radius: 10px; }
.dm-note .ic { flex: none; margin-top: 2px; }
.dm-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.dm-totals { margin-bottom: 4px; }
.dm-hero-a { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dm-hero-a h2 { font-family: var(--ff-d); font-size: 26px; font-weight: 600; margin-top: 8px; }
.dm-hero-a p { max-width: 640px; margin-top: 4px; font-size: 14px; }
.kap-limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.input-pre { position: relative; }
.input-pre span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.input-pre .input { padding-left: 26px; }
@media (max-width: 620px) { .dm-row { padding: 12px 16px; } .dm-acts { justify-content: flex-start; margin-left: 0; width: 100%; } }
@media (max-width: 420px) { .shop-head .brand-text small { display: none; } .shop-head .l-cta { gap: 6px; } .shop-head .btn-sm { padding: 0 12px; } }

/* ==========================================================
   Step 5 — My Earnings, welcome claim, admin earnings
   ========================================================== */
.earn-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 30px; border-radius: var(--r-lg);
  background: radial-gradient(600px 300px at 100% 0%, rgba(94, 234, 212, .25), transparent 60%), linear-gradient(150deg, #0b2a40, #061723); color: #e6f6f4; }
.earn-hero .eyebrow { color: var(--aqua-2); }
.earn-hero p { color: #a9c4c8; font-size: 14px; margin-top: 8px; max-width: 520px; }
.earn-hero p b { color: #fff; }
.earn-bal { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.earn-bal b { font-size: 40px; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.earn-bal span { color: #a9c4c8; font-weight: 600; font-size: 14px; }
.earn-claim { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 260px; }
.earn-claim small { color: #a9c4c8; font-size: 12px; text-align: right; line-height: 1.4; }
.earn-table td { vertical-align: top; }
.welcome-claim { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(120deg, #fff8e6, #fdf0d8); border-color: #f3e6c6; }
.welcome-claim .token-coin { width: 44px; height: 44px; flex: none; }
.welcome-claim .li-main b { white-space: normal; font-size: 15px; }
.kpi-link { color: inherit; display: block; }
.kpi-link .kpi { height: 100%; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.kpi-link:hover .kpi { transform: translateY(-2px); box-shadow: var(--shadow); }
.welcome-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
.welcome-form .check, .welcome-form button, .welcome-form p { grid-column: 1 / -1; }
.welcome-form button { justify-self: start; }
@media (max-width: 620px) {
  .earn-hero { padding: 22px 20px; }
  .earn-bal b { font-size: 32px; }
  .earn-claim { align-items: flex-start; max-width: none; }
  .earn-claim small { text-align: left; }
  .welcome-form { grid-template-columns: 1fr; }
}
.earn-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.earn-filters .select { width: auto; min-width: 140px; }
.earn-filters .search { min-width: 200px; flex: 0 1 260px; }
.welcome-claim .li-main { flex: 1 1 220px; }
@media (max-width: 620px) { .welcome-claim .btn { width: 100%; } }

/* ---- payout wallet change + 48h hold (owner decision 11 Nov 2026) ---- */
.wc-change { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.wc-change:hover { background: rgba(255,255,255,.2); }
.wc-hold { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: #ffe7a3; background: rgba(240,177,62,.14); border: 1px solid rgba(240,177,62,.35); border-radius: 10px; padding: 8px 10px; }
.wc-hold svg { flex: none; margin-top: 1px; }

/* ---- membership package choice (owner decision C15) ---- */
.pkg-list { display: grid; gap: 10px; }
.pkg-opt { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--text); display: grid; gap: 4px; }
.pkg-opt:hover { border-color: var(--aqua); }
.pkg-opt.on { border-color: var(--aqua); box-shadow: 0 0 0 3px var(--aqua-soft); }
.pkg-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.pkg-top b { font-size: 15.5px; }
.pkg-price { font-weight: 800; color: var(--ocean); white-space: nowrap; }
.pkg-opt small { color: var(--muted); font-size: 12.5px; }
.pkg-opt ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---- weekly release waiting for approval (owner decision B2) ---- */
.earn-pending { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; background: var(--gold-soft); border: 1px solid #f1d99c; border-radius: 10px; padding: 9px 11px; font-size: 13px; color: #6b4500; }
.earn-pending svg { flex: none; margin-top: 2px; }

/* ---- Admin → Payouts (step 6) ---- */
.po-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.po-steps { display: grid; gap: 12px; margin-top: 12px; }
.po-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.po-step > div > b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.po-step p { font-size: 13px; margin: 0 0 8px; }
.po-n { width: 28px; height: 28px; border-radius: 50%; background: var(--sky); color: var(--ocean); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.po-step.done .po-n { background: var(--green-soft); color: var(--green); }
.po-inline { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.po-inline .input { flex: 1; min-width: 200px; }

/* ---- member claims (step 6) ---- */
.earn-claim .claim-note { display: block; max-width: 260px; }
.claim-list { display: grid; gap: 0; }
.claim-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.claim-row small { color: var(--muted); display: block; font-size: 12.5px; }

/* long unbroken text in notifications (e.g. a 42-character wallet address) wraps instead of widening the page */
.notif > div { min-width: 0; }
.notif p, .notif b { overflow-wrap: anywhere; }
/* admin alerts and support messages: long unbroken text (wallet addresses) wraps instead of widening the page */
.c-note { min-width: 0; }
.c-note b, .c-note span, .thread .msg p { overflow-wrap: anywhere; }

/* ---- Add product: photo picker with preview ---- */
.np-pick { display: grid; place-items: center; height: 46px; border: 1.5px dashed var(--line-2, #d3dfe3); border-radius: 10px; cursor: pointer; overflow: hidden; position: relative; color: var(--ocean); background: #fff; }
.np-pick:hover { border-color: var(--aqua); }
.np-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-pick b { position: absolute; right: 3px; bottom: 3px; background: var(--ink); color: #fff; font-size: 10.5px; border-radius: 999px; padding: 0 5px; line-height: 16px; }

/* Team comments 56–61 (12 Nov 2026): earnings breakdown, yearly plan, MZUSD */
.eb-table td, .eb-table th { padding-top: 9px; padding-bottom: 9px; }
.eb-table .eb-head td { background: var(--sky); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); padding-top: 10px; padding-bottom: 10px; }
.eb-table .eb-sub td { font-weight: 700; border-top: 1px solid var(--line-2); }
.eb-table .eb-total td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--ink); }
.eb-table small { font-size: 12px; font-weight: 600; }
.opt-group.plan-pick { grid-template-columns: 1fr 1fr; }
.opt-group.plan-pick .opt small { white-space: normal; }
.mizu-quote.mzusd { background: linear-gradient(120deg, #e9fbf3, #f6fffb); border-color: #bfeedd; }
.mizu-quote.mzusd .mq-row span, .mizu-quote.mzusd .mq-meta { color: #0d6b4f; }
.mizu-quote.mzusd .mq-row b { color: #064e3b; }
.wc-split.wc-split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 620px) {
  .wc-split.wc-split-3 { grid-template-columns: 1fr 1fr; }
  .wc-split.wc-split-3 .wc-usd { grid-column: 1 / -1; }
  .opt-group.plan-pick { grid-template-columns: 1fr; }
}
/* Per-product currency (team comment 63): the coin a product is paid in, with the converted price */
.coin-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.coin-tag.coin-mizu { background: var(--gold-soft); color: #8a5a00; }
.coin-tag.coin-mzusd { background: #dcf7ea; color: #0b6b4a; }
.coin-tag.coin-both { background: #e8eefc; color: #2f4a9a; }
.p-coin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.p-coin.pd-coin { margin: 10px 0 0; font-size: 13.5px; }
.p-coin.cart-coin { justify-content: flex-end; margin: 6px 0 0; }
.dcard-body > .coin-tag { align-self: flex-start; margin-top: 8px; }
.dpd-price .coin-tag { align-self: center; }

/* === THEME V2 START === */
/* ==========================================================
   MEMS — "Bright & clean" design (owner's choice, 13 Nov 2026)
   A layer over the original design system: new tokens, a light shell, and sizes that fit a
   1280 × 600 browser window at 100% zoom (a 1080p laptop at 150% Windows scaling).
   Phase 1: tokens, shell (sidebar, top bar, banners), shared pieces (cards, buttons, pills, tables), Home.
   ========================================================== */
:root {
  --bg: #f5f7f9;
  --card: #ffffff;
  --line: #e7ecef;
  --line-2: #d6dee3;
  --text: #0b1c27;
  --muted: #5a6d79;
  --faint: #8b9aa4;
  --sky: #f0f6f7;
  --brand: #0fb3a5;
  --brand-ink: #0a7f7a;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 28, 39, .05);
  --shadow: 0 8px 24px -12px rgba(11, 28, 39, .16), 0 1px 3px rgba(11, 28, 39, .05);
  --shadow-lg: 0 24px 60px -20px rgba(11, 28, 39, .28);
}
body { background: var(--bg); }

/* ---------- Shared pieces ---------- */
.btn { border-radius: 11px; font-weight: 700; letter-spacing: -.005em; }
.btn-primary { background: linear-gradient(180deg, #13c2b2, #0ba396); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 14px -8px rgba(11, 163, 150, .9); }
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 20px -8px rgba(11, 163, 150, .95); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #ffd27a, #f3ae35); box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 6px 14px -8px rgba(240, 169, 42, .95); }
.btn-ghost { background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #b9c6cd; background: #fbfcfd; }
.btn-dark { background: #0b1c27; }
.icon-btn { border-radius: 10px; }
.icon-btn:hover { background: #edf2f4; }
.pill { height: 22px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }
.card { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.avatar { border-radius: 10px; background: linear-gradient(135deg, #19c9b8, #0a7f8c); }
.tabs { border-radius: 11px; background: #e9eef1; padding: 3px; }
.tabs button, .tabs a { border-radius: 8px; }
.table th { background: #f9fbfb; font-size: 10.5px; letter-spacing: .08em; }
.input, .select, .textarea { border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-sm); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 179, 165, .16); }

/* ---------- Shell: light sidebar ---------- */
.side { background: #fff; color: var(--text); background-image: none; border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #dbe3e7 transparent; }
.side::-webkit-scrollbar { width: 6px; } .side::-webkit-scrollbar-thumb { background: #dbe3e7; border-radius: 6px; }
.side .brand-text b { color: var(--text); }
.side .brand-text small { color: var(--muted); opacity: 1; }
.side-label { color: var(--faint); letter-spacing: .12em; }
.nav a { color: #4d606c; border-radius: 9px; font-weight: 600; }
.nav a .ic { color: #8496a1; transition: color .2s; }
.nav a:hover { color: var(--text); background: #f1f5f6; }
.nav a:hover .ic { color: var(--text); }
.nav a.on { color: var(--brand-ink); background: #e6f7f5; font-weight: 700; }
.nav a.on .ic { color: var(--brand); }
.nav a.on::before { background: var(--brand); width: 3px; }
.nav .nav-badge { background: #e9eef1; color: var(--muted); }
.nav a.on .nav-badge { background: #fff; color: var(--brand-ink); }
.side-member { background: #f6f8f9; border: 1px solid var(--line); border-radius: 12px; }
.side-member small { color: var(--faint); }
.side-member .icon-btn { color: var(--faint); }
.side-member .icon-btn:hover { background: #e9eef1; color: var(--text); }
.demo-clock { border: 1px dashed var(--line-2); color: var(--muted); border-radius: 12px; }
.demo-clock b { color: var(--text); }
.demo-clock button { background: #eef2f4; color: var(--text); }
.demo-clock button:hover { background: #e2e8eb; }

/* ---------- Shell: top bar, banners, page ---------- */
.topbar { background: rgba(245, 247, 249, .86); border-bottom: 1px solid var(--line); }
.topbar .crumb { display: none; }
.topbar h1 { font-weight: 800; letter-spacing: -.02em; }
.main { background:
  radial-gradient(700px 260px at 85% -60px, rgba(15, 179, 165, .09), transparent 70%),
  radial-gradient(520px 240px at 20% -80px, rgba(240, 177, 62, .07), transparent 70%); background-repeat: no-repeat; }
.banner { border-radius: var(--r); box-shadow: var(--shadow-sm); }
.banner-verify { background: #fff; border: 1px solid var(--line); color: var(--text); }
.banner-verify > .ic { color: var(--brand); }
.banner-aqua { background: #fff; border: 1px solid #cdeee9; color: var(--text); }
.banner-aqua > .ic { color: var(--brand); }

/* ---------- Home ---------- */
.welcome h2 { font-family: var(--ff); font-weight: 800; letter-spacing: -.03em; }
.mem-hero { border-radius: var(--r-xl);
  background:
    radial-gradient(420px 240px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%),
    radial-gradient(360px 220px at 0% 120%, rgba(240, 177, 62, .16), transparent 60%),
    linear-gradient(135deg, #0d6f7c 0%, #0a3d50 55%, #082634 100%);
  box-shadow: 0 18px 40px -22px rgba(8, 38, 52, .65); }
.mem-hero::after { border-width: 28px; opacity: .8; }
.mem-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(120deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%); pointer-events: none; }
.pill-glass { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.12); }
.btn-glass { border-radius: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.ring-txt b { font-family: var(--ff); font-weight: 800; letter-spacing: -.03em; }
.kpi { flex-direction: row; align-items: center; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.kpi:hover { border-color: #d5dee3; box-shadow: var(--shadow); }
.kpi > div:last-child { min-width: 0; }
.kpi b { letter-spacing: -.03em; overflow-wrap: anywhere; }
.kpi > div:last-child > span { display: block; }
.kpi-ic { border-radius: 11px; flex: none; }
.community-card .cc-stats a { border-radius: 11px; background: #f5f8f9; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.community-card .cc-stats a:hover { border-color: #c9e9e5; background: #f0faf9; }
.li-ic { border-radius: 10px; }
.empty .em { font-size: 30px; }

/* ---------- Sizes: desktop windows (fits 1280 × 600 at 100% zoom) ---------- */
@media (min-width: 981px) {
  body { font-size: 13.5px; }
  .app { grid-template-columns: 216px 1fr; }
  .side { padding: 14px 10px 12px; }
  .side .brand { padding: 0 6px 12px; }
  .logo-mark { width: 30px; height: 30px; }
  .side .brand-text b { font-size: 14.5px; }
  .side .brand-text small { font-size: 8.5px; max-width: 150px; }
  .side-label, .side .side-label { display: block; margin: 12px 0 4px; padding: 0 10px; font-size: 9.5px; }
  .nav { gap: 1px; }
  .nav a { height: 32px; padding: 0 10px; gap: 10px; font-size: 12.8px; }
  .nav a .ic { width: 17px; height: 17px; }
  .nav a.on::before { left: -10px; top: 7px; bottom: 7px; }
  .nav .nav-badge { font-size: 10px; padding: 1px 6px; }
  .side-foot { padding-top: 12px; }
  .side-member { padding: 8px; gap: 9px; } .side-member .avatar { width: 30px; height: 30px; font-size: 11.5px; }
  .side-member b { font-size: 12.5px; } .side-member small { font-size: 10.5px; }
  .demo-clock { display: block; padding: 8px 10px; margin-top: 8px; font-size: 11px; } .demo-clock b { font-size: 11.5px; margin-bottom: 2px; }

  .topbar { padding: 0 24px; height: 50px; }
  .topbar h1 { font-size: 17px; }
  .icon-btn { width: 34px; height: 34px; } .icon-btn .ic { width: 18px; height: 18px; }
  .top-actions .avatar { width: 32px; height: 32px; font-size: 12px; }
  .badge-dot { min-width: 16px; height: 16px; font-size: 9.5px; top: 2px; right: 2px; }
  .view { padding: 16px 24px 40px; max-width: 1280px; }
  .banner { margin: 12px 24px 0; padding: 8px 12px 8px 14px; gap: 12px; font-size: 12.8px; }
  .banner .ic { width: 18px; height: 18px; }
  .banner > div { min-width: 0; line-height: 1.45; } .banner b { display: inline; margin-right: 6px; }
  .banner .btn { height: 30px; padding: 0 12px; font-size: 12px; }

  .btn { height: 38px; padding: 0 16px; font-size: 13.5px; }
  .btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }
  .btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
  .input, .select { height: 40px; font-size: 13.5px; }
  .grid { gap: 14px; } .mt { margin-top: 14px; } .mt-lg { margin-top: 20px; } .mb { margin-bottom: 14px; }
  .card-pad { padding: 18px 20px; } .card-head { padding: 16px 20px 0; } .card-head h3 { font-size: 15px; }
  .list-item { padding: 10px 20px; gap: 12px; } .li-ic { width: 36px; height: 36px; font-size: 18px; }
  .li-main b { font-size: 13.5px; } .li-main span { font-size: 12px; } .li-end { font-size: 13.5px; }
  .table { font-size: 13px; } .table th { padding: 9px 18px; } .table td { padding: 11px 18px; }
  .tabs button, .tabs a { height: 32px; padding: 0 13px; font-size: 12.8px; }
  .empty { padding: 28px 20px; } .empty b { font-size: 14px; }
  .dl-row { padding: 10px 0; font-size: 13px; }
  .section-title { margin: 22px 0 10px; } .section-title h2 { font-size: 16.5px; } .section-title p { font-size: 12.8px; }
  .disclaimer { padding: 12px 16px; font-size: 13px; gap: 12px; margin-top: 16px; }
  .check-list { gap: 11px; } .check-list li { font-size: 13.5px; gap: 11px; } .check-list li span { font-size: 12.5px; }
  .check-list li .ck { width: 22px; height: 22px; } .check-list li .ck .ic { width: 13px; height: 13px; }

  .welcome { margin-bottom: 12px; align-items: center; } .welcome h2 { font-size: 21px; } .welcome p { margin-top: 2px; font-size: 13px; }
  .mem-hero { padding: 18px 22px; gap: 20px; }
  .mh-id { font-size: 18px; margin: 10px 0 12px; }
  .mh-grid { gap: 6px 30px; } .mh-grid small { font-size: 9.5px; } .mh-grid b { font-size: 13.5px; }
  .mem-hero > div > div[style*="margin-top:22px"] { margin-top: 14px !important; }
  .ring { width: 104px; height: 104px; } .ring-txt b { font-size: 30px; } .ring-txt span { font-size: 9.5px; }
  .kpi { padding: 13px 15px; gap: 12px; } .kpi b { font-size: 19px; } .kpi > div:last-child > span { font-size: 12px; margin-top: 1px; }
  .kpi-ic { width: 36px; height: 36px; } .kpi-ic .ic { width: 18px; height: 18px; }
  .community-card .cc-stats { gap: 10px; margin: 10px 0; } .community-card .cc-stats a { padding: 9px 12px; }
  .community-card .cc-stats b { font-size: 17px; } .community-card .cc-stats span { font-size: 11.5px; }
  .activate { padding: 24px 26px; gap: 24px; border-radius: var(--r-xl); } .activate h2 { font-family: var(--ff); font-weight: 800; font-size: 25px; margin: 10px 0 8px; }
}
/* ---------- Phase 2: the rest of the member pages ---------- */
/* one type family inside the dashboard: display headings use the sans, bold */
.app { --ff-d: var(--ff); }
.app .mk-hero h2, .app .phase-hero h2, .app .dp-feature h2, .app .wc-bal b, .app .price-big b, .app .ph-n, .app .pr-n span, .app .book .bk-title, .app .earn-bal b { font-weight: 800; letter-spacing: -.03em; }
.wallet-card, .phase-hero, .earn-hero, .mk-hero, .renew-panel, .offer { border-radius: var(--r-xl); }
.wallet-card, .earn-hero, .phase-hero { box-shadow: 0 18px 40px -22px rgba(8, 38, 52, .6); }
.renew-panel { background: #fff; border: 1px solid #cdeee9; box-shadow: var(--shadow-sm); }
.ben-card { border-radius: var(--r-lg); }
.acc-nav a { border-radius: 9px; }
.acc-nav a.on { background: #e6f7f5; color: var(--brand-ink); font-weight: 700; }
.notif .n-ic { border-radius: 10px; }
.dl-row b { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.dl-row > span:last-child { text-align: right; }
.grid > .disclaimer { align-self: start; margin-top: 0; }
.order-items span { border-radius: 7px; }
@media (min-width: 981px) {
  .ben-card { padding: 18px; gap: 6px; } .ben-card h4 { font-size: 15px; margin-top: 6px; } .ben-card p { font-size: 13px; } .ben-card .link { font-size: 12.8px; }
  .ben-card .kpi-ic, .ben-card .b-ic { width: 40px; height: 40px; }
  .offer { padding: 20px 22px; } .offer h4 { font-size: 17px; margin: 10px 0 6px; } .offer p { font-size: 13px; } .offer .tag { font-size: 10.5px; padding: 4px 9px; border-radius: 7px; }
  .acc-layout { grid-template-columns: 196px 1fr; gap: 14px; }
  .acc-nav { padding: 8px; top: 62px; } .acc-nav a { padding: 8px 10px; font-size: 13px; gap: 10px; } .acc-nav a .ic { width: 17px; height: 17px; }
  .renew-panel { padding: 18px 20px; } .renew-panel h3 { font-size: 16.5px; }
  .notif { padding: 12px 20px; gap: 12px; } .notif .n-ic { width: 34px; height: 34px; } .notif b { font-size: 13.5px; } .notif p { font-size: 12.8px; }
  .order { padding: 14px 20px; } .order-top b { font-size: 14px; }
  .mk-hero { padding: 16px 22px; } .mk-hero h2 { font-size: 20px; } .mk-hero p { font-size: 13px; margin-top: 3px; }
  .mk-tools { margin: 14px 0 12px; } .chips { margin-bottom: 14px; } .chip-btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
  .p-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  .p-img { height: 104px; } .p-body { padding: 11px 13px 13px; } .p-name { font-size: 13.8px; } .p-mes { font-size: 17.5px; }
  .wallet-card { padding: 20px 22px; min-height: 0; } .wc-bal { margin-top: 14px; } .wc-bal > b { font-size: 34px; } .wc-bal b span { font-size: 14px; }
  .price-big b { font-size: 26px; }
  .phase-hero { padding: 20px 22px; } .phase-hero h2 { font-size: 22px; margin: 10px 0 4px; } .phase-hero p { font-size: 13px; }
  .pr-main { padding: 16px 20px; } .pr-head h3 { font-size: 16px; } .ph-tag { font-size: 12px; } .ph-why { margin: 10px 0; padding: 10px 14px; font-size: 12.8px; border-radius: 11px; }
  .pr-n { padding-top: 18px; } .pr-n span, .ph-n { width: 36px; height: 36px; border-radius: 11px; font-size: 17px; }
  .pr-list li { font-size: 13px; }
  .earn-hero { padding: 18px 22px; } .earn-bal { margin-top: 6px; } .earn-bal b { font-size: 32px; } .earn-hero p { font-size: 12.8px; margin-top: 4px; }
  .dp-feature { grid-template-columns: 190px 1fr; padding: 20px 22px; gap: 24px; } .book { width: 170px; padding: 18px 16px; } .book .bk-title { font-size: 20px; } .dp-feature h2 { font-size: 23px; }
  .dp-grid { gap: 14px; }
  .timeline b { font-size: 13.5px; }
  /* tables with a progress bar in a cell stay compact */
  .table td .bar, .table td .progress { margin: 0 0 4px; }
}
@media (min-width: 981px) {
  .dp-feature h2 + p, .dp-feature .dp-sub { font-size: 14.5px; } .dp-feature p { font-size: 13.2px; } .dp-meta { margin: 10px 0; }
  .chapters { margin: 10px 0 14px; gap: 8px; } .chapters div { padding: 7px 10px; font-size: 12.8px; border-radius: 9px; }
  .next-release { padding: 14px 18px; } .next-release b { font-size: 14.5px; }
}
/* phones: slimmer notices */
@media (max-width: 980px) {
  .banner { padding: 10px 12px; gap: 8px; font-size: 13px; }
  .banner b { display: inline; margin-right: 5px; }
  .banner .btn { height: 32px; padding: 0 12px; font-size: 12.5px; }
}
/* ---------- Phase 3: landing page, login and join ---------- */
:root { --ff-d: var(--ff); }
.hero h1, .section-head h2, .stat b, .benefit-num, .price-amt .num, .cta-band h2, .auth-quote h2, .auth-form h1, .principle .pn { font-weight: 800; letter-spacing: -.035em; }

/* navigation: white glass, always readable */
.l-nav, .l-nav.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.l-nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(11, 28, 39, .35); }
.l-nav-in { color: var(--text); }
.l-nav .brand-text small { color: var(--muted); opacity: 1; }
.l-links a { opacity: 1; color: #4d606c; white-space: nowrap; transition: color .2s; }
.l-links a:hover { color: var(--text); }
.l-nav .btn-glass { background: #fff; color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); backdrop-filter: none; }
.l-nav .btn-glass:hover { background: #fbfcfd; border-color: #b9c6cd; }

/* hero: bright, with the member card as the rich moment */
.hero { color: var(--text); background:
  radial-gradient(900px 480px at 88% 0%, rgba(15, 179, 165, .20), transparent 62%),
  radial-gradient(700px 420px at 0% 12%, rgba(240, 177, 62, .15), transparent 60%),
  radial-gradient(600px 360px at 55% 110%, rgba(15, 179, 165, .10), transparent 60%),
  linear-gradient(180deg, #f8fcfb 0%, #f5f7f9 100%); }
.hero::before { background-image: radial-gradient(rgba(11, 28, 39, .07) 1px, transparent 1px); }
.hero .eyebrow { color: var(--brand-ink); }
.hero h1 { line-height: 1.02; }
.hero h1 em { font-style: normal; font-weight: 800; background: linear-gradient(100deg, #0fb3a5, #0a7f8c 50%, #e09a1f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: var(--muted); }
.hero-lead b { color: var(--text) !important; }
.hero-trust { color: var(--muted); }
.hero-trust .ic { color: var(--brand); }
.hero .btn-glass { background: #fff; color: var(--text); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); backdrop-filter: none; }
.hero .btn-glass:hover { background: #fbfcfd; border-color: #b9c6cd; }
.waves { display: none; }
.orb-1 { background: radial-gradient(circle at 30% 30%, rgba(15, 179, 165, .28), rgba(15, 179, 165, .08) 60%, transparent 70%); }
.orb-2 { background: radial-gradient(circle at 30% 30%, rgba(240, 177, 62, .5), transparent 70%); }
.mcard { border-radius: 20px; box-shadow: 0 40px 70px -26px rgba(8, 38, 52, .5), 0 12px 24px -14px rgba(8, 38, 52, .35), inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.12); }
.float-chip { border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(11, 28, 39, .3); }
.float-chip .fc-ic { border-radius: 10px; }
.stats-band-in { border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: 0 20px 44px -28px rgba(11, 28, 39, .3); }
.stat b { color: var(--text); } .stat b sup { color: var(--brand); }

/* sections */
.benefit { border-radius: var(--r-lg); }
.benefit:hover { border-color: #cdeee9; }
.benefit-ic { border-radius: 13px; }
.steps-wrap { background: linear-gradient(135deg, #ecf9f7, #f6fbf3); color: var(--text); border: 1px solid #d4efea; }
.steps-wrap::before { background: radial-gradient(circle, rgba(15, 179, 165, .16), transparent 65%); }
.steps-wrap .section-head h2 { color: var(--text); }
.steps-wrap .section-head p { color: var(--muted); }
.steps-wrap .eyebrow { color: var(--brand-ink); }
.steps::before { background: linear-gradient(90deg, rgba(15, 179, 165, .55), rgba(15, 179, 165, .12)); }
.step-n { background: #fff; border: 2px solid var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 8px #eff9f6; }
.step p { color: var(--muted); }
.cat-row { transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.cat-row:hover { border-color: #cdeee9; transform: translateX(3px); box-shadow: var(--shadow-sm); }
.cat-row .ce, .pt-prod i { border-radius: 10px; }
.price-table { border-radius: var(--r-xl); box-shadow: 0 24px 50px -30px rgba(11, 28, 39, .35); }
.pricing { box-shadow: 0 30px 60px -34px rgba(11, 28, 39, .45); border: 1px solid var(--line); }
.price-card { background: radial-gradient(420px 260px at 100% 0%, rgba(94, 234, 212, .28), transparent 62%), linear-gradient(150deg, #0d6f7c, #0a3d50 55%, #082634); }
.price-meta span { border-radius: 8px; }
.status-card { transition: transform .25s var(--ease), box-shadow .25s; }
.status-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.principle .pn { color: var(--brand); }
.faq details { border-radius: var(--r); }
.faq details[open] { border-color: #cdeee9; }
.cta-band { background: radial-gradient(700px 340px at 50% 125%, rgba(94, 234, 212, .4), transparent 60%), radial-gradient(420px 240px at 100% 0%, rgba(240, 177, 62, .18), transparent 60%), linear-gradient(150deg, #0d6f7c, #0a3d50 55%, #082634); }
.footer a.brand { display: inline-flex; margin-bottom: 12px; }

/* login and join */
.auth-art { background: radial-gradient(520px 380px at 100% 0%, rgba(94, 234, 212, .3), transparent 60%), radial-gradient(420px 300px at 0% 100%, rgba(240, 177, 62, .16), transparent 60%), linear-gradient(160deg, #0d6f7c, #0a3d50 55%, #082634); }
.auth-steps span.on { background: linear-gradient(90deg, #13c2b2, #0a7f8c); }

@media (min-width: 981px) {
  .l-nav-in { padding: 10px 28px; gap: 22px; }
  .l-links { gap: 20px; font-size: 13.2px; }
  .hero { padding: 104px 0 96px; }
  .hero-in { gap: 36px; }
  .hero h1 { font-size: clamp(38px, 4.5vw, 58px); margin: 14px 0 16px; }
  .hero-lead { font-size: 15.5px; line-height: 1.6; max-width: 500px; }
  .hero-actions { margin-top: 22px; } .hero-trust { margin-top: 22px; font-size: 12.8px; gap: 18px; }
  .hero-art { height: 360px; } .mcard { width: 340px; padding: 22px; } .mcard-id { font-size: 16.5px; } .chip { margin: 18px 0 12px; }
  .float-chip { padding: 9px 13px 9px 9px; font-size: 12.3px; gap: 10px; } .float-chip b { font-size: 13px; } .float-chip .fc-ic { width: 34px; height: 34px; }
  .stats-band { margin-top: -46px; max-width: 1040px; } .stat { padding: 18px 24px; } .stat b { font-size: 28px; } .stat span { font-size: 12.8px; }
  .section { padding: 64px 28px; }
  .section-head { margin-bottom: 30px; } .section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 10px; } .section-head p { font-size: 15px; line-height: 1.6; }
  .benefit-grid { gap: 14px; } .benefit { padding: 20px 20px 22px; } .benefit h3 { font-size: 16px; margin-bottom: 6px; } .benefit p { font-size: 13.4px; }
  .benefit-ic { width: 44px; height: 44px; margin-bottom: 16px; } .benefit-ic .ic { width: 22px; height: 22px; } .benefit-num { font-size: 40px; right: 18px; top: 16px; }
  .steps-wrap { padding: 40px 44px; } .steps::before { top: 22px; }
  .step-n { width: 46px; height: 46px; font-size: 16px; margin-bottom: 14px; } .step h4 { font-size: 15px; margin-bottom: 5px; } .step p { font-size: 13px; }
  .market-split { gap: 44px; } .cat-list { margin-top: 20px; gap: 10px; } .cat-row { padding: 11px 14px; gap: 13px; } .cat-row .ce { width: 40px; height: 40px; } .cat-row b { font-size: 14px; } .cat-row span { font-size: 12.5px; }
  .pt-head { padding: 15px 20px; } .pt-row { padding: 11px 20px; font-size: 13.5px; } .pt-prod i { width: 34px; height: 34px; } .pt-foot { padding: 11px 20px; font-size: 12px; }
  .price-card, .price-list { padding: 34px 38px; } .price-amt { margin: 16px 0 4px; } .price-amt .num { font-size: 76px; } .price-amt .cur { font-size: 26px; margin-top: 10px; } .price-meta { margin: 14px 0 22px; }
  .status-grid { gap: 14px; } .status-card { padding: 20px; } .status-card h4 { font-size: 15.5px; margin-bottom: 6px; } .status-card p { font-size: 13.2px; } .status-card .pill { margin-bottom: 12px; }
  .principle { padding: 18px 18px; } .principle .pn { margin-bottom: 8px; font-size: 13.5px; } .principle h5 { font-size: 14px; } .principle p { font-size: 12.6px; }
  .faq { gap: 9px; } .faq details { padding: 0 20px; } .faq summary { padding: 14px 0; font-size: 14.5px; } .faq details p { padding-bottom: 16px; font-size: 13.5px; }
  .cta-band { padding: 56px 28px; } .cta-band h2 { font-size: clamp(30px, 3.6vw, 44px); } .cta-band p { font-size: 15px; margin: 12px auto 24px; }
  .footer { padding: 40px 28px 44px; font-size: 13.2px; } .footer-bottom { font-size: 12.3px; padding: 18px 28px 30px; }
  .auth-art { padding: 30px 40px; } .auth-quote h2 { font-size: 32px; } .auth-quote p { font-size: 14.5px; } .auth-points { margin-top: 24px; gap: 10px; } .auth-points div { font-size: 13.2px; }
  .auth-form-wrap { padding: 28px; } .auth-form { max-width: 400px; } .auth-form h1 { font-size: 26px; } .auth-form > p { margin: 6px 0 18px; font-size: 13.5px; }
  .field { gap: 5px; margin-bottom: 11px; } .field label { font-size: 12.5px; }
}
/* phones: the same look, readable sizes */
@media (max-width: 980px) {
  .hero h1 { letter-spacing: -.03em; }
  .welcome h2 { font-size: 24px; }
}
/* public pages (centres, digital shop): the same white header as the landing page */
.ctr-head { background: rgba(255, 255, 255, .9); color: var(--text); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ctr-head .brand-text small { color: var(--muted); opacity: 1; }
.ctr-head .btn-ghost { color: var(--text); border-color: var(--line-2); background: #fff; }
@media (min-width: 981px) { .ctr-head-in { padding: 10px 24px; } .ctr-main { padding-top: 20px; } }
/* headings that named the old serif directly */
.lb-me b, .pd-name, .rv-big b, .ctr-title, .c-title, .tf-gate-card h2 { font-family: var(--ff); font-weight: 800; letter-spacing: -.03em; }
@media (min-width: 981px) { .ctr-title { font-size: 26px; } .pd-name { font-size: 23px; } .rv-big b { font-size: 34px; } .lb-me b { font-size: 26px; } .c-title { font-size: 20px; } .tf-gate-card h2 { font-size: 21px; } }
/* ---------- Phase 4: head office and the centre dashboard ---------- */
/* head office keeps a violet accent so staff can tell it from the member site at a glance */
.side-admin { background-image: none; }
.side-admin .nav a.on { background: #efecfd; color: #5a3fc9; }
.side-admin .nav a.on::before { background: #7c5ce6; }
.side-admin .nav a.on .ic { color: #7c5ce6; }
.side-admin .brand-text b span { color: #7c5ce6; }
.side-admin .avatar, body.admin .top-actions .avatar { background: linear-gradient(135deg, #9a7df0, #5a3fc9); }
body.admin .main { background:
  radial-gradient(700px 260px at 85% -60px, rgba(124, 92, 230, .08), transparent 70%),
  radial-gradient(520px 240px at 20% -80px, rgba(15, 179, 165, .07), transparent 70%); background-repeat: no-repeat; }
.msg { border-radius: 11px; }
.dpa-cover b { font-weight: 800; }
/* number cards with a small note: the note sits in the top-right corner */
.kpi { position: relative; }
.kpi-top > :not(.kpi-ic) { position: absolute; top: 9px; right: 12px; font-size: 10.5px !important; color: var(--faint); }
.in-sm { border-radius: 8px; }
.row-link:hover { background: #f6faf9; }

@media (min-width: 981px) {
  .side-admin .nav a { height: 32px; }
  .in-sm { height: 32px; padding: 0 9px; font-size: 12.8px; }
  .select.in-sm { padding-right: 26px; background-position: right 8px center; }
  .prod-table td { padding: 7px 10px; } .prod-table th { padding: 9px 10px; }
  .thread { padding: 6px 20px 16px; } .msg { padding: 9px 12px; } .msg p { font-size: 13.2px; }
  .dp-admin { gap: 14px; } .dpa-cover { height: 104px; padding: 14px; } .dpa-cover b { font-size: 18px; }
  .pay-rules { padding: 14px 18px; }
  .earn-filters .select, .earn-filters .search, .earn-filters .input { height: 34px; }
}
/* ---------- Phase 5: Home rebuilt, admin Products table ---------- */
/* Home: membership card + earnings spotlight side by side, quick actions, number cards */
.home-top { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 14px; }
.mem-hero { align-items: center; }
.mh-greet { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 12px 0 2px; color: #fff; }
.mem-hero .mh-id { font-size: 12.5px; letter-spacing: .14em; font-weight: 600; margin: 0 0 14px; color: rgba(255, 255, 255, .7); }
.mh-actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.earn-spot { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: var(--r-xl); color: var(--text);
  background: radial-gradient(260px 170px at 100% 0%, rgba(240, 177, 62, .26), transparent 65%), radial-gradient(240px 160px at 0% 100%, rgba(15, 179, 165, .12), transparent 65%), #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.earn-spot:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #f1dca8; }
.es-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9a6200; }
.es-amt { font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; margin-top: 6px; }
.es-sub { font-size: 12px; color: var(--muted); }
.es-wallet { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; }
.es-wallet .token-coin { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.es-wallet b { display: block; font-size: 13.5px; } .es-wallet small { font-size: 11.5px; color: var(--muted); }
.es-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.8px; font-weight: 700; color: var(--brand-ink); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdeee9; }
.q-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.q-ic .ic { width: 19px; height: 19px; }
.quick b { display: block; font-size: 13.5px; } .quick small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick a > span:last-child { min-width: 0; }
/* the small book cover on Home keeps to its column */
.book.book-sm { width: 100%; padding: 12px 11px; } .book.book-sm .bk-title { font-size: 14px; margin-top: 6px; } .book.book-sm .bk-sub { font-size: 10px; margin-top: 4px; } .book.book-sm .bk-foot { font-size: 8px; gap: 5px; }

/* phones and small tablets */
@media (max-width: 980px) {
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .mem-hero { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; gap: 12px; border-radius: 20px; }
  .mem-hero .ring { justify-self: end; width: 84px; height: 84px; }
  .ring-txt b { font-size: 25px; } .ring-txt span { font-size: 8.5px; }
  .mh-greet { font-size: 20px; margin-top: 10px; }
  .mh-grid { grid-template-columns: repeat(3, auto); gap: 6px 18px; } .mh-grid small { font-size: 9px; } .mh-grid b { font-size: 13px; }
  .mh-actions .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .earn-spot { padding: 16px 18px; border-radius: 20px; } .es-amt { font-size: 32px; }
  .es-wallet { margin-top: 10px; }
  .quick { gap: 8px; }
  .quick a { flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 12px 6px; border-radius: 16px; }
  .quick b { font-size: 12px; } .quick small { display: none; }
  .home-kpis.g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-kpis .kpi { padding: 12px; gap: 10px; } .home-kpis .kpi b { font-size: 17px; } .home-kpis .kpi > div:last-child > span { font-size: 11.5px; line-height: 1.3; }
  .home-kpis .kpi-ic { width: 34px; height: 34px; border-radius: 10px; }
  .community-card .cc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .community-card .cc-stats a { padding: 9px 10px; } .community-card .cc-stats b { font-size: 16px; } .community-card .cc-stats span { font-size: 10.5px; line-height: 1.3; }
  .view .card, .view .mem-hero { box-shadow: 0 1px 2px rgba(11, 28, 39, .05); }
}
@media (max-width: 380px) { .mh-grid { gap: 6px 12px; } .mem-hero .ring { width: 74px; height: 74px; } .ring-txt b { font-size: 22px; } }

/* admin Products: Save and About stay in view while the table scrolls sideways */
.prod-table .prod-act { position: sticky; right: 0; background: #fff; box-shadow: -10px 0 12px -12px rgba(11, 28, 39, .25); z-index: 1; }
.prod-table th.prod-act { background: #f9fbfb; }
.prod-table .prod-act > div { display: grid; gap: 5px; }
.prod-table .prod-act .btn { width: 100%; white-space: nowrap; }
.prod-table select[name=cat] { max-width: 118px; } .prod-table select[name=coin] { max-width: 124px; }
@media (min-width: 981px) { .prod-table td { padding: 7px 7px; } .prod-table th { padding: 9px 7px; } .prod-table td:first-child, .prod-table th:first-child { padding-left: 14px; } }
/* phone details on Home */
@media (max-width: 980px) {
  .mem-hero .ring { align-self: start; }
  .mh-grid b, .mh-grid small { white-space: nowrap; }
  .community-card .cc-stats b { white-space: nowrap; font-size: 14.5px; }
}
@media (max-width: 620px) { .mh-grid { grid-template-columns: repeat(2, auto); } .mh-grid > div:nth-child(3) { display: none; } }
/* admin Products: the name column takes the spare width */
.prod-table td:first-child { width: 32%; }
.prod-table td:first-child > div > div { flex: 1; min-width: 0; }
.prod-table td:first-child input.input { width: 100%; }
.prod-table select[name=cat] { max-width: 132px; } .prod-table select[name=coin] { max-width: 112px; }
/* phones: notices keep the icon beside the text */
@media (max-width: 980px) {
  .banner { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .banner > .ic { margin-top: 2px; }
  .banner > div { flex: 1 1 calc(100% - 34px); min-width: 0; }
  .banner > .btn { margin-left: 28px; }
}
.prod-table select[name=coin] { width: 112px !important; min-width: 0 !important; }
.prod-table select[name=cat] { width: 112px; min-width: 0; }
.prod-table select[name=phase] { min-width: 58px !important; width: 58px; }
/* ---------- Phase 6: market, product page, admin Products ---------- */
/* market banner */
.mk-hero { background: radial-gradient(420px 200px at 100% 0%, rgba(240, 177, 62, .30), transparent 62%), radial-gradient(380px 200px at 0% 100%, rgba(15, 179, 165, .18), transparent 60%), #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.mk-hero p { color: var(--muted); }
.mk-hero-pics { padding-left: 14px; }
.mk-hero-pics a { margin-left: -14px; border: 3px solid #fff; border-radius: 16px; box-shadow: 0 10px 22px -12px rgba(11, 28, 39, .45); }
.mk-hero-pics a:nth-child(odd) { transform: rotate(-4deg); } .mk-hero-pics a:nth-child(even) { transform: rotate(3deg) translateY(4px); }
.mk-hero-pics a:hover { transform: translateY(-4px) rotate(0); z-index: 1; }
.search .input { border-radius: 10px; }
.chip-btn { border: 1px solid var(--line-2); border-radius: 9px; box-shadow: var(--shadow-sm); }
.chip-btn:hover { border-color: #b9c6cd; }
.chip-btn.on { background: #0a3d50; border-color: #0a3d50; box-shadow: none; }

/* product cards: the whole picture shows, badges sit clear of it */
.p-card { border-radius: 16px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.p-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(11, 28, 39, .35); border-color: #cdeee9; }
.p-img { height: auto !important; aspect-ratio: 4 / 3; }
.p-save { top: 10px; left: 10px; padding: 4px 8px; border-radius: 7px; background: var(--green); color: #fff; font-size: 11px; box-shadow: 0 4px 10px -4px rgba(18, 161, 80, .7); }
.p-stock { top: 10px; right: 10px; }
.p-stock .pill { background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); height: 20px; font-size: 10.5px; padding: 0 7px; }
.p-cat { font-size: 9.5px; letter-spacing: .09em; }
.p-name { letter-spacing: -.01em; }
.p-name:hover { color: var(--brand-ink); }
.p-label { font-size: 9.5px; margin-top: 8px; margin-bottom: -8px; color: var(--brand-ink); }
.p-prices { margin: 10px 0 8px; gap: 8px; }
.p-mes { letter-spacing: -.03em; }
.p-coin { margin: -2px 0 10px; font-size: 11.5px; gap: 6px; }
.p-coin .pill { height: 19px; font-size: 10.5px; padding: 0 7px; }
.stepper { border-radius: 11px; background: #e6f7f5; } .stepper button { border-radius: 8px; }
.stepper b { color: var(--brand-ink); }

/* product page */
.crumb-link { color: var(--brand-ink); }
.pd-main { border-radius: 18px; box-shadow: none; border: 1px solid var(--line); }
.pd-main .p-save { top: 12px; left: 12px; font-size: 12px; padding: 5px 10px; }
.pd-thumbs button { border-radius: 11px; } .pd-thumbs button.on { border-color: var(--brand); }
.pd-info { border-radius: 18px; box-shadow: var(--shadow-sm); }
.pd-price { background: linear-gradient(135deg, #ecf9f7, #f7fbf2); border: 1px solid #d4efea; border-radius: 14px; }
.pd-price b { letter-spacing: -.03em; }
.pd-price .save-tag { background: var(--green); color: #fff; border-radius: 7px; }
.pd-buy .btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 24px -12px rgba(11, 163, 150, .95); }
.pd-notes { border-top: 0; padding-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-notes > div { flex-direction: column; gap: 6px; padding: 10px 11px; border-radius: 11px; background: #f6f8f9; border: 1px solid var(--line); font-size: 12px; line-height: 1.4; }
.pd-notes .ic { color: var(--brand); margin-top: 0; }
.pd-desc { color: #33434e; }
@media (min-width: 981px) {
  .pd { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 16px; }
  .pd-gallery { position: sticky; top: 62px; }
  .pd-thumbs { gap: 8px; margin-top: 8px; } .pd-thumbs button { width: 58px; height: 58px; }
  .pd-info { padding: 18px 22px 20px; }
  .pd-unit { font-size: 13px; } .pd-rate { margin-top: 4px; }
  .pd-price { margin: 12px 0 10px; padding: 12px 16px; } .pd-price b { font-size: 28px; } .pd-price .strike { font-size: 14px; } .pd-price > div { margin: 0 0 6px; }
  .pd-price .p-label { margin: 0 0 2px; }
  .p-coin.pd-coin { margin-top: 8px; font-size: 12.5px; }
  .pd-stock { font-size: 12.5px; } .pd-buy { margin: 12px 0 14px; } .pd-buy .btn-lg { height: 44px; font-size: 14.5px; } .stepper.big { height: 44px; }
  .pd-desc { font-size: 13.6px; line-height: 1.7; }
  .p-body { padding: 11px 13px 13px; }
  .crumb-link { font-size: 12.8px; margin-bottom: 10px; }
}
@media (max-width: 980px) {
  .pd-main { aspect-ratio: 4 / 3; }
  .pd-info { padding: 18px; }
  .pd-notes { grid-template-columns: minmax(0, 1fr); } .pd-notes > div { flex-direction: row; align-items: center; }
  .p-body { padding: 10px 11px 12px; } .p-name { font-size: 13.5px; } .p-mes { font-size: 16.5px; }
}

/* admin Products: summary cards and a calmer table */
.prod-kpis { margin-bottom: 14px; }
.prod-table tbody tr { transition: background .15s; }
.prod-table tbody tr:hover { background: #f8fbfb; }
.prod-table tbody tr:hover .prod-act { background: #f8fbfb; }
.prod-table .input, .prod-table .select { border-color: transparent; background-color: #f3f6f8; box-shadow: none; font-weight: 600; }
.prod-table .input:hover, .prod-table .select:hover { border-color: var(--line-2); background-color: #fff; }
.prod-table .input:focus, .prod-table .select:focus { border-color: var(--brand); background-color: #fff; box-shadow: 0 0 0 3px rgba(15, 179, 165, .16); }
.prod-table input[name=name] { background-color: transparent; font-weight: 700; font-size: 13.5px; padding-left: 6px; }
.prod-table input[name=unit] { background-color: transparent; color: var(--muted); font-weight: 500; height: 26px; padding-left: 6px; margin-top: 0 !important; font-size: 12.2px; }
.prod-table input[name=price] { color: var(--brand-ink); font-weight: 800; }
.prod-thumb img, .prod-thumb .pt-empty { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prod-thumb small { font-size: 9.5px; color: var(--faint); }
.prod-thumb:hover small { color: var(--brand-ink); }
.prod-table .save-tag { background: var(--green-soft); border-radius: 7px; }
.prod-table label.check input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 99px; border: 0; background: #d6dee3; position: relative; transition: background .2s; cursor: pointer; }
.prod-table label.check input[type=checkbox]::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 28, 39, .3); transition: transform .2s var(--ease); }
.prod-table label.check input[type=checkbox]:checked { background: var(--brand); background-image: none; }
.prod-table label.check input[type=checkbox]:checked::after { transform: translateX(14px); }
.prod-table .prod-act .btn-soft { background: var(--brand); color: #fff; }
.prod-table .prod-act .btn-soft:hover { background: #0a9f93; }
.prod-table .prod-act .btn { height: 28px; font-size: 12px; }
.np-pick { border-radius: 10px; }
/* card pictures show whole; the stock badge sits in the bottom corner, clear of the label */
.p-img .p-photo, .p-img img { object-fit: contain; }
.p-img .p-stock { top: auto; bottom: 8px; right: 8px; left: auto; }
.pd ~ .grid.g-main { align-items: start; }
.pd-notes > div { font-size: 11.8px; }
/* square pictures: the artwork fills the frame with nothing cut off */
.p-img { aspect-ratio: 1 / 1; }
.p-img .p-photo, .p-img img { object-fit: cover; }
/* ---------- Phase 7: styled confirm / prompt windows, checkout, payment, receipt, wallet ---------- */
.ui-dialog-wrap { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(8, 26, 36, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: uiFade .18s ease; }
.ui-dialog-wrap.out { opacity: 0; transition: opacity .15s; }
.ui-dialog { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 24px 24px 20px; text-align: center; box-shadow: 0 30px 70px -20px rgba(8, 26, 36, .55), 0 0 0 1px rgba(11, 28, 39, .05); animation: uiPop .22s cubic-bezier(.2, .9, .3, 1.2); }
.ui-dialog-ic { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; background: #e6f7f5; color: var(--brand-ink, #0a7f7a); }
.ui-dialog-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ui-dialog.danger .ui-dialog-ic { background: var(--red-soft, #fdecec); color: var(--red, #d33a3a); }
.ui-dialog h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.ui-dialog p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.ui-dialog-input { margin-top: 16px; text-align: left; height: 44px; }
.ui-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.ui-dialog-actions .btn { height: 42px; width: 100%; font-size: 14px; }
.btn-danger { background: linear-gradient(180deg, #e25555, #cf3636); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 18px -10px rgba(207, 54, 54, .9); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 22px -10px rgba(207, 54, 54, .95); }
@keyframes uiFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes uiPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .ui-dialog { padding: 20px 18px 16px; border-radius: 18px; } }
.ui-dialog .btn:focus-visible, .ui-dialog-input:focus-visible { outline: 2px solid var(--brand, #0fb3a5); outline-offset: 2px; }
.ui-dialog .btn:focus { outline: 2px solid rgba(15, 179, 165, .55); outline-offset: 2px; }

/* ---- cart / checkout ---- */
.drawer { box-shadow: -30px 0 70px -30px rgba(8, 26, 36, .45); }
.drawer-head { background: linear-gradient(180deg, #f7fbfb, #fff); }
.drawer-head h3 { font-weight: 800; letter-spacing: -.02em; }
.cart-item { border-bottom: 0; padding: 10px 12px; margin-top: 8px; border-radius: 14px; background: #f8fafb; border: 1px solid var(--line); }
.cart-item .ci-img { border-radius: 11px; }
.cart-item .ci-main b { letter-spacing: -.01em; }
.cart-item > b { white-space: nowrap; }
.opt { border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.opt:hover { border-color: #b9c6cd; }
.opt.on { border-color: var(--brand); background: #f1fbfa; box-shadow: 0 0 0 3px rgba(15, 179, 165, .14); }
.opt .opt-ic { border-radius: 10px; }
.opt.on .opt-ic { background: var(--brand); }
.opt.on .radio { border-color: var(--brand); }
.drawer-foot { background: #fff; box-shadow: 0 -14px 24px -20px rgba(8, 26, 36, .35); }
.sum-reg { font-size: 12.5px; margin-right: 4px; color: var(--faint); }
.sum-row.total > span:first-child { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.save-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: 0; }
.cart-note { font-size: 11.5px; text-align: center; margin-top: 8px; }
.drawer-foot .btn-primary, .modal-actions .btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 12px 24px -12px rgba(11, 163, 150, .95); }
#loc-info { font-size: 12.5px; }

/* ---- payment window ---- */
.modal { border-radius: 22px; box-shadow: 0 34px 80px -24px rgba(8, 26, 36, .6), 0 0 0 1px rgba(11, 28, 39, .05); }
.overlay { background: rgba(8, 26, 36, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.pay-head { display: flex; align-items: center; gap: 14px; padding-right: 60px; color: #fff; padding-bottom: 46px !important;
  background: radial-gradient(360px 200px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%), radial-gradient(300px 180px at 0% 120%, rgba(240, 177, 62, .18), transparent 60%), linear-gradient(135deg, #0d6f7c, #0a3d50 55%, #082634); }
.pay-head h3 { color: #fff; font-weight: 800; letter-spacing: -.02em; }
.pay-head p { color: rgba(255, 255, 255, .72); margin-top: 3px; overflow-wrap: anywhere; }
.pay-badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #a7f3e6; }
.modal-pay:has(.pay-head) > .modal-close { color: rgba(255, 255, 255, .85); }
.modal-pay:has(.pay-head) > .modal-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pay-head + .modal-body { padding-top: 0; }
.pay-head + .modal-body > *:first-child { margin-top: -30px; position: relative; }
.pay-head + .modal-body > .sub-label:first-child { margin-top: 16px; }
.pay-head + .modal-body > .opt-group:first-child, .pay-head + .modal-body > .demo-note:first-child { margin-top: 16px; }
.pay-summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 34px -22px rgba(8, 26, 36, .45); }
.pay-summary .sum-row.total { border-top: 1px dashed var(--line-2); align-items: baseline; }
.pay-summary .ps-amt { letter-spacing: -.035em; background: linear-gradient(100deg, #0a7f7a, #0a3d50); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-note { border-radius: 10px; }
.modal-actions { box-shadow: 0 -14px 24px -20px rgba(8, 26, 36, .35); }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--faint); font-weight: 600; text-align: center; }
.pay-secure .ic { color: var(--brand); flex: none; }
.mizu-quote { border-radius: 12px; }
.send-box { border-radius: 14px; }
.timer, .watch-box { border-radius: 12px; }

/* ---- payment done ---- */
.success-mark { position: relative; background: linear-gradient(135deg, #2ad5c3, #0a7f8c); box-shadow: 0 18px 36px -12px rgba(11, 163, 150, .8); animation: okPop .5s cubic-bezier(.2, .9, .3, 1.4); }
.success-mark::before, .success-mark::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(15, 179, 165, .35); animation: okRing 1.8s ease-out infinite; }
.success-mark::after { animation-delay: .6s; }
.success h3 { font-weight: 800; letter-spacing: -.03em; }
@keyframes okPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes okRing { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* ---- receipt ---- */
.receipt { padding: 0; }
.rc-top { padding: 22px 26px 20px; color: #fff; position: relative;
  background: radial-gradient(340px 190px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%), radial-gradient(280px 170px at 0% 120%, rgba(240, 177, 62, .18), transparent 60%), linear-gradient(135deg, #0d6f7c, #0a3d50 55%, #082634); }
.receipt-head { border-bottom: 0; padding-bottom: 0; padding-right: 34px; align-items: center; }
.receipt-head .brand-text b { color: #fff; } .receipt-head .brand-text small { color: rgba(255, 255, 255, .7); opacity: 1; }
.rc-stamp { text-align: right; }
.rc-id { font-size: 11px; margin-top: 5px; color: rgba(255, 255, 255, .7); }
.receipt-amt { border-bottom: 0; padding: 18px 0 2px; }
.receipt-amt b { font-size: 34px; font-weight: 800; letter-spacing: -.035em; color: #fff; margin: 2px 0; }
.rc-kind { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.rc-date { font-size: 12px; color: rgba(255, 255, 255, .65); }
.rc-body { padding: 20px 26px 4px; }
.rc-sec { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 4px 0 8px; }
.rc-items { display: grid; gap: 8px; }
.rc-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: #f8fafb; border: 1px solid var(--line); }
.rc-img { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: #eef3f5; font-size: 20px; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-name { flex: 1; min-width: 0; } .rc-name b { display: block; font-size: 13.5px; overflow-wrap: anywhere; } .rc-name small { font-size: 12px; color: var(--muted); }
.rc-item > b { font-size: 13.5px; white-space: nowrap; }
.rc-sums { margin: 12px 0 16px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.rc-sum { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; color: var(--muted); } .rc-sum b { color: var(--text); }
.rc-sum.save, .rc-sum.save b { color: var(--green); }
.rc-sum.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px; font-size: 15px; font-weight: 800; color: var(--text); }
.receipt .dl-row { font-size: 13px; padding: 9px 0; }
.receipt .dl-row b { overflow-wrap: anywhere; text-align: right; }
.rc-actions { display: flex; gap: 10px; padding: 14px 26px 0; }
.receipt-foot { margin: 14px 0 0; padding: 0 26px 20px; font-size: 10.5px; letter-spacing: .04em; }
.modal:has(.receipt) > .modal-close { color: rgba(255, 255, 255, .85); z-index: 3; }
.modal:has(.receipt) > .modal-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* printing a receipt: only the receipt, no window chrome */
@media print {
  body.print-receipt > *:not(#modal-root) { display: none !important; }
  body.print-receipt .overlay, body.print-receipt #modal-root > *:not(.modal-wrap) { display: none !important; }
  body.print-receipt { overflow: visible !important; }
  body.print-receipt, body.print-receipt #modal-root { background: #fff !important; }
  body.print-receipt * { visibility: visible !important; }
  body.print-receipt .modal-wrap { position: static !important; display: block !important; padding: 0 !important; background: none !important; backdrop-filter: none !important; overflow: visible !important; }
  body.print-receipt .modal { max-width: 520px !important; max-height: none !important; overflow: visible !important; margin: 0 auto !important; box-shadow: none !important; animation: none !important; border: 1px solid #d6dee3; }
  body.print-receipt .receipt { position: static !important; width: auto !important; }
  body.print-receipt .modal-close, body.print-receipt .rc-actions, body.print-receipt .no-print { display: none !important; }
  body.print-receipt .rc-top, body.print-receipt .rc-item, body.print-receipt .pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 620px) {
  .pay-head { padding-bottom: 42px !important; } .pay-badge { width: 38px; height: 38px; border-radius: 12px; }
  .rc-top { padding: 18px 18px 18px; } .rc-body { padding: 18px 18px 4px; } .rc-actions { padding: 12px 18px 0; } .receipt-foot { padding: 0 18px 18px; }
  .receipt-amt b { font-size: 30px; }
}
@media (min-width: 981px) {
  .drawer-head { padding: 14px 22px; } .drawer-body { padding: 4px 22px 14px; } .drawer-foot { padding: 12px 22px 14px; }
  .sum-row { font-size: 13px; padding: 3px 0; } .sum-row.total { font-size: 16.5px; padding-top: 9px; margin-top: 6px; }
  .cart-item .ci-img { width: 46px; height: 46px; }
  .modal-head.pay-head { padding: 18px 26px 6px; } .pay-head h3 { font-size: 18px; } .pay-head p { font-size: 12.8px; }
  .pay-summary { padding: 12px 16px; }
  .success { padding: 30px 26px 26px; } .success h3 { font-size: 21px; } .success p { font-size: 13.5px; }
}

/* ---- wallet page ---- */
.wl-top { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; }
.wallet-card { min-height: 0; padding: 20px 22px;
  background: radial-gradient(420px 240px at 100% 0%, rgba(94, 234, 212, .32), transparent 62%), radial-gradient(360px 220px at 0% 120%, rgba(240, 177, 62, .22), transparent 60%), linear-gradient(135deg, #0d6f7c 0%, #0a3d50 55%, #082634 100%); }
.wallet-card::after { content: ""; position: absolute; width: 240px; height: 240px; right: -70px; bottom: -130px; border-radius: 50%; border: 30px solid rgba(255, 255, 255, .05); pointer-events: none; }
.wc-top { gap: 12px; flex-wrap: wrap; }
.wc-top .brand-text b { color: #fff; } .wc-top .brand-text small { color: rgba(255, 255, 255, .65); opacity: 1; }
.wc-addr { border-radius: 9px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); padding: 6px 10px; font-size: 12.5px; }
.wc-dot { width: 7px; height: 7px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 0 3px rgba(94, 234, 212, .25); flex: none; }
.wc-bal { margin-top: 18px; }
.wc-bal > b { font-size: 40px; font-weight: 800; letter-spacing: -.04em; margin-top: 4px; }
.wc-bal b span { font-size: 15px; }
.wc-worth { margin-top: 6px; font-size: 13px; font-weight: 600; color: #ffe1a1; }
.wc-actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wc-change { border-radius: 10px; }
.wl-price { display: flex; flex-direction: column; }
.wl-price-head { display: flex; align-items: center; gap: 10px; }
.wl-price-head .token-coin { width: 38px; height: 38px; border-radius: 50%; flex: none; }
.wl-price-head h3 { font-size: 15px; } .wl-price-head small { font-size: 11.5px; color: var(--muted); }
.wl-price-head > div { flex: 1; min-width: 0; }
.price-big { margin-top: 12px; font-size: 13px; }
.price-big b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--text); line-height: 1.1; margin-top: 2px; }
.price-big small { font-size: 20px; }
.wl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 12px; }
.wl-facts > div { padding: 8px 10px; border-radius: 10px; background: #f6f8f9; border: 1px solid var(--line); min-width: 0; }
.wl-facts small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-facts b { display: block; font-size: 13.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-pockets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.wl-pockets.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wl-pocket { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.wl-pocket > div { min-width: 0; }
.wl-pocket small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.wl-pocket b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.wl-pocket b i { font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.wl-pocket span:not(.q-ic) { display: block; font-size: 11.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-main { align-items: start; }
.wl-side { display: grid; gap: 14px; min-width: 0; }
.wl-side .check-list li { font-size: 13px; gap: 10px; } .wl-side .check-list li span:not(.ck) { font-size: 12.2px; line-height: 1.45; display: block; }
.wl-txs { margin-top: 8px; }
.wl-tx { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.wl-tx:first-child { border-top: 0; }
.wl-tx .q-ic { width: 36px; height: 36px; border-radius: 11px; }
.wl-tx .q-ic.out .ic { transform: rotate(-45deg); }
.wl-tx-main { flex: 1; min-width: 0; }
.wl-tx-main b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-tx-main small { display: block; font-size: 11.8px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-tx-tags { display: flex; gap: 5px; flex: none; }
.wl-tx-amt { font-size: 13.5px; font-weight: 800; white-space: nowrap; text-align: right; min-width: 96px; }
.wl-tx-amt.in { color: var(--green); }
.utility { border-radius: 10px; }
@media (max-width: 980px) {
  .wl-top { grid-template-columns: minmax(0, 1fr); }
  .wallet-card { padding: 18px; border-radius: 20px; } .wc-bal > b { font-size: 34px; }
  .wc-actions .btn { height: 34px; padding: 0 12px; font-size: 12.5px; }
  .wl-pockets, .wl-pockets.three { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wl-tx { padding: 12px 16px; }
}
/* phones, tablets and small laptops: the details get the full width; amount and tags go on the line below (owner, 16 Nov 2026) */
@media (max-width: 1180px) {
  .wl-tx { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ic main main" "ic amt tags"; column-gap: 12px; row-gap: 7px; align-items: center; }
  .wl-tx .q-ic { grid-area: ic; align-self: start; }
  .wl-tx-main { grid-area: main; }
  .wl-tx-main b { white-space: normal; overflow-wrap: anywhere; }
  .wl-tx-main small { white-space: normal; overflow-wrap: anywhere; }
  .wl-tx-amt { grid-area: amt; min-width: 0; text-align: left; }
  .wl-tx-tags { grid-area: tags; justify-content: flex-end; flex-wrap: wrap; }
}

/* ---- long names never break the layout ---- */
.mem-hero > div:first-child { min-width: 0; }
.mh-greet { overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.2; }
.mh-id { overflow-wrap: anywhere; }
.topbar .t-title { min-width: 0; } .topbar h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-member > div { min-width: 0; }
.welcome h2 { overflow-wrap: anywhere; }
.li-main b, .dl-row b { overflow-wrap: anywhere; }
/* ---------- Phase 8: add MIZU / MZUSD to the wallet ---------- */
.dep-head { display: flex; align-items: center; gap: 14px; padding: 20px 60px 22px 24px !important; color: #fff;
  background: radial-gradient(340px 190px at 100% 0%, rgba(240, 177, 62, .38), transparent 62%), radial-gradient(300px 180px at 0% 120%, rgba(94, 234, 212, .22), transparent 60%), linear-gradient(135deg, #0d6f7c, #0a3d50 55%, #082634); }
.dep-head.usd { background: radial-gradient(340px 190px at 100% 0%, rgba(94, 234, 212, .40), transparent 62%), radial-gradient(300px 180px at 0% 120%, rgba(18, 161, 80, .30), transparent 60%), linear-gradient(135deg, #0c7a63, #0a4a4a 55%, #082634); }
.dep-head h3 { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.dep-head p { color: rgba(255, 255, 255, .75); font-size: 12.8px; margin-top: 3px; }
.dep-coin { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 30%, #fff, #e6f6fb 70%); box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 10px 22px -10px rgba(0, 0, 0, .6); }
.dep-coin img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.12); }
.dep-coin b { font-size: 24px; font-weight: 800; color: #0c7a63; }
.modal:has(.dep-head) > .modal-close { color: rgba(255, 255, 255, .85); z-index: 3; }
.modal:has(.dep-head) > .modal-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.dep-body { padding: 16px 24px 22px !important; }
.dep-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; position: relative; }
.dep-steps::before { content: ""; position: absolute; left: 16%; right: 16%; top: 13px; height: 2px; background: linear-gradient(90deg, var(--brand), #cdeee9); border-radius: 2px; }
.dep-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.dep-steps i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--brand); color: var(--brand-ink); font-size: 12.5px; font-weight: 800; box-shadow: 0 0 0 4px #fff; }
.dep-steps li:first-child i { background: var(--brand); color: #fff; }
.dep-addr { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #ecf9f7, #f7fbf2); border: 1px solid #d4efea; text-align: center; }
.dep-addr small, .dep-facts small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.dep-addr > b { display: block; margin: 8px 0 12px; padding: 10px 12px; border-radius: 11px; background: #fff; border: 1px dashed #b9ddd7; font-size: 13.5px; letter-spacing: .02em; line-height: 1.5; word-break: break-all; color: var(--text); user-select: all; }
.dep-addr .btn { height: 40px; }
.dep-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.dep-facts > div { position: relative; padding: 9px 12px; border-radius: 12px; background: #f6f8f9; border: 1px solid var(--line); min-width: 0; }
.dep-facts > div.wide { grid-column: 1 / -1; padding-right: 46px; }
.dep-facts b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-top: 2px; min-width: 0; }
.dep-facts b.mono { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-facts .pill { height: 18px; font-size: 10px; padding: 0 6px; }
.dep-facts .icon-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; }
.dep-body .watch-box { margin-top: 10px; padding: 11px 14px; background: #fff; border: 1px solid #cdeee9; box-shadow: var(--shadow-sm); }
.dep-body .watch-box b { font-size: 13.5px; } .dep-body .watch-box small { font-size: 12px; }
.hash-fallback { margin-top: 10px; font-size: 12.5px; border-radius: 11px; border: 1px solid var(--line); background: #fff; padding: 0 12px; }
.hash-fallback summary { padding: 9px 0; color: var(--brand-ink); }
.hash-fallback[open] { padding-bottom: 12px; }
.dep-test { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: #fbfcfd; }
.dep-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 11.8px; line-height: 1.5; color: var(--muted); }
.dep-note .ic { color: var(--brand); flex: none; margin-top: 1px; }
.dep-note b { color: var(--text); }
@media (max-width: 620px) {
  .dep-head { padding: 18px 54px 20px 18px !important; gap: 12px; } .dep-coin { width: 42px; height: 42px; } .dep-head h3 { font-size: 16.5px; }
  .dep-body { padding: 14px 18px 20px !important; }
  .dep-steps li { font-size: 10.8px; }
  .dep-test { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Phase 9: admin Members totals ---------- */
.mem-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 14px; margin-bottom: 16px; }
.mem-total { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-xl); color: #fff; min-width: 0;
  background: radial-gradient(260px 160px at 100% 0%, rgba(167, 139, 250, .40), transparent 62%), radial-gradient(240px 150px at 0% 120%, rgba(94, 234, 212, .22), transparent 60%), linear-gradient(135deg, #4a35b0, #2a1f6e 55%, #170f3d);
  box-shadow: 0 18px 40px -22px rgba(42, 31, 110, .7); }
.mt-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #ddd3ff; }
.mem-total > div { min-width: 0; }
.mem-total small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.mem-total b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.mem-total span { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); }
.mem-break { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mb-cell { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: left; min-width: 0; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.mb-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9d2fb; }
.mb-cell b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.mb-cell span { font-size: 12px; color: var(--muted); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-cell .dot { width: 8px; height: 8px; border-radius: 50%; }
.mb-cell .dot.green { background: var(--green); } .mb-cell .dot.gold { background: var(--gold); } .mb-cell .dot.coral { background: var(--coral); } .mb-cell .dot.gray { background: #9aa8b1; }
.mem-shop { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: 12px; color: var(--muted); }
.mem-shop .ic { color: var(--faint); flex: none; }
@media (max-width: 980px) {
  .mem-sum { grid-template-columns: minmax(0, 1fr); }
  .mem-break { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Phase 10: Food Benefits — dark hero, one toolbar, a shelf per category, calmer product cards ---------- */
/* hero */
.fm-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 28px; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(460px 260px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%), radial-gradient(380px 220px at 0% 120%, rgba(240, 177, 62, .18), transparent 60%), linear-gradient(135deg, #0d6f7c 0%, #0a3d50 55%, #082634 100%);
  box-shadow: 0 18px 40px -22px rgba(8, 38, 52, .65); }
.fm-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(120deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%); pointer-events: none; }
.fm-hero::after { content: ''; position: absolute; width: 240px; height: 240px; left: -90px; bottom: -165px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .05); pointer-events: none; }
.fm-hero > * { position: relative; z-index: 1; }
.fm-hero-txt { min-width: 0; max-width: 620px; }
.fm-eyebrow { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c4f5ee; }
.fm-eyebrow .ic { width: 13px; height: 13px; }
.fm-hero h2 { font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.12; margin: 10px 0 6px; color: #fff; }
.fm-hero h2 em { font-style: normal; background: linear-gradient(90deg, #ffe2a3, #f3ae35); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f6bd55; }
.fm-hero p { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); max-width: 540px; }
.fm-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.fm-facts span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 9px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.fm-facts span .ic { color: #7fe9dc; }
.fm-facts b { font-weight: 800; color: #fff; }
.fm-facts .btn { height: 30px; }
.fm-hero-pics { display: flex; flex: none; padding: 8px 6px 8px 26px; }
.fm-hero-pics a { width: 92px; height: 92px; margin-left: -18px; border-radius: 20px; overflow: hidden; background: #fff; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .6); transition: transform .3s var(--ease); }
.fm-hero-pics a:nth-child(odd) { transform: rotate(-5deg) translateY(7px); }
.fm-hero-pics a:nth-child(even) { transform: rotate(4deg) translateY(-7px); }
.fm-hero-pics a:hover { transform: translateY(-6px) scale(1.05); z-index: 2; }
.fm-hero-pics img, .fm-hero-pics .p-ph { width: 100%; height: 100%; object-fit: cover; display: block; }

/* toolbar: tabs · search · Categories · Sort · cart */
.fm-bar { --fm-h: 38px; position: relative; z-index: 15; display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 7px; border-radius: 16px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: 0 12px 28px -20px rgba(11, 28, 39, .35), var(--shadow-sm); }
.fm-bar .tabs { flex: none; }
.fm-bar .fm-search { flex: 1 1 200px; min-width: 150px; max-width: none; margin: 0; }
.fm-bar .fm-search .input { height: var(--fm-h); padding-left: 38px; border-radius: 10px; background: #f3f6f8; border-color: transparent; font-size: 13.5px; box-shadow: none; }
.fm-bar .fm-search .input:hover { background: #eef2f5; }
.fm-bar .fm-search .input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 179, 165, .14); }
.fm-bar .fm-search .ic { left: 12px; width: 17px; height: 17px; }
.fm-dd { position: relative; flex: none; }
.fm-dd-btn { list-style: none; display: flex; align-items: center; gap: 8px; height: var(--fm-h); padding: 0 11px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; user-select: none; -webkit-user-select: none; white-space: nowrap; transition: border-color .2s, background .2s, box-shadow .2s; }
.fm-dd-btn::-webkit-details-marker { display: none; }
.fm-dd-btn::marker { content: ''; }
.fm-dd-btn:hover { border-color: #b9c6cd; }
.fm-dd-btn > .ic:first-child { color: var(--brand-ink); flex: none; }
.fm-dd-btn > span { flex: 1; min-width: 0; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.fm-caret { width: 14px; height: 14px; flex: none; color: var(--faint); transform: rotate(90deg); transition: transform .2s var(--ease); }
.fm-dd[open] .fm-caret { transform: rotate(-90deg); }
.fm-dd[open] > .fm-dd-btn { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 179, 165, .14); }
.fm-dd-btn.on { background: #e6f7f5; border-color: #bdebe5; color: var(--brand-ink); }
.fm-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 286px; max-width: calc(100vw - 36px); padding: 6px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 26px 54px -18px rgba(11, 28, 39, .38), 0 2px 6px rgba(11, 28, 39, .06); animation: fmPop .18s var(--ease); }
.fm-menu { max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
.fm-menu.right { left: auto; right: 0; width: 226px; }
@keyframes fmPop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.fm-menu-h { padding: 8px 10px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.fm-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 5px 10px 5px 6px; border-radius: 10px; font-size: 13.5px; text-align: left; color: var(--text); transition: background .15s; }
.fm-menu.right .fm-opt { padding-left: 10px; }
button.fm-opt:hover { background: #f2f6f8; }
.fm-opt b { flex: 1; min-width: 0; font-weight: 700; }
.fm-opt em { font-style: normal; min-width: 24px; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 2px 7px; border-radius: 99px; background: #eef2f4; }
.fm-opt > .ic { color: var(--brand-ink); flex: none; }
.fm-opt.on { background: #e6f7f5; }
.fm-opt.on b { color: var(--brand-ink); }
.fm-opt.on em { background: var(--brand); color: #fff; }
.fm-opt-ic { width: 32px; height: 32px; border-radius: 9px; overflow: hidden; flex: none; display: grid; place-items: center; background: #eef2f4; color: var(--muted); }
.fm-opt-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-opt-ic > i, .fm-shelf-ic > i { width: 10px; height: 10px; border-radius: 50%; }
.fm-opt.on .fm-opt-ic:not([style]) { background: var(--brand); color: #fff; }
.fm-opt.locked { cursor: default; margin-top: 5px; padding-top: 9px; border-top: 1px dashed var(--line-2); border-radius: 0 0 10px 10px; }
.fm-opt.locked b { color: var(--muted); font-weight: 600; }
.fm-opt.locked em { background: var(--gold-soft); color: #9a6200; }
.fm-bar .fm-cart { flex: none; height: var(--fm-h); padding: 0 13px; gap: 8px; border-radius: 10px; margin-left: auto; }
.fm-cart b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.fm-cart i { font-style: normal; font-weight: 700; color: rgba(255, 255, 255, .88); padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, .22); }

/* shelves: one row per category */
.fm-shelf { margin-top: 22px; }
.fm-shelf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fm-shelf-ic { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; flex: none; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(11, 28, 39, .07), 0 6px 12px -8px rgba(11, 28, 39, .35); }
.fm-shelf-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-shelf-t { flex: 1; min-width: 0; }
.fm-shelf-t h3, .fm-res h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.fm-shelf-t span, .fm-res span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.fm-all { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 6px 0 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--brand-ink); white-space: nowrap; flex: none; transition: background .2s; }
.fm-all:hover { background: #e3f6f3; }
.fm-arrows { display: none; gap: 6px; flex: none; }
.fm-shelf.scrolls .fm-arrows { display: flex; }
.fm-arrows button { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); color: var(--text); transition: border-color .2s, color .2s, opacity .2s; }
.fm-arrows button:hover { border-color: var(--brand); color: var(--brand-ink); }
.fm-prev .ic { transform: rotate(180deg); }
.fm-shelf.at-start .fm-prev, .fm-shelf.at-end .fm-next { opacity: .35; pointer-events: none; }
.fm-row { --cols: 5.3; --n: 5; --gap: 14px; display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-left: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 5px 2px 16px; margin: -5px -2px -16px; }
.fm-row::-webkit-scrollbar { display: none; }
.fm-row > .p-card { flex: 0 0 calc((100% - var(--gap) * var(--n)) / var(--cols)); min-width: 0; scroll-snap-align: start; }
.fm-shelf.scrolls:not(.at-end) .fm-row { mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.fm-shelf.scrolls.at-end .fm-row { mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 44px), transparent); }
.fm-shelf.scrolls:not(.at-end):not(.at-start) .fm-row { mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 44px, #000 calc(100% - 44px), transparent); }
/* results after a search, a category or a sort */
.fm-res { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; }
.fm-res > div { min-width: 0; }
.fm-res .btn { flex: none; }
#mk-body > .card, .fm-bar-orders + .card { margin-top: 16px; }

/* product cards (Food Benefits and MIZU-KAPPA): inset picture, one clear price, a quiet button that lights up */
.p-card { padding: 8px; border-radius: 18px; }
.p-card .p-img { border-radius: 12px; }
.p-card .p-save { top: 8px; left: 8px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 7px; background: linear-gradient(180deg, #ffd98a, #f3ae35); color: #4a2f00; font-size: 11px; font-weight: 800; letter-spacing: 0; box-shadow: 0 6px 12px -6px rgba(214, 142, 20, .9); }
.p-new { position: absolute; z-index: 1; top: 8px; right: 8px; height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 7px; background: #0b1c27; color: #fff; font-size: 11px; font-weight: 800; }
.p-card .p-body { padding: 10px 6px 4px; }
.p-card .p-cat { display: block; margin-bottom: 3px; font-size: 9.5px; letter-spacing: .09em; }
.fm-row .p-cat, .fm-one .p-cat { display: none; }
.p-card .p-name { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.p-card .p-unit { margin-top: 3px; font-size: 12px; }
.p-card .p-img .p-stock { right: 8px; bottom: 8px; }
.p-card .p-rating { margin: 5px 0 0; min-height: 0; }
.p-buy { margin-top: auto; padding-top: 10px; }
.p-card .p-label { display: block; margin: 0 0 1px; font-size: 9.5px; letter-spacing: .08em; color: var(--brand-ink); }
.p-card .p-prices { margin: 0; gap: 7px; align-items: baseline; }
.p-card .p-mes { font-size: 19px; letter-spacing: -.03em; }
.p-card .p-reg { font-size: 12.5px; }
.p-card .p-coin { margin: 4px 0 0; gap: 5px; flex-wrap: nowrap; align-items: center; font-size: 11.5px; line-height: 1.35; }
.p-card .p-coin .coin-tag { flex: none; width: 15px; height: 15px; padding: 0; border-radius: 50%; font-size: 0; color: transparent; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236b4300' d='M12 4.2c2.9 3.4 4.8 6 4.8 8.6a4.8 4.8 0 0 1-9.6 0c0-2.6 1.9-5.2 4.8-8.6z'/%3E%3C/svg%3E") center / 13px no-repeat, linear-gradient(180deg, #ffe2a3, #f3ae35); }
.p-card .p-coin .coin-tag.coin-mzusd { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23064e36' d='M12 4.2c2.9 3.4 4.8 6 4.8 8.6a4.8 4.8 0 0 1-9.6 0c0-2.6 1.9-5.2 4.8-8.6z'/%3E%3C/svg%3E") center / 13px no-repeat, linear-gradient(180deg, #aef0d2, #38c58b); }
.p-card .p-coin .coin-tag.coin-both { background: linear-gradient(90deg, #f3ae35 50%, #38c58b 50%); }
.p-card .p-actions { margin-top: 10px; }
.p-card .p-actions .btn, .p-card .stepper { height: 34px; border-radius: 10px; }
.p-card .stepper button { width: 28px; height: 28px; border-radius: 8px; }
.p-card .stepper b { font-size: 13px; }
.p-card .p-actions .btn-primary { background: #e6f7f5; color: var(--brand-ink); box-shadow: none; }
.p-card:hover .p-actions .btn-primary, .p-card .p-actions .btn-primary:hover, .p-card .p-actions .btn-primary:focus-visible { background: linear-gradient(180deg, #13c2b2, #0ba396); color: #fff; box-shadow: 0 8px 16px -10px rgba(11, 163, 150, .95); transform: none; }
.p-card .p-actions .btn-ghost { box-shadow: none; font-size: 12.5px; }

/* cart bar above the bottom menu (phones and tablets) */
.fm-float, .fm-float-pad { display: none; }
@keyframes fmUp { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (min-width: 981px) {
  /* the toolbar stays under the top bar while the shelves scroll */
  .fm-bar { position: sticky; top: 58px; }
  .fm-bar::before { content: ''; position: absolute; left: -6px; right: -6px; top: -10px; height: 10px; background: var(--bg); pointer-events: none; }
  .fm-hero { padding: 18px 26px; }
  .fm-hero h2 { font-size: 26px; margin: 8px 0 4px; }
  .fm-facts { margin-top: 12px; }
}
@media (min-width: 1601px) {
  .fm-row { --cols: 6.3; --n: 6; --gap: 16px; }
}
@media (max-width: 1180px) and (min-width: 981px) {
  .fm-row { --cols: 4.3; --n: 4; }
}
@media (max-width: 980px) {
  .fm-bar { --fm-h: 44px; flex-wrap: wrap; padding: 8px; }
  .fm-bar .fm-cart { display: none; }
  .fm-bar.fm-bar-orders .tabs { width: 100%; display: flex; }
  .fm-bar.fm-bar-orders .tabs button { flex: 1; justify-content: center; }
  .fm-row { --cols: 4.3; --n: 4; --gap: 12px; }
  .fm-float { display: flex; position: fixed; z-index: 39; left: 50%; bottom: 92px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 18px; color: #fff; text-align: left;
    background: linear-gradient(135deg, #12b9aa, #0a7f7a); box-shadow: 0 18px 36px -14px rgba(10, 127, 122, .85), inset 0 0 0 1px rgba(255, 255, 255, .14); animation: fmUp .35s var(--ease); }
  .fm-float-pad { display: block; height: 66px; }
  .fm-float-n { position: relative; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
  .fm-float-n b { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #ffd98a; color: #4a2f00; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
  .fm-float-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .fm-float-t b { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; }
  .fm-float-t small { font-size: 11.5px; color: rgba(255, 255, 255, .82); }
  .fm-float-go { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px; background: #fff; color: var(--brand-ink); font-size: 13px; font-weight: 800; flex: none; }
}
@media (max-width: 760px) {
  .fm-row { --cols: 3.3; --n: 3; }
}
@media (max-width: 620px) {
  .fm-hero { padding: 20px 18px; border-radius: 20px; }
  .fm-hero h2 { font-size: 24px; }
  .fm-hero p { font-size: 13px; }
  .fm-hero-pics { display: none; }
  .fm-facts { gap: 6px; }
  .fm-facts span { height: 28px; padding: 0 9px; font-size: 12px; }
  .fm-bar { margin-top: 12px; border-radius: 18px; }
  .fm-bar .tabs { width: 100%; display: flex; }
  .fm-bar .tabs button { flex: 1; justify-content: center; }
  .fm-bar .fm-search { flex-basis: 100%; }
  .fm-dd { flex: 1 1 0; min-width: 0; }
  .fm-dd-btn > span { max-width: none; }
  .fm-menu { width: min(300px, calc(100vw - 52px)); }
  .fm-menu.right { width: min(240px, calc(100vw - 52px)); }
  .fm-opt { min-height: 44px; }
  .fm-shelf { margin-top: 20px; }
  .fm-shelf-ic { width: 34px; height: 34px; border-radius: 10px; }
  .fm-shelf-t h3, .fm-res h3 { font-size: 16px; }
  .fm-shelf .fm-arrows, .fm-shelf.scrolls .fm-arrows { display: none; }
  .fm-shelf-head { gap: 10px; }
  .fm-all { padding-left: 8px; }
  .fm-row { --cols: 2.15; --n: 2; --gap: 10px; }
  .p-card { padding: 6px; border-radius: 16px; }
  .p-card .p-img { border-radius: 11px; }
  .p-card .p-body { padding: 9px 5px 4px; }
  .p-card .p-name { font-size: 13.5px; }
  .p-card .p-mes { font-size: 16.5px; }
  .p-card .p-reg { font-size: 11.5px; }
  .p-card .p-prices { gap: 5px; }
  .p-card .p-actions .btn, .p-card .stepper { height: 38px; }
  .p-card .stepper button { width: 32px; height: 32px; }
  .p-card .p-actions .btn-primary { background: linear-gradient(180deg, #13c2b2, #0ba396); color: #fff; }
}
@media print { .fm-float { display: none !important; } }
/* ---------- Phase 11: product page — trail, picture + buy box in one panel, dark price block, details, reviews, buy bar ---------- */
.pp-trail { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.pp-trail a { flex: none; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.pp-trail a:hover { text-decoration: underline; }
.pp-trail a.crumb-link { margin: 0; font-size: 13px; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* a long shop name shortens on small phones */
.pp-trail i { font-style: normal; color: #b9c6cd; flex: none; }
.pp-trail span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }

/* picture + buy box */
.pp { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 12px 24px; padding: 12px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 22px 46px -32px rgba(11, 28, 39, .4), var(--shadow-sm); }
.pp-gallery { min-width: 0; align-self: start; }
.pp-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; }
.pp-stage img, .pp-stage .p-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-stage .p-save { position: absolute; z-index: 1; top: 12px; left: 12px; height: 26px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 8px; background: linear-gradient(180deg, #ffd98a, #f3ae35); color: #4a2f00; font-size: 12.5px; font-weight: 800; box-shadow: 0 8px 14px -8px rgba(214, 142, 20, .9); }
.pp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pp-thumbs button { width: 58px; height: 58px; padding: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid transparent; box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: border-color .2s, transform .2s; }
.pp-thumbs button:hover { transform: translateY(-2px); }
.pp-thumbs button.on { border-color: var(--brand); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-info { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 8px 12px 8px 0; }
.pp-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pp-cat { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 99px; background: #f3f6f8; border: 1px solid var(--line); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: border-color .2s, color .2s; }
.pp-cat i { width: 8px; height: 8px; border-radius: 50%; }
.pp-cat:hover { border-color: #b9c6cd; color: var(--text); }
.pp-name { margin: 10px 0 5px; font-size: 27px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.pp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pp-meta > span { padding-right: 10px; border-right: 1px solid var(--line-2); }
.pp-rate { display: inline-flex; color: inherit; }
.pp-rate .p-rating { margin: 0; min-height: 0; font-weight: 500; }
.pp-rate:hover .p-rating { color: var(--brand-ink); }
/* price block */
.pp-price { position: relative; overflow: hidden; margin: 14px 0 12px; padding: 16px 20px 15px; border-radius: 18px; color: #fff;
  background: radial-gradient(340px 190px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%), radial-gradient(280px 170px at 0% 130%, rgba(240, 177, 62, .18), transparent 60%), linear-gradient(135deg, #0d6f7c 0%, #0a3d50 55%, #082634 100%);
  box-shadow: 0 18px 32px -22px rgba(8, 38, 52, .75); }
.pp-price::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(120deg, transparent 35%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 35%, #000 100%); pointer-events: none; }
.pp-price > * { position: relative; }
.pp-price-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pp-price .p-label { display: block; margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a5f0e6; }
.pp-save { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px; background: linear-gradient(180deg, #ffd98a, #f3ae35); color: #4a2f00; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .5); }
.pp-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 3px 0 10px; }
.pp-price-row b { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.pp-price-row .strike { font-size: 16px; color: rgba(255, 255, 255, .62); }
.pp-price-row small { font-size: 12px; color: rgba(255, 255, 255, .55); margin-left: -4px; }
.pp-price .pp-coin { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.pp-price .pp-coin .coin-tag { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #ffe2a3; }
.pp-price .pp-coin .coin-tag.coin-mzusd { color: #aef0d2; }
.pp-price .pp-coin .coin-tag.coin-both { color: #dbe6ff; }
/* buy */
.pp-buy { display: flex; align-items: stretch; gap: 10px; }
.pp-buy > .btn-block, .pp-buy > .stepper { flex: 1 1 0; width: auto; min-width: 0; }
.pp-buy .btn-lg, .pp-buy .stepper.big { height: 48px; border-radius: 13px; font-size: 15px; }
.pp-buy .btn-primary { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 26px -14px rgba(11, 163, 150, .95); }
.pp-buy .stepper.big button { width: 40px; height: 40px; border-radius: 10px; }
.pp-buy .pp-cart { flex: none; padding: 0 18px; }
.pp-limit { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.pp-limit .ic { width: 14px; height: 14px; color: var(--faint); flex: none; }
.pp-notes { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-notes > div { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 12px; background: #f6f8f9; border: 1px solid var(--line); min-width: 0; }
.pp-notes span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #e3f6f3; color: var(--brand-ink); }
.pp-notes p { min-width: 0; font-size: 11.8px; line-height: 1.4; color: var(--muted); }
.pp-notes b { display: block; margin-bottom: 1px; font-size: 12.5px; color: var(--text); }

/* details */
.pp-details { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: stretch; }
.pp-about, .pp-specs { padding: 18px 20px; }
.pp-about h3, .pp-specs h3 { margin-bottom: 8px; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.pp-specs h3 { margin-bottom: 10px; }
.pp-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pp-spec > div { min-width: 0; padding: 9px 11px; border-radius: 11px; background: #f6f8f9; border: 1px solid var(--line); }
.pp-spec span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pp-spec b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.pp-spec .good { background: var(--green-soft); border-color: #cdeedb; }
.pp-spec .good b { color: var(--green); }

/* reviews */
.pp-reviews { margin-top: 14px; }
.rv-none { display: flex; align-items: center; gap: 14px; margin: 12px 20px 20px; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #fff8e6, #f4fbfa); border: 1px solid #f1e4c2; }
.rv-none-ic { flex: none; display: grid; place-items: center; height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.rv-none b { display: block; font-size: 14.5px; }
.rv-none p { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rv-none-form { max-width: 560px; padding: 0 20px 20px; }
.pp-reviews .rv-wrap { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 22px; padding: 12px 20px 20px; }
.rv-score { padding: 14px 16px; border-radius: 14px; background: #f6f8f9; border: 1px solid var(--line); margin-bottom: 12px; }
.rv-score .rv-bars { margin: 12px 0 0; }
.rv-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.pp-reviews .rv-form { border-radius: 14px; }

/* more from the category */
.pp-more { margin-top: 22px; }
a.fm-all { text-decoration: none; }

/* buy bar: slides in under the page once the main Add button is out of view */
.pp-bar-wrap { position: sticky; bottom: 16px; z-index: 30; height: 0; display: flex; justify-content: center; pointer-events: none; }
.pp-bar { position: absolute; bottom: 0; width: min(680px, calc(100% - 48px)); display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 18px; color: #fff; background: rgba(11, 28, 39, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 46px -18px rgba(8, 26, 36, .75), inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.pp-bar.show { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.pp-bar-pic { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; }
.pp-bar-pic img, .pp-bar-pic .p-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-bar-t { flex: 1; min-width: 0; line-height: 1.25; }
.pp-bar-t b { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-bar-t span { font-size: 14.5px; font-weight: 800; color: #7fe9dc; letter-spacing: -.01em; }
.pp-bar-t s { margin-left: 7px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .5); }
.pp-bar-buy { flex: none; width: 172px; }
.pp-bar-buy .btn, .pp-bar-buy .stepper { height: 42px; border-radius: 12px; }
.pp-bar-buy .stepper button { width: 34px; height: 34px; border-radius: 9px; }
.pp-bar-buy .btn-ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; box-shadow: none; }
.pp-bar-cart { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s; }
.pp-bar-cart:hover { background: rgba(255, 255, 255, .2); }
.pp-bar-cart b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; background: #ffd98a; color: #4a2f00; font-size: 10.5px; font-weight: 800; }
.pp-bar-pad { height: 46px; }

@media (min-width: 1601px) {
  .pp { grid-template-columns: minmax(0, 450px) minmax(0, 1fr); gap: 12px 30px; }
  .pp-info { padding: 16px 18px 16px 0; }
  .pp-name { font-size: 30px; }
}
@media (max-width: 980px) {
  .pp { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px 18px; }
  .pp-info { padding: 6px 8px 6px 0; }
  .pp-notes > div { align-items: flex-start; }
  .pp-details { grid-template-columns: minmax(0, 1fr); }
  .pp-reviews .rv-wrap { grid-template-columns: minmax(0, 1fr); }
  .pp-bar-wrap { bottom: 92px; }
  .pp-bar { width: min(560px, calc(100% - 24px)); }
  .pp-bar-pad { height: 60px; }
}
@media (max-width: 620px) {
  .pp-trail { font-size: 12.5px; gap: 6px; }
  .pp { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px; border-radius: 22px; }
  .pp-stage { aspect-ratio: 4 / 3; }
  .pp-info { padding: 12px 6px 8px; }
  .pp-notes { grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
  .pp-notes > div { align-items: center; }
  .pp-price-row small { display: none; }
  .pp-name { font-size: 24px; }
  .pp-price { padding: 14px 16px; }
  .pp-price-row b { font-size: 32px; }
  .pp-buy .btn-lg, .pp-buy .stepper.big { height: 50px; }
  .pp-buy .pp-cart { padding: 0 14px; }
  .pp-about, .pp-specs { padding: 16px; }
  .rv-none { margin: 12px 16px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .rv-none-ic { height: 34px; }
  .rv-none-form { padding: 0 16px 16px; }
  .pp-reviews .rv-wrap { padding: 12px 16px 16px; }
  .pp-bar { gap: 10px; }
  .pp-bar-pic { display: none; }
  .pp-bar-t { padding-left: 8px; }
  .pp-bar-buy { width: 148px; }
}
@media print { .pp-bar-wrap { display: none !important; } }
/* ---------- Phase 12: menu page — who you are, "Find a page", one card per menu group ---------- */
.mn-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(420px 240px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%), radial-gradient(360px 220px at 0% 120%, rgba(240, 177, 62, .16), transparent 60%), linear-gradient(135deg, #0d6f7c 0%, #0a3d50 55%, #082634 100%);
  box-shadow: 0 18px 40px -22px rgba(8, 38, 52, .65); }
.mn-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(120deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%); pointer-events: none; }
.mn-hero::after { content: ''; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -150px; border-radius: 50%; border: 26px solid rgba(255, 255, 255, .05); pointer-events: none; }
.mn-hero > * { position: relative; z-index: 1; }
.mn-avatar { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex: none; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #083a48; background: linear-gradient(135deg, #d3f8f2, #7fe9dc); box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 14px 24px -12px rgba(0, 0, 0, .6); }
.mn-who { flex: 1; min-width: 0; }
.mn-who h2 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.mn-id { padding-right: 4px; font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .78); }
.mn-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 7px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14); font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.mn-chip .ic { width: 12px; height: 12px; color: #7fe9dc; }
.mn-hero-act { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.btn.mn-glass { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.btn.mn-glass:hover { background: rgba(255, 255, 255, .22); transform: none; }

/* find a page */
.mn-find { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 7px; border-radius: 16px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); box-shadow: 0 12px 28px -20px rgba(11, 28, 39, .35), var(--shadow-sm); }
.mn-find .search { flex: 1; min-width: 0; max-width: none; margin: 0; }
.mn-find .search .input { height: 40px; padding-left: 40px; border-radius: 10px; background: #f3f6f8; border-color: transparent; font-size: 14px; box-shadow: none; }
.mn-find .search .input:hover { background: #eef2f5; }
.mn-find .search .input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 179, 165, .14); }
.mn-find .search .ic { left: 13px; width: 17px; height: 17px; }
.mn-find .mn-out { flex: none; height: 40px; border-radius: 10px; color: var(--red); box-shadow: none; }
.mn-out-m { display: none; margin-top: 14px; color: var(--red); }

/* group cards */
.mn-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.mn-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mn-col > .mn-group:last-child { flex: 1; }
.mn-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.mn-group { min-width: 0; padding: 6px 6px 8px; border-radius: 18px; }
.mn-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px; }
.mn-head i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.mn-head h3 { flex: 1; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mn-head span { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: #f1f4f6; font-size: 11px; font-weight: 800; text-align: center; color: var(--faint); }
.mn-list { display: grid; gap: 2px; }
.mn-item { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px; padding: 7px 8px; border-radius: 12px; color: var(--text); transition: background .15s; }
.mn-item:hover, .mn-item:focus-visible { background: #f2f6f8; }
.mn-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; transition: transform .2s var(--ease); }
.mn-ic .ic { width: 19px; height: 19px; }
.mn-item:hover .mn-ic { transform: scale(1.06); }
.mn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.mn-t b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-t small { margin-top: 1px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: inline-grid; place-items: center; flex: none; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; }
.mn-lock { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--gold-soft); color: #a86b00; }
.mn-lock .ic { width: 12px; height: 12px; }
.mn-go { width: 15px; height: 15px; flex: none; color: #bcc8ce; transition: transform .2s var(--ease), color .2s; }
.mn-item:hover .mn-go { transform: translateX(3px); color: var(--brand-ink); }

@media (min-width: 981px) {
  /* Account sits under Membership as four quick tiles, so the three columns end level */
  .mn-cols .mn-g-account .mn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 4px 2px; }
  .mn-cols .mn-g-account .mn-item { min-height: 50px; gap: 9px; padding: 6px 8px; background: #f6f8f9; border: 1px solid var(--line); }
  .mn-cols .mn-g-account .mn-item:hover { background: #eef3f5; border-color: #cfd9de; }
  .mn-cols .mn-g-account .mn-item small, .mn-cols .mn-g-account .mn-go { display: none; }
  .mn-cols .mn-g-account .mn-ic { width: 32px; height: 32px; border-radius: 9px; }
  .mn-cols .mn-g-account .mn-ic .ic { width: 16px; height: 16px; }
  .mn-cols .mn-g-account .mn-t b { font-size: 13px; line-height: 1.2; white-space: normal; overflow: visible; }
}
@media (max-width: 980px) {
  .mn-cols { display: flex; flex-direction: column; gap: 12px; }
  .mn-col { display: contents; }
  .mn-g-membership { order: 1; } .mn-g-community { order: 2; } .mn-g-shop { order: 3; } .mn-g-wallet { order: 4; } .mn-g-account { order: 5; }
  .mn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
  .mn-find .mn-out { display: none; }
  .mn-out-m { display: flex; }
  .mn-item { min-height: 56px; }
}
@media (max-width: 620px) {
  .mn-hero { flex-wrap: wrap; gap: 14px; padding: 18px; border-radius: 20px; }
  .mn-avatar { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
  .mn-who { flex: 1 1 0; }
  .mn-who h2 { font-size: 19px; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .mn-hero-act { width: 100%; }
  .mn-hero-act .btn { flex: 1; height: 38px; }
  .mn-find { margin: 12px 0; border-radius: 18px; }
  .mn-find .search .input { height: 44px; }
  .mn-list { grid-template-columns: minmax(0, 1fr); }
  .mn-hits { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
/* ---------- Phase 13: My Team — rank banner, rank journey, member rows, level and rank bars ---------- */
.tm-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 22px; padding: 20px 24px; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(460px 260px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%), radial-gradient(380px 220px at 0% 120%, rgba(240, 177, 62, .18), transparent 60%), linear-gradient(135deg, #0d6f7c 0%, #0a3d50 55%, #082634 100%);
  box-shadow: 0 18px 40px -22px rgba(8, 38, 52, .65); }
.tm-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(120deg, transparent 30%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000 100%); pointer-events: none; }
.tm-hero > * { position: relative; z-index: 1; min-width: 0; }
.tm-hero h2 { margin: 10px 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: #fff; }
.tm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tm-kpi { display: block; min-width: 0; padding: 10px 12px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s; }
a.tm-kpi:hover { background: rgba(255, 255, 255, .16); }
.tm-kpi b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.tm-kpi b small { font-size: 13px; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, .62); }
.tm-kpi span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .92); }
.tm-kpi em { display: block; font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .62); }
.tm-hero-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tm-rank { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16); }
.tm-rank > small { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #a5f0e6; }
.tm-rank-name { display: flex; align-items: center; gap: 11px; margin-top: 8px; }
.tm-rank-name i { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #4a2f00; background: linear-gradient(180deg, #ffe2a3, #f3ae35); box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .6); }
.tm-rank-name b { min-width: 0; font-size: 23px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.tm-rank-best { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.tm-rank-next { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: rgba(255, 255, 255, .85); }
.tm-rank-next b { color: #fff; font-weight: 800; }

/* rank journey */
.tm-journey { margin-top: 14px; padding: 16px 18px 14px; }
.tm-journey-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.tm-journey-head h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.tm-journey-head span { font-size: 12.5px; }
.tm-ladder { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tm-step { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 0 4px; text-align: center; }
.tm-step::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.tm-step:first-child::before { display: none; }
.tm-step.done::before, .tm-step.on::before { background: var(--brand); }
.tm-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-size: 12.5px; font-weight: 800; color: var(--faint); box-shadow: 0 0 0 4px #fff; }
.tm-step.done .tm-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.tm-step.on .tm-dot { background: #0a3d50; border-color: #0a3d50; color: #fff; box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(15, 179, 165, .28); }
.tm-step b { margin-top: 9px; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--muted); }
.tm-step.done b, .tm-step.on b { color: var(--text); }
.tm-step small { margin-top: 1px; font-size: 11.5px; color: var(--faint); }
.tm-step em { margin-top: 5px; padding: 1px 8px; border-radius: 99px; background: #e6f7f5; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--brand-ink); }
.tm-nextbox { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 6px 18px; align-items: start; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #f1fbfa, #fbfaf1); border: 1px solid #d9efec; }
.tm-nextbox > div > small:first-child { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.tm-nextbox b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.tm-nextbox p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.tm-nextbox .tm-meter { max-width: 340px; margin: 8px 0 4px; }
.tm-nextbox small.muted { font-size: 12px; }
/* meter: a fill on a lighter step of the same colour */
.tm-meter { height: 6px; border-radius: 99px; background: #cfece8; overflow: hidden; }
.tm-meter i { display: block; height: 100%; border-radius: 99px; background: #0e9f93; }

/* people + charts */
.tm-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; align-items: start; }
.tm-side { display: grid; gap: 14px; min-width: 0; }
.tm-directs, .tm-chart { min-width: 0; }
.tm-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 18px 0; }
.tm-tools .tabs { flex: none; max-width: 100%; }
.tm-tools .search { flex: 1 1 170px; min-width: 150px; max-width: none; margin: 0; }
.tm-tools .search .input { height: 38px; padding-left: 38px; border-radius: 10px; background: #f3f6f8; border-color: transparent; font-size: 13.5px; box-shadow: none; }
.tm-tools .search .input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 179, 165, .14); }
.tm-tools .search .ic { left: 12px; width: 16px; height: 16px; }
.tm-list { padding: 6px 10px 10px; }
.tm-row { display: grid; grid-template-columns: 38px minmax(0, 1.25fr) auto minmax(0, 150px); gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line); transition: background .15s; }
.tm-row:first-child { border-top: 0; }
.tm-row:hover { background: #f7fafb; }
.tm-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: #e3f6f3; color: var(--brand-ink); }
.tm-row.off .tm-av { background: #eef2f4; color: var(--muted); }
.tm-who { min-width: 0; }
.tm-who b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-who small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.tm-who small .mono { font-size: 11px; }
.tm-who small span { white-space: nowrap; }
.tm-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.tm-leg { min-width: 0; }
.tm-leg-f { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.tm-leg-f b { margin-right: 4px; font-size: 13.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.tm-none { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px 32px; text-align: center; }
.tm-none > span { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 6px; background: #f1f6f7; font-size: 26px; }
.tm-none b { font-size: 15px; }
.tm-none p { max-width: 320px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.tm-none p a { font-weight: 700; color: var(--brand-ink); }
.tm-none .btn { margin-top: 10px; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 18px 0; font-size: 12px; color: var(--muted); }
.tm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tm-legend i { width: 10px; height: 10px; border-radius: 3px; }
.tm-legend i.a, .tm-bar i.a { background: #0e9f93; }
.tm-legend i.b, .tm-bar i.b { background: #c9d6dc; }
.tm-bars { display: grid; gap: 9px; padding: 10px 18px 16px; }
.tm-bar-head, .tm-bar-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 62px 46px; gap: 10px; align-items: center; }
.tm-bar-head { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.tm-bar-head span:nth-child(n+3), .tm-bar-row .num { text-align: right; }
.tm-bar-row { font-size: 13px; color: var(--text); }
.tm-bar-row > span:first-child { color: var(--muted); font-weight: 600; }
.tm-bar-row .num { font-weight: 800; font-variant-numeric: tabular-nums; }
.tm-bar { display: flex; gap: 2px; height: 12px; min-width: 0; }
.tm-bar i { display: block; height: 100%; min-width: 3px; }
.tm-bar i:last-child { border-radius: 0 4px 4px 0; }
.tm-ranks { padding-top: 12px; }
.tm-ranks .tm-bar-row { grid-template-columns: minmax(0, 132px) minmax(0, 1fr) 40px; }
.tm-ranks .rank-pill { justify-self: start; max-width: 100%; }
.tm-empty { padding: 10px 18px 18px; font-size: 13.5px; }
.tm-grid + .disclaimer { margin-top: 14px; }

@media (max-width: 1180px) and (min-width: 981px) {
  .tm-row { grid-template-columns: 38px minmax(0, 1fr) minmax(0, 150px); }
  .tm-tags { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .tm-leg { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 980px) {
  .tm-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tm-rank { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; }
  .tm-rank > small { width: 100%; }
  .tm-rank-name { margin-top: 0; }
  .tm-rank-best { margin-top: 0; }
  .tm-rank-next { width: 100%; margin-top: 4px; padding-top: 9px; }
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .tm-hero { padding: 18px; border-radius: 20px; }
  .tm-hero h2 { font-size: 21px; }
  .tm-kpis { gap: 6px; }
  .tm-kpi { padding: 9px 9px 8px; }
  .tm-kpi b { font-size: 19px; }
  .tm-kpi b small { font-size: 12px; }
  .tm-kpi span { font-size: 11.5px; line-height: 1.25; }
  .tm-kpi em { font-size: 10.5px; }
  .tm-hero-act .btn { flex: 1 1 0; }
  .tm-hero-act .btn-gold { flex-basis: 100%; }
  .tm-journey { padding: 16px 14px 14px; }
  .tm-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .tm-step:nth-child(4)::before { display: none; }
  .tm-nextbox { grid-template-columns: minmax(0, 1fr); }
  .tm-tools { padding: 12px 14px 0; }
  .tm-tools .tabs { width: 100%; display: flex; }
  .tm-tools .tabs button { flex: 1 1 auto; justify-content: center; gap: 5px; padding: 0 7px; font-size: 12px; white-space: nowrap; }
  .tm-tools .tabs .tcount { padding: 1px 5px; font-size: 10.5px; }
  .tm-tools .search { flex-basis: 100%; }
  .tm-list { padding: 4px 8px 8px; }
  .tm-row { grid-template-columns: 38px minmax(0, 1fr); gap: 8px 12px; padding: 12px 6px; }
  .tm-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .tm-leg { grid-column: 1 / -1; }
  .tm-bars { padding: 10px 14px 14px; }
  .tm-legend { padding: 8px 14px 0; }
  .tm-bar-head, .tm-bar-row { grid-template-columns: 54px minmax(0, 1fr) 58px 42px; gap: 8px; }
  .tm-ranks .tm-bar-row { grid-template-columns: minmax(0, 118px) minmax(0, 1fr) 34px; }
}
/* ---------- Phase 14: admin Products — a summary that filters, one toolbar, the table in a card, rules tucked into one panel, a tidier add form ---------- */
.pr-sum { margin-bottom: 12px; }
.mb-cell.on { border-color: #7c5cf0; box-shadow: 0 0 0 3px rgba(124, 92, 240, .16); }
.mb-cell.on b { color: #4a35b0; }

/* toolbar: market · find · category · add */
.pr-bar { position: relative; z-index: 12; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; padding: 7px; border-radius: 16px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: 0 12px 28px -20px rgba(11, 28, 39, .35), var(--shadow-sm); }
.pr-bar .tabs { flex: none; max-width: 100%; }
.pr-bar .search { flex: 1 1 200px; min-width: 160px; max-width: none; margin: 0; }
.pr-bar .search .input { height: 38px; padding-left: 38px; border-radius: 10px; background: #f3f6f8; border-color: transparent; font-size: 13.5px; box-shadow: none; }
.pr-bar .search .input:hover { background: #eef2f5; }
.pr-bar .search .input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 179, 165, .14); }
.pr-bar .search .ic { left: 12px; width: 16px; height: 16px; }
.pr-bar #pr-cat { flex: 0 1 200px; width: auto; min-width: 150px; height: 38px; border-radius: 10px; font-weight: 700; }
.pr-bar > .btn { flex: none; height: 38px; border-radius: 10px; }

/* pricing rules + currency: one panel, closed until needed */
.pr-more { margin-bottom: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pr-more > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; user-select: none; -webkit-user-select: none; border-radius: 14px; transition: background .15s; }
.pr-more > summary::-webkit-details-marker { display: none; }
.pr-more > summary:hover { background: #f7fafb; }
.pr-more > summary > .ic:first-child { flex: none; color: var(--brand-ink); }
.pr-more > summary > span { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.pr-more > summary b { font-size: 13.5px; font-weight: 800; }
.pr-more > summary small { font-size: 12px; color: var(--muted); }
.pr-caret { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: #f1f4f6; color: var(--muted); transform: rotate(90deg); transition: transform .2s var(--ease); }
.pr-more[open] .pr-caret { transform: rotate(-90deg); }
.pr-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; padding: 2px 12px 12px; }
.pr-note { display: flex; gap: 12px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: #f6f8f9; border: 1px solid var(--line); }
.pr-note > div { min-width: 0; }
.pr-note-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: #e3f6f3; color: var(--brand-ink); }
.pr-note-ic.gold { background: var(--gold-soft); color: #a86b00; }
.pr-note h3 { margin-bottom: 3px; font-size: 14px; font-weight: 800; }
.pr-note p { font-size: 12.8px; line-height: 1.55; color: var(--muted); }
.pr-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.pr-bulk span { margin-right: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pr-bulk .btn { height: 30px; font-size: 12px; background: #fff; }

/* the table card */
.pr-card { overflow: hidden; }
.pr-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.pr-card-head > div { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.pr-card-head h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
#pr-count { padding: 2px 9px; border-radius: 99px; background: #f1f4f6; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pr-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pr-hint .ic { width: 14px; height: 14px; flex: none; color: var(--faint); }
.pr-card-head .btn { height: 30px; font-size: 12px; }
.pr-card-head .btn[hidden] { display: none; }
.prod-table tr[hidden] { display: none; }
/* a row with changes waiting: a gold edge, and its Save button lights up */
.prod-table .prod-act .btn-soft { background: #e6f7f5; color: var(--brand-ink); }
.prod-table .prod-act .btn-soft:hover { background: #d3f1ed; }
.prod-table tbody tr.dirty, .prod-table tbody tr.dirty:hover, .prod-table tbody tr.dirty .prod-act, .prod-table tbody tr.dirty:hover .prod-act { background: #fffaf0; }
.prod-table tbody tr.dirty td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.prod-table tbody tr.dirty .prod-act .btn-soft { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 163, 150, .9); }
.prod-table tbody tr.dirty .prod-act .btn-soft:hover { background: #0a9f93; }
.prod-table .pr-saving { margin-top: 4px; line-height: 1; }
.prod-table .pr-saving .save-tag { padding: 2px 7px; font-size: 11px; }
.prod-table .pr-conv { max-width: 112px; margin-top: 4px; font-size: 10.8px; line-height: 1.35; }
.prod-table input[name=regular], .prod-table input[name=price] { width: 82px !important; }
.prod-table input[name=stock] { width: 56px !important; }
.pr-flag { margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pr-flag.low { color: #a86b00; }
.pr-flag.out { color: var(--red); }

/* add product */
.pr-add { margin-top: 14px; padding: 16px 18px 18px; scroll-margin-top: 124px; }
.pr-add-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pr-add-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.pr-add-head .muted { font-size: 12.5px; }
.pr-form { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px 18px; align-items: start; }
.pr-form .field { margin: 0; min-width: 0; }
.pr-form-photo small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.35; color: var(--muted); }
.pr-form .np-pick { width: 112px; height: 112px; border-radius: 14px; }
.pr-form-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; min-width: 0; }
.pr-form-fields .pf-wide { grid-column: span 2; }
.pr-form-fields .pf-half { grid-column: span 3; }
.pr-form-fields .pf-full { grid-column: 1 / -1; }
.pr-form-fields .pf-conv { grid-column: 1 / -1; margin: -6px 0 0; font-size: 12px; }
.pr-form-fields .pf-conv:empty { display: none; }
.pr-form-fields .input, .pr-form-fields .select { width: 100%; min-width: 0 !important; height: 40px; }
.pr-form-fields .textarea { width: 100%; }
.pr-form-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; }

@media (min-width: 981px) {
  /* the toolbar stays under the top bar while the list scrolls */
  .pr-bar { position: sticky; top: 58px; }
  .pr-bar::before { content: ''; position: absolute; left: -6px; right: -6px; top: -10px; height: 10px; background: var(--bg); pointer-events: none; }
}
@media (max-width: 980px) {
  .pr-notes { grid-template-columns: minmax(0, 1fr); }
  .pr-hint { display: none; }
  .pr-form { grid-template-columns: minmax(0, 1fr); }
  .pr-form-photo { display: flex; align-items: flex-end; gap: 12px; }
  .pr-form-photo small { margin: 0 0 4px; }
  .pr-form-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pr-form-fields .pf-half { grid-column: span 2; }
}
@media (max-width: 620px) {
  .pr-bar { border-radius: 18px; }
  .pr-bar .tabs { width: 100%; display: flex; }
  .pr-bar .tabs button { flex: 1; justify-content: center; padding: 0 8px; white-space: nowrap; }
  .pr-bar .search { flex-basis: 100%; }
  .pr-bar #pr-cat { flex: 1 1 0; min-width: 0; max-width: none; }
  .pr-form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-form-fields .pf-half, .pr-form-fields .pf-wide { grid-column: 1 / -1; }
  .pr-form-foot .btn { width: 100%; }
  .pr-add { padding: 14px; }
}
/* ---------- Phase 15: the Food Benefits layout for the MIZU-KAPPA Market and the Digital Marketplace ---------- */
.fm-row > .dcard { flex: 0 0 calc((100% - var(--gap) * var(--n)) / var(--cols)); min-width: 0; scroll-snap-align: start; }
.fm-hero + .card { margin-top: 14px; }
.dcard { border-radius: 18px; }
.fm-row .dcard-body > small, .fm-one .dcard-body > small { display: none; }
.fm-hero-ic { width: 76px; height: 76px; margin-right: 10px; border-radius: 22px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #c4f5ee; }
.fm-hero .kap-limit { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16); font-size: 12.5px; color: rgba(255, 255, 255, .92); }
.fm-hero .kap-limit .ic { color: #7fe9dc; }
.fm-hero .kap-limit b { color: #fff; }
.fm-hero-pics.dm-pics a { width: 80px; height: 106px; border-radius: 14px; }
.fm-shelf-ic[data-plain], .fm-opt-ic[data-plain] { background: #eef2f4; color: var(--muted); }
.fm-shelf-ic > .ic { width: 18px; height: 18px; }
/* the public shop page (visitors): the toolbar scrolls with the page, under that page's own header */
.ctr-main .fm-bar { position: relative; top: auto; }
.ctr-main .fm-bar::before { display: none; }
.ctr-main .fm-hero { margin-top: 4px; }
@media (max-width: 620px) {
  .fm-hero-ic { display: none; }
}
/* ---------- Phase 16: Admin → Earnings — the breakdown in plain words (under the Funding check) ---------- */
.eb .card-head { align-items: flex-start; }
.eb-sub-h { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; }
.eb-head { display: flex; gap: 12px; align-items: flex-start; margin: 14px 20px 0; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, #f3effe, #eef9f7); border: 1px solid #e2dafb; }
.eb-head-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: #fff; color: #5a3fc9; box-shadow: var(--shadow-sm); }
.eb-head p { font-size: 14px; line-height: 1.65; color: var(--text); }
.eb-good { color: var(--green); font-weight: 700; }
.eb-bad { color: var(--red); font-weight: 700; }
.eb-look { margin: 10px 20px 0; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); border: 1px solid #f6e2b3; font-size: 13px; color: #6a4a07; }
.eb-look ul { margin: 4px 0 0; padding-left: 18px; line-height: 1.6; }
.eb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 20px 4px; align-items: start; }
.eb-sec { min-width: 0; padding: 14px 16px; border-radius: 14px; background: #fafbfc; border: 1px solid var(--line); }
.eb-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.eb-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.eb-ic .ic { width: 17px; height: 17px; }
.eb-sec-h h4 { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.eb-fig { font-size: 16px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.eb-fig small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.eb-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: #33434e; }
.eb-list > li + li { margin-top: 5px; }
.eb-list b { color: var(--text); }
.eb-list .eb-sub { margin: 4px 0 0; padding-left: 16px; list-style: circle; }
.eb-list .eb-sub li + li { margin-top: 3px; }
.eb-latest { margin: 10px 20px 20px; }
.eb-latest-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 12px 0 8px; border-top: 1px solid var(--line); }
.eb-latest-h h4 { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 800; }
.eb-latest-h h4 .ic { color: #5a3fc9; }
.eb-latest-h .muted { font-size: 12.5px; }
.eb-latest ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.eb-latest li { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px; border-radius: 10px; background: #fafbfc; border: 1px solid var(--line); font-size: 13px; }
.eb-latest li p { flex: 1 1 320px; min-width: 0; line-height: 1.5; color: #33434e; }
.eb-latest li > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.eb-st { font-style: normal; font-weight: 700; }
.eb-st.st-accrued { color: #a86b00; }
.eb-st.st-available { color: var(--green); }
.eb-st.st-forfeited { color: var(--red); }
.eb-st.st-claiming, .eb-st.st-claimed, .eb-st.st-paid { color: var(--brand-ink); }
.eb-none { font-size: 13px; padding: 2px 0; }
@media (max-width: 980px) { .eb-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .eb-head, .eb-look, .eb-latest { margin-left: 16px; margin-right: 16px; }
  .eb-grid { padding: 12px 16px 4px; }
  .eb-latest li > span { white-space: normal; }
}
/* every dollar of the membership fees (Funding check) */
.fa { padding: 4px 22px 14px; }
.fa h4 { font-size: 14px; font-weight: 800; margin: 6px 0 8px; }
.fa-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line); margin-bottom: 6px; }
.fa-bar i { display: block; height: 100%; }
.fa-t td { vertical-align: top; }
.fa-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }
.fa-mem { background: #12a150; } .fa-res { background: #8a9ca6; } .fa-lost { background: #d33a3a; } .fa-eco { background: #2a78d6; } .fa-pool { background: #f0b13e; } .fa-adv { background: #a78bfa; } .fa-oth { background: #f2664b; }
.fa-total td { border-top: 2px solid var(--line-2); background: #f7fafb; }
/* Start fresh (Admin → Backups) */
.sf { border: 1.5px solid #f3c4c4; }
.sf h3 { display: flex; align-items: center; gap: 8px; color: #b42318; }
.sf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sf-cols h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.sf-cols ul { padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; }
.sf-next { margin: 14px 0 12px; font-size: 13.5px; background: #fff7e6; border: 1px solid #f7dfa5; border-radius: 12px; padding: 10px 12px; }
.sf-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.sf-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; flex: 1 1 260px; }
.sf-done { display: flex; gap: 10px; align-items: flex-start; background: #e9f8f0; border: 1px solid #bfe8d2; color: #0d5c33; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; }
@media (max-width: 680px) { .sf-cols { grid-template-columns: 1fr; } }
/* ---------- Phase 17: admin dashboard — "Did you know?" fun facts ---------- */
.ff { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px 12px 12px; border-radius: 16px; background: linear-gradient(120deg, #f4f0ff 0%, #eefaf8 60%, #fff8e8 100%); border: 1px solid #e4dcfb; box-shadow: var(--shadow-sm); }
.ff-emoji { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 24px; line-height: 1; background: #fff; box-shadow: 0 6px 14px -8px rgba(74, 53, 176, .45); animation: ffPop .35s var(--ease); }
.ff-body { flex: 1; min-width: 0; animation: ffIn .35s var(--ease); }
.ff-body small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5a3fc9; }
.ff-body p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--text); }
.ff-act { display: flex; align-items: center; gap: 10px; flex: none; }
.ff-act span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ff-act .btn { background: #fff; }
@keyframes ffIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ffPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
  .ff { flex-wrap: wrap; }
  .ff-act { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .ff-emoji, .ff-body { animation: none; } }
/* ---------- Dollars first: the naira amount small beside a dollar price (team request, 15 Nov 2026) ---------- */
.mny { white-space: nowrap; }
.mny .ngn { font-size: .66em; font-weight: 600; opacity: .62; margin-left: .38em; letter-spacing: 0; }
.pp-save .mny, .save-chip .mny { margin: 0 .3em; }            /* in these pills the spaces around the price collapse */
.pp-price-row b .mny .ngn { font-size: .42em; opacity: .7; }   /* the big product price: naira clearly secondary */
.vz-value .mny .ngn { display: block; margin: 3px 0 0; font-size: .5em; }
/* long menu names (Digital Product Affiliate Links, MIZU-KAPPA General Marketplace) wrap onto a second line instead of being cut off */
.nav a.nav-long { white-space: normal; line-height: 1.18; height: auto; min-height: 32px; padding-top: 6px; padding-bottom: 6px; }
/* ---------- Log in, sign-up and password pages (redesign, owner request 15 Nov 2026) ----------
   Wide screens: a brand showcase (member card, floating benefits) stays beside the form while it scrolls.
   Phones: the showcase becomes a short header and the form sits on a card over it. */
.au { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(460px, 46%) 1fr; background: #f3f7f8; }

/* showcase */
.au-show { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 32px 48px 40px; color: #fff;
  background: radial-gradient(620px 440px at 88% 6%, rgba(20, 195, 180, .40), transparent 62%), radial-gradient(540px 400px at 0% 100%, rgba(240, 177, 62, .22), transparent 60%), linear-gradient(160deg, #031c25 0%, #063d48 52%, #0a6971 100%); }
.au-show::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 55% 42%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse at 55% 42%, #000 0%, transparent 72%); }
.au-show::after { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; bottom: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 212, .30), transparent 66%); animation: auGlow 10s ease-in-out infinite alternate; }
@keyframes auGlow { to { transform: translate(-70px, -50px) scale(1.15); } }
.au-show .brand { color: #fff; }
.au-show .brand-text small { color: rgba(255, 255, 255, .62); opacity: 1; }
.au-coin { display: none; }

.au-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; perspective: 1200px; }
.au-cw { position: relative; width: 340px; }                 /* the card, with its badges placed around it */
.au-mcard { position: relative; width: 100%; aspect-ratio: 1.6; padding: 22px 24px; border-radius: 24px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .07) 55%, rgba(94, 234, 212, .16)); border: 1px solid rgba(255, 255, 255, .30);
  box-shadow: 0 44px 90px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: rotateX(9deg) rotateY(-15deg) rotateZ(2deg); animation: auFloat 7s ease-in-out infinite; }
.au-mcard::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .20) 46%, transparent 60%); }
@keyframes auFloat { 50% { transform: rotateX(9deg) rotateY(-15deg) rotateZ(2deg) translateY(-10px); } }
.au-mc-top { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.au-mc-top img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.au-mc-top i { margin-left: auto; font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 99px; background: rgba(18, 161, 80, .28); color: #b9f6d1; font-size: 11px; letter-spacing: .03em; text-transform: none; }
.au-mc-top i .ic { width: 13px; height: 13px; }
.au-mc-fee b { display: block; font-size: 46px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.au-mc-fee span { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.au-mc-bot { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: rgba(255, 255, 255, .72); letter-spacing: .06em; }

.au-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 16px; background: rgba(255, 255, 255, .95); color: var(--text); white-space: nowrap;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .5); animation: auBob 6s ease-in-out infinite; }
.au-float > span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.au-float > span img { width: 24px; height: 24px; border-radius: 50%; }
.au-float b { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.au-float small { font-size: 11.5px; color: var(--muted); }
.au-float.f1 { bottom: -40px; left: -44px; }                 /* below the card's corner, clear of its text */
.au-float.f2 { top: 40%; right: -84px; animation-delay: -2s; }  /* beside the price, where the card is empty */
.au-float.f3 { top: -54px; right: -24px; animation-delay: -4s; }
@keyframes auBob { 50% { transform: translateY(-8px); } }

.au-copy h2 { font-family: var(--ff); font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
.au-copy h2 em { font-style: normal; background: linear-gradient(90deg, #5eead4, #ffd98a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-copy p { margin-top: 12px; max-width: 450px; color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.55; }
.au-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.au-points span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.au-points .ic { color: #5eead4; width: 15px; height: 15px; }

/* the form side */
.au-main { position: relative; min-width: 0; display: flex; justify-content: center; align-items: center; padding: 28px 32px;
  background: radial-gradient(540px 380px at 100% 0%, rgba(20, 195, 180, .11), transparent 62%), radial-gradient(500px 360px at 0% 100%, rgba(240, 177, 62, .09), transparent 60%), #f3f7f8; }
.au-wrap { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 12px; }
.au-wrap.wide { max-width: 590px; }
.au-bar { display: flex; align-items: center; }
.au-home { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 700; transition: background .2s, color .2s; }
.au-home:hover { color: var(--text); background: rgba(255, 255, 255, .8); }
.au-home .ic { transform: rotate(180deg); }
.au-card { background: #fff; border-radius: 24px; padding: 24px 28px 22px; border: 1px solid rgba(12, 33, 48, .06); box-shadow: 0 1px 2px rgba(12, 33, 48, .04), 0 28px 64px -28px rgba(12, 33, 48, .28); }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #eef3f5; margin-bottom: 20px; }
.au-tabs a { text-align: center; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.au-tabs a:hover { color: var(--text); }
.au-tabs a.on { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(12, 33, 48, .08), 0 6px 14px -6px rgba(12, 33, 48, .18); }
.au-head h1, .au-rec h1 { font-family: var(--ff); font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--text); }
.au-head p, .au-rec > p { margin: 6px 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.au-steps { list-style: none; display: flex; gap: 10px; margin: 0 0 20px; padding: 0; }
.au-steps li { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--faint); }
.au-steps li b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line); color: var(--muted); font-size: 11.5px; }
.au-steps li.on { color: var(--text); border-color: var(--brand); }
.au-steps li.on b { background: var(--brand); color: #fff; }
.au-sec { padding: 16px 0 2px; border-top: 1px dashed var(--line); }
.au-sec:first-child { padding-top: 0; border-top: 0; }
.au-sec-t { display: block; margin-bottom: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); }
.au .field { margin-bottom: 14px; gap: 6px; }
.au .input { height: 50px; background: #f8fafb; border-color: #dde6e9; }
.au .input:hover { border-color: #c9d6db; }
.au .input:focus { background: #fff; border-color: var(--aqua); }
.au-pw .input { padding-right: 48px; }
.au-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; color: var(--faint); cursor: pointer; transition: background .2s, color .2s; }
.au-eye:hover, .au-eye:focus-visible { color: var(--text); background: #eef3f5; outline: none; }
.input-ic .au-eye .ic { position: static; transform: none; color: inherit; width: 19px; height: 19px; }
.au-pwrow .field { margin-bottom: 8px; }
.au-meter { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; }
.au-meter i { flex: 1; max-width: 40px; height: 4px; border-radius: 4px; background: var(--line); transition: background .25s; }
.au-meter span { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-meter[data-s="1"] i:nth-child(-n+1) { background: #f2664b; }
.au-meter[data-s="2"] i:nth-child(-n+2) { background: #f0b13e; }
.au-meter[data-s="3"] i:nth-child(-n+3) { background: #14c3b4; }
.au-meter[data-s="4"] i { background: #12a150; }
.au-match { display: flex; align-items: center; gap: 5px; min-height: 18px; margin: 0 0 12px; font-size: 12.5px; font-weight: 600; }
.au-match.ok { color: var(--green); }
.au-match.bad { color: var(--red); }
.au-match .ic { width: 14px; height: 14px; }
.au-terms { margin: 6px 0 18px; }
.au-submit { height: 54px; border-radius: 14px; font-size: 15.5px; background: linear-gradient(135deg, #17ccbc, #0a8b87); box-shadow: 0 16px 32px -14px rgba(10, 139, 135, .7); transition: transform .2s, box-shadow .2s; }
.au-submit:hover { transform: translateY(-1px); box-shadow: 0 20px 36px -14px rgba(10, 139, 135, .8); }
.au-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--faint); }
.au-note .ic { width: 14px; height: 14px; }
.au-alt { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.au-alt a, .au-shop a { color: var(--brand-ink); font-weight: 700; }
.au-shop { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #f3f8f8; border: 1px solid #e2eded; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: left; }
.au-shop .ic { flex: none; margin-top: 2px; color: var(--brand-ink); width: 16px; height: 16px; }
.au-shop span { min-width: 0; }
.au-rec .recov-done { padding: 6px 0; }

/* short laptop screens (the owner's 1280 × 600): a little tighter so the card and the form fit */
@media (min-width: 981px) and (max-height: 760px) {
  .au-show { padding: 24px 40px 28px; }
  .au-copy h2 { font-size: 34px; }
  .au-copy p { font-size: 14px; margin-top: 8px; }
  .au-points { margin-top: 12px; }
  .au-cw { width: 296px; }
  .au-mcard { padding: 18px 20px; }
  .au-mc-fee b { font-size: 40px; }
  .au-main { padding: 18px 28px; }
  .au-card { padding: 20px 24px 18px; }
  .au-tabs { margin-bottom: 14px; }
  .au-head p { margin-bottom: 14px; }
}

/* narrow laptops: a smaller card, two badges */
@media (min-width: 981px) and (max-width: 1180px) { .au-cw { width: 270px; } .au-float.f3 { display: none; } .au-float.f1 { left: -24px; } .au-float.f2 { right: -40px; } .au-show { padding-left: 36px; padding-right: 36px; } }

/* tablets and phones: a short branded header, the form on a card over it */
@media (max-width: 980px) {
  .au { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }   /* the header keeps its own height; the form area takes the rest */
  .au-show { position: relative; height: auto; padding: 18px 20px 74px; }
  .au-stage { display: none; }
  .au-coin { display: block; position: absolute; top: 58px; right: 22px; width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 16px 34px -8px rgba(0, 0, 0, .55); animation: auBob 6s ease-in-out infinite; }
  .au-copy { margin-top: 26px; }
  .au-copy h2, .au-copy p { padding-right: 84px; }
  .au-copy h2 { font-size: 30px; }
  .au-copy p { font-size: 14px; margin-top: 8px; }
  .au-points { margin-top: 14px; }
  .au-main { margin-top: -50px; padding: 0 14px 28px; align-items: flex-start; background: none; }
  .au-wrap, .au-wrap.wide { max-width: 600px; }
  .au-bar { order: 2; justify-content: center; }
  .au-card { padding: 20px 18px 18px; border-radius: 22px; }
  .au .input { font-size: 16px; }            /* no zoom on iPhones when typing */
}
@media (max-width: 560px) {
  .au-copy h2 { padding-right: 70px; }
  .au-coin { width: 56px; height: 56px; top: 62px; right: 18px; }
  .au-copy h2 { font-size: 26px; }
  .au-copy p { display: none; }
  .au-points span:nth-child(3) { display: none; }
  .au-head h1, .au-rec h1 { font-size: 24px; }
  .au-steps { gap: 6px; }
  .au-steps li { font-size: 11.5px; gap: 6px; }
  .au-pwrow { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .au-mcard, .au-float, .au-coin, .au-show::after { animation: none; } }
/* ---------- Comfortable size on laptops (owner request, 15 Nov 2026) ----------
   At 100% the site looked too big on the owner's laptop (1920 × 1080 at 150% = 1280 px wide); it looked right at 80–85%.
   Laptop and desktop screens up to 1440 px wide (mouse, not touch) now show everything at 85%. Phones and tablets open at
   90% instead (viewport tag in index.html and admin.html). Full-height parts are corrected so they still fill the screen:
   inside a zoomed page, 100vh is 85% of the screen, so they use 100vh ÷ .85. */
@media (min-width: 981px) and (max-width: 1440px) and (hover: hover) and (pointer: fine) {
  html { zoom: .85; }
  .side, .au-show { height: calc(100vh / .85); height: calc(100dvh / .85); }
  .drawer { height: calc(100vh / .85); height: calc(100dvh / .85); }
  .auth, .au, .ctr-page, .tf-gate { min-height: calc(100vh / .85); min-height: calc(100dvh / .85); }
  .modal { max-height: calc(100vh / .85 - 48px); }
  .fm-menu { max-height: calc(100vh / .85 - 150px); }
}
/* Matrix page: "Latest earnings, in words" (owner request, 16 Nov 2026) — js/app.js earnWordsCard() */
.mx-words .card-head h3 { display: inline-flex; align-items: center; gap: 8px; }
.mx-words .card-head h3 .ic { color: #5a3fc9; }
.mw-all { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ocean); text-decoration: none; white-space: nowrap; }
.mw-list { list-style: none; margin: 0; padding: 4px 20px 18px; display: grid; gap: 8px; }
.mw-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.mw-item .li-ic { width: 34px; height: 34px; border-radius: 10px; }
.mw-item > div { min-width: 0; flex: 1; }
.mw-item p { font-size: 13.5px; line-height: 1.5; color: #33434e; overflow-wrap: anywhere; }
.mw-item small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.mw-st { font-style: normal; font-weight: 700; }
.mw-st.st-accrued { color: #a86b00; } .mw-st.st-available { color: var(--green); } .mw-st.st-forfeited { color: var(--red); }
.mw-st.st-claiming, .mw-st.st-claimed, .mw-st.st-paid { color: var(--brand-ink); }
.mw-none { padding: 6px 20px 20px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 620px) { .mw-list { padding: 4px 14px 14px; } .mw-none { padding: 6px 14px 16px; } .mx-words .card-head { flex-wrap: wrap; gap: 6px; } }
/* ---------- My Matrix (#/app/matrix) — redesigned 16 Nov 2026: banner, connected tree, level tiles (js/app.js vMatrix) ---------- */
.mxv-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); gap: 22px; padding: 22px 24px; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(520px 280px at 100% 0%, rgba(94, 234, 212, .30), transparent 62%), radial-gradient(420px 240px at 0% 120%, rgba(139, 92, 246, .22), transparent 60%), linear-gradient(135deg, #061723 0%, #0a3346 55%, #0b5566 100%);
  box-shadow: 0 18px 40px -22px rgba(8, 38, 52, .65); }
.mxv-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1.5px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000); pointer-events: none; }
.mxv-hero > * { position: relative; z-index: 1; min-width: 0; }
.mxv-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a5f0e6; }
.mxv-hero h2 { margin: 8px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: #fff; }
.mxv-hero-main > p { font-size: 14px; color: rgba(255, 255, 255, .82); max-width: 640px; }
.mxv-hero-main > p b { color: #fff; }
.mxv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.mxv-kpi { min-width: 0; padding: 11px 12px; border-radius: 13px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); }
.mxv-kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mxv-kpi span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .94); }
.mxv-kpi em { display: block; font-style: normal; font-size: 11.5px; color: rgba(255, 255, 255, .62); overflow-wrap: anywhere; }
.mxv-paid { align-self: stretch; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16); }
.mxv-ring { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#5eead4 0, #2dd4bf calc(var(--p) * 1%), rgba(255, 255, 255, .14) calc(var(--p) * 1%) 100%); box-shadow: 0 0 30px -8px rgba(94, 234, 212, .55); }
.mxv-ring > div { width: 80px; height: 80px; border-radius: 50%; background: #0a3346; display: grid; place-content: center; text-align: center; }
.mxv-ring b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.mxv-ring small { margin-top: 3px; font-size: 10.5px; color: rgba(255, 255, 255, .7); }
.mxv-paid-txt { min-width: 0; display: grid; gap: 3px; }
.mxv-paid-txt small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a5f0e6; }
.mxv-paid-txt > b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.mxv-paid-txt span { font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.mxv-paid-txt span b { color: #fff; }

/* card heads */
#mxv-tree-card { scroll-margin-top: 84px; }
.mxv-card { padding: 18px 20px 20px; }
.mxv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px 16px; flex-wrap: wrap; }
.mxv-head h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.mxv-head h3 .ic { color: var(--brand, #0fb3a5); }
.mxv-head p { margin-top: 3px; font-size: 13px; color: var(--muted); max-width: 720px; }
.mxv-head p b { color: var(--text); }

/* the tree (the container also has the old .mx-tree class, kept for the suite) */
.mxv-tree { display: block; overflow: visible; gap: 0; }
.mxv-tree { margin: 18px 0 6px; padding: 18px 12px 10px; border-radius: 16px; background: radial-gradient(#dfe9ed 1px, transparent 1.4px) 0 0 / 16px 16px, linear-gradient(180deg, #f8fbfc, #f2f7f8); border: 1px solid var(--line); }
.mxv-row, .mxv-link { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; }
.mxv-lv { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #5c7480; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 7px; }
.mxv-row.r0 .mxv-lv { background: var(--ink, #061723); border-color: var(--ink, #061723); color: #fff; }
.mxv-nodes { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.mxv-link svg { display: block; width: 100%; height: 26px; overflow: visible; }
.mxv-link .ln { fill: none; stroke: #9fc9cf; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.mxv-link .ln.open { stroke: #cfdbe0; stroke-dasharray: 4 4; }
.mxv-node { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 0 2px; background: none; border: 0; font: inherit; color: inherit; cursor: default; }
.mxv-node[data-act] { cursor: pointer; }
.mxv-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; transition: transform .15s ease, box-shadow .15s ease;
  background: linear-gradient(160deg, #e7fbf3, #c7f0de); color: #0b6b45; box-shadow: 0 0 0 2px #fff, 0 4px 10px -5px rgba(6, 23, 35, .35); }
.mxv-node.off .mxv-av { background: linear-gradient(160deg, #f3f6f8, #e3e9ed); color: #7a8e99; }
.mxv-node.direct .mxv-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #7c5cf0, 0 6px 14px -6px rgba(124, 92, 240, .7); } /* violet: unlike active (green) and spillover (amber) — team, 19 Nov 2026 */
.mxv-node.spill .mxv-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #f0b13e, 0 6px 14px -6px rgba(240, 177, 62, .7); }
.mxv-node.you .mxv-av { width: 60px; height: 60px; font-size: 17px; color: #fff; background: radial-gradient(circle at 30% 25%, #1f5b6e, #061723 70%); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(20, 195, 180, .45), 0 12px 26px -10px rgba(6, 23, 35, .7); }
.mxv-node.open .mxv-av { width: 40px; height: 40px; background: rgba(255, 255, 255, .7); border: 2px dashed #c4d3d9; color: #a9bac3; box-shadow: none; font-size: 16px; }
.mxv-node[data-act]:hover .mxv-av, .mxv-node[data-act]:focus-visible .mxv-av { transform: translateY(-3px) scale(1.04); }
.mxv-node small { max-width: 100%; font-size: 12px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxv-node.open small, .mxv-node.off small { color: var(--muted); font-weight: 600; }
.mxv-node em { max-width: 100%; font-style: normal; font-size: 10.5px; font-weight: 700; color: #5a3fc9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxv-row.r3 .mxv-av { width: 38px; height: 38px; font-size: 12px; }
.mxv-row.r3 .mxv-node em { display: none; }
.mxv-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mxv-legend span { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: #f6f9fa; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: #4a5f6a; }
.mxv-legend .lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.mxv-legend .lg.act { background: #c7f0de; } .mxv-legend .lg.off { background: #e3e9ed; }
.mxv-legend .lg.direct { background: #fff; box-shadow: inset 0 0 0 2.5px #7c5cf0; } .mxv-legend .lg.spill { background: #fff; box-shadow: inset 0 0 0 2.5px #f0b13e; }
.mxv-legend .lg.open { background: #fff; border: 1.5px dashed #c4d3d9; }

/* the 13 levels */
.mxv-lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.mxv-lt { min-width: 0; display: grid; gap: 6px; padding: 12px 13px; border-radius: 14px; border: 1px solid #cdeee6; background: linear-gradient(180deg, #f3fcf9, #fff); }
.mxv-lt.locked { border-color: var(--line); background: #f7f9fa; }
.mxv-lt-top { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 6px; }
.mxv-lt-n { font-size: 12px; font-weight: 800; color: #fff; background: #0b6b5f; border-radius: 8px; padding: 2px 7px; }
.mxv-lt.locked .mxv-lt-n { background: #8fa3ad; }
.mxv-lt-st { display: inline-flex; align-items: center; gap: 3px; min-width: 0; font-size: 11px; font-weight: 800; color: #0e8a5a; }
.mxv-lt-st .ic { width: 13px; height: 13px; flex: none; }
.mxv-lt-st.lock { color: #7a8e99; font-weight: 700; }
.mxv-lt > b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mxv-lt > b small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.mxv-lt.locked > b { color: #5c7480; }
.mxv-bar { height: 6px; border-radius: 99px; background: #e4eef1; overflow: hidden; }
.mxv-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #14c3b4, #0e7490); }
.mxv-lt.locked .mxv-bar i { background: #a9bac3; }
.mxv-lt-act { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* not placed yet */
.mxv-empty { text-align: center; padding: 44px 24px; border-radius: var(--r-xl); color: #fff; background: radial-gradient(420px 240px at 100% 0%, rgba(94, 234, 212, .28), transparent 62%), linear-gradient(135deg, #061723, #0a3346 60%, #0b5566); }
.mxv-empty-ic { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #5eead4; }
.mxv-empty-ic .ic { width: 28px; height: 28px; }
.mxv-empty h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.mxv-empty p { margin: 8px auto 16px; max-width: 520px; font-size: 14px; color: rgba(255, 255, 255, .8); }

@media (max-width: 1100px) {
  .mxv-hero { grid-template-columns: minmax(0, 1fr); }
  .mxv-paid { padding: 14px 16px; }
}
@media (max-width: 760px) {
  .mxv-hero { padding: 18px 16px; gap: 14px; border-radius: 20px; }
  .mxv-hero h2 { font-size: 21px; }
  .mxv-hero-main > p { font-size: 13.5px; }
  .mxv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
  .mxv-kpi b { font-size: 21px; }
  .mxv-ring { width: 88px; height: 88px; } .mxv-ring > div { width: 68px; height: 68px; } .mxv-ring b { font-size: 19px; }
  .mxv-paid-txt > b { font-size: 18px; }
  .mxv-card { padding: 16px 14px 16px; }
  .mxv-tree { padding: 14px 6px 8px; margin-top: 14px; }
  .mxv-row, .mxv-link { grid-template-columns: 28px minmax(0, 1fr); }
  .mxv-lv { font-size: 9.5px; padding: 1px 5px; }
  .mxv-link svg { height: 20px; }
  .mxv-av { width: 38px; height: 38px; font-size: 12px; }
  .mxv-node.you .mxv-av { width: 50px; height: 50px; font-size: 15px; }
  .mxv-node.open .mxv-av { width: 32px; height: 32px; font-size: 14px; }
  .mxv-node small { font-size: 10.5px; }
  .mxv-node em { display: none; }
  .mxv-row.r3 .mxv-av { width: 28px; height: 28px; font-size: 9.5px; box-shadow: 0 0 0 1.5px #fff; }
  .mxv-row.r3 .mxv-node.direct .mxv-av { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3.5px #7c5cf0; }
  .mxv-row.r3 .mxv-node.spill .mxv-av { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3.5px #f0b13e; }
  .mxv-row.r3 .mxv-node.open .mxv-av { width: 24px; height: 24px; font-size: 11px; }
  .mxv-row.r3 .mxv-node small { display: none; }
  .mxv-legend { gap: 6px; } .mxv-legend span { font-size: 11px; padding: 3px 8px; }
  .mxv-lgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mxv-lt { padding: 10px 11px; }
  .mxv-lt > b { font-size: 18px; }
}
/* ---------- Homepage 2: the shop front (owner request, 17 Nov 2026; second round 18 Nov: fully e-commerce, no fee,
   no offer cards or centres section, a shorter banner, a more premium look) ----------
   storefront() in app.js: strip, sticky header with search and cart, category bar, hero (categories · banner),
   promises, category tiles, top deals (dark), a shelf per category, a deal spotlight, shop footer. Admin → Homepage chooses it.
   Third round 18 Nov: round category tiles again (with Medical and Digital), a slimmer promises row (one line on phones),
   a menu bar at the bottom on phones and tablets (Home · Categories · Cart · Sign in · Register) and a Categories sheet. */
.sf { background: #f4f6f8; min-height: 100vh; color: var(--text); }
.sf-in { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.sf-results[hidden], #sf-browse[hidden] { display: none !important; }
.sf-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sf [id] { scroll-margin-top: 150px; }
:where(.sf) button { font: inherit; color: inherit; }   /* no weight of its own, so each button's class sets its look */
.sf .tone-gold { background: linear-gradient(140deg, #fff3d4, #ffe2a1); color: #8a5a00; }
.sf .tone-violet { background: linear-gradient(140deg, #f1ecff, #ddd2ff); color: var(--violet); }
.sf .tone-aqua { background: var(--aqua-soft); color: var(--brand-ink); }

/* strip */
.sf-strip { background: linear-gradient(90deg, #061723, #0a2a3b 50%, #061723); color: rgba(255,255,255,.78); font-size: 12.5px; }
.sf-strip .sf-in { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 34px; } /* just the line, centred (its links were removed, 19 Nov 2026) */
.sf-strip span { display: inline-flex; align-items: center; gap: 6px; }
.sf-strip .ic { color: var(--gold-2); }
.sf-strip nav { display: flex; gap: 22px; }
.sf-strip nav a { color: rgba(255,255,255,.75); font-weight: 600; transition: color .2s; }
.sf-strip nav a:hover { color: #fff; }

/* header */
.sf-head { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s, background .25s; }
.sf-head.stuck { background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 12px 30px -22px rgba(11, 28, 39, .5); }
.sf-head .sf-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; min-height: 74px; }
.sf-head .brand-text b { color: var(--text); }
.sf-search { display: flex; align-items: stretch; height: 48px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; max-width: 780px; width: 100%; justify-self: center; box-shadow: 0 1px 2px rgba(11, 28, 39, .04); }
.sf-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 179, 165, .14); }
.sf-search select { border: 0; border-right: 1px solid var(--line); background: #f6f9fa; padding: 0 30px 0 16px; font: 600 13px var(--ff); color: var(--text); max-width: 190px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6d79' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.sf-search select:focus { outline: none; }
.sf-q { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: 500 15px var(--ff); color: var(--text); background: #fff; }
.sf-q:focus { outline: none; }
.sf-q::placeholder { color: var(--faint); }
.sf-search button { margin: 4px; border: 0; border-radius: 10px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #12c2b2, #0a8f87); color: #fff !important; font-weight: 700; font-size: 14px; cursor: pointer; transition: filter .2s; }
.sf-search button:hover { filter: brightness(1.06); }
.sf-acts { display: flex; align-items: center; gap: 8px; }
.sf-act { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--text); transition: background .2s; }
.sf-act:hover { background: var(--sky); }
.sf-act > .ic { width: 24px; height: 24px; color: var(--ink-3); }
.sf-act span { display: flex; flex-direction: column; line-height: 1.15; }
.sf-act small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.sf-act b { font-size: 14px; font-weight: 800; white-space: nowrap; }
.sf-join { margin: 0 6px; padding-left: 18px; padding-right: 18px; }
.sf-cart-ic { position: relative; display: grid !important; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(140deg, #0a2233, #10324a); color: #fff; box-shadow: 0 8px 18px -10px rgba(6, 23, 35, .8); }
.sf-cart-ic .ic { width: 20px; height: 20px; }
.sf-cart-ic b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid #fff; }

/* category bar */
.sf-nav { background: #fff; border-bottom: 1px solid var(--line); }
.sf-nav .sf-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sf-nav .sf-in::-webkit-scrollbar { display: none; }
.sf-nav button, .sf-nav a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.sf-nav button:hover, .sf-nav a:hover { color: var(--text); }
.sf-nav button.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.sf-nav .sf-nav-home { padding-left: 0; }
.sf-nav .sf-nav-home.on { color: var(--text); font-weight: 700; border-bottom-color: transparent; }
.sf-nav .sf-nav-deal { color: #d4572f; font-weight: 700; }

/* hero: categories · banner */
.sf-hero { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; margin-top: 20px; align-items: stretch; }
.sf-side { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; min-height: 0; }
.sf-side-in { position: absolute; inset: 0; padding: 10px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; scrollbar-width: thin; }   /* takes the banner's height, never sets it */
.sf-side-h { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sf-side button, .sf-side a { display: flex; align-items: center; gap: 11px; padding: 5px 10px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; color: var(--text); transition: background .2s, transform .2s var(--ease); }
.sf-side button:hover, .sf-side a:hover { background: var(--sky); transform: translateX(2px); }
.sf-side b { flex: 1; font-size: 13.5px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-side em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--faint); }
.sf-side-ic .sf-emo { font-size: 17px; line-height: 1; }
.sf-side-in > * > .ic { color: var(--faint); }
.sf-side-ic { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.sf-side-ic img { width: 100%; height: 100%; object-fit: cover; }

.sf-slider { position: relative; border-radius: 22px; overflow: hidden; min-width: 0; box-shadow: 0 24px 50px -30px rgba(6, 23, 35, .7); }
.sf-slides { display: grid; height: 100%; }
.sf-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 20px; padding: 30px 52px 42px; color: #fff; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; height: 300px; position: relative; overflow: hidden; }
.sf-slide.on { opacity: 1; visibility: visible; }
.sf-slide::before { content: ''; position: absolute; width: 560px; height: 560px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 62%); pointer-events: none; }
.sf-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%); pointer-events: none; }
.sf-slide.tone-sea { background: radial-gradient(circle at 80% 120%, rgba(94, 234, 212, .35), transparent 50%), linear-gradient(120deg, #063f4a, #0a6f73 50%, #0fa597); }
.sf-slide.tone-night { background: radial-gradient(circle at 85% 110%, rgba(240, 177, 62, .28), transparent 48%), linear-gradient(120deg, #061723, #0c2a3d 55%, #12455a); }
.sf-slide.tone-leaf { background: radial-gradient(circle at 80% 120%, rgba(163, 230, 53, .25), transparent 50%), linear-gradient(120deg, #06372b, #0d6447 55%, #179a62); }
.sf-slide.tone-violet { background: radial-gradient(circle at 80% 120%, rgba(244, 114, 182, .28), transparent 50%), linear-gradient(120deg, #1d1150, #3b278f 55%, #6d4fd8); }
.sf-slide-txt { position: relative; z-index: 1; }
.sf-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.sf-slide h2 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 14px 0 10px; color: #fff; max-width: 520px; }
.sf-slide h2 em { font-style: normal; background: linear-gradient(90deg, #ffe3a3, #f7c25a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-slide p { color: rgba(255,255,255,.8); font-size: 15px; max-width: 460px; }
.sf-slide-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sf-slide-art { position: relative; height: 236px; }
.sf-sl { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff !important; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .25s, background .2s; }
.sf-slider:hover .sf-sl, .sf-sl:focus-visible { opacity: 1; }
.sf-sl:hover { background: rgba(255,255,255,.26); }
.sf-sl-prev { left: 12px; } .sf-sl-prev .ic { transform: rotate(180deg); }
.sf-sl-next { right: 12px; }
.sf-dots { position: absolute; left: 52px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.sf-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: width .35s var(--ease), background .35s; }
.sf-dots button.on { width: 30px; background: linear-gradient(90deg, #ffe3a3, #f7c25a); }

/* banner pictures */
.sf-art-prods { position: absolute; inset: 0; }
.sf-art-p { position: absolute; width: 142px; padding: 8px 8px 10px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 28px 44px -22px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.6) inset; animation: sfFloat 7s ease-in-out infinite; }
.sf-art-p1 { left: 4%; top: 30px; --r: -7deg; z-index: 1; }
.sf-art-p2 { left: 33%; top: 2px; --r: 0deg; z-index: 3; width: 156px; animation-delay: -2s; }
.sf-art-p3 { right: 2%; top: 42px; --r: 7deg; z-index: 2; animation-delay: -4s; }
.sf-art-p3 b { text-align: right; }   /* its left edge sits under the middle card */
.sf-art-img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.sf-art-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-art-p b { display: block; margin-top: 7px; font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.sf-art-p b .ngn { display: none; }   /* the dollar price only, so the tag stays tidy */
.sf-art-p i { position: absolute; top: 14px; left: 14px; padding: 3px 8px; border-radius: 99px; background: linear-gradient(135deg, #ff7a59, #e9573d); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; }
@keyframes sfFloat { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(var(--r, 0deg)) translateY(-8px); } }
.sf-art-map { position: absolute; inset: 6px 0; border-radius: 22px; background: radial-gradient(rgba(255,255,255,.22) 1.2px, transparent 1.4px) 0 0 / 18px 18px; }
.sf-art-pin { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 99px; background: #fff; color: var(--text); box-shadow: 0 18px 30px -16px rgba(0,0,0,.55); font-size: 14px; animation: sfFloat 7s ease-in-out infinite; }
.sf-art-pin .ic { color: #fff; background: var(--coral); border-radius: 50%; padding: 4px; width: 24px; height: 24px; }
.sf-pin1 { left: 8%; top: 12%; } .sf-pin2 { right: 6%; top: 30%; animation-delay: -2s; } .sf-pin3 { left: 20%; bottom: 14%; animation-delay: -4s; } .sf-pin4 { right: 16%; bottom: 2%; animation-delay: -5s; }
.sf-art-books { position: absolute; inset: 0; }
.sf-art-book { position: absolute; width: 132px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 40px -18px rgba(0,0,0,.6); }
.sf-art-book img, .sf-art-book .dc-ph { width: 100%; height: 100%; object-fit: cover; }
.sf-book1 { left: 6%; top: 34px; transform: rotate(-7deg); } .sf-book2 { left: 33%; top: 4px; z-index: 2; } .sf-book3 { right: 2%; top: 44px; transform: rotate(7deg); }

/* promises: one slim row */
.sf-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.sf-perks > .sf-perk { position: relative; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 18px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.sf-perks > .sf-perk + .sf-perk::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.sf-perks > .sf-perk:first-child { border-left: 1px solid var(--line); border-radius: 16px 0 0 16px; }
.sf-perks > .sf-perk:last-child { border-right: 1px solid var(--line); border-radius: 0 16px 16px 0; }
.sf-perk-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(140deg, #12c2b2, #0a7f7a); color: #fff; box-shadow: 0 8px 14px -9px rgba(10, 127, 122, .9); }
.sf-perk-ic .ic { width: 18px; height: 18px; }
.sf-perk > span:last-child { min-width: 0; }
.sf-perk b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.sf-perk small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }

/* sections */
.sf-sec { margin-top: 34px; }
.sf-sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sf-sec-t { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.sf-sec-t h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sf-sec-t span { font-size: 13px; color: var(--muted); }
.sf-sec-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.sf-sec-ic img { width: 100%; height: 100%; object-fit: cover; }
.sf-more { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 700; color: var(--text) !important; cursor: pointer; transition: border-color .2s, background .2s; }
.sf-more:hover { border-color: var(--brand); background: var(--aqua-soft); }
.sf-arrows { display: none; gap: 6px; }
.sf-shelf.scrolls .sf-arrows { display: flex; }
.sf-arrows button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, opacity .2s; }
.sf-arrows button:hover { background: var(--sky); }
.sf-prev .ic { transform: rotate(180deg); }
.sf-shelf.at-start .sf-prev, .sf-shelf.at-end .sf-next { opacity: .35; pointer-events: none; }
.sf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 206px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 10px; }
.sf-row::-webkit-scrollbar { display: none; }
.sf-row > * { scroll-snap-align: start; }

/* category tiles: round pictures (the owner found these easier to use) */
.sf-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 14px; }
.sf-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); cursor: pointer; text-align: center; color: var(--text); min-width: 0; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.sf-cat:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(11, 28, 39, .5); border-color: transparent; }
.sf-cat-pic { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 8px; box-shadow: inset 0 0 0 4px rgba(255,255,255,.7); transition: transform .35s var(--ease); }
.sf-cat:hover .sf-cat-pic { transform: scale(1.05); }
.sf-cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.sf-cat-pic .ic { width: 34px; height: 34px; }
.sf-cat-pic .sf-emo { font-size: 40px; line-height: 1; }
.sf-cat b { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.sf-cat small { font-size: 12.5px; color: var(--muted); }
.sf-cat.soon small { color: var(--brand-ink); font-weight: 700; }

/* product cards */
.sf-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-width: 0; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.sf-card:hover { box-shadow: 0 20px 38px -24px rgba(11, 28, 39, .5); transform: translateY(-3px); border-color: transparent; }
.sf-card-img { position: relative; display: block; padding: 8px; border: 0; background: none; cursor: pointer; width: 100%; }
.sf-card-pic { display: block; aspect-ratio: 1; border-radius: 13px; overflow: hidden; }
.sf-card-pic img, .sf-card-pic .p-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.sf-card:hover .sf-card-pic img { transform: scale(1.05); }
.sf-card-pic .p-ph { display: grid; place-items: center; }
.sf-off { position: absolute; top: 16px; left: 16px; padding: 4px 9px; border-radius: 8px; background: linear-gradient(135deg, #ff7a59, #e9573d); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .01em; box-shadow: 0 6px 12px -6px rgba(233, 87, 61, .9); }
.sf-flag { position: absolute; bottom: 16px; left: 16px; padding: 3px 8px; border-radius: 7px; background: rgba(11, 28, 39, .82); color: #fff; font-size: 11.5px; font-weight: 700; }
.sf-flag.low { background: var(--amber); }
.sf-card.oos .sf-card-pic { opacity: .55; }
.sf-card-b { display: flex; flex-direction: column; gap: 3px; padding: 4px 14px 14px; flex: 1; }
.sf-card-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sf-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: 14.5px; font-weight: 700; line-height: 1.3; min-height: 2.6em; color: var(--text); }
.sf-card-name:hover { color: var(--brand-ink); }
.sf-card-unit { font-size: 12.5px; color: var(--muted); }
.sf-card-rate { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.sf-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; }
.sf-card-price b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.sf-card-price s { font-size: 12.5px; color: var(--faint); }
.sf-card-tag { font-size: 11.5px; font-weight: 700; color: var(--brand-ink); margin-bottom: 10px; }   /* the button sits at the bottom, level across a row */
.sf-add { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 12px; border: 0; background: #eef7f6; color: var(--brand-ink) !important; font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.sf-add:hover, .sf-card:hover .sf-add { background: linear-gradient(135deg, #12c2b2, #0a8f87); color: #fff !important; box-shadow: 0 10px 18px -10px rgba(10, 143, 135, .9); }
.sf-card.oos .sf-add, .sf-card.oos:hover .sf-add { background: var(--sky); color: var(--muted) !important; box-shadow: none; }

/* top deals: a dark panel */
.sf-deals { position: relative; border-radius: 24px; overflow: hidden; padding: 6px 0 4px;
  background: radial-gradient(circle at 100% 0%, rgba(240, 177, 62, .26), transparent 38%), radial-gradient(circle at 0% 100%, rgba(20, 195, 180, .2), transparent 40%), linear-gradient(135deg, #061723, #0b2c3e 60%, #0c4152); }
.sf-deals .sf-sec-h { padding: 16px 20px 4px; margin: 0; }
.sf-deals .sf-sec-t h2 { color: #fff; font-size: 24px; }
.sf-deals .sf-sec-t span { color: var(--gold-2); font-weight: 600; }
.sf-deals .sf-sec-ic { background: linear-gradient(140deg, #ffe3a3, #f0b13e) !important; color: #5b3a00; }
.sf-deals .sf-more { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff !important; }
.sf-deals .sf-more:hover { background: rgba(255,255,255,.18); }
.sf-deals .sf-arrows button { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
.sf-deals .sf-row { padding: 14px 20px 20px; scroll-padding: 20px; }
.sf-deals .sf-card { border-color: transparent; box-shadow: 0 18px 30px -24px rgba(0,0,0,.8); }

/* deal spotlight */
.sf-spot { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px; padding: 34px 52px; border-radius: 26px; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 78% 50%, rgba(94, 234, 212, .32), transparent 42%), linear-gradient(120deg, #052d35, #08545c 55%, #0b8a83); }
.sf-spot::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, rgba(255,255,255,.035) 0 2px, transparent 2px 16px); pointer-events: none; }
.sf-spot-txt { position: relative; z-index: 1; }
.sf-spot-txt h2 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin: 14px 0 6px; color: #fff; }
.sf-spot-txt p { color: rgba(255,255,255,.75); font-size: 15px; }
.sf-spot-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 22px; }
.sf-spot-price b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--gold-2); }
.sf-spot-price b .ngn { font-size: 15px; color: rgba(255,255,255,.7); letter-spacing: 0; }
.sf-spot-price s { font-size: 15px; color: rgba(255,255,255,.55); }
.sf-spot-price > span { padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 800; }
.sf-spot-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-spot-art { position: relative; z-index: 1; height: 290px; display: grid; place-items: center; }
.sf-spot-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }
.sf-spot-pic { position: relative; border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.sf-spot-img { display: block; width: 260px; height: 260px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px rgba(255,255,255,.14), 0 40px 60px -30px rgba(0,0,0,.7); transition: transform .5s var(--ease); }
.sf-spot-pic:hover .sf-spot-img { transform: scale(1.04) rotate(-2deg); }
.sf-spot-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-spot-pic i { position: absolute; top: 6px; right: -6px; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #fff1c8, #f0b13e 60%, #c98a12); color: #4a2e00; font-style: normal; font-weight: 900; font-size: 17px; box-shadow: 0 14px 24px -12px rgba(0,0,0,.7); transform: rotate(10deg); }

/* digital shelf */
.sf-dshelf .sf-row { grid-auto-columns: 220px; }
.sf-dshelf .dcard { height: 100%; }

/* results */
.sf-results { padding-top: 18px; padding-bottom: 10px; }
.sf-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sf-crumb button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; color: var(--brand-ink) !important; }
.sf-crumb i { font-style: normal; color: var(--faint); }
.sf-crumb span { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-res-t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 14px; }
.sf-res-t h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sf-res-t span { font-size: 14px; color: var(--muted); }
.sf-res-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sf-chips { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.sf-chips::-webkit-scrollbar { display: none; }
.sf-chips button { flex: none; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.sf-chips button:hover { border-color: var(--brand); }
.sf-chips button.on { background: var(--ink-2); border-color: var(--ink-2); color: #fff !important; }
.sf-sort { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); }
.sf-sort select { border: 0; background: none; font: 700 13.5px var(--ff); color: var(--text); padding: 0 6px; height: 100%; cursor: pointer; }
.sf-sort select:focus { outline: none; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.sf-none { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 54px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: center; color: var(--muted); margin-top: 30px; }
.sf-results .sf-none { margin-top: 0; }
.sf-none .em { font-size: 34px; }
.sf-none b { font-size: 17px; color: var(--text); }
.sf-none .btn { margin-top: 10px; }

/* footer */
.sf-foot { margin-top: 56px; color: rgba(255,255,255,.7); padding-top: 48px; background: radial-gradient(circle at 90% 0%, rgba(20, 195, 180, .14), transparent 35%), #061723; }
.sf-foot-in { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.sf-foot .brand-text b { color: #fff; }
.sf-foot .brand-text small { color: rgba(255,255,255,.55); }
.sf-foot-brand p { margin-top: 14px; font-size: 13.5px; max-width: 360px; }
.sf-pay { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sf-pay small { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); }
.sf-pay span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; font-weight: 800; color: #fff; }
.sf-pay img { border-radius: 50%; background: #fff; }
.sf-foot h6 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.sf-foot-in > div:not(.sf-foot-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.sf-foot-in a, .sf-foot-in button { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font-size: 13.5px; color: rgba(255,255,255,.7) !important; transition: color .2s; }
.sf-foot-in a:hover, .sf-foot-in button:hover { color: #fff !important; }
.sf-foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: rgba(255,255,255,.5); }

/* menu bar at the bottom (phones and tablets), like the dashboard's */
.sf-tabbar { display: none; }
@media (max-width: 980px) {
  .sf { padding-bottom: 86px; }
  .sf-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px; padding: 7px; border-radius: 22px; background: rgba(6, 23, 35, .94); backdrop-filter: blur(16px); box-shadow: 0 24px 50px -18px rgba(6, 23, 35, .7); }
  .sf-tabbar.m4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-tabbar > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 7px 0; border: 0; border-radius: 15px; background: none; font-size: 10.5px; font-weight: 700; color: rgba(255,255,255,.62) !important; cursor: pointer; min-width: 0; }
  .sf-tabbar > * > span:last-child { white-space: nowrap; }
  .sf-tabbar .ic { width: 21px; height: 21px; }
  .sf-tabbar .on { color: #fff !important; background: rgba(20, 195, 180, .2); }
  .sf-tabbar .on .ic { color: var(--aqua-2); }
  .sf-tabbar .sf-tb-join { color: #fff !important; background: linear-gradient(140deg, #12c2b2, #0a8f87); box-shadow: 0 8px 16px -10px rgba(10, 143, 135, .9); }
  .sf-tb-ic { position: relative; display: grid; }
  .sf-tb-ic b { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 10.5px; display: grid; place-items: center; }
}
.sf-sheet-wrap { place-items: end center; }
.sf-sheet { position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 8px 16px 22px; box-shadow: var(--shadow-lg); animation: sfRise .28s var(--ease); }
.sf-sheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 4px auto 8px; }
.sf-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sf-sheet-h b { font-size: 18px; font-weight: 800; }
.sf-sheet .sf-sheet-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; gap: 8px; }
.sf-sheet .sf-cat { padding: 12px 6px; }
.sf-sheet .sf-cat-pic { width: 60px; height: 60px; margin-bottom: 4px; }
.sf-sheet .sf-cat-pic .sf-emo { font-size: 28px; }
.sf-sheet .sf-cat b { font-size: 12.5px; }
.sf-sheet .sf-cat small { font-size: 11.5px; }
.sf-sheet-links { display: grid; gap: 2px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.sf-sheet-links > * { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border: 0; background: none; border-radius: 12px; font-size: 14.5px; font-weight: 700; color: var(--text) !important; cursor: pointer; text-align: left; }
.sf-sheet-links > *:hover { background: var(--sky); }
.sf-sheet-links span { flex: 1; }
.sf-sheet-links > * > .ic:first-child { color: var(--brand-ink); }
.sf-sheet-links > * > .ic:last-child { color: var(--faint); }

/* quick view */
.sf-qv-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(6, 23, 35, .58); backdrop-filter: blur(4px); animation: sfFade .2s ease; }
.sf-qv { position: relative; width: 100%; max-width: 900px; max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); animation: sfRise .28s var(--ease); }
.sf-qv-x { position: absolute; top: 12px; right: 12px; z-index: 2; background: #fff; }
.sf-qv-pic { position: relative; margin: 14px; border-radius: 16px; overflow: hidden; aspect-ratio: 1; }
.sf-qv-pic img, .sf-qv-pic .p-ph { width: 100%; height: 100%; object-fit: cover; }
.sf-qv-pic .sf-off { top: 14px; left: 14px; font-size: 13px; }
.sf-qv-info { padding: 26px 28px 24px 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sf-qv-cat { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.sf-qv-cat i { width: 8px; height: 8px; border-radius: 50%; }
.sf-qv-info h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; padding-right: 36px; }
.sf-qv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.sf-qv-price { padding: 14px 16px; border-radius: 14px; background: var(--sky); border: 1px solid var(--line); }
.sf-qv-price small { font-size: 12px; font-weight: 700; color: var(--brand-ink); }
.sf-qv-price > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.sf-qv-price b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.sf-qv-price s { font-size: 14px; color: var(--faint); }
.sf-qv-save { font-size: 12.5px; font-weight: 800; color: var(--coral); background: var(--coral-soft); padding: 3px 9px; border-radius: 99px; }
.sf-qv-coin { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.sf-qv-desc { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.sf-qv-buy { display: grid; gap: 8px; margin-top: 4px; }
.sf-qv-note { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sf-qv-note .ic { flex: none; margin-top: 2px; color: var(--brand-ink); }
@keyframes sfFade { from { opacity: 0; } }
@keyframes sfRise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* laptops (the page is shown at 85% there) */
@media (min-width: 981px) and (max-width: 1440px) and (hover: hover) and (pointer: fine) {
  .sf { min-height: calc(100vh / .85); }
  .sf-qv { max-height: calc(100vh / .85 - 48px); }
}
@media (max-width: 1180px) {
  .sf-hero { grid-template-columns: minmax(0, 1fr); }
  .sf-side { display: none; }
  .sf-slide { padding: 28px 40px 40px; }
  .sf-dots { left: 40px; }
  .sf-strip nav a:nth-child(3) { display: none; }
  .sf-spot { padding: 30px 36px; }
}
@media (max-width: 980px) {
  .sf-in { padding: 0 18px; }
  .sf-head .sf-in { gap: 16px; }
  .sf-act span { display: none; }
  .sf-head .brand-text small { display: none; }
  .sf-search select { display: none; }
  .sf-perks > .sf-perk { padding: 10px 12px; gap: 10px; }
  .sf-perk small { display: none; }
  .sf-spot { grid-template-columns: minmax(0, 1fr) 240px; }
  .sf-spot-art { height: 240px; }
  .sf-spot-img { width: 210px; height: 210px; }
  .sf-spot-glow { width: 260px; height: 260px; }
  .sf-foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .sf-in { padding: 0 14px; }
  .sf-strip .sf-in { justify-content: center; min-height: 30px; font-size: 12px; }
  .sf-strip nav { display: none; }
  .sf-head .sf-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand acts' 'search search'; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .sf-head .brand { grid-area: brand; min-width: 0; }
  .sf-search { grid-area: search; height: 46px; max-width: none; }
  .sf-search button span { display: none; }
  .sf-search button { padding: 0 14px; }
  .sf-acts { grid-area: acts; gap: 4px; }
  .sf-act { padding: 6px; }
  .sf-join { margin: 0 2px; padding: 0 14px; }
  .sf-nav button, .sf-nav a { padding: 11px 10px; font-size: 13.5px; }
  .sf-hero { margin-top: 12px; }
  .sf-slider { border-radius: 18px; }
  .sf-slide { grid-template-columns: minmax(0, 1fr); padding: 22px 20px 40px; height: auto; align-content: start; }
  .sf-slide-art { display: none; }
  .sf-slide h2 { font-size: 25px; margin-top: 12px; }
  .sf-slide p { font-size: 14px; }
  .sf-slide-cta { margin-top: 14px; }
  .sf-dots { left: 20px; bottom: 16px; }
  .sf-sl { display: none; }
  .sf-perks { margin-top: 10px; }
  .sf-perks > .sf-perk { flex-direction: column; justify-content: flex-start; gap: 5px; padding: 9px 3px 8px; text-align: center; }
  .sf-perks > .sf-perk + .sf-perk::before { top: 10px; bottom: 10px; }
  .sf-perks > .sf-perk:first-child { border-radius: 14px 0 0 14px; }
  .sf-perks > .sf-perk:last-child { border-radius: 0 14px 14px 0; }
  .sf-perk-ic { width: 30px; height: 30px; border-radius: 9px; }
  .sf-perk-ic .ic { width: 16px; height: 16px; }
  .sf-perk b { font-size: 11px; line-height: 1.2; }
  .sf-sec { margin-top: 26px; }
  .sf-sec-t h2 { font-size: 19px; }
  .sf-sec-t span { font-size: 12.5px; }
  .sf-shelf.scrolls .sf-arrows { display: none; }
  .sf-cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 100px; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 2px; }
  .sf-cats::-webkit-scrollbar { display: none; }
  .sf-cat { padding: 12px 6px; border-radius: 14px; scroll-snap-align: start; }
  .sf-cat-pic { width: 62px; height: 62px; margin-bottom: 4px; }
  .sf-cat-pic .sf-emo { font-size: 28px; }
  .sf-cat b { font-size: 12.5px; }
  .sf-cat small { font-size: 11.5px; }
  .sf-row { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 10px; }
  .sf-dshelf .sf-row { grid-auto-columns: calc((100% - 12px) / 2.15); }
  .sf-deals { border-radius: 20px; }
  .sf-deals .sf-sec-h { padding: 14px 14px 2px; }
  .sf-deals .sf-sec-t h2 { font-size: 20px; }
  .sf-deals .sf-row { padding: 12px 14px 16px; scroll-padding: 14px; }
  .sf-card-b { padding: 2px 10px 10px; }
  .sf-card-img { padding: 6px; }
  .sf-off { top: 12px; left: 12px; }
  .sf-flag { bottom: 12px; left: 12px; }
  .sf-card-name { font-size: 13.5px; }
  .sf-card-price b { font-size: 16.5px; }
  .sf-add { height: 38px; font-size: 13px; }
  .sf-spot { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 6px; border-radius: 22px; }
  .sf-spot-art { order: -1; height: 200px; }
  .sf-spot-img { width: 180px; height: 180px; }
  .sf-spot-glow { width: 220px; height: 220px; }
  .sf-spot-pic i { width: 58px; height: 58px; font-size: 15px; }
  .sf-spot-txt h2 { font-size: 26px; }
  .sf-spot-price { margin: 14px 0 18px; }
  .sf-spot-price b { font-size: 32px; }
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sf-res-t h1 { font-size: 22px; }
  .sf-res-tools { flex-wrap: wrap; }
  .sf-chips { flex-basis: 100%; }
  .sf-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .sf-qv-wrap { padding: 0; place-items: end stretch; }
  .sf-qv { grid-template-columns: minmax(0, 1fr); max-height: 92vh; border-radius: 22px 22px 0 0; }
  .sf-qv-pic { margin: 12px 12px 0; aspect-ratio: 16 / 10; }
  .sf-qv-info { padding: 14px 18px 22px; }
  .sf-qv-info h2 { font-size: 20px; }
  .sf-qv-price b { font-size: 24px; }
}
@media (max-width: 380px) {
  .sf-join { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-slide { transition: none; }
  .sf-art-p, .sf-art-pin { animation: none; transform: rotate(var(--r, 0deg)); }
}
/* ---------- Admin → Homepage: which front page visitors see (owner request, 17 Nov 2026) ---------- */
.hp-head { display: flex; align-items: flex-start; gap: 16px; }
.hp-head-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #efeafd; color: var(--violet); }
.hp-head h3 { font-size: 17px; }
.hp-head p { font-size: 13.5px; margin-top: 4px; max-width: 760px; }
.hp-when { font-size: 12.5px; margin-top: 8px !important; }
.hp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.hp-card { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.hp-card.on { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18, 161, 80, .1); }
.hp-shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); border-bottom: 1px solid var(--line); }
.hp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.hp-shot:hover img { transform: scale(1.02); }
.hp-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 99px; background: rgba(11, 28, 39, .82); color: #fff; font-size: 12px; font-weight: 800; backdrop-filter: blur(4px); }
.hp-card.on .hp-badge { background: var(--green); }
.hp-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.hp-num { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet); }
.hp-body h3 { font-size: 19px; }
.hp-body > p { font-size: 13.5px; }
.hp-pts { list-style: none; display: grid; gap: 6px; margin: 2px 0 6px; padding: 0; }
.hp-pts li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.hp-pts .ic { flex: none; color: var(--green); }
.hp-acts { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.hp-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--green); }
.hp-foot { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; margin-top: 14px; }
.hp-foot .ic { flex: none; margin-top: 2px; }
@media (max-width: 860px) {
  .hp-grid { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Admin → Products & stock → Categories window (owner request, 18 Nov 2026) ---------- */
.ct-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.ct-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.ct-row.on { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(109, 79, 216, .12); }
.ct-sw { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.ct-sw i { width: 12px; height: 12px; border-radius: 50%; }
.ct-name { flex: 1; min-width: 0; }
.ct-name b { display: block; font-size: 14px; }
.ct-name small { font-size: 12.5px; color: var(--muted); }
.ct-acts { display: flex; gap: 6px; }
.ct-del:not([disabled]) { color: var(--red); }
.ct-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ct-form h4 { font-size: 15px; margin-bottom: 10px; }
.ct-colours, .ct-emojis { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-colour, .ct-emo { position: relative; cursor: pointer; }
.ct-colour input, .ct-emo input { position: absolute; opacity: 0; pointer-events: none; }
.ct-colour span { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); border: 2px solid transparent; position: relative; }
.ct-colour span::after { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--dot); }
.ct-colour input:checked + span { border-color: var(--text); }
.ct-colour input:focus-visible + span, .ct-emo input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.ct-emo span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 19px; color: var(--muted); }
.ct-emo input:checked + span { border-color: var(--violet); background: #f3efff; }
.ct-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* MZUSD switched off (owner, 18 Nov 2026): products show a fixed "MIZU" instead of the coin menu */
.coin-fixed { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px dashed var(--line-2); background: #f6fafb; color: var(--ocean); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.pr-form .coin-fixed { height: 50px; border-radius: 10px; width: 100%; }
.mz-off { margin-bottom: 18px; }
.mz-off .hint { display: block; margin-top: 6px; max-width: 680px; }
@media (max-width: 760px) { .coin-fixed { height: 32px; font-size: 12.8px; } }

/* Members' Home page section (Overview 1 / Overview 2, owner 18 Nov 2026) */
.hp-head-2 { margin-top: 34px; }

/* MIZU-KAPPA General Marketplace switch (Admin → Homepage, 20 Nov 2026) */
.sh-form { margin-top: 14px; }
.sh-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sh-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.sh-opt input { margin-top: 3px; accent-color: #0ba396; }
.sh-opt b { display: block; font-size: 14.5px; }
.sh-opt small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.sh-opt.on, .sh-opt:has(input:checked) { border-color: #0ba396; background: #f1fbfa; box-shadow: 0 0 0 3px rgba(11, 163, 150, .14); }
.sh-url { margin-top: 14px; }
.sh-acts { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 760px) { .sh-opts { grid-template-columns: minmax(0, 1fr); } }
/* member pop-up: the General Marketplace is under construction */
.modal-gm { max-width: 440px; }
.gm-head { text-align: center; }
.gm-ic { width: 64px; height: 64px; margin: 4px auto 12px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2dd4bf, #0b9f92); box-shadow: 0 12px 24px -12px rgba(11, 159, 146, .9); }
.gm-ic .ic { width: 28px; height: 28px; }
.gm-head p { margin-top: 8px; }
.gm-body { display: grid; gap: 8px; }
/* ==========================================================
   My Earnings → History, a page at a time (owner, 18 Nov 2026: the list was too long).
   Type chips, rows grouped by month, a pager with page numbers (phones: Previous · Page x of y · Next)
   and a page-size menu. app.js earnHistory / ehRedraw.
   ========================================================== */
.eh { overflow: hidden; }
.eh-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 20px 24px 6px; }
.eh-head h3 { font-size: 17px; }
.eh-head p { font-size: 13px; margin-top: 3px; }
.eh-chips { display: flex; gap: 8px; padding: 10px 24px 14px; overflow-x: auto; scrollbar-width: none; }
.eh-chips::-webkit-scrollbar { display: none; }
.eh-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.eh-chip span { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--sky); color: var(--muted); font-size: 11.5px; display: inline-grid; place-items: center; }
.eh-chip:hover { border-color: #b9ccd3; }
.eh-chip.on { background: #0b2a36; border-color: #0b2a36; color: #fff; }
.eh-chip.on span { background: rgba(255, 255, 255, .16); color: #fff; }
.eh-chip:focus-visible, .eh-num:focus-visible, .eh-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.eh-cols, .eh-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 118px 132px 128px; gap: 14px; align-items: center; }
.eh-cols { padding: 9px 24px; background: var(--sky); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.eh-cols span:nth-child(4) { text-align: right; }
.eh-list { padding: 0 0 4px; }
.eh-month { padding: 14px 24px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0)); }
.eh-row { padding: 12px 24px; border-bottom: 1px solid var(--line); transition: background .15s; }
.eh-list .eh-row:last-child { border-bottom: 0; }
.eh-row:hover { background: #fafcfd; }
.eh-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.eh-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eh-main b { font-size: 14px; }
.eh-main span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.eh-main small { font-size: 12px; color: var(--faint); }
.eh-sub i { font-style: normal; }
.eh-sub .eh-d { display: none; }
.eh-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.eh-amt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.eh-amt b { font-size: 15px; font-variant-numeric: tabular-nums; }
.eh-amt small { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.eh-st { display: flex; justify-content: flex-start; }
.eh-row.gone .eh-amt b { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }

.eh-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 24px 18px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fbfcfd, #fff); }
.eh-showing { font-size: 13px; color: var(--muted); }
.eh-showing b { color: var(--text); font-variant-numeric: tabular-nums; }
.eh-pager { display: flex; align-items: center; gap: 6px; }
.eh-nums { display: flex; align-items: center; gap: 4px; }
.eh-num, .eh-nav { height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.eh-num:hover, .eh-nav:hover:not([disabled]) { border-color: #9fc4cb; background: #f4fbfb; }
.eh-num.on { background: linear-gradient(180deg, #13c2b2, #0ba396); border-color: #0ba396; color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 163, 150, .9); cursor: default; }
.eh-nav.prev .ic { transform: rotate(180deg); }
.eh-nav[disabled] { opacity: .45; cursor: default; }
.eh-gap { width: 22px; text-align: center; color: var(--faint); font-weight: 700; }
.eh-of { display: none; font-size: 13.5px; color: var(--muted); padding: 0 6px; }
.eh-of b { color: var(--text); }
.eh-per { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.eh-per select { height: 36px; width: auto; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); background-color: #fff; background-position: right 10px center; }

/* laptops and tablets: a little tighter */
@media (max-width: 1180px) {
  .eh-cols, .eh-row { grid-template-columns: 40px minmax(0, 1fr) 104px 120px 118px; gap: 12px; }
}
/* phones and small tablets: each row is a card line — icon, what it is (date under it), amount and status on the right */
@media (max-width: 760px) {
  .eh-head { padding: 16px 16px 4px; }
  .eh-chips { padding: 8px 16px 12px; }
  .eh-cols { display: none; }
  .eh-month { padding: 12px 16px 4px; }
  .eh-row { grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-areas: 'ic main amt' 'ic main st'; gap: 4px 12px; padding: 12px 16px; align-items: start; }
  .eh-ic { grid-area: ic; width: 38px; height: 38px; }
  .eh-main { grid-area: main; }
  .eh-date { display: none; }
  .eh-sub .eh-d { display: inline; }
  .eh-sub .eh-d + .eh-f::before { content: ' · '; }
  .eh-amt { grid-area: amt; }
  .eh-st { grid-area: st; justify-content: flex-end; }
  .eh-st .pill { height: 22px; padding: 0 8px; font-size: 11px; }
  .eh-foot { padding: 12px 16px 16px; justify-content: center; }
  .eh-showing { order: 2; width: 100%; text-align: center; font-size: 12.5px; }
  .eh-pager { order: 1; width: 100%; justify-content: space-between; }
  .eh-nums { display: none; }
  .eh-of { display: inline; }
  .eh-nav { padding: 0 14px; }
  .eh-per { order: 3; }
}
@media (max-width: 380px) {
  .eh-nav span { display: none; }
}
/* ==========================================================
   OVERVIEW 2 — the new member Home (owner, 18 Nov 2026). app.js vOverview2; chosen in Admin → Homepage.
   A dark hero (greeting, three glass figures, the member pass with the days-left ring), quick-action circles,
   then cards on a 12-column grid: earnings with the last 8 weeks · rank ladder and team · member deals ·
   latest activity · savings, this month's product and the programme phase. Phones: one column.
   ========================================================== */
.ov2 { --ov-ink: #062a35; --ov-gold: #ffd27a; --ov-aqua: #5eead4; display: flex; flex-direction: column; gap: 18px; }
@keyframes ov2-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ov2-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ov2-float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, -24px) scale(1.15); } }
@keyframes ov2-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
@keyframes ov2-sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }
.ov2-in { animation: ov2-up .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }

/* ---------- hero ---------- */
.ov2-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: center;
  padding: 30px 32px; border-radius: 26px; color: #fff;
  background: radial-gradient(900px 380px at 0% 0%, rgba(19, 194, 178, .38), transparent 60%), radial-gradient(700px 360px at 100% 100%, rgba(255, 196, 92, .22), transparent 60%), linear-gradient(135deg, #04212b 0%, #073846 48%, #0a4f57 100%);
  box-shadow: 0 30px 60px -32px rgba(4, 33, 43, .75), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ov2-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.ov2-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ov2-glow i { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; animation: ov2-float 16s ease-in-out infinite alternate; }
.ov2-glow i:nth-child(1) { width: 320px; height: 320px; left: -80px; top: -120px; background: #13c2b2; }
.ov2-glow i:nth-child(2) { width: 260px; height: 260px; right: 18%; bottom: -150px; background: #f3ae35; opacity: .32; animation-duration: 19s; }
.ov2-glow i:nth-child(3) { width: 220px; height: 220px; right: -60px; top: -80px; background: #6d5bd0; opacity: .28; animation-duration: 23s; }
.ov2-hero.off { background: radial-gradient(900px 380px at 0% 0%, rgba(239, 91, 91, .3), transparent 60%), linear-gradient(135deg, #2a1418 0%, #3a1d24 50%, #1f2933 100%); }
.ov2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov2-hi { margin: 18px 0 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.ov2-name { margin: 2px 0 0; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, #d9fffa 50%, var(--ov-gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ov2-wave { display: inline-block; transform-origin: 70% 70%; animation: ov2-wave 2.6s ease-in-out 1s 2; -webkit-text-fill-color: initial; color: initial; }
.ov2-lead { margin: 10px 0 0; max-width: 560px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.ov2-lead b { color: var(--ov-gold); }
.ov2-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ov2-m { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, transform .2s, border-color .2s; }
.ov2-m:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.ov2-m-ic { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(94, 234, 212, .16); color: var(--ov-aqua); }
.ov2-m-ic.coin { background: rgba(255, 210, 122, .16); }
.ov2-m-ic.coin img { width: 24px; height: 24px; }
.ov2-m-t { min-width: 0; display: flex; flex-direction: column; }
.ov2-m-t small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ov2-m-t b { margin-top: 3px; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-m-t b i { font-style: normal; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.ov2-m-t em { margin-top: 2px; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-m-t em .ngn, .ov2-m-t em small { color: inherit; }

/* the member pass */
.ov2-hero-r { display: flex; flex-direction: column; gap: 12px; }
.ov2-pass { position: relative; overflow: hidden; padding: 18px 20px; border-radius: 22px; color: #fff;
  background: linear-gradient(140deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, .06) 45%, rgba(255, 210, 122, .14) 100%);
  border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25); transform: perspective(900px) rotateX(2deg) rotateY(-4deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ov2-pass:hover { transform: perspective(900px) rotateX(0) rotateY(0) translateY(-2px); }
.ov2-pass::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); transform: translateX(-120%) skewX(-18deg); animation: ov2-sheen 1.6s ease .8s 1; pointer-events: none; }
.ov2-pass-top { display: flex; justify-content: space-between; align-items: center; }
.ov2-pass-brand { display: inline-flex; align-items: center; gap: 8px; }
.ov2-pass-brand img { width: 28px; height: 28px; }
.ov2-pass-brand b { font-size: 15px; letter-spacing: .14em; }
.ov2-pass-tag { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: rgba(255, 210, 122, .18); color: var(--ov-gold); border: 1px solid rgba(255, 210, 122, .3); }
.ov2-pass-mid { display: flex; align-items: center; gap: 16px; margin: 16px 0 14px; }
.ov2-ring { position: relative; flex: none; width: 86px; height: 86px; }
.ov2-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ov2-ring circle { fill: none; stroke-width: 7; }
.ov2-ring .t { stroke: rgba(255, 255, 255, .14); }
.ov2-ring .b { stroke: url(#ov2Grad); stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(94, 234, 212, .55)); transition: stroke-dashoffset .9s ease; }
.ov2-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ov2-ring b { font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.ov2-ring small { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-top: 3px; }
.ov2-pass-who { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ov2-pass-who b { font-size: 18px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-pass-who .mono { font-size: 12.5px; letter-spacing: .12em; color: rgba(255, 255, 255, .72); }
.ov2-pass-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .22); }
.ov2-pass-row span { min-width: 0; display: flex; flex-direction: column; }
.ov2-pass-row small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.ov2-pass-row b { font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-pass-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ov2-pass-acts .btn { flex: 1 1 auto; justify-content: center; }

/* ---------- quick actions ---------- */
.ov2-acts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ov2-act { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ov2-act:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.ov2-act > span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 20px -10px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .35); background: linear-gradient(145deg, var(--c1), var(--c2)); }
.ov2-act > span .ic { width: 22px; height: 22px; }
.ov2-act b { font-size: 13px; color: var(--text); }
.ov2-act.t-aqua { --c1: #2dd4bf; --c2: #0b9f92; }
.ov2-act.t-gold { --c1: #ffcf6e; --c2: #e99a1c; }
.ov2-act.t-violet { --c1: #a78bfa; --c2: #6d4fd6; }
.ov2-act.t-coral { --c1: #fb8f7b; --c2: #e2554a; }
.ov2-act.t-green { --c1: #5fdc8e; --c2: #1f9d55; }
.ov2-act.t-ocean { --c1: #3aa8c4; --c2: #0b6475; }

/* ---------- cards ---------- */
.ov2-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start; }
.ov2-card { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow-sm); color: var(--text); }
.ov2-earn { grid-column: span 7; }
.ov2-team { grid-column: span 5; }
.ov2-deals { grid-column: span 12; }
.ov2-feed { grid-column: span 7; }
.ov2-side { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; }
.ov2-ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ov2-ch h3 { margin-top: 4px; font-size: 20px; letter-spacing: -.02em; }
.ov2-ch h3 small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ov2-eye { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }
.ov2-link { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--ocean); white-space: nowrap; }
.ov2-link:hover { color: var(--brand-ink); }

/* earnings + chart */
.ov2-earn { background: radial-gradient(500px 220px at 100% 0%, rgba(19, 194, 178, .09), transparent 70%), #fff; }
.ov2-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ov2-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--sky); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ov2-tag.gold { background: #fff4dc; color: #a86b00; }
.ov2-chart-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; font-size: 13px; }
.ov2-chart-h span { color: var(--muted); font-weight: 600; }
.ov2-chart { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: end; height: 190px; margin-top: 10px; padding: 20px 2px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 41px, #eef2f4 41px, #eef2f4 42px); }
.ov2-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; }
.ov2-bar i { display: block; height: var(--h, 5%); width: min(34px, 100%); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #7fe3d6, #13b3a5); transform-origin: bottom; animation: ov2-grow .9s cubic-bezier(.2, .7, .2, 1) both; transition: filter .15s; }
.ov2-bar:nth-child(2) i { animation-delay: .05s; } .ov2-bar:nth-child(3) i { animation-delay: .1s; } .ov2-bar:nth-child(4) i { animation-delay: .15s; }
.ov2-bar:nth-child(5) i { animation-delay: .2s; } .ov2-bar:nth-child(6) i { animation-delay: .25s; } .ov2-bar:nth-child(7) i { animation-delay: .3s; } .ov2-bar:nth-child(8) i { animation-delay: .35s; }
.ov2-bar.now i { background: linear-gradient(180deg, #ffd98a, #f3ae35); }
.ov2-bar:hover i { filter: brightness(1.08) saturate(1.1); }
.ov2-bar-v { position: absolute; top: 0; transform: translateY(-2px); font-size: 11px; font-weight: 800; color: var(--text); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.ov2-bar:hover .ov2-bar-v, .ov2-bar.now .ov2-bar-v, .ov2-bar.top .ov2-bar-v { opacity: 1; }
.ov2-bar.zero i { background: #e3eaee; }
.ov2-bar-v { top: auto !important; bottom: calc(var(--h, 0%) + 4px); }
.ov2-bar small { position: absolute; bottom: -22px; font-size: 11px; color: var(--faint); white-space: nowrap; font-weight: 600; }
.ov2-bar.now small { color: #a86b00; font-weight: 800; }
.ov2-chart.none i { background: #e6edf0; }
.ov2-chart-none { position: absolute; inset: 0 0 18px; display: grid; place-items: center; margin: 0; font-size: 13px; font-weight: 600; color: var(--faint); }
.ov2-kinds { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ov2-kinds span { display: inline-flex; align-items: center; gap: 7px; }
.ov2-kinds i { width: 10px; height: 10px; border-radius: 3px; }
.ov2-kinds b { color: var(--text); font-variant-numeric: tabular-nums; }
.ov2-earn:not(:has(.ov2-kinds)) .ov2-chart { margin-bottom: 26px; }

/* rank ladder + team */
.ov2-ladder { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; }
.ov2-ladder::before { content: ""; position: absolute; left: 8%; right: 8%; top: 15px; height: 3px; border-radius: 3px; background: #e6edf0; }
.ov2-ladder li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.ov2-ladder li i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: var(--faint); background: #fff; border: 2px solid #e1e8ec; }
.ov2-ladder li span { font-size: 11px; font-weight: 700; color: var(--faint); line-height: 1.2; }
.ov2-ladder li.done i { background: #13b3a5; border-color: #13b3a5; color: #fff; }
.ov2-ladder li.done span { color: var(--muted); }
.ov2-ladder li.on i { width: 38px; height: 38px; margin-top: -3px; background: linear-gradient(145deg, #ffd98a, #f3ae35); border-color: #fff; color: #fff; box-shadow: 0 0 0 4px rgba(243, 174, 53, .22), 0 8px 16px -8px rgba(243, 174, 53, .9); }
.ov2-ladder li.on span { color: var(--text); font-weight: 800; }
.ov2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.ov2-stats a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--sky); transition: background .15s; }
.ov2-stats a:hover { background: #e6f3f4; }
.ov2-stats b { font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ov2-stats b small { font-size: 12px; color: var(--faint); font-weight: 700; }
.ov2-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ov2-invite { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px dashed #b9d7dc; background: #fbfefe; }
.ov2-invite .mono { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ocean); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* deals */
.ov2-deal-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; margin-top: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.ov2-deal { scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.ov2-deal:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ov2-deal-pic { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; }
.ov2-deal-pic img { width: 100%; height: 100%; object-fit: cover; }
.ov2-deal-pic em { position: absolute; top: 9px; left: 9px; font-style: normal; font-size: 11.5px; font-weight: 800; color: #fff; padding: 4px 8px; border-radius: 8px; background: linear-gradient(180deg, #ff7a62, #e2554a); box-shadow: 0 6px 12px -6px rgba(226, 85, 74, .9); }
.ov2-deal-b { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px 13px; }
.ov2-deal-b small { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.ov2-deal-b b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.ov2-deal-p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 3px; }
.ov2-deal-p strong { font-size: 15px; }
.ov2-deal-p s { font-size: 11.5px; color: var(--faint); }

/* activity timeline */
.ov2-tl { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.ov2-tl::before { content: ""; position: absolute; left: 17px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(#e6edf0, transparent); }
.ov2-tl li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.ov2-tl-ic { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.ov2-tl b { font-size: 14px; }
.ov2-tl p { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov2-tl small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.ov2-tl li.new b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: #13b3a5; vertical-align: middle; }

/* savings, this month's product, phase */
.ov2-save { overflow: hidden; background: radial-gradient(320px 160px at 100% 0%, rgba(95, 220, 142, .16), transparent 70%), #fff; }
.ov2-big { display: block; margin-top: 8px; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.ov2-big .ngn, .ov2-big small { font-size: 13px; letter-spacing: 0; }
.ov2-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ov2-save > .btn { margin-top: 14px; }
.ov2-order { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--sky); transition: background .15s; }
.ov2-order:hover { background: #e6f3f4; }
.ov2-order.ready { background: linear-gradient(90deg, #e9fbf1, #f4fbf7); box-shadow: inset 0 0 0 1px #bfe9cf; }
.ov2-order-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: #fff; font-size: 20px; }
.ov2-order-ic img { width: 100%; height: 100%; object-fit: cover; }
.ov2-order-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov2-order-t b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov2-order-t small { font-size: 12px; color: var(--muted); }
.ov2-order em { flex: none; font-style: normal; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 800; letter-spacing: .12em; padding: 6px 9px; border-radius: 9px; background: #fff; color: #1f9d55; box-shadow: inset 0 0 0 1px #bfe9cf; }
.ov2-book { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; background: radial-gradient(320px 160px at 100% 0%, rgba(167, 139, 250, .14), transparent 70%), #fff; }
.ov2-book > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ov2-book > div b { font-size: 16px; line-height: 1.25; margin-top: 4px; }
.ov2-book > div small { font-size: 12.5px; color: var(--muted); }
.ov2-book .btn, .ov2-book .pill { margin-top: 8px; }
.ov2-book > :only-child { grid-column: 1 / -1; }
.ov2-phase { transition: box-shadow .2s, transform .2s; }
.ov2-phase:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ov2-phase h3 { font-size: 16px; }
.ov2-phase .phase-bar { margin-top: 14px; }

/* ---------- laptops (shown at 85%) and tablets ---------- */
@media (max-width: 1280px) {
  .ov2-hero { grid-template-columns: minmax(0, 1fr) 340px; padding: 26px 26px; }
  .ov2-name { font-size: 34px; }
  .ov2-m { padding: 12px 13px; gap: 10px; }
  .ov2-m-t b { font-size: 19px; }
}
@media (max-width: 1100px) {
  .ov2-hero { grid-template-columns: minmax(0, 1fr); }
  .ov2-hero-r { flex-direction: row; align-items: stretch; }
  .ov2-pass { flex: 1; transform: none; }
  .ov2-pass-acts { flex-direction: column; justify-content: center; }
  .ov2-earn, .ov2-team, .ov2-feed, .ov2-side { grid-column: span 12; }
  .ov2-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov2-phase { grid-column: span 2; }
}
/* ---------- phones ---------- */
@media (max-width: 760px) {
  .ov2 { gap: 14px; }
  .ov2-hero { padding: 20px 16px 18px; border-radius: 22px; gap: 18px; }
  .ov2-hi { margin-top: 14px; font-size: 14px; }
  .ov2-name { font-size: 30px; }
  .ov2-lead { font-size: 13.5px; }
  .ov2-metrics { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
  .ov2-m { align-items: center; padding: 10px 12px; border-radius: 14px; }
  .ov2-m-t { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .ov2-m-t small { grid-column: 1; }
  .ov2-m-t em { grid-column: 1; grid-row: 2; }
  .ov2-m-t b { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 18px; }
  .ov2-hero-r { flex-direction: column; }
  .ov2-pass { padding: 16px; border-radius: 18px; }
  .ov2-ring { width: 80px; height: 80px; }
  .ov2-ring b { font-size: 21px; }
  .ov2-ring small { font-size: 8px; letter-spacing: .04em; }
  .ov2-pass-who b { font-size: 16px; }
  .ov2-pass-acts { flex-direction: row; }
  .ov2-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ov2-act { padding: 12px 6px 11px; border-radius: 16px; gap: 7px; }
  .ov2-act > span { width: 44px; height: 44px; }
  .ov2-act > span .ic { width: 19px; height: 19px; }
  .ov2-act b { font-size: 12px; }
  .ov2-bento { gap: 14px; }
  .ov2-card { padding: 16px; border-radius: 18px; }
  .ov2-ch h3 { font-size: 18px; }
  .ov2-chart { height: 140px; gap: 6px; }
  .ov2-bar small { font-size: 9.5px; }
  .ov2-bar:nth-child(even) small { visibility: hidden; }
  .ov2-bar.now small { visibility: visible; }
  .ov2-ladder li span { font-size: 9.5px; }
  .ov2-ladder li i { width: 28px; height: 28px; font-size: 11px; }
  .ov2-ladder li.on i { width: 34px; height: 34px; }
  .ov2-ladder::before { top: 13px; }
  .ov2-stats { gap: 8px; }
  .ov2-stats a { padding: 10px; }
  .ov2-stats b { font-size: 17px; }
  .ov2-stats span { font-size: 11px; }
  .ov2-invite .btn-ghost { display: none; }
  .ov2-deal-row { grid-auto-columns: 150px; gap: 10px; margin-right: -16px; padding-right: 16px; }
  .ov2-side { display: flex; }
  .ov2-book { grid-template-columns: 76px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ov2-in, .ov2-bar i, .ov2-glow i, .ov2-wave, .ov2-pass::after { animation: none !important; }
  .ov2-pass { transform: none; }
}
/* ==========================================================
   Product sizes (owner, 18 Nov 2026): size buttons on product cards (Marketplace, MIZU-KAPPA Market, shop front),
   the size choice on the product page and the shop front's quick view, the size on order lines, and the admin
   Sizes window. app.js sizeChips / vProduct / sfCard / sfQuick; admin.js sizesModal.
   ========================================================== */
/* size buttons on a card */
.sz { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
.sz-b { height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.sz-b:hover { border-color: #9fc4cb; color: var(--text); }
.sz-b.on { background: #0b2a36; border-color: #0b2a36; color: #fff; }
.sz-b.out { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.sz-b.out.on { background: #6b7c86; border-color: #6b7c86; color: #fff; }
.sz-b:focus-visible, .pp-sz-b:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* shop front and its quick view */
.sz-sf { margin: 6px 0 4px; }
.sz-sf .sz-b { height: 25px; font-size: 11px; }
.sz-qv { margin: 12px 0 2px; }
.sz-qv .sz-b { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

/* the product page: a card per size with its price */
.pp-sizes { margin: 14px 0 4px; }
.pp-sizes-h { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pp-sz { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pp-sz-b { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.pp-sz-b b { font-size: 14px; color: var(--text); }
.pp-sz-b span { font-size: 13px; font-weight: 700; color: var(--text); }
.pp-sz-b span .ngn, .pp-sz-b span small { font-size: 10.5px; color: var(--faint); }
.pp-sz-b small { font-size: 11.5px; font-weight: 700; color: var(--brand-ink); }
.pp-sz-b:hover { border-color: #9fc4cb; }
.pp-sz-b.on { border-color: var(--brand); background: #f1fbfa; box-shadow: 0 0 0 3px rgba(15, 179, 165, .16); }
.pp-sz-b.out { opacity: .6; }
.pp-sz-b.out small { color: #c2410c; }

/* an order line's size */
.it-size { font-size: .86em; font-weight: 600; color: var(--muted); }
.it-size::before { content: "· "; }

/* ---------- admin: the Sizes button in a product row and the Sizes window ---------- */
.pr-sz { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; height: 24px; padding: 0 9px; border-radius: 7px; border: 1px dashed #b9cfd5; background: #f7fbfc; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ocean); cursor: pointer; }
.pr-sz.has { border-style: solid; background: #e8f6f5; border-color: #bfe3df; }
.pr-sz:hover { background: #e3f3f2; }
.sz-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--sky); margin-bottom: 14px; }
.sz-main > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.sz-main b { font-size: 15px; }
.sz-main span { font-size: 12.5px; color: var(--muted); }
.sz-main small { font-size: 12px; color: var(--faint); }
.sz-tag { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: #0b2a36; color: #fff; }
#sz-rows { display: flex; flex-direction: column; gap: 8px; }
.sz-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(3, minmax(84px, 1fr)) 36px; gap: 8px; align-items: end; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.sz-row.k { grid-template-columns: minmax(140px, 1.5fr) repeat(4, minmax(78px, 1fr)) 36px; }
.sz-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sz-f span { font-size: 11px; font-weight: 700; color: var(--muted); }
.sz-f .input { width: 100%; min-width: 0; }
.sz-del { width: 36px; height: 36px; color: #c2410c; }
.sz-none { margin: 4px 0 8px; font-size: 13px; }
.sz-add { margin-top: 14px; }
.sz-add > span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sz-add > div { display: flex; flex-wrap: wrap; gap: 6px; }
.sz-pick { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); cursor: pointer; }
.sz-pick:hover { border-color: var(--brand); color: var(--ocean); background: #f4fbfb; }
.sz-pick.other { border-style: dashed; color: var(--ocean); }
.sz-rule { display: flex; gap: 6px; align-items: flex-start; margin: 14px 0 0; font-size: 12.5px; }
.sz-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@media (max-width: 760px) {
  .sz-row, .sz-row.k { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sz-row .sz-name { grid-column: 1 / -1; }
  .sz-del { justify-self: end; }
  .pp-sz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ==========================================================
   CREATOR STUDIO (owner, 20 Nov 2026: "the design is not giving the vibe" + no way to log out on phones).
   The admin panel as a creator sees it: violet studio banner, three steps, product cards with covers, an earnings
   card, sales as rows. A log-out button in the top bar on phones for every admin role. admin.js creatorView & co.
   ========================================================== */
/* log out on phones (the sidebar, with its log-out button, is hidden there) */
.top-logout { display: none; order: 9; }
@media (max-width: 980px) { .top-logout { display: inline-grid; } }
.acc-out { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

/* the studio shell */
.app.studio .side .brand-text b span { color: #8b5cf6; }
.app.studio .side .nav a.on { background: #f1ecff; color: #5b3fd1; }
.app.studio .side .nav a.on .ic { color: #6d4fd8; }
.app.studio .mobile-nav a.on { background: rgba(139, 92, 246, .28); }

/* banner */
.cs-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px 28px; align-items: center;
  padding: 28px 30px; border-radius: 24px; color: #fff;
  background: radial-gradient(700px 320px at 0% 0%, rgba(167, 139, 250, .45), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(45, 212, 191, .28), transparent 60%), linear-gradient(135deg, #1b1240 0%, #2c1d6b 50%, #3b2a8a 100%);
  box-shadow: 0 28px 56px -30px rgba(27, 18, 64, .8); }
.cs-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cs-glow i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .45; }
.cs-glow i:nth-child(1) { width: 300px; height: 300px; left: -90px; top: -130px; background: #a78bfa; }
.cs-glow i:nth-child(2) { width: 260px; height: 260px; right: -70px; bottom: -140px; background: #2dd4bf; opacity: .3; }
.cs-who { display: flex; gap: 16px; align-items: center; min-width: 0; }
.cs-av { flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #a78bfa, #6d4fd8); box-shadow: 0 0 0 4px rgba(255, 255, 255, .14), 0 12px 24px -12px rgba(0, 0, 0, .6); }
.cs-av .ic { width: 26px; height: 26px; }
.cs-who > div { min-width: 0; }
.cs-eye { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c4b5fd; }
.cs-eye.dark { color: #6d4fd8; }
.cs-who h2 { margin-top: 4px; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.cs-who p { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cs-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 15px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-width: 0; }
.cs-stats small { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.cs-stats b { font-size: 24px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cs-stats em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-hero-acts { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.cs-hero-s { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }

/* steps */
.cs-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.cs-steps > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.cs-steps span { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #5b3fd1; background: #f1ecff; }
.cs-steps p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cs-steps b { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }

/* products */
.cs-sec { margin-top: 22px; }
.cs-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cs-sec-h h3 { font-size: 19px; letter-spacing: -.01em; }
.cs-sec-h span { font-size: 13px; color: var(--muted); }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cs-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.cs-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cs-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #ede7ff, #d9ccff); display: grid; place-items: center; }
.cs-cover img { width: 100%; height: 100%; object-fit: cover; }
.cs-cover-t { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; text-align: center; font-size: 15px; font-weight: 800; color: #3b2a8a; line-height: 1.25; }
.cs-cover-t i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: #6d4fd8; box-shadow: 0 8px 16px -10px rgba(59, 42, 138, .6); }
.cs-cover .pill { position: absolute; top: 10px; left: 10px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .25); }
.cs-feat { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 8px; background: #fff4dc; color: #a86b00; }
.cs-card.s-published .cs-cover { background: linear-gradient(135deg, #e3faf5, #c3efe6); }
.cs-card-b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.cs-card-b > small { font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.cs-card-b > b { font-size: 16px; line-height: 1.3; }
.cs-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); align-items: baseline; }
.cs-meta strong { font-size: 17px; color: var(--text); }
.cs-hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.cs-note { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: #fff4e5; color: #92400e; font-size: 12.5px; }
.cs-note.warn { background: #fdecec; color: #b42318; }
.cs-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.cs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 20px; }
.cs-empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #6d4fd8; background: #f1ecff; }
.cs-empty b { font-size: 17px; }
.cs-empty p { max-width: 460px; margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }

/* earnings */
.cs-earn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; margin-top: 22px; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.cs-earn-main { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 22px 24px; background: radial-gradient(360px 200px at 0% 0%, rgba(167, 139, 250, .2), transparent 70%), #faf8ff; border-right: 1px solid var(--line); }
.cs-earn-main small { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cs-earn-main > b { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cs-earn-main .btn { margin-top: 10px; }
.cs-earn-main p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.cs-earn-side { padding: 18px 24px; display: flex; flex-direction: column; gap: 2px; }
.cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cs-row span { color: var(--muted); }
.cs-row-act { padding-top: 10px; }
.cs-small { margin: 8px 0 0; font-size: 12px; color: var(--faint); }
.cs-hist { grid-column: 1 / -1; padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.cs-hist h4 { font-size: 14px; margin-bottom: 8px; }

/* sales */
.cs-sales { overflow: hidden; }
.cs-sale { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.cs-sale:last-child { border-bottom: 0; }
.cs-sale-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #f1ecff; color: #6d4fd8; }
.cs-sale-m { min-width: 0; display: flex; flex-direction: column; }
.cs-sale-m b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-sale-m span { font-size: 12.5px; color: var(--muted); }
.cs-sale-v { text-align: right; display: flex; flex-direction: column; }
.cs-sale-v b { font-size: 15px; font-variant-numeric: tabular-nums; }
.cs-sale-v small { font-size: 11.5px; color: var(--faint); }
.cs-sale.gone .cs-sale-v b { text-decoration: line-through; color: var(--faint); }

/* tablets and phones */
@media (max-width: 1100px) {
  .cs-hero, .cs-hero-s { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cs-hero { padding: 20px 16px; border-radius: 20px; gap: 16px; }
  .cs-av { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
  .cs-who h2 { font-size: 24px; }
  .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cs-stats > div:first-child { grid-column: 1 / -1; }
  .cs-stats b { font-size: 21px; }
  .cs-hero-acts .btn { flex: 1 1 auto; justify-content: center; }
  .cs-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cs-steps > div { padding: 12px 14px; }
  .cs-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-earn { grid-template-columns: minmax(0, 1fr); }
  .cs-earn-main { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .cs-earn-side, .cs-hist { padding: 14px 18px; }
  .cs-sale { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 12px 14px; gap: 10px; }
  .cs-sale .pill { grid-column: 2 / -1; justify-self: start; }
}
/* the admin phone menu fills its width whatever the number of pages (a creator has 3) */
@media (max-width: 980px) { .mobile-nav.admin-mnav { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
/* === THEME V2 END === */
