/* Revly — design tokens and styles.
   One choice per axis: warm neutrals, teal accent, Hind Siliguri. */
button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2rem; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --raised: #F7F4EE;
  --line: #EAE6DE;
  --ink: #171717;
  --ink2: #5E554A;
  --muted: #8A847A;
  /* Accent — the app's one brand colour. To re-theme, change this block
     only: --accent plus its three gradient stops. Every button, icon,
     selection and star reads these variables; nothing hardcodes the colour. */
  --accent: #0F766E;
  --accent-dark: #134E4A;
  --accent-soft: #F0FDFA;
  --accent-ink: #134E4A;
  --grad1: #14B8A6;
  --grad2: #0D9488;
  --grad3: #0F766E;
  --edge: #134E4A;
  --green: #00A86B;
  --deep-green: #123524;
  --ai: #193F8F;
  --ai-deep: #0F2A63;
  --ai-soft: #E7EDF8;
  --red: #DC2626;
  --ok: #16A34A;
  --track: #F0EBE0;
  --glass-o: .8;
  --shadow-sm: 0 1px 2px rgba(23,23,23,.05);
  --shadow-float: 0 8px 24px rgba(23,23,23,.06);
  --ease: cubic-bezier(0.22,1,0.36,1);
  --spring: cubic-bezier(.34,1.3,.64,1);
  color-scheme: light;
}
body.seller {
  --accent: #00A86B;
  --accent-dark: #047857;
  --accent-soft: #ECFDF5;
  --accent-ink: #047857;
  --grad1: #34D399;
  --grad2: #1DBF73;
  --grad3: #00A86B;
  --edge: #047857;
}
html, body { height: 100%; }
html { overflow-x: hidden; }
body {
  overflow-x: hidden;
  margin: 0;
  font-family: "Hind Siliguri", system-ui, sans-serif;
  color: var(--ink);
  background-color: #FFFFFF;
  font-size: 14px;
  line-height: 1.5;
}
html[lang="bn"] body { line-height: 1.6; }
/* ---------- app shell ---------- */
.phone {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Wide screens: full-screen app, no side gaps. Phones keep the 480px shell. */
@media (min-width: 520px) {
  body { background: var(--bg); }
  .phone { max-width: none; border: 0; box-shadow: none; }
}
/* ---------- header ---------- */
header {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 4px;
  min-height: 56px;
  padding: 6px 16px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  z-index: 20;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; min-width: 0; }
.brand .logo-badge { width: 34px; height: 36px; flex: 0 0 auto; background: var(--accent); display: grid; place-items: center; clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.brand .logo-badge svg { width: 17px; height: 17px; }
.brand h1 { font-family: "Hind Siliguri", sans-serif; font-size: 20px; font-weight: 600; margin: 0; line-height: 1.25; white-space: nowrap; }
.brand h1 span { color: var(--accent); }
/* Plain header / back / close icon buttons — no circles, no tiles */
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 12px;
  border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; color: var(--ink2); flex: 0 0 auto;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--spring);
}
.icon-btn:hover { background: var(--raised); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 1px; right: 1px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
body.seller .badge { background: #1DBF73; }
.badge.bounce { animation: pop .5s var(--spring); }
@keyframes pop { 0% { transform: scale(.3); } 55% { transform: scale(1.4) rotate(-6deg); } 78% { transform: scale(.94); } 100% { transform: scale(1); } }
/* Mode switch in the header, next to notifications + messenger: small on/off button. */
.mode-toggle-hd { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 7px 4px 8px; height: 40px; cursor: pointer; flex: 0 0 auto; font-family: "Hind Siliguri", sans-serif; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.mode-toggle-hd .mt-hd-ic { display: grid; place-items: center; color: var(--ink2); }
.mode-toggle-hd .mt-hd-ic svg { width: 18px; height: 18px; }
.mode-toggle-hd .mt-hd-sw { width: 38px; height: 22px; border-radius: 999px; background: #D8D2C7; position: relative; flex: 0 0 auto; transition: background-color .25s var(--ease); }
.mode-toggle-hd .mt-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--spring); }
.mode-toggle-hd.on { border-color: var(--accent); background: #F0FDFA; }
.mode-toggle-hd.on .mt-hd-ic { color: var(--accent); }
.mode-toggle-hd.on .mt-hd-sw { background: var(--accent); }
.mode-toggle-hd.on .mt-knob { transform: translateX(16px); }
/* ---------- header search (Facebook-style) ---------- */
header { position: relative; }
.brand { margin-right: 0; }
#modeToggle { margin-left: auto; }
.hsearch { position: relative; z-index: 60; flex: 1 1 auto; min-width: 0; max-width: 250px; margin: 0 10px 0 4px; display: flex; align-items: center; gap: 8px; background: var(--raised); border: 1px solid transparent; border-radius: 999px; padding: 0 12px; height: 40px; }
.hsearch svg { width: 18px; height: 18px; color: var(--ink2); flex: 0 0 auto; }
.hsearch input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 15px; color: var(--ink); height: 100%; padding: 0; }
.hsearch input::placeholder { color: var(--ink2); }
.hsearch:focus-within { background: #fff; border-color: var(--accent); }
.hsearch-drop { position: absolute; top: calc(100% + 8px); left: 0; width: 380px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); max-height: min(60vh, 520px); overflow-y: auto; display: none; z-index: 60; }
.hsearch-drop.open { display: block; }
.hsearch-drop #searchResults { padding: 4px 14px 10px; }
.hsearch-empty { padding: 22px 16px; text-align: center; color: var(--ink2); }
.hsearch-empty .eic { width: 64px; height: 64px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; margin: 0 auto 13px; color: var(--muted); }
.hsearch-empty .eic svg { width: 28px; height: 28px; }
.hsearch-empty h3 { font-family: "Hind Siliguri", sans-serif; font-weight: 600; color: var(--ink); margin: 0 0 5px; font-size: 16px; }
.hsearch-empty p { margin: 0; font-size: 13.5px; }
@media (max-width: 1099px) {
  .brand h1 { display: none; }
  .hsearch { flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0; justify-content: center; background: transparent; border-color: transparent; cursor: pointer; }
  .hsearch svg { width: 22px; height: 22px; }
  .hsearch input { width: 0; opacity: 0; pointer-events: none; }
  .hsearch.open { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); width: auto; height: 40px; padding: 0 12px; background: var(--raised); border-color: transparent; justify-content: flex-start; }
  .hsearch.open input { width: auto; opacity: 1; pointer-events: auto; }
  .hsearch.open .hsearch-drop { width: auto; right: 0; }
}
/* Small switch used in Profile settings */
.mode-switch-sm { width: 46px; height: 27px; border-radius: 999px; background: #D8D2C7; border: 0; padding: 0; position: relative; cursor: pointer; flex: 0 0 auto; transition: background-color .25s var(--ease); }
.mode-switch-sm .mt-knob { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--spring); }
.mode-switch-sm.on { background: var(--accent); }
.mode-switch-sm.on .mt-knob { transform: translateX(19px); }
/* ---------- views ---------- */
main { flex: 1 1 auto; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; overflow-y: auto; padding: 16px 16px 104px; display: none; scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view.active { display: block; }
.view.active .card, .view.active .cta-card, .view.active .searchbar { animation: rise .3s var(--ease) backwards; }
.view.active .card:nth-of-type(2) { animation-delay: .04s; }
.view.active .card:nth-of-type(3) { animation-delay: .08s; }
.view.active .card:nth-of-type(4) { animation-delay: .12s; }
.view.active .card:nth-of-type(5) { animation-delay: .16s; }
.view.active .card:nth-of-type(6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sec-title { font-family: "Hind Siliguri", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.25; margin: 24px 2px 12px; display: flex; align-items: center; justify-content: space-between; }
.sec-title:first-child { margin-top: 2px; }
.sec-title a { font-family: "Hind Siliguri", sans-serif; font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; }
.display-title { font-family: "Hind Siliguri", sans-serif; font-size: 28px; font-weight: 500; line-height: 1.25; margin: 2px 2px 4px; color: var(--ink); }
.display-sub { font-size: 14px; color: var(--ink2); margin: 0 2px 16px; }
/* Hexagonal verified badge (hive signature) */
.vbadge { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 5px; vertical-align: -3px; flex: 0 0 auto; }
.vbadge svg { width: 16px; height: 16px; display: block; }
/* ---------- cards & shared ---------- */
.card { background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
.avatar { border-radius: 50%; object-fit: cover; background: #EEEEEE; }
.pill-btn {
  border: 0; cursor: pointer; border-radius: 14px; font-family: "Hind Siliguri", sans-serif;
  font-weight: 600; font-size: 15px; min-height: 46px; padding: 0 18px; position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--spring), transform .18s var(--spring), filter .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pill-btn svg { width: 17px; height: 17px; }
/* PRIMARY — 3D embossed: thick bottom edge + top highlight, presses DOWN on tap */
.btn-accent {
  background: linear-gradient(160deg, var(--grad1), var(--grad2) 52%, var(--grad3)); color: #fff;
  box-shadow: 0 5px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.38), inset 0 -2px 5px rgba(0,0,0,.14);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.btn-accent:hover { filter: brightness(1.04); }
.btn-accent:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 3px rgba(0,0,0,.12); }
/* Quiet secondary — flat raised surface */
.btn-soft { background: var(--raised); color: var(--ink); }
.btn-soft:hover { background: #F0EBE0; }
.btn-soft:active { transform: scale(.98); }
.btn-ghost { background: var(--raised); color: var(--ink); }
.btn-ghost:hover { background: #F0EBE0; }
.btn-ghost:active { transform: scale(.98); }
.btn-following { background: var(--raised); color: var(--ink2); }
.btn-following:active { transform: scale(.98); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stars { display: inline-flex; gap: 1px; vertical-align: -2px; color: var(--accent); }
.stars svg { width: 14px; height: 14px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 0; background: var(--raised); color: var(--ink);
  border-radius: 10px; padding: 0 15px; min-height: 40px; font-family: "Hind Siliguri", sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--spring);
}
.chip:hover { background: #F0EBE0; }
.chip:active { transform: scale(.97); }
.chip.on { background: var(--ink); color: #fff; }
body.seller .chip.on { background: var(--deep-green); }
.chip svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--accent); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.tag-online { background: #ECFDF5; color: #047857; }
.tag-offline { background: var(--accent-soft); color: var(--accent-ink); }
/* ---------- social ---------- */
.stories { display: flex; gap: 13px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 76px; text-align: center; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; transition: transform .18s var(--spring); }
.story:active { transform: scale(.94); }
.story .ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--accent); padding: 2px; margin: 0 auto; display: block; }
.story .ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; filter: saturate(1.12) contrast(1.04); }
.story.add .ring { background: var(--raised); display: grid; place-items: center; color: var(--accent); border-color: var(--line); }
.story.add .ring svg { width: 24px; height: 24px; }
.story span { display: block; font-size: 12px; font-weight: 500; margin-top: 5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer { display: flex; gap: 10px; align-items: center; padding: 12px; margin-bottom: 12px; }
.composer img { width: 42px; height: 42px; }
.composer button { flex: 1; text-align: left; border: 0; background: var(--raised); border-radius: 12px; padding: 0 14px; min-height: 44px; font-family: inherit; font-size: 14px; color: var(--ink2); cursor: pointer; transition: background-color .18s var(--ease); }
.composer button:hover { background: #F0EBE0; }
.composer .msg-btn { flex: 0 0 auto; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; background: var(--raised); color: var(--accent); display: grid; place-items: center; text-align: center; transition: background-color .18s var(--ease), transform .18s var(--spring); }
.composer .msg-btn:active { transform: scale(.94); }
.composer .msg-btn svg { width: 20px; height: 20px; }
/* Composer "Post" button (replaces the message icon) — overrides .composer button's raised bg */
.composer .composer-post-btn { flex: 0 0 auto; min-height: 44px; padding: 0 20px; font-size: 15px; text-align: center; background: linear-gradient(160deg, var(--grad1), var(--grad2) 52%, var(--grad3)); color: #fff; }
/* notifications: updates only — SMS/messages never appear here */
.notif-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-bottom: 10px; }
.notif-row.notif-unread { border-color: var(--accent); background: var(--accent-soft); }
.notif-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--raised); color: var(--accent); display: grid; place-items: center; }
.notif-ic svg { width: 19px; height: 19px; }
.notif-tx { font-size: 14px; line-height: 1.45; }
.notif-tm { font-size: 12px; color: var(--ink2); margin-top: 3px; }
.notif-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.post { padding: 20px 16px; margin-bottom: 16px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.post-head img { width: 46px; height: 46px; }
.post-head .nm { font-weight: 600; font-size: 15px; line-height: 1.3; display: flex; align-items: center; }
.post-head .tm { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.post-head .tm .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.post p { margin: 12px 0; font-size: 14px; }
.post .photo-wrap { position: relative; width: calc(100% + 32px); margin: 4px -16px 0; overflow: hidden; }
.post .photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.05)); pointer-events: none; }
.post .photo { width: 100%; aspect-ratio: 2/1; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.03) brightness(1.01); }
.post-stats { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); padding: 10px 2px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.post-stats .h-ic { display: inline-flex; margin-right: 5px; vertical-align: -3px; }
.post-stats .h-ic svg { width: 14px; height: 14px; fill: #DC2626; stroke: #DC2626; }
.post-stats .like-count { display: inline-block; }
.post-stats .like-count.bump { animation: countBump .5s var(--spring); }
@keyframes countBump { 0% { transform: scale(1); } 40% { transform: scale(1.3); color: #DC2626; } 100% { transform: scale(1); } }
.post-actions { display: flex; padding-top: 6px; gap: 4px; }
.post-actions button {
  flex: 1; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink2); min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--spring); position: relative;
}
.post-actions button:active { transform: scale(.95); background: var(--raised); }
.post-actions button svg { width: 19px; height: 19px; }
.post-actions button.liked { color: #DC2626; }
.post-actions button.liked svg { fill: #DC2626; stroke: #DC2626; }
.post-actions button .heart-pop { animation: heartPop .55s var(--spring); }
@keyframes heartPop { 0% { transform: scale(1); } 35% { transform: scale(1.4) rotate(-8deg); } 60% { transform: scale(.9); } 82% { transform: scale(1.15); } 100% { transform: scale(1); } }
.heart-particle { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #F87171; pointer-events: none; animation: particleFly .6s ease-out forwards; }
@keyframes particleFly { from { opacity: 1; transform: translate(0,0) scale(1); } to { opacity: 0; transform: translate(var(--px), var(--py)) scale(.4); } }
/* ---------- reviews ---------- */
.review { padding: 14px; margin-bottom: 12px; }
.review .rprod { display: flex; gap: 12px; }
.review .rprod img { width: 74px; height: 74px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.review .rprod .pn { font-weight: 500; font-size: 16px; line-height: 1.3; }
.review .shop-link { color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.review .shop-link svg { width: 13px; height: 13px; }
.review .rtext { margin: 10px 0; font-size: 14px; }
.review .rfoot { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.review .rfoot img { width: 28px; height: 28px; }
.review .rfoot .rname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.review .rfoot .rdate { white-space: nowrap; flex: 0 0 auto; }
.helpful { margin-left: auto; flex: 0 0 auto; white-space: nowrap; min-width: max-content; border: 0; background: var(--raised); border-radius: 10px; min-height: 40px; padding: 0 13px; font-family: inherit; font-weight: 500; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; color: var(--ink); transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--spring); font-variant-numeric: tabular-nums; }
.helpful:active { transform: scale(.96); }
.helpful svg { width: 15px; height: 15px; }
.helpful.on { color: var(--accent-dark); background: var(--accent-soft); }
.locked { text-align: center; padding: 44px 26px; margin-top: 30px; }
.locked .lk { width: 72px; height: 72px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; margin: 0 auto 16px; color: var(--accent); }
.locked .lk svg { width: 32px; height: 32px; }
.locked h3 { font-family: "Hind Siliguri", sans-serif; font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.locked p { color: var(--ink2); margin: 0 0 20px; font-size: 14px; }
/* ---------- services ---------- */
.gig { display: flex; gap: 12px; padding: 12px; margin-bottom: 12px; }
.gig > img { width: 108px; height: 108px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; filter: saturate(1.04) contrast(1.02); }
.gig .gt { font-weight: 500; font-size: 16px; line-height: 1.3; }
.gig .gp { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); margin: 4px 0; flex-wrap: nowrap; }
.gig .gp img { width: 20px; height: 20px; flex: 0 0 auto; }
.gig .gp > span { display: inline-flex; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gig .grow2 { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; gap: 8px; }
.price { font-family: "Hind Siliguri", sans-serif; font-weight: 600; font-size: 16px; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-family: "Hind Siliguri", sans-serif; font-weight: 500; font-size: 12px; color: var(--ink2); }
.gig .pill-btn, .prod .pill-btn { min-height: 40px; padding: 0 15px; font-size: 14px; }
.gig:not(.feat) [data-order-gig] { white-space: nowrap; font-size: 13px; font-weight: 600; padding: 0 12px; }
/* Seller hero — the one rich surface: solid deep green, left-aligned */
.cta-card { border: 0; background: var(--deep-green); color: #FFFFFF; border-radius: 16px; padding: 18px 16px; text-align: left; margin-bottom: 12px; position: relative; overflow: hidden; }
.cta-card h3 { font-family: "Hind Siliguri", sans-serif; font-weight: 600; margin: 0 0 4px; font-size: 17px; line-height: 1.25; }
.cta-card p { margin: 0 0 14px; color: rgba(255,251,235,.78); font-size: 14px; }
/* ---------- shop ---------- */
.searchbar { display: flex; align-items: center; gap: 9px; background: var(--raised); border: 0; border-radius: 12px; padding: 0 8px 0 14px; margin-bottom: 12px; transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.searchbar:focus-within { box-shadow: 0 0 0 2px var(--accent); background: #FFFFFF; }
.searchbar svg { width: 19px; height: 19px; color: var(--ink2); flex: 0 0 auto; }
.searchbar input { flex: 1; border: 0; outline: 0; background: none; font-family: inherit; font-size: 15px; min-height: 48px; color: var(--ink); min-width: 0; }
.search-act { flex: 0 0 auto; width: 38px; height: 38px; min-height: 38px; border: 0; border-radius: 10px; background: none; color: var(--accent-dark); cursor: pointer; display: grid; place-items: center; transition: background-color .18s var(--ease), transform .18s var(--spring); }
.search-act:hover { background: #F0EBE0; }
.search-act:active { transform: scale(.94); }
.search-act svg { width: 18px; height: 18px; }
/* AI-adaptive picks strip */
.ai-head { display: flex; align-items: center; gap: 7px; margin: 4px 2px 9px; }
.ai-head .spark { color: var(--ai); display: grid; place-items: center; flex: 0 0 auto; }
.ai-head .spark svg { width: 20px; height: 20px; }
.ai-head .at { font-family: "Hind Siliguri", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.25; }
.ai-tag { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ai); background: var(--ai-soft); padding: 3px 9px; border-radius: 6px; }
.ai-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.ai-strip::-webkit-scrollbar { display: none; }
.ai-pick { flex: 0 0 136px; overflow: hidden; cursor: pointer; text-align: left; font-family: inherit; padding: 0; }
.ai-pick img { width: 100%; height: 88px; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.03); }
.ai-pick .ab { padding: 9px 10px 10px; }
.ai-pick .an { font-weight: 500; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.ai-pick .ap { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.ai-pick .ap .price { font-size: 14px; }
.grid { display: flex; flex-direction: column; gap: 12px; }
.prod { overflow: hidden; display: flex; flex-direction: row; }
/* Single-column bento stack: one full-width anchor tile, then cards in importance order */
.prod .pimg { flex: 0 0 118px; min-height: 134px; }
.prod.feat { flex-direction: row; }
.prod.feat .pimg { flex: 0 0 46%; min-height: 184px; }
.prod.feat .pbody { justify-content: center; gap: 5px; }
.prod.feat .pn2 { font-size: 17px; padding-right: 0; }
.prod.tall { flex-direction: column; }
.prod.tall .pimg { flex: 0 0 auto; min-height: 0; }
.prod.tall .pimg img { position: static; height: auto; aspect-ratio: 16/9.5; }
.prod.tall .pn2 { padding-right: 42px; }
.feat-tag { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.gig.feat { flex-direction: column; }
.gig.feat > img { width: 100%; height: 158px; }
.gig.feat .gt { font-size: 17px; }
/* Card press feedback */
.prod, .gig, .shop-card, .person { transition: transform .18s var(--spring); }
.prod:active, .gig:active, .shop-card:active, .person:active { transform: scale(.98); }
.prod .pimg { position: relative; cursor: pointer; }
.prod .pimg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.04)); pointer-events: none; }
.prod .pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.03) brightness(1.01); }
.prod .off { position: absolute; top: 8px; left: 8px; z-index: 2; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.off-txt { color: var(--red); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.prod .pbody { padding: 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.prod .pn2 { font-weight: 500; font-size: 15px; line-height: 1.35; padding-right: 0; }
.prod .pshop { font-size: 12px; color: var(--ink2); }
.prod .prate { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.prod .prow { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 7px; gap: 6px; }
.prod .price { font-size: 17px; }
.prod .old { font-size: 12px; color: var(--muted); text-decoration: line-through; display: block; line-height: 1.2; }
/* Add-to-cart + — flat accent-soft circle */
.fab-add { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 40px; height: 40px; min-height: 40px; border-radius: 50%; border: 0; background: var(--accent-soft); color: var(--accent); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--spring), background-color .18s var(--ease); }
.fab-add svg { width: 18px; height: 18px; }
.fab-add:active, .fab-add.spun { transform: rotate(90deg) scale(1.05); }
.shop-card { display: flex; gap: 12px; padding: 12px; align-items: center; margin-bottom: 12px; }
.shop-card img { width: 58px; height: 58px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.shop-card .sn { font-weight: 500; font-size: 16px; line-height: 1.3; display: flex; align-items: center; }
.shop-card .sm { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.shop-card .pill-btn { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; flex: 0 0 auto; }
.empty { text-align: center; padding: 38px 22px; color: var(--ink2); }
.empty .eic { width: 64px; height: 64px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; margin: 0 auto 13px; color: var(--muted); }
.empty .eic svg { width: 28px; height: 28px; }
.empty h3 { font-family: "Hind Siliguri", sans-serif; font-weight: 600; color: var(--ink); margin: 0 0 5px; font-size: 17px; }
.empty p { margin: 0 0 16px; font-size: 14px; }
/* ---------- network ---------- */
.person { display: flex; gap: 12px; padding: 12px; align-items: center; margin-bottom: 12px; }
.person img { width: 58px; height: 58px; flex: 0 0 auto; }
.person .pnm { font-weight: 500; font-size: 16px; line-height: 1.3; display: flex; align-items: center; }
.person .pm { font-size: 12px; color: var(--ink2); display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .pm svg { width: 12px; height: 12px; flex: 0 0 auto; }
.interest { background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; flex: 0 0 auto; }
.src-badge { display: inline-flex; align-items: center; gap: 3px; background: var(--accent-soft); color: var(--accent-dark); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; flex: 0 0 auto; white-space: nowrap; }
.src-badge svg { width: 12px; height: 12px; flex: 0 0 auto; }
.person .pill-btn { margin-left: auto; min-height: 40px; padding: 0 13px; font-size: 14px; flex: 0 0 auto; }
.person .pbtns { margin-left: auto; display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.person .pbtns .pill-btn { margin-left: 0; }
/* Page category picker ("I am a…") */
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { border: 1px solid var(--line); background: var(--raised); color: var(--ink); border-radius: 999px; padding: 9px 14px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cat-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex: 0 0 auto; }
/* Goal progress bar */
.goal-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.goal-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.goal-done { margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 15px; }
/* Plan */
.plan-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex: 0 0 auto; }
.plan-done .plan-check { background: var(--accent); border-color: var(--accent); }
.plan-done .pnm { text-decoration: line-through; color: var(--ink2); }
/* Trend tags */
.trend-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.trend-rank { font-size: 20px; font-weight: 700; color: var(--accent); width: 28px; flex: 0 0 auto; }
.trend-tag { font-size: 17px; font-weight: 700; flex: 1 1 auto; min-width: 0; }
.trend-count { color: var(--ink2); font-size: 13px; flex: 0 0 auto; }
/* ---------- profile ---------- */
.profile-head { text-align: center; padding: 22px 16px 16px; margin-bottom: 12px; }
.profile-head .pav { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: block; border: 2px solid var(--accent); filter: saturate(1.04) contrast(1.02); }
.profile-head h3 { font-family: "Hind Siliguri", sans-serif; font-size: 20px; font-weight: 600; margin: 12px 0 2px; }
.profile-head .pbio { color: var(--ink2); font-size: 14px; margin: 0 0 10px; }
.mode-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); }
.mode-badge svg { width: 13px; height: 13px; }
.pstats { display: flex; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 13px; }
.pstats div { flex: 1; }
.pstats b { font-family: "Hind Siliguri", sans-serif; font-size: 20px; font-weight: 600; display: block; line-height: 1.25; font-variant-numeric: tabular-nums; }
.pstats span { font-size: 12px; color: var(--muted); }
.plist { padding: 0 16px; margin-bottom: 12px; }
.prow-item { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 56px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-family: inherit; padding: 8px 0; transition: background-color .18s var(--ease), transform .18s var(--spring); color: var(--ink); }
.prow-item:last-child { border-bottom: 0; }
.prow-item:active { transform: scale(.99); }
.prow-item .pic { width: 20px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ink2); }
.prow-item .pic svg { width: 20px; height: 20px; }
.prow-item .pt { font-weight: 500; font-size: 15px; line-height: 1.3; }
.prow-item .ps { font-size: 12px; color: var(--ink2); }
.prow-item .chev { margin-left: auto; color: var(--muted); flex: 0 0 auto; display: grid; place-items: center; }
.prow-item .chev svg { width: 17px; height: 17px; }
.prow-item.danger .pic { color: var(--red); }
.prow-item.danger .pt { color: var(--red); }
.lang-chip { border: 0; cursor: pointer; border-radius: 10px; padding: 0 13px; min-height: 36px; font-family: inherit; font-size: 13px; font-weight: 600; background: var(--raised); color: var(--ink2); transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--spring); }
.lang-chip:active { transform: scale(.96); }
.lang-chip.on { background: var(--ink); color: #fff; }
/* ---------- bottom nav ---------- */
nav.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  background: rgba(255,255,255,var(--glass-o)); backdrop-filter: blur(22px) saturate(1.7); -webkit-backdrop-filter: blur(22px) saturate(1.7);
  border-radius: 20px; box-shadow: var(--shadow-float); border: 1px solid var(--line);
  display: flex; padding: 6px; gap: 2px;
}
.nav-pill { display: none; }
nav.tabs button {
  flex: 1; border: 0; background: none; cursor: pointer; font-family: inherit; border-radius: 12px;
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 500; color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease), transform .18s var(--spring); padding: 0 1px; position: relative; z-index: 1;
  white-space: nowrap;
}
nav.tabs button svg { width: 21px; height: 21px; }
nav.tabs button:active { transform: scale(.94); }
nav.tabs button.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
nav.tabs button.on svg { color: var(--accent); }
/* ---------- overlays / sheets ---------- */
.sheet {
  position: absolute; inset: 0; z-index: 40; background: var(--bg);
  transform: translateX(102%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column;
}
.sheet.open { transform: none; }
/* Header dropdowns (Facebook-style): small panels under the top bar, never a full page */
.sheet.drop {
  inset: auto;
  top: 85px;
  right: 12px;
  left: auto;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: min(560px, calc(100dvh - 101px));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transform: translateY(-8px) scale(.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .2s var(--ease), opacity .2s var(--ease), visibility .2s;
}
.sheet.drop.open {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FFFFFF; }
.sheet-head .tt { font-family: "Hind Siliguri", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.25; }
.sheet-head .ts { font-size: 12px; color: var(--ink2); }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px; scrollbar-width: none; }
.sheet-body::-webkit-scrollbar { display: none; }
/* Search results feed — Facebook-style post-like cards in the middle */
.sfeed-head { font-size: 18px; font-weight: 700; margin: 2px 0 12px; }
.sfeed-card { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; font-family: inherit; color: var(--ink); }
.sfeed-card img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; }
.sfeed-card img.round { border-radius: 50%; }
.sfeed-card b { display: block; font-size: 15.5px; }
.sfeed-card small { display: block; font-size: 13px; color: var(--ink2); margin-top: 2px; }
.sres-all { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 2px 2px; margin-top: 6px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.sres-all svg { width: 17px; height: 17px; flex: 0 0 auto; }
/* Product page — inline detail in the middle, top bar + sidebars stay visible */
.ppage .mimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.03); }
.ppage .mbody { padding: 16px 18px 18px; }
.ppage .mdesc { color: var(--ink2); font-size: 14px; margin: 8px 0 14px; }
.ppage .mrow { display: flex; gap: 10px; margin-top: 14px; }
.ppage .mrow .pill-btn { flex: 1; min-height: 50px; font-size: 15px; }
.sres-sec { font-size: 12.5px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; padding: 14px 2px 6px; }
.sres-sec:first-child { padding-top: 2px; }
.sres-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 2px; cursor: pointer; font-family: inherit; color: var(--ink); }
.sres-row:last-child { border-bottom: 0; }
.sres-row:active { background: var(--raised); }
.sres-row img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.sres-row img.round { border-radius: 50%; }
.sres-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sres-row b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres-row small { font-size: 12.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Inbox: flat rows with hairline separators */
.chat-row { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 72px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 2px; margin: 0; cursor: pointer; font-family: inherit; color: var(--ink); transition: background-color .18s var(--ease); }
.chat-row:last-child { border-bottom: 0; }
.chat-row:active { background: var(--raised); }
.chat-row .cw { position: relative; flex: 0 0 auto; }
.chat-row img { width: 50px; height: 50px; display: block; }
.chat-row .on-dot { position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
.chat-row .cn { font-weight: 500; font-size: 16px; }
.chat-row .cm { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; display: inline-block; vertical-align: bottom; }
.chat-row .ct { margin-left: auto; text-align: right; flex: 0 0 auto; }
.chat-row .ct .tm2 { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.unread { background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; margin-top: 4px; padding: 0 5px; font-variant-numeric: tabular-nums; }
.thread-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 9px; background: #FFFFFF; scrollbar-width: none; }
.thread-body::-webkit-scrollbar { display: none; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: bubbleIn .3s var(--ease) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble.them { background: var(--raised); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.bubble .bt { display: block; font-size: 10px; opacity: .65; margin-top: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.day-sep { align-self: center; font-size: 11px; color: var(--ink2); background: var(--raised); padding: 4px 13px; border-radius: 999px; font-weight: 500; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); align-items: center; }
.chat-input input { flex: 1; border: 0; border-radius: 12px; padding: 0 14px; min-height: 48px; font-family: inherit; font-size: 15px; outline: 0; min-width: 0; background: var(--raised); transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.chat-input input:focus { box-shadow: 0 0 0 2px var(--accent); background: #FFFFFF; }
.send-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: linear-gradient(155deg, var(--grad1), var(--grad2) 55%, var(--grad3)); box-shadow: 0 4px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.4); color: #fff; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; transition: box-shadow .18s var(--spring), transform .18s var(--spring), filter .18s var(--ease); }
.send-btn:hover { filter: brightness(1.04); }
.send-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.3); }
.send-btn svg { width: 20px; height: 20px; }
.modal-wrap { position: absolute; inset: 0; z-index: 50; background: rgba(23,18,8,.42); display: none; align-items: flex-end; backdrop-filter: blur(7px) saturate(1.3); -webkit-backdrop-filter: blur(7px) saturate(1.3); }
.modal-wrap.open { display: flex; }
.modal { background: var(--bg); border-radius: 20px 20px 0 0; width: 100%; max-height: 88%; overflow-y: auto; padding: 0 0 calc(18px + env(safe-area-inset-bottom)); animation: up .35s var(--ease); scrollbar-width: none; box-shadow: var(--shadow-float); }
/* Confirmation snippet — compact centred card */
.modal-wrap.center { align-items: center; justify-content: center; padding: 20px; }
.modal.snippet { border-radius: 20px; max-height: none; padding-bottom: 18px; box-shadow: var(--shadow-float); }
.snippet .srow { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.snippet .srow.total { font-family: "Hind Siliguri", sans-serif; font-size: 17px; font-weight: 600; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 9px; }
.modal::-webkit-scrollbar { display: none; }
@keyframes up { from { transform: translateY(48px); opacity: .3; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.modal .grab { width: 40px; height: 5px; border-radius: 99px; background: #DDDDDD; margin: 10px auto 4px; }
.modal-img-wrap { position: relative; }
.modal-img-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.04)); pointer-events: none; }
.modal .mimg { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.03); }
.modal .mbody { padding: 16px 18px 0; }
.modal h3 { font-family: "Hind Siliguri", sans-serif; font-size: 20px; font-weight: 600; margin: 0 0 4px; line-height: 1.25; }
.modal .mdesc { color: var(--ink2); font-size: 14px; margin: 8px 0 14px; }
.modal .mrow { display: flex; gap: 10px; margin-top: 14px; }
.modal .mrow .pill-btn { flex: 1; min-height: 50px; font-size: 15px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-radius: 12px; padding: 0 14px; min-height: 50px;
  font-family: inherit; font-size: 15px; background: var(--raised); outline: 0; color: var(--ink);
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { padding: 12px 14px; min-height: 88px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: 0 0 0 2px var(--accent); background: #FFFFFF; }
.star-pick { display: flex; gap: 6px; }
.star-pick button { border: 0; background: none; cursor: pointer; padding: 4px; min-height: 44px; color: var(--accent); transition: transform .18s var(--spring); }
.star-pick button:active { transform: scale(1.2) rotate(-6deg); }
.star-pick svg { width: 30px; height: 30px; }
.cart-row { display: flex; gap: 11px; padding: 11px; align-items: center; margin-bottom: 10px; }
.cart-row img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; filter: saturate(1.04) contrast(1.02); }
.qty { display: flex; align-items: center; gap: 2px; background: var(--raised); border-radius: 999px; padding: 4px; }
.qty button { width: 34px; height: 34px; min-height: 34px; border-radius: 50%; border: 0; background: #FFFFFF; cursor: pointer; font-size: 16px; font-weight: 600; display: grid; place-items: center; color: var(--ink); transition: transform .18s var(--spring), background-color .18s var(--ease); }
.qty button:active { transform: scale(.9); }
.qty b { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.call-overlay { position: absolute; inset: 0; z-index: 60; background: #1C1C1C; color: #fff; display: none; flex-direction: column; align-items: center; padding: 70px 24px 44px; text-align: center; }
.call-overlay.open { display: flex; animation: fadein .3s ease; }
.call-overlay img { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.25); filter: saturate(1.04) contrast(1.02); }
.call-overlay h3 { font-family: "Hind Siliguri", sans-serif; font-size: 24px; font-weight: 600; margin: 18px 0 4px; }
.call-overlay p { color: rgba(255,255,255,.65); margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.call-end { margin-top: auto; width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--red); box-shadow: 0 5px 0 #7F1D1D, inset 0 1px 0 rgba(255,255,255,.3); color: #fff; cursor: pointer; display: grid; place-items: center; transition: box-shadow .18s var(--spring), transform .18s var(--spring); }
.call-end:active { transform: translateY(3px); box-shadow: 0 2px 0 #7F1D1D, inset 0 1px 0 rgba(255,255,255,.3); }
.call-end svg { width: 28px; height: 28px; transform: rotate(135deg); }
.call-acts { display: flex; gap: 34px; margin-top: 38px; }
.call-acts .ca { text-align: center; font-size: 12px; color: rgba(255,255,255,.75); }
.call-acts .ca div { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.13); display: grid; place-items: center; margin-bottom: 6px; transition: transform .18s var(--spring), background-color .18s var(--ease); }
.call-acts .ca:active div { transform: scale(.94); }
.call-acts svg { width: 23px; height: 23px; }
.toast {
  position: absolute; left: 50%; bottom: 100px; transform: translate(-50%, 16px) scale(.96); z-index: 70;
  background: #262626; color: #FFFFFF; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); box-shadow: var(--shadow-float); white-space: nowrap; max-width: 92%;
  overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
/* ---- Luminous Blue AI/trust signal, glanceable strip, stat tiles ---- */
.ai-load { padding: 14px; margin-bottom: 12px; }
.ai-load-t { font-weight: 500; font-size: 14px; color: var(--ai); }
.ai-bar { height: 6px; border-radius: 99px; background: var(--ai-soft); overflow: hidden; margin: 10px 0 12px; }
.ai-bar i { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--ai); animation: aiSlide 1.1s ease-in-out infinite; }
@keyframes aiSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(280%); } }
.ai-skels { display: flex; gap: 10px; }
.ai-skels span { flex: 1; height: 64px; border-radius: 12px; background: #EDF1F8; animation: aiPulse 1.2s ease-in-out infinite alternate; }
@keyframes aiPulse { from { opacity: .5; } to { opacity: 1; } }
.ai-actions { display: flex; align-items: center; gap: 8px; padding: 0 2px 12px; }
.ai-browse { margin-left: auto; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ai); padding: 6px 4px; min-height: 40px; }
.ai-load .ai-browse { margin-left: 0; padding-left: 0; }
.ai-off { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 12px; font-size: 13px; color: var(--ink2); }
.ai-off span { flex: 1; }
.status-strip { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 14px; margin-bottom: 12px; cursor: pointer; font-family: inherit; color: var(--ink); text-align: left; }
.status-strip .sic { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; background: var(--raised); display: grid; place-items: center; color: var(--accent-dark); }
.status-strip .sic svg { width: 20px; height: 20px; }
.status-strip .stt { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.status-strip .sts { display: block; font-size: 12px; color: var(--ink2); }
.status-strip .progress { display: block; height: 6px; border-radius: 99px; background: var(--track); margin-top: 6px; overflow: hidden; }
.status-strip .progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s var(--ease); }
.status-strip .chev { color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.status-strip .chev svg { width: 17px; height: 17px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.stat-tile { padding: 14px; font-family: inherit; color: var(--ink); text-align: left; }
button.stat-tile { cursor: pointer; width: 100%; }
.stat-tile .sv { display: block; font-family: "Hind Siliguri", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-tile .sl { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.mini-orders { margin-top: 7px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink2); }
.mini-orders span { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-orders i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.review .rprod img, .shop-card img { filter: saturate(1.04) contrast(1.02); }
.person img, .post-head img, .chat-row img { filter: saturate(1.03) contrast(1.02); }

/* ---------- desktop sidebars (Facebook-style, >= 1100px) ---------- */
.side { display: none; }
.desk { display: contents; }
@media (min-width: 1100px) {
  .desk { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; column-gap: 16px; padding: 0 12px; flex: 1 1 auto; min-height: 0; }
  .phone { background: var(--raised); }
  main { min-width: 0; min-height: 0; }
  .view { padding: 20px 16px 28px; }
  .view > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  /* Single top bar on desktop: brand + search + menu + icons in one row */
  nav.tabs { display: flex; position: static; flex: 1 1 auto; min-width: 0; left: auto; right: auto; bottom: auto; z-index: 5; border: 0; border-radius: 0; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; justify-content: flex-start; }
  nav.tabs button { flex: 0 0 112px; min-height: 46px; }
  nav.tabs button[data-tab="profile"] { display: none; }
  .side { display: block; overflow-y: auto; padding: 12px; scrollbar-width: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; height: fit-content; margin: 20px 0 28px; }
  .side::-webkit-scrollbar { display: none; }
  .side-title { font-size: 15px; font-weight: 600; color: var(--ink2); margin: 14px 10px 6px; }
  .side-title:first-child { margin-top: 2px; }
  .side-profile { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; }
  .side-profile img { width: 40px; height: 40px; }
  .side-profile:hover, .side-nav button:hover, .side-contact:hover { background: rgba(23,23,23,.05); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
  .side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left; }
  .side-nav button svg { width: 24px; height: 24px; color: var(--ink2); flex: 0 0 auto; }
  .side-nav button.on { background: var(--accent-soft); font-weight: 600; }
  .side-nav button.on svg { color: var(--accent); }
  .sponsored { display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; background: #fff; cursor: pointer; font-family: inherit; text-align: left; overflow: hidden; box-shadow: var(--shadow-sm); }
  .side .sponsored { box-shadow: none; border: 1px solid var(--line); }
  .sponsored img { width: 100%; height: 150px; object-fit: cover; display: block; }
  .sponsored .sp-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
  .sponsored .sp-name { font-size: 14px; font-weight: 600; color: var(--ink); }
  .sponsored .sp-shop { font-size: 12.5px; color: var(--ink2); }
  .sponsored .sp-price { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
  .sponsored .sp-price s { font-weight: 400; color: var(--muted); margin-left: 6px; }
  /* sidebar ad slot (placeholder) */
  .side-ad { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .side-ad-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .side-ad-visual { display: grid; place-items: center; height: 96px; margin-top: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
  .side-ad-visual svg { width: 44px; height: 44px; }
  .side-ad-title { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
  .side-ad-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink2); }
  .side-ad-btn { width: 100%; margin-top: 12px; padding: 9px 14px; border: 0; border-radius: 999px; background: linear-gradient(160deg, var(--grad1), var(--grad2) 52%, var(--grad3)); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.38); text-shadow: 0 1px 2px rgba(0,0,0,.18); }
  .side-ad-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.3); }
  .side-contact { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); text-align: left; }
  .side-contact .cw { position: relative; flex: 0 0 auto; }
  .side-contact img { width: 36px; height: 36px; display: block; }
  .side-contact .on-dot { position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid var(--raised); }
  .side-contact .cn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-contact .unread { background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 5px; }
}

/* ---------- shop runway (Solène-style, inside the Shop view) ---------- */
#shopRunway {
  --rw-bg: #f6f2ea; --rw-bgsoft: #ece6d9; --rw-panel: #fffdf8;
  --rw-ink: #1d1a16; --rw-inksoft: #57534a; --rw-line: #d9d1c1;
  --rw-accent: #0F766E; --rw-accent-ink: #ffffff; --rw-gold: #a97e2f;
  --rw-shadow: 0 24px 48px -18px rgba(29, 26, 22, .35);
  --rw-word: rgba(29, 26, 22, .08); --rw-tint: #ecdfc8;
  --rw-floor: radial-gradient(120% 90% at 50% 0%, #faf7f1 0%, var(--rw-bgsoft) 78%);
  background-color: var(--rw-bg); border-radius: 20px;
  transition: background-color .6s ease;
  font-family: "Hind Siliguri", system-ui, sans-serif; color: var(--rw-ink);
}
#shopRunway[hidden] { display: none; }
#view-shop #shopRunway { max-width: none; }
/* runway mode: hide the products grid, show only the runway */
#view-shop.runway-on #shopCta,
#view-shop.runway-on .searchbar,
#view-shop.runway-on #shopFilters,
#view-shop.runway-on #orderStrip,
#view-shop.runway-on #aiPicks,
#view-shop.runway-on #productGrid,
#view-shop.runway-on #shopEmpty,
#view-shop.runway-on #shopStats,
#view-shop.runway-on .sec-title,
#view-shop.runway-on #shopList { display: none !important; }
#shopRunway .rw-serif { font-family: "Cormorant Garamond", "Hind Siliguri", serif; }

/* runway layout */
#shopRunway .rw-wrap {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(18px, 3.5vw, 40px) clamp(16px, 4vw, 40px) 8px;
  max-width: 1440px; margin: 0 auto; align-items: start;
}
@media (max-width: 940px) { #shopRunway .rw-wrap { grid-template-columns: 1fr; } }
#shopRunway .rw-stage {
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--rw-floor);
  border: 1px solid var(--rw-line);
  min-height: 600px;
  display: flex; flex-direction: column;
}
#shopRunway .rw-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-color: var(--rw-tint); opacity: .45;
  transition: background-color .6s ease;
  pointer-events: none;
}
#shopRunway .rw-stage-num {
  position: absolute; inset: auto 0 12% 0; text-align: center; z-index: 1;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600;
  font-size: clamp(9rem, 24vw, 19rem); line-height: 1;
  color: var(--rw-word); pointer-events: none; user-select: none;
}
#shopRunway .rw-stage-top {
  position: relative; z-index: 80; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px 0;
}
#shopRunway .rw-stage-top .rw-lbl { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rw-inksoft); font-weight: 600; }
#shopRunway .rw-counter { font-family: "Cormorant Garamond", serif; font-size: 1.35rem; font-weight: 600; }
#shopRunway .rw-counter span { color: var(--rw-inksoft); font-size: 1rem; }

/* depth-of-field queue: models stand one behind another */
#shopRunway .rw-depth {
  position: relative; z-index: 2; flex: 1; min-height: 430px;
  perspective: 1100px; touch-action: pan-y; cursor: grab;
}
#shopRunway .rw-depth.dragging { cursor: grabbing; }
#shopRunway .rw-card3d {
  position: absolute; left: 50%; top: 47%;
  width: min(348px, 68vw);
  transform-origin: 50% 92%;
  will-change: transform, filter, opacity;
  transition: transform .6s cubic-bezier(.22, .9, .28, 1), filter .6s ease, opacity .6s ease;
}
#shopRunway .rw-depth.live .rw-card3d { transition: none; }
#shopRunway .rw-card3d figure { margin: 0; }
#shopRunway .rw-card3d .rw-ph { position: relative; }
#shopRunway .rw-card3d img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%;
  border-radius: 14px; display: block; box-shadow: var(--rw-shadow);
  border: 1px solid var(--rw-line);
  -webkit-user-drag: none; user-select: none;
}
#shopRunway .rw-card3d figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 12px 4px 0; opacity: 0; transition: opacity .35s ease;
}
#shopRunway .rw-card3d.front figcaption { opacity: 1; }
#shopRunway .rw-card3d .rw-s-name { font-weight: 600; font-size: 1rem; }
#shopRunway .rw-card3d .rw-s-no { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--rw-accent); font-size: 1.05rem; white-space: nowrap; }

/* white dots marking each piece on the front model */
#shopRunway .rw-dot {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%; border: 2px solid rgba(20, 16, 10, .35);
  background: rgba(255, 255, 255, .94); cursor: pointer; z-index: 6;
  display: grid; place-items: center; padding: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .18s ease;
}
#shopRunway .rw-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rw-accent); }
#shopRunway .rw-card3d.front .rw-dot { opacity: 1; pointer-events: auto; }
#shopRunway .rw-card3d:not(.front) .rw-dot { display: none; }
#shopRunway .rw-dot.hl, #shopRunway .rw-dot:hover { transform: scale(1.3); }
#shopRunway .rw-floor-line {
  position: absolute; left: 6%; right: 6%; bottom: 74px; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--rw-line) 18%, var(--rw-line) 82%, transparent);
}
#shopRunway .rw-stage-bottom { position: relative; z-index: 80; padding: 6px 18px 18px; }
#shopRunway .rw-stage-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#shopRunway .rw-drag-hint { color: var(--rw-inksoft); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
#shopRunway .rw-drag-hint .rw-arr { font-size: 1.1rem; color: var(--rw-accent); font-weight: 700; }
@media (max-width: 560px) { #shopRunway .rw-drag-hint .rw-txt { display: none; } }
@media (max-width: 640px) {
  #shopRunway .rw-stage-controls { flex-wrap: wrap; }
  #shopRunway .rw-ticks { order: 3; width: 100%; justify-content: center; margin-top: 12px; }
  #shopRunway .rw-tick { width: 22px; }
  #shopRunway .rw-tick.active { width: 34px; }
}
#shopRunway .rw-ticks { display: flex; gap: 7px; align-items: center; }
#shopRunway .rw-tick {
  width: 26px; height: 4px; border-radius: 99px; border: 0; padding: 0;
  background: var(--rw-line); cursor: pointer; min-height: 4px;
  transition: background .3s ease, width .3s ease;
}
#shopRunway .rw-tick.active { background: var(--rw-accent); width: 40px; }
#shopRunway .rw-nav-btns { display: flex; gap: 8px; }
#shopRunway .rw-nav-btn {
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rw-ink); background: transparent; color: var(--rw-ink);
  font-size: 1.15rem; display: grid; place-items: center; font-family: inherit;
}
#shopRunway .rw-nav-btn:hover { background: var(--rw-ink); color: var(--rw-bg); }
#shopRunway .rw-nav-btn:disabled { opacity: .3; cursor: default; background: transparent; color: var(--rw-ink); }

/* look panel */
#shopRunway .rw-panel {
  background: var(--rw-panel); border: 1px solid var(--rw-line); border-radius: 20px;
  padding: clamp(20px, 3vw, 30px); box-shadow: var(--rw-shadow);
  position: sticky; top: 16px;
}
@media (max-width: 940px) { #shopRunway .rw-panel { position: static; } }
#shopRunway .rw-panel .rw-kicker { color: var(--rw-accent); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; }
#shopRunway .rw-panel h1 {
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.05; margin: 8px 0 2px;
}
#shopRunway .rw-panel .rw-bn-name { font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; }
#shopRunway .rw-panel .rw-seller { color: var(--rw-inksoft); font-size: .9rem; margin: 0 0 18px; }
#shopRunway .rw-panel .rw-seller b { color: var(--rw-gold); font-weight: 600; }
#shopRunway .rw-items { list-style: none; margin: 0; padding: 0; }
#shopRunway .rw-items li {
  display: flex; align-items: baseline; gap: 8px; padding: 11px 8px;
  border-bottom: 1px dashed var(--rw-line); border-radius: 8px;
  transition: background .2s ease;
}
#shopRunway .rw-items li:last-child { border-bottom: 0; }
#shopRunway .rw-items li.hl { background: color-mix(in srgb, var(--rw-accent) 9%, transparent); }
#shopRunway .rw-items .rw-i-name { font-weight: 500; }
#shopRunway .rw-items .rw-i-sub { display: block; color: var(--rw-inksoft); font-size: .84rem; font-weight: 400; }
#shopRunway .rw-items .rw-i-dots { flex: 1; border-bottom: 2px dotted var(--rw-line); transform: translateY(-4px); }
#shopRunway .rw-items .rw-i-price { font-weight: 700; white-space: nowrap; }
#shopRunway .rw-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--rw-ink); }
#shopRunway .rw-total-row .rw-t-lbl { font-weight: 600; }
#shopRunway .rw-total-row .rw-t-val { font-family: "Cormorant Garamond", serif; font-size: 1.9rem; font-weight: 600; }
#shopRunway .rw-add-btn {
  margin-top: 16px; width: 100%; border: 0; cursor: pointer;
  background: linear-gradient(160deg, var(--grad1), var(--grad2) 52%, var(--grad3)); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.02rem;
  padding: 14px; border-radius: 12px; min-height: 52px;
  box-shadow: 0 5px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.38), inset 0 -2px 5px rgba(0,0,0,.14);
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
#shopRunway .rw-add-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 3px rgba(0,0,0,.12); }
#shopRunway .rw-add-btn:disabled { opacity: .55; cursor: default; }
#shopRunway .rw-panel .rw-note { color: var(--rw-inksoft); font-size: .86rem; margin: 12px 0 0; text-align: center; }

