/* ============================================================
   linked.market — components  ·  v2 "Editorial Bold"
   ============================================================ */

/* ---------------- STUDIO shell ---------------- */
.studio {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  background: radial-gradient(1100px 560px at 50% -8%, #2b2825 0%, #1f1c19 52%, #171411 100%);
  font-family: 'General Sans', system-ui, sans-serif; color: #e9e4da;
}
.studio-bar {
  flex: 0 0 auto; display: flex; align-items: center; gap: 16px;
  padding: 0 20px; height: 58px; border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(18,15,12,.55); backdrop-filter: blur(10px); z-index: 5;
}
.studio-brand { display: flex; align-items: baseline; gap: 1px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; font-family: 'Bricolage Grotesque', sans-serif; }
.studio-brand .dot { width: 7px; height: 7px; border-radius: 50%; background: #E76F25; display: inline-block; margin: 0 1px; align-self: center; }
.studio-brand .muted { color: #8a847a; font-weight: 600; }
.studio-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6f6a61; border: 1px solid rgba(255,255,255,.1); padding: 3px 8px; border-radius: 999px; }
.studio-spacer { flex: 1; }
.studio-screens { display: flex; gap: 2px; background: rgba(255,255,255,.05); padding: 3px; border-radius: 11px; max-width: 44vw; overflow-x: auto; scrollbar-width: none; }
.studio-screens::-webkit-scrollbar { display: none; }
.studio-screens button { font-size: 12.5px; font-weight: 500; color: #b4aea3; padding: 6px 13px; border-radius: 8px; transition: all var(--dur-micro) var(--ease); }
.studio-screens button.on { background: rgba(255,255,255,.12); color: #fff; }
.studio-screens button:hover:not(.on) { color: #fff; }
.seg { display: flex; gap: 2px; background: rgba(255,255,255,.06); padding: 3px; border-radius: 11px; }
.seg button { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: #b4aea3; padding: 6px 11px; border-radius: 8px; transition: all var(--dur-micro) var(--ease); }
.seg button.on { background: #f2ede4; color: #1a1815; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.seg button:hover:not(.on) { color: #fff; }
.seg svg { width: 15px; height: 15px; }
.studio-stage { flex: 1; min-height: 0; display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 40px 24px 56px; }

/* ---------------- PHONE FRAME ---------------- */
.frame-phone {
  position: relative; flex: 0 0 auto; width: 396px; height: 820px;
  background: #07060500; border-radius: 56px; padding: 12px;
  background-image: linear-gradient(145deg, #34302b, #1a1815);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 40px 90px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.45);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: var(--bg); }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; background: #08070620; background-color: #0a0908; border-radius: 999px; z-index: 60; }

/* ---------------- DESKTOP FRAME ---------------- */
.frame-desktop { position: relative; flex: 0 0 auto; width: 1200px; height: 778px; border-radius: 16px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 90px rgba(0,0,0,.55); }
.browser-bar { height: 46px; flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.browser-lights { display: flex; gap: 7px; }
.browser-lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-url { flex: 1; max-width: 440px; height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border-radius: 9px; background: var(--bg-sunk); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.browser-url .lock { width: 11px; height: 11px; color: var(--ink-4); }

/* ---------------- APP ROOT ---------------- */
.lm-app { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
.lm-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scroll-behavior: smooth; }
.lm-scroll::-webkit-scrollbar { width: 8px; }
.lm-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }

/* ============================================================ PRIMITIVES */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; border-radius: var(--r-full); transition: transform var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-md { height: 46px; padding: 0 22px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; gap: 6px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 16px var(--accent-glow), var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-press); box-shadow: 0 6px 22px var(--accent-glow); }
.btn-dark { background: var(--ink); color: var(--bg-elev); }
.btn-dark:hover { opacity: .9; }
.btn-secondary { background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-3); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-sunk); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease); }
.icon-btn:hover { background: var(--bg-sunk); color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; }

.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--bg-elev); font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: all var(--dur-micro) var(--ease); }
.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill .cdot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.pill.on { background: var(--ink); color: var(--bg-elev); border-color: var(--ink); font-weight: 600; }
.pill.on .cdot { box-shadow: 0 0 0 2px var(--bg-elev); }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; letter-spacing: .01em; backdrop-filter: blur(8px); }
.badge svg { width: 12px; height: 12px; }
.badge-verified { background: var(--verified-tint); color: var(--verified); }
.badge-new { background: var(--accent); color: var(--on-accent); }
.badge-low { background: var(--error); color: #fff; }
.badge-featured { background: rgba(20,18,14,.72); color: #fff; }
.badge-stock { background: transparent; color: var(--success); padding-left: 0; backdrop-filter: none; }

.vmark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--verified); color: #fff; flex: 0 0 auto; }
.vmark svg { width: 9px; height: 9px; }

.avatar { border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; overflow: hidden; font-family: var(--font-display); }
.avatar.ring { box-shadow: 0 0 0 2px var(--bg-elev), 0 0 0 3.5px var(--line-strong); }

/* ============================================================ IMAGE SLOTS */
.slot { position: relative; overflow: hidden; background: var(--bg-sunk); }
.slot > image-slot { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
image-slot::part(frame) { background: transparent; }
image-slot::part(ring) { border: 1.5px dashed rgba(255,255,255,.4); }
image-slot::part(empty) { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.slot .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.42); pointer-events: none; z-index: 0; }
.slot .glyph svg { width: 32%; height: 32%; }

/* duotone-only block (no slot) */
.imgblock { position: relative; overflow: hidden; }
.imgblock .glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); }
.imgblock .glyph svg { width: 34%; height: 34%; }
.imgblock .lbl { position: absolute; left: 11px; bottom: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.9); }

/* photo scrim for legibility */
.photo-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,9,5,.62) 0%, rgba(12,9,5,.12) 42%, transparent 70%); pointer-events: none; }

