:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f7f6fd;       /* inputs, small tiles */
  --surface: #ffffff;       /* cards */
  --surface-2: #f1f0fb;     /* grey buttons, raised tiles */
  --hover: #f4f3fc;
  --line: rgba(14, 10, 70, .08);
  --line-strong: rgba(14, 10, 70, .14);
  --ink: #0b0830;           /* near-black with the logo's indigo in it */
  --ink-2: #2a2760;
  --muted: #6d6b95;
  --cyan: #01d8fe;          /* logo: left triangle */
  --blue: #402efc;          /* logo: overlap; also links and labels on white */
  --violet: #b601fb;        /* logo: right triangle body */
  --magenta: #fd3bcf;       /* logo: right triangle tip */
  --link: #402efc;
  --blue-hover: #2f1fe0;
  --blue-soft: rgba(64, 46, 252, .08);
  --blue-light: rgba(64, 46, 252, .22);
  --red: #e0169a;           /* logo pink, darkened a touch so view counts read on white */
  --green: #12a150;
  --green-soft: #e7f6ec;
  --grad: linear-gradient(120deg, #01d8fe 0%, #402efc 50%, #fd3bcf 100%);
  --glow: 0 8px 24px rgba(64, 46, 252, .28);
  --radius: 12px;
  --side: 244px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ring: conic-gradient(from 200deg, #01d8fe, #402efc, #b601fb, #fd3bcf, #01d8fe);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
body { background: var(--bg); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.blue { color: var(--link); }
.hide { display: none !important; }

/* ---------- shell ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); border-right: 1px solid var(--line);
  padding: 28px 12px 20px; display: flex; flex-direction: column; background: #fff; z-index: 20;
}
.brand { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; padding: 0 12px 26px; display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(64, 46, 252, .3); }
.nav a {
  display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 8px; font-size: 16px; margin-bottom: 2px;
}
.nav a:hover { background: var(--hover); }
.nav a.on { font-weight: 700; }
.nav a.cta { background: var(--grad); color: #fff; font-weight: 700; margin: 6px 0 10px; box-shadow: var(--glow); }
.nav a.cta:hover { background: var(--grad); filter: brightness(1.12); }
.btn.xl { padding: 15px 30px; font-size: 17px; border-radius: 12px; gap: 10px; box-shadow: var(--glow); }
.btn.xl svg { width: 22px; height: 22px; }
.btn { transition: background .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.nav svg { width: 26px; height: 26px; flex: none; }
.wslot { position: relative; margin-top: 14px; }
.wbtn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; background: var(--surface); }
.wbtn:hover { border-color: var(--blue); }
.wbtn svg { width: 22px; height: 22px; flex: none; }
.wbtn.on { background: var(--bg-soft); }
.wmenu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 30px rgba(14, 10, 70, .14); padding: 6px; display: grid; z-index: 40; }
.wmenu[hidden] { display: none; }
.wmenu a, .wmenu button { text-align: left; padding: 9px 10px; border-radius: 6px; font-size: 13px; }
.wmenu a:hover, .wmenu button:hover { background: var(--hover); }
.side-foot { margin-top: auto; padding: 12px; font-size: 12px; color: var(--muted); }

.main { margin-left: var(--side); min-height: 100vh; }
.top-m { display: none; }
.tabbar { display: none; }

/* ---------- home layout ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding: 24px 40px 80px; }
.feed { min-width: 0; }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 28px; align-items: start; }
.rail { padding-top: 12px; position: sticky; top: 0; align-self: start; }

/* stories */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 8px 2px 16px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.stories-wrap { position: relative; }
.stories { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 56px), transparent 100%); }
.at-start .stories { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent 100%); }
.at-end .stories { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px); mask-image: linear-gradient(to right, transparent 0, #000 28px); }
.at-start.at-end .stories { -webkit-mask-image: none; mask-image: none; }
.st-nav { position: absolute; top: 27px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 22px; line-height: 26px;
  box-shadow: 0 2px 10px rgba(14, 10, 70, .18); display: grid; place-items: center; transition: opacity .15s; }
.st-nav.prev { left: -4px; } .st-nav.next { right: -4px; }
.at-start .st-nav.prev, .at-end .st-nav.next { opacity: 0; pointer-events: none; }
.story { width: 70px; flex: none; text-align: center; }
.ring { width: 66px; height: 66px; border-radius: 50%; padding: 2px; background: var(--ring); margin: 0 auto 4px; position: relative; }
.ring img, .ring .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--bg); background: var(--surface-2); }
.story .u { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story .t { font-size: 11px; color: var(--muted); }
.ai {
  display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #01d8fe, #402efc); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 6px; padding: 1px 5px; line-height: 14px; letter-spacing: 0.02em; vertical-align: middle;
}
.ring .ai { position: absolute; right: -2px; bottom: 0; border: 2px solid var(--bg); border-radius: 8px; }

/* pinned explainer */
.pin { border: 1px solid var(--line-strong); background: linear-gradient(150deg, rgba(1, 216, 254, .07), #fff 45%, rgba(253, 59, 207, .07)); border-radius: 18px; padding: 28px 32px; margin-bottom: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px 48px; align-items: center; }
.pin h1 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 8px; }
.pin p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.pin .big, .tot .big { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 14px; font-size: 13px; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 10px; font-weight: 600; white-space: nowrap; background: #fff; }
.chip.b { background: var(--blue-soft); border-color: rgba(64, 46, 252, .25); color: var(--link); }
.arrow { color: var(--muted); }

/* post */
.post { border-bottom: 1px solid var(--line-strong); padding-bottom: 16px; margin-bottom: 20px; }
.post-h { display: flex; align-items: center; gap: 10px; padding: 0 2px 10px; }
.av { width: 34px; height: 34px; border-radius: 50%; padding: 2px; background: var(--ring); flex: none; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--bg); }
.post-h .who { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post-h .sub { font-size: 12px; color: var(--muted); }
.tick { font-weight: 500; color: var(--muted); }
.src { margin-left: auto; font-size: 12px; color: var(--muted); }
.media { position: relative; border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 4 / 5; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.media.sq { aspect-ratio: 1 / 1; background: var(--surface-2); }
.media .len { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.media .mute { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.media .mute svg { width: 15px; height: 15px; }
.facts-ov { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.facts-ov .chip { background: rgba(255, 255, 255, .92); border-color: transparent; color: var(--ink); }
.facts-ov a { background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.acts { display: flex; align-items: center; gap: 14px; padding: 10px 2px 6px; }
.acts svg { width: 24px; height: 24px; }
.acts .liked svg { fill: var(--red); stroke: var(--red); }
.acts .right { margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); color: #fff; font-weight: 600;
  border-radius: 8px; padding: 7px 16px; font-size: 14px; white-space: nowrap; background: var(--grad);
}
.btn:hover { filter: brightness(1.12); }
.btn.g { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-strong); }
.btn.g:hover { background: #e7e5f8; filter: none; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.fv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 8px 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; margin: 4px 0 8px; }
.fv b { font-weight: 700; }
.fv .eq { color: var(--muted); }
.fv .views { color: var(--red); font-weight: 700; }
.cap { font-size: 14px; }
.cap b { font-weight: 600; margin-right: 4px; }
.cap .more { color: var(--muted); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* rail */
.rail h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 22px 0 12px; display: flex; justify-content: space-between; }
.rail h3 a { color: var(--ink); font-size: 12px; }
.tot { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius); padding: 16px; }
.tot .big { font-size: 34px; }
.row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.row img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; background: var(--surface-2); }
.row .nm { font-weight: 600; font-size: 14px; display: flex; gap: 5px; align-items: center; }
.row .ds { font-size: 12px; color: var(--muted); }
.row .go { margin-left: auto; color: var(--link); font-weight: 600; font-size: 12px; }
.how { display: grid; gap: 10px; font-size: 13px; }
.how div { display: flex; gap: 10px; align-items: flex-start; }
.how .n { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.fine { font-size: 11px; color: #9a99b8; margin-top: 22px; line-height: 1.6; }
.fine a { color: #7c7aa6; }

/* ---------- profile ---------- */
.page { padding: 30px 40px 90px; }
.prof { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: center; padding-bottom: 28px; }
.prof .pic { width: 150px; height: 150px; border-radius: 50%; padding: 4px; background: var(--ring); margin: 0 auto; }
.prof .pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--bg); }
.prof h1 { font-size: 20px; font-weight: 400; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prof .btns { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; font-size: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.stats b { font-weight: 600; }
.bio { font-size: 14px; max-width: 520px; }
.bio .nm { font-weight: 600; display: block; }
.engine { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; }
.engine h2 { font-size: 16px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step { background: var(--bg-soft); border-radius: 10px; padding: 12px; }
.step .k { font-size: 12px; color: var(--muted); }
.step .v { font-size: 20px; font-weight: 700; margin-top: 2px; }
.step.hot .v { color: var(--red); }
.step .s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 14px 0 6px; display: flex; }
.bar i { background: var(--grad); display: block; }
.bar i + i { background: var(--blue-light); }
.tabs { display: flex; justify-content: center; gap: 52px; border-top: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.tabs a { padding: 16px 0; color: var(--muted); display: flex; gap: 6px; align-items: center; border-top: 1px solid transparent; margin-top: -1px; }
.tabs a.on { color: var(--ink); border-top-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px; }
.cell { position: relative; aspect-ratio: 3 / 4; background: #111; overflow: hidden; cursor: pointer; }
.cell video, .cell img { width: 100%; height: 100%; object-fit: cover; }
.cell .len { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 13px; font-weight: 600; display: flex; gap: 4px; align-items: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cell .len svg { width: 14px; height: 14px; }
.cell .ic { position: absolute; right: 8px; top: 8px; color: #fff; }
.cell .ic svg { width: 18px; height: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.facts { display: grid; gap: 10px; }
.fact { display: flex; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.fact .v { font-weight: 700; font-size: 16px; }
.fact a { color: var(--link); font-size: 12px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 22px; margin: 10px 0 6px; }

/* ---------- reels ---------- */
.reels { height: 100vh; overflow-y: auto; scroll-snap-type: y mandatory; }
.reel { height: 100vh; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 20px 0; }
.reel .stage { position: relative; height: calc(100vh - 40px); aspect-ratio: 9 / 16; max-width: calc(100vw - 100px); border-radius: 10px; overflow: hidden; background: #000; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel .ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 16px 18px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.reel .ov .who { font-weight: 700; display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.reel .ov .pill { display: inline-block; margin-top: 8px; background: var(--red); color: #fff; border-radius: 6px; padding: 4px 9px; font-size: 12px; font-weight: 600; }
.reel .side-r { display: flex; flex-direction: column; gap: 18px; align-items: center; align-self: flex-end; padding-bottom: 30px; }
.reel .side-r a, .reel .side-r button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.reel .side-r svg { width: 28px; height: 28px; }
.reel .side-r .rav { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.reel .side-r .liked svg { fill: var(--red); stroke: var(--red); }

/* ---------- tables / tools ---------- */
.ph1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.strip > div { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 14px 16px; }
.strip .k { font-size: 12px; color: var(--muted); }
.strip .v { font-size: 24px; font-weight: 700; margin-top: 2px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.seg button { padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--grad); color: #fff; box-shadow: none; }
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.lb td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.lb tr:hover td { background: var(--bg-soft); }
.lb .rk { font-weight: 700; color: var(--muted); width: 28px; }
.lb .p { display: flex; gap: 10px; align-items: center; }
.lb .p img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.lb .vw { font-weight: 700; font-size: 16px; }
.lbn { font-weight: 600; display: flex; align-items: center; gap: 5px; }
.lbn + div, .lbn { max-width: 210px; }
.plat { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 8px; background: var(--surface-2); }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }

.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin: 0 0 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.field label span { color: var(--muted); font-weight: 500; }
select, input[type=number], input[type=text], textarea {
  font: inherit; border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; background: var(--bg-soft); width: 100%; color: var(--ink);
}
textarea { resize: vertical; min-height: 70px; }
input[type=range] { width: 100%; accent-color: var(--blue); }
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plat-c { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 16px; }
.plat-c.best { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 8px 24px rgba(64, 46, 252, .12); }
.plat-c .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.plat-c .hd svg { width: 22px; height: 22px; }
.plat-c .cpm { font-size: 26px; font-weight: 800; }
.plat-c .vv { font-size: 18px; font-weight: 700; color: var(--red); margin-top: 8px; }
.plat-c .rng { font-size: 12px; color: var(--muted); }
.banner { background: var(--blue-soft); border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 12px; align-items: center; margin: 16px 0; color: var(--ink-2); }
.banner b { color: var(--link); }
.split { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 10px 0; }
.split i:nth-child(1) { background: var(--cyan); }
.split i:nth-child(2) { background: var(--violet); }
.split i:nth-child(3) { background: var(--magenta); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.preview { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.preview .ph-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.preview .ph-h img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; }
.preview .bd { padding: 16px; font-size: 15px; }
.preview .bd h3 { margin: 0 0 6px; font-size: 18px; }
.kv { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.dm { display: grid; gap: 8px; padding: 16px; background: var(--bg-soft); }
.bub { max-width: 80%; padding: 9px 13px; border-radius: 18px; font-size: 14px; }
.bub.l { background: var(--surface-2); justify-self: start; }
.bub.r { background: var(--grad); color: #fff; justify-self: end; }
.offer { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px; justify-self: end; width: 86%; }
.offer .t { font-weight: 700; margin-bottom: 6px; }
.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fmt { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.fmt b { display: block; font-size: 14px; }
.fmt a { color: var(--link); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); border: 0; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 99; }

.order { margin-top: 16px; }
.pick { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 6px; }
.pick-c { position: relative; flex: none; width: 92px; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #111; outline: 2px solid transparent; outline-offset: 2px; }
.pick-c.on { outline-color: var(--blue); }
.pick-c video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pick-c span { position: absolute; left: 6px; bottom: 5px; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.order-sum { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; font-size: 13px; margin: 6px 0 14px; }
.order-sum .tot2 { font-weight: 700; font-size: 15px; color: var(--red); margin-top: 4px; }

/* launch */
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.lp-side { position: sticky; top: 20px; display: grid; gap: 12px; }
.lp-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
  height: 190px; width: 100%; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--bg-soft); font-weight: 600; overflow: hidden;
}
.lp-drop:hover { border-color: var(--blue); }
.lp-drop img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lp .chip { cursor: pointer; font-size: 13px; }
.lp .chip:hover { border-color: var(--ink); }
.lp .chip.b:hover { border-color: transparent; }
.lp-ph { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); font-weight: 700; flex: none; }
.lp-lock { background: var(--bg-soft); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.lp-proj { margin-top: 10px; }
.lp-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.lp-checks .ok { color: var(--green); font-weight: 600; }
.lp-wallet { font-size: 13px; }
.lp-wallet a { color: var(--link); }
.lp-go { width: 100%; padding: 16px; font-size: 17px; border-radius: 12px; box-shadow: var(--glow); }
.lp-go:disabled { background: var(--surface-2); color: #9a99b8; box-shadow: none; filter: none; cursor: not-allowed; }
.lp-cost { font-size: 12px; }
.lp-steps { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.lp-steps .done { color: var(--green); }
.lp-steps .now { color: var(--ink); font-weight: 600; }
.lp-err { background: rgba(253, 59, 207, .07); color: #b0127a; border: 1px solid rgba(253, 59, 207, .3); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.lp-done { border: 1px solid var(--green); background: var(--green-soft); border-radius: var(--radius); padding: 14px 16px; }
.lock-fix { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 16px; border: 1px solid #f5a524; background: #fff7e6; border-radius: 10px; font-size: 13px; }
.lock-fix .btn { flex: none; }
.lp-done.lp-warn { border-color: #f5a524; background: #fff7e6; }

/* modal reel viewer */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 50; display: flex; align-items: center; justify-content: center; }
.modal .box { height: min(90vh, 900px); aspect-ratio: 9 / 16; max-width: 94vw; position: relative; border-radius: 10px; overflow: hidden; background: #000; }
.modal video { width: 100%; height: 100%; object-fit: contain; }
.modal .x { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 30px; line-height: 1; }

/* ---------- mobile ---------- */
@media (max-width: 1500px) { .pin { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .rail { display: none; } .home { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .side { display: none; }
  .main { margin-left: 0; padding-bottom: calc(56px + var(--safe-b)); }
  .top-m {
    display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); z-index: 20; padding-top: env(safe-area-inset-top, 0px);
  }
  .top-m .brand { padding: 0; font-size: 22px; }
  .top-m a.ic svg { width: 24px; height: 24px; }
  .top-m .wslot { margin: 0; }
  .top-r { display: flex; align-items: center; gap: 8px; }
  .mbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
  .mbtn svg { width: 24px; height: 24px; }
  .mmenu { position: absolute; top: 100%; right: 10px; width: 230px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 12px 30px rgba(14, 10, 70, .14); padding: 6px; display: grid; z-index: 45; }
  .mmenu[hidden] { display: none; }
  .mmenu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; font-size: 15px; }
  .mmenu a.on { font-weight: 700; background: var(--hover); }
  .mmenu svg { width: 22px; height: 22px; }
  .top-m .wbtn { width: auto; padding: 7px 12px; font-size: 13px; gap: 6px; border-radius: 999px; }
  .top-m .wbtn svg { width: 18px; height: 18px; }
  .top-m .wmenu { left: auto; width: 190px; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(52px + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); z-index: 30; justify-content: space-around; align-items: center;
  }
  .tabbar a { flex: 1; height: 52px; display: grid; place-items: center; }
  .tabbar svg { width: 26px; height: 26px; }
  .tabbar a.on svg { stroke-width: 2.4; }
  .tabbar a.cta svg { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: var(--glow); }
  .home { padding: 0 0 20px; display: block; }
  .feed-grid { display: block; }
  .pin { padding: 20px; }
  .pin .kv .btn { flex: 1 1 100%; }
  .feed { max-width: none; }
  .stories { padding: 10px 16px 12px; border-bottom: 1px solid var(--line); }
  .st-nav { display: none; }
  .pin { margin: 12px 16px 16px; }
  .post { border-bottom: 0; }
  .post-h { padding: 0 16px 10px; }
  .media { border-radius: 0; }
  .acts, .fv-wrap, .cap { padding-left: 16px; padding-right: 16px; }
  .fv { margin-left: 0; margin-right: 0; }
  .page { padding: 18px 16px 30px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .prof { grid-template-columns: 86px 1fr; gap: 18px; align-items: start; padding-bottom: 18px; }
  .prof .pic { width: 86px; height: 86px; padding: 3px; }
  .prof .pic img { border-width: 3px; }
  .stats { gap: 18px; font-size: 14px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tabs { gap: 30px; }
  .strip { grid-template-columns: 1fr; }
  .two, .plats, .formats { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: 1fr; }
  .lp-side { position: static; }
  .reels { height: calc(100vh - 52px - var(--safe-b)); }
  .reel { height: calc(100vh - 52px - var(--safe-b)); padding: 0; position: relative; }
  .reel .stage { height: 100%; max-width: 100vw; width: 100%; border-radius: 0; aspect-ratio: auto; }
  .reel .side-r { position: absolute; right: 10px; bottom: 90px; color: #fff; padding: 0; }
  .reel .ov { padding-right: 74px; }
  .reel .side-r svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
  .lb .hide-m { display: none; }
  .lb td { padding: 10px 8px; }
  .lbn { max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
  .lbn .ai { display: none; }
  .toast { bottom: calc(70px + var(--safe-b)); }
}