/* runway sections */
#shopRunway .rw-ring-sec, #shopRunway .rw-wardrobe, #shopRunway .rw-lookbook, #shopRunway .rw-studio { max-width: 1440px; margin: 0 auto; padding: clamp(30px, 5vw, 56px) clamp(16px, 4vw, 40px) 10px; }
#shopRunway .rw-ring-sec h2, #shopRunway .rw-wardrobe h2, #shopRunway .rw-lookbook h2, #shopRunway .rw-studio h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 4px; }
#shopRunway .rw-ring-sec .rw-sub, #shopRunway .rw-wardrobe .rw-sub, #shopRunway .rw-lookbook .rw-sub, #shopRunway .rw-studio .rw-sub { color: var(--rw-inksoft); margin: 0 0 22px; }

/* AI Try-On Studio */
#shopRunway .rw-cmp {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--rw-line); box-shadow: var(--rw-shadow);
  aspect-ratio: 16 / 8.4; cursor: ew-resize; touch-action: none; background: var(--rw-bgsoft);
}
@media (max-width: 640px) { #shopRunway .rw-cmp { aspect-ratio: 4 / 3.6; } }
#shopRunway .rw-cmp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; user-select: none; -webkit-user-drag: none; }
#shopRunway .rw-cmp-before { clip-path: inset(0 calc(100% - var(--cmp, 50%)) 0 0); }
#shopRunway .rw-cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--cmp, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); z-index: 3; pointer-events: none; }
#shopRunway .rw-cmp-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #1d1a16;
  display: grid; place-items: center; font-size: 1.05rem; box-shadow: var(--rw-shadow);
}
#shopRunway .rw-cmp-tag { position: absolute; top: 12px; z-index: 2; background: rgba(20, 16, 10, .72); color: #fff; font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
#shopRunway .rw-tag-before { left: 12px; }
#shopRunway .rw-tag-after { right: 12px; }
#shopRunway .rw-cmp-cap { color: var(--rw-inksoft); font-size: .9rem; margin: 10px 2px 24px; }
#shopRunway .rw-studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; }
@media (max-width: 820px) { #shopRunway .rw-studio-grid { grid-template-columns: 1fr; } }
#shopRunway .rw-studio-card {
  background: var(--rw-panel); border: 1px solid var(--rw-line); border-radius: 20px;
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--rw-shadow);
}
#shopRunway .rw-step-lbl { font-weight: 700; font-size: .98rem; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; }
#shopRunway .rw-step-lbl:first-child { margin-top: 0; }
#shopRunway .rw-step-lbl span { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--rw-accent); font-size: 1.2rem; }
#shopRunway .rw-drop {
  border: 2px dashed var(--rw-line); border-radius: 14px; min-height: 190px;
  display: grid; place-items: center; text-align: center; padding: 14px;
  cursor: pointer; background: var(--rw-bgsoft); overflow: hidden;
}
#shopRunway .rw-drop.over { border-color: var(--rw-accent); }
#shopRunway .rw-drop img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 8px; display: block; }
#shopRunway .rw-drop-big { display: block; font-weight: 600; font-size: 1rem; }
#shopRunway .rw-drop-small { display: block; color: var(--rw-inksoft); font-size: .87rem; margin-top: 5px; }
#shopRunway .rw-ghost-btn {
  margin-top: 10px; width: 100%; background: transparent; border: 1px solid var(--rw-line);
  color: var(--rw-ink); border-radius: 10px; font: inherit; font-weight: 600;
  padding: 10px; cursor: pointer; min-height: 42px;
}
#shopRunway .rw-ghost-btn:hover { border-color: var(--rw-accent); color: var(--rw-accent); }
#shopRunway .rw-field-row { display: flex; gap: 12px; }
@media (max-width: 480px) { #shopRunway .rw-field-row { flex-direction: column; } #shopRunway .rw-field-sm { flex: 1 !important; } }
#shopRunway .rw-field { flex: 1; display: block; font-size: .88rem; font-weight: 600; color: var(--rw-inksoft); }
#shopRunway .rw-field-sm { flex: 0 0 130px; }
#shopRunway .rw-field input {
  width: 100%; margin-top: 6px; font: inherit; font-weight: 500; color: var(--rw-ink);
  background: var(--rw-bg); border: 1px solid var(--rw-line); border-radius: 10px;
  padding: 10px 12px; min-height: 44px;
}
#shopRunway .rw-style-pills { display: flex; flex-wrap: wrap; gap: 8px; }
#shopRunway .rw-pill {
  border: 1px solid var(--rw-line); background: var(--rw-panel); color: var(--rw-ink);
  border-radius: 999px; padding: 8px 15px; cursor: pointer; font: inherit;
  font-size: .9rem; font-weight: 500; min-height: 38px;
}
#shopRunway .rw-pill.active { border-color: var(--rw-accent); background: color-mix(in srgb, var(--rw-accent) 10%, var(--rw-panel)); box-shadow: 0 0 0 1px var(--rw-accent); }
#shopRunway .rw-progress { margin-top: 16px; }
#shopRunway .rw-progress[hidden] { display: none; }
#shopRunway .rw-bar { height: 8px; border-radius: 99px; background: var(--rw-bgsoft); overflow: hidden; }
#shopRunway .rw-bar span { display: block; height: 100%; width: 0; background: var(--rw-accent); border-radius: 99px; transition: width .5s ease; }
#shopRunway .rw-steps { list-style: none; margin: 12px 0 0; padding: 0; }
#shopRunway .rw-steps li { padding: 5px 0 5px 26px; position: relative; color: var(--rw-inksoft); font-size: .93rem; }
#shopRunway .rw-steps li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--rw-line); }
#shopRunway .rw-steps li.on { color: var(--rw-ink); font-weight: 600; }
#shopRunway .rw-steps li.on::before { border-color: var(--rw-accent); background: var(--rw-accent); }
#shopRunway .rw-result-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rw-line); aspect-ratio: 3 / 3.2;
  display: grid; place-items: center; background: var(--rw-bgsoft);
  transition: background .5s ease;
}
#shopRunway .rw-result-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
#shopRunway .rw-result-empty { color: var(--rw-inksoft); text-align: center; padding: 24px; margin: 0; font-size: .95rem; line-height: 1.7; }
#shopRunway .rw-result-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--rw-accent); color: var(--rw-accent-ink); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; padding: 5px 11px; border-radius: 999px;
}
#shopRunway .rw-result-meta { font-weight: 600; margin: 12px 0 0; }
#shopRunway .rw-studio-note { color: var(--rw-inksoft); font-size: .85rem; margin: 12px 0 0; line-height: 1.6; }
#shopRunway .rw-drop img[hidden], #shopRunway .rw-result-frame img[hidden], #shopRunway .rw-result-chip[hidden] { display: none; }