/* ============================================================ VENDOR STRIP */
.vstrip { display: flex; align-items: center; gap: 9px; min-width: 0; }
.vstrip .handle { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vstrip .name { font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================ PRODUCT CARD v2 */
.pcard { position: relative; display: flex; flex-direction: column; background: var(--bg-elev); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--dur-std) var(--ease), box-shadow var(--dur-std) var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard .media { position: relative; width: 100%; }
.pcard .pricepill { position: absolute; left: 10px; bottom: 10px; z-index: 4; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-full); background: rgba(16,12,7,.62); color: #fff; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pcard .body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 8px; }
.pcard .vmini { display: flex; align-items: center; gap: 6px; }
.pcard .vmini .h { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .pname { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.16; letter-spacing: -.02em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* marker (dot motif) */
.marker { position: absolute; top: 10px; right: 10px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); color: #15120c; box-shadow: 0 3px 12px rgba(0,0,0,.2); transition: transform var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease); }
.lm-app[data-theme="dark"] .marker { background: rgba(28,24,18,.82); color: #f5f0e5; }
.marker svg { width: 19px; height: 19px; }
.marker.on { background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 16px var(--accent-glow); }
.marker:active { transform: scale(.82); }
.marker.pulse { animation: markPulse var(--dur-std) var(--ease-back); }
@keyframes markPulse { 0% { transform: scale(1);} 45% { transform: scale(1.3);} 100% { transform: scale(1);} }
.marker.pulse::after { content:''; position:absolute; inset:-5px; border-radius:50%; border:2px solid var(--accent); animation: markRing var(--dur-major) var(--ease) forwards; }
@keyframes markRing { 0%{opacity:.85; transform:scale(.8);} 100%{opacity:0; transform:scale(1.7);} }

/* ============================================================ STORE / SPOTLIGHT CARD */
.scard { flex: 0 0 auto; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform var(--dur-std) var(--ease), box-shadow var(--dur-std) var(--ease); }
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scard .cover { height: 108px; position: relative; }
.scard .sbody { padding: 0 16px 16px; }
.scard .savatar { width: 58px; height: 58px; border-radius: 50%; margin-top: -29px; position: relative; font-size: 20px; box-shadow: 0 0 0 4px var(--bg-elev); }
.scard .sname { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin-top: 9px; display: flex; align-items: center; gap: 6px; }
.scard .smeta { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.scard .sstats { display: flex; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.scard .sstat { flex: 0 0 auto; }
.scard .sstat .n { font-size: 14px; font-weight: 700; white-space: nowrap; font-family: var(--font-display); letter-spacing: -.02em; }
.scard .sstat .l { font-size: 11px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }

/* ============================================================ FLOATING BOTTOM NAV */
.botwrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px 16px; pointer-events: none; background: linear-gradient(to top, var(--bg) 38%, transparent); }
.botnav { pointer-events: auto; display: flex; align-items: stretch; height: 62px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-full); box-shadow: var(--shadow-lg); padding: 0 6px; }
.botnav .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); position: relative; transition: color var(--dur-micro) var(--ease); }
.botnav .tab svg { width: 22px; height: 22px; }
.botnav .tab .lab { font-size: 10px; font-weight: 600; }
.botnav .tab.on { color: var(--accent); }
.botnav .tab .count { position: absolute; top: 5px; left: 50%; margin-left: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px var(--accent-glow); }
.home-indicator { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 128px; height: 5px; border-radius: 99px; background: var(--ink); opacity: .55; z-index: 70; pointer-events: none; }

/* ============================================================ MOBILE TOP BAR */
.mtop { position: sticky; top: 0; z-index: 30; flex: 0 0 auto; padding: 48px 18px 12px; display: flex; align-items: center; gap: 12px; background: linear-gradient(to bottom, var(--bg) 62%, transparent); }
.mbrand { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.mbrand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 0 1px; align-self: center; }
.mbrand .muted { color: var(--ink-3); font-weight: 700; }
.chip-loc { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-radius: var(--r-full); background: var(--bg-elev); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip-loc svg { width: 15px; height: 15px; color: var(--accent); }

/* mobile search bar */
.searchbar { display: flex; align-items: center; gap: 11px; height: 52px; padding: 0 7px 0 18px; border-radius: var(--r-full); background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-3); font-size: 15px; font-weight: 500; cursor: text; transition: border var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease); }
.searchbar:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.searchbar > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--ink-3); }
.searchbar .ph { flex: 1; }
.searchbar .filt { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.searchbar .filt svg { width: 18px; height: 18px; }

/* sticky mobile action bar */
.msticky { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; padding: 16px 16px 28px; background: linear-gradient(to top, var(--bg-elev) 70%, transparent); display: flex; gap: 11px; align-items: center; }

/* ============================================================ DESKTOP TOP NAV */
.dtop { position: sticky; top: 0; z-index: 30; flex: 0 0 auto; height: 70px; display: flex; align-items: center; gap: 26px; padding: 0 40px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-elev) 86%, transparent); backdrop-filter: blur(12px); }
.dbrand { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.dbrand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 0 2px; align-self: center; }
.dbrand .muted { color: var(--ink-3); font-weight: 700; }
.dnav { display: flex; gap: 2px; }
.dnav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 9px 13px; border-radius: 9px; cursor: pointer; transition: all var(--dur-micro) var(--ease); }
.dnav a:hover { background: var(--bg-sunk); color: var(--ink); }
.dnav a.on { color: var(--ink); font-weight: 600; }
.dsearch { flex: 1; max-width: 360px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: var(--r-full); background: var(--bg-sunk); border: 1px solid transparent; color: var(--ink-3); font-size: 14px; transition: all var(--dur-micro) var(--ease); }
.dsearch:hover { border-color: var(--line-strong); }
.dsearch svg { width: 18px; height: 18px; }
.dsearch .kbd { margin-left: auto; font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border-radius: 7px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink-3); }