/* ring of looks, seen from above */
#shopRunway .rw-ring-stage {
  position: relative; width: min(540px, 100%); aspect-ratio: 1 / 1;
  margin: 6px auto 0; --r: min(188px, calc((100vw - 132px) / 2));
  overflow: hidden;
}
#shopRunway .rw-ring-disc {
  position: absolute; inset: 12% 12%; border-radius: 50%;
  border: 1px dashed var(--rw-line);
  background: radial-gradient(circle, transparent 55%, color-mix(in srgb, var(--rw-tint) 45%, transparent) 100%);
}
#shopRunway .rw-ring { position: absolute; inset: 0; animation: rw-spin 48s linear infinite; }
#shopRunway .rw-ring-stage:hover .rw-ring, #shopRunway .rw-ring-stage:focus-within .rw-ring,
#shopRunway .rw-ring-stage:hover .rw-ring-card, #shopRunway .rw-ring-stage:focus-within .rw-ring-card { animation-play-state: paused; }
@keyframes rw-spin { to { transform: rotate(360deg); } }
@keyframes rw-rev { from { transform: translate(-50%, -50%) rotate(var(--na)); } to { transform: translate(-50%, -50%) rotate(calc(var(--na) - 360deg)); } }
#shopRunway .rw-ring-pos { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--r))); }
#shopRunway .rw-ring-card {
  position: absolute; left: 0; top: 0; width: 106px;
  transform: translate(-50%, -50%) rotate(var(--na));
  animation: rw-rev 48s linear infinite;
  background: var(--rw-panel); border: 1px solid var(--rw-line); border-radius: 12px;
  padding: 5px; cursor: pointer; font: inherit; color: var(--rw-ink); text-align: left;
  box-shadow: var(--rw-shadow);
}
@media (max-width: 560px) { #shopRunway .rw-ring-card { width: 84px; } }
#shopRunway .rw-ring-card img { width: 100%; aspect-ratio: 3 / 3.1; object-fit: cover; object-position: 50% 15%; border-radius: 8px; display: block; }
#shopRunway .rw-ring-card .rw-rc-name { display: block; font-size: .74rem; font-weight: 600; padding: 6px 2px 2px; line-height: 1.3; }
#shopRunway .rw-ring-card.active { border-color: var(--rw-accent); box-shadow: 0 0 0 1px var(--rw-accent), var(--rw-shadow); }
#shopRunway .rw-ring-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none; width: 46%;
}
#shopRunway .rw-ring-center .rw-rc-lbl { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rw-inksoft); font-weight: 600; }
#shopRunway .rw-ring-center .rw-rc-name2 { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 4.6vw, 1.8rem); line-height: 1.15; margin: 4px 0 2px; }
#shopRunway .rw-ring-center .rw-rc-price { font-weight: 700; color: var(--rw-accent); }

/* wardrobe */
#shopRunway .rw-ward-wrap { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; }
@media (max-width: 760px) { #shopRunway .rw-ward-wrap { grid-template-columns: 1fr; } }
#shopRunway .rw-ward-model { margin: 0; }
#shopRunway .rw-ward-model img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%;
  border-radius: 16px; border: 1px solid var(--rw-line); box-shadow: var(--rw-shadow); display: block;
}
#shopRunway .rw-ward-model figcaption { padding: 10px 4px 0; color: var(--rw-inksoft); font-size: .9rem; }
#shopRunway .rw-ward-model figcaption b { color: var(--rw-ink); }
#shopRunway .rw-ward-group { margin-bottom: 20px; }
#shopRunway .rw-ward-group h3 { margin: 0 0 10px; font-size: .95rem; letter-spacing: .04em; }
#shopRunway .rw-ward-group h3 span { color: var(--rw-accent); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.05rem; margin-right: 6px; }
#shopRunway .rw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#shopRunway .rw-chip {
  border: 1px solid var(--rw-line); background: var(--rw-panel); color: var(--rw-ink);
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font: inherit;
  font-size: .9rem; font-weight: 500; min-height: 38px;
}
#shopRunway .rw-chip small { color: var(--rw-inksoft); font-weight: 600; margin-left: 6px; }
#shopRunway .rw-chip.active { border-color: var(--rw-accent); background: color-mix(in srgb, var(--rw-accent) 10%, var(--rw-panel)); box-shadow: 0 0 0 1px var(--rw-accent); }
#shopRunway .rw-ward-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--rw-ink); padding-top: 12px; margin-top: 4px; }
#shopRunway .rw-ward-total .rw-t-val { font-family: "Cormorant Garamond", serif; font-size: 1.8rem; font-weight: 600; }