/* ============================================================ SECTION HEADERS */
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sechead .h { font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; }
.sechead .more { font-size: 13.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 3px; cursor: pointer; }
.sechead .more:hover { color: var(--accent); }
.sechead .more svg { width: 15px; height: 15px; }
.hscroll { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.hscroll::-webkit-scrollbar { display: none; }
.snap { scroll-snap-type: x mandatory; } .snap > * { scroll-snap-align: start; }
.hr { height: 1px; background: var(--line); border: none; }

/* ============================================================ HERO */
.hero { position: relative; border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero .hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; z-index: 2; }
.hero-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--r-full); background: rgba(255,255,255,.16); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }

/* ============================================================ VARIANT CHIPS */
.vchip { min-width: 46px; height: 46px; padding: 0 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--bg-elev); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur-micro) var(--ease); cursor: pointer; }
.vchip:hover { border-color: var(--ink-3); }
.vchip.on { border-color: var(--ink); background: var(--ink); color: var(--bg-elev); }

.gdots { display: flex; gap: 6px; justify-content: center; }
.gdots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.5); transition: all var(--dur-std) var(--ease); }
.gdots i.on { width: 20px; background: #fff; }
.gthumb { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border var(--dur-micro) var(--ease); position: relative; }
.gthumb.on { border-color: var(--ink); }

/* ============================================================ MARKED */
.mgroup { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.mgroup .ghead { display: flex; align-items: center; gap: 11px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.mrow { display: flex; gap: 13px; padding: 15px 16px; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mrow .mthumb { width: 78px; height: 94px; border-radius: var(--r-md); overflow: hidden; flex: 0 0 auto; }
.mrow .mname { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.mrow .mvar { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.mrow .mprice { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-full); height: 34px; }
.qty button { width: 32px; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); border-radius: 50%; }
.qty button:hover { color: var(--ink); }
.qty button svg { width: 14px; height: 14px; }
.qty .v { min-width: 22px; text-align: center; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--bg-warm); border-top: 1px solid var(--line); }

/* ============================================================ SEND SHEET / MODAL */
.scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 80; opacity: 0; transition: opacity var(--dur-std) var(--ease); backdrop-filter: blur(2px); }
.scrim.show { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--bg-elev); border-radius: var(--r-2xl) var(--r-2xl) 0 0; box-shadow: var(--shadow-up); transform: translateY(102%); transition: transform var(--dur-major) var(--ease); max-height: 92%; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sheet.show { transform: translateY(0); }
.sheet .grip { width: 42px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 11px auto 4px; }
.modal { position: absolute; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 40px; pointer-events: none; }
.modal .card { width: 470px; max-height: 88%; background: var(--bg-elev); border-radius: var(--r-2xl); box-shadow: var(--shadow-xl); overflow: hidden; display: flex; flex-direction: column; transform: scale(.95) translateY(10px); opacity: 0; transition: all var(--dur-std) var(--ease); pointer-events: auto; }
.modal.show .card { transform: none; opacity: 1; }
.msgprev { background: var(--bg-warm); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.msgprev .ln { display: flex; gap: 8px; padding: 8px 0; }
.msgprev .ln + .ln { border-top: 1px dashed var(--line-strong); }
.msgprev b { color: var(--ink); font-weight: 600; }
.channel { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--bg-elev); cursor: pointer; transition: all var(--dur-micro) var(--ease); }
.channel:hover { border-color: var(--line-strong); }
.channel.on { border-color: var(--ink); background: var(--bg-warm); }
.channel .cico { width: 44px; height: 44px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; }
.channel .cico svg { width: 22px; height: 22px; }
.channel .ct { font-weight: 600; font-size: 14.5px; }
.channel .cs { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.channel .cradio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.channel.on .cradio { border-color: var(--ink); }
.channel.on .cradio::after { content:''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.confirm { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px; }
.confirm .ring2 { width: 80px; height: 80px; border-radius: 50%; background: var(--verified-tint); color: var(--verified); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; animation: pop var(--dur-major) var(--ease-back); }
.confirm .ring2 svg { width: 40px; height: 40px; }
@keyframes pop { 0%{transform:scale(.4);opacity:0;} 70%{transform:scale(1.1);} 100%{transform:scale(1);opacity:1;} }

/* toast */
.toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(12px); z-index: 95; background: var(--ink); color: var(--bg-elev); padding: 13px 19px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow-xl); opacity: 0; transition: all var(--dur-std) var(--ease-back); white-space: nowrap; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 17px; height: 17px; color: var(--accent); }

.screen-fade { animation: screenIn var(--dur-std) var(--ease); }
@keyframes screenIn { from { transform: translateY(8px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen-fade { animation: none; } }

.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl); }

/* back bar */
.backbar { position: absolute; top: 44px; left: 14px; right: 14px; z-index: 40; display: flex; align-items: center; justify-content: space-between; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; color: #15120c; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.lm-app[data-theme="dark"] .round-btn { background: rgba(28,24,18,.82); color: #f5f0e5; }
.round-btn svg { width: 20px; height: 20px; }

/* ============================================================ VENDOR */
.vsidebar { width: 244px; flex: 0 0 auto; border-right: 1px solid var(--line); background: var(--bg-elev); display: flex; flex-direction: column; padding: 20px 14px; }
.vbrand { display: flex; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.03em; padding: 0 10px 18px; }
.vbrand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin: 0 1px; align-self: center; }
.vbrand .muted { color: var(--ink-3); font-weight: 700; }
.vnav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all var(--dur-micro) var(--ease); }
.vnav-item:hover { background: var(--bg-sunk); color: var(--ink); }
.vnav-item.on { background: var(--accent-tint); color: var(--accent-press); font-weight: 600; }
.vnav-item svg { width: 18px; height: 18px; }
.vnav-item .vct { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--on-accent); border-radius: 99px; min-width: 18px; height: 18px; padding: 0 5px; display: flex; align-items: center; justify-content: center; }

.vstat { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.vstat .vl { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.vstat .n { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; margin-top: 6px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; }
.trend.up { color: var(--success); } .trend.down { color: var(--error); }
.trend svg { width: 13px; height: 13px; }

.vrow { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.vrow:last-child { border-bottom: none; }
.vthumb { width: 48px; height: 56px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.input, textarea.input, select.input { width: 100%; height: 48px; padding: 0 15px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--bg-elev); font-family: inherit; font-size: 15px; color: var(--ink); transition: border var(--dur-micro) var(--ease); }
textarea.input { height: auto; padding: 13px 15px; line-height: 1.5; resize: vertical; }
.input:focus, textarea.input:focus, select.input:focus { outline: none; border-color: var(--ink); }
.input::placeholder { color: var(--ink-4); }
.inwrap { position: relative; display: flex; align-items: center; }
.inwrap .pre { position: absolute; left: 15px; font-weight: 600; color: var(--ink-3); pointer-events: none; }
.inwrap .input { padding-left: 32px; }
.seg-tab { display: flex; gap: 4px; background: var(--bg-sunk); padding: 4px; border-radius: 12px; }
.seg-tab button { flex: 1; height: 36px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.seg-tab button.on { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ============================================================ PAYMENT */
.trust-strip { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: var(--r-md); background: var(--verified-tint); color: var(--verified); font-size: 12.5px; font-weight: 600; }
.trust-strip svg { width: 16px; height: 16px; flex: 0 0 auto; }
.badge-secure { background: var(--verified-tint); color: var(--verified); }
.badge-paid { background: var(--verified); color: #fff; }
.paystack-btn { background: #0AA5E9; color: #fff; }
.paystack-btn:hover { background: #0a93cf; }
.splitrow { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.splitrow:last-child { border-bottom: none; }
.sumrow { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 14.5px; }
.sumrow.total { padding-top: 13px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 700; }
.method { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); cursor: pointer; transition: all var(--dur-micro) var(--ease); }
.method.on { border-color: var(--ink); background: var(--bg-warm); }
.method .mradio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.method.on .mradio { border-color: var(--ink); } .method.on .mradio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
/* order status timeline */
.otl { display: flex; flex-direction: column; }
.otl .step { display: flex; gap: 13px; }
.otl .dotcol { display: flex; flex-direction: column; align-items: center; }
.otl .sd { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border: 2px solid var(--line-strong); color: var(--ink-4); background: var(--bg-elev); }
.otl .sd.done { background: var(--verified); border-color: var(--verified); color: #fff; }
.otl .sd.now { border-color: var(--accent); color: var(--accent); }
.otl .sd svg { width: 13px; height: 13px; }
.otl .sline { width: 2px; flex: 1; background: var(--line); margin: 2px 0; min-height: 22px; }
.otl .sline.done { background: var(--verified); }
.otl .scontent { padding-bottom: 20px; }
.ostatus { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; }
.confirm-ring { width: 88px; height: 88px; border-radius: 50%; background: var(--verified); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px var(--verified-tint); animation: cpop var(--dur-major) var(--ease-back); }
.confirm-ring svg { width: 44px; height: 44px; stroke-width: 2.4; }
@keyframes cpop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
.spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