/* lookbook */
#shopRunway .rw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
#shopRunway .rw-lb-card {
  background: var(--rw-panel); border: 1px solid var(--rw-line); border-radius: 16px; overflow: hidden;
  cursor: pointer; text-align: left; font: inherit; color: var(--rw-ink); padding: 0; width: 100%;
}
#shopRunway .rw-lb-card img { width: 100%; aspect-ratio: 3 / 3.2; object-fit: cover; object-position: 50% 15%; display: block; }
#shopRunway .rw-lb-card .rw-c-body { padding: 14px 16px 16px; }
#shopRunway .rw-lb-card .rw-c-en { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--rw-accent); font-size: 1rem; }
#shopRunway .rw-lb-card h3 { margin: 2px 0 4px; font-size: 1.05rem; }
#shopRunway .rw-lb-card .rw-c-meta { color: var(--rw-inksoft); font-size: .87rem; display: flex; justify-content: space-between; }
#shopRunway .rw-lb-card .rw-c-meta b { color: var(--rw-ink); }

@media (prefers-reduced-motion: reduce) {
  #shopRunway .rw-card3d, #shopRunway .rw-dot, #shopRunway .rw-tick, #shopRunway .rw-items li { transition: none; }
  #shopRunway .rw-ring, #shopRunway .rw-ring-card { animation: none; }
}
