/* ============ tokens ============ */
:root {
  color-scheme: dark;
  --bg: #0a0a0d;
  --surface: #141419;
  --surface-2: #1b1b22;
  --surface-3: #24242d;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #f5f4fa;
  --text-2: #cbc8d8;
  --muted: #8d8a9c;
  --brand-a: #7cc8ff;
  --brand-b: #f58fb6;
  --gold: #ffd36b;
  --silver: #d6dbe6;
  --bronze: #e7a072;
  --good: #59d6a0;
  --bad: #ff7a85;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .1s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .2s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(124, 200, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 95% 0%, rgba(245, 143, 182, 0.09), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 500 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-a); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(245, 143, 182, 0.35); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--bad); }
.grad {
  background: linear-gradient(100deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rbx { width: .95em; height: .95em; vertical-align: -0.12em; margin-right: .25em; }

/* ============ header ============ */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font: 900 20px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.logo-icons { display: flex; }
.logo-icons img {
  width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--bg);
  margin-left: -9px; background: var(--surface-2); object-fit: cover;
  transition: transform .35s var(--spring);
}
.logo-icons img:first-child { margin-left: 0; }
.logo:hover .logo-icons img { transform: translateY(-2px) rotate(-4deg); }
.logo:hover .logo-icons img:nth-child(2) { transform: translateY(-3px); transition-delay: .03s; }
.logo:hover .logo-icons img:nth-child(3) { transform: translateY(-2px) rotate(4deg); transition-delay: .06s; }

.nav { position: relative; display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.nav a {
  position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--text-2); white-space: nowrap;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: #0b0b0e; }
.nav-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  border-radius: 999px; background: linear-gradient(100deg, var(--brand-a), var(--brand-b));
  transition: transform .45s var(--spring), width .45s var(--spring);
  box-shadow: 0 6px 20px rgba(245, 143, 182, 0.25);
}

@media (max-width: 720px) {
  .top-inner { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 10px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { flex: 1; text-align: center; padding: 8px 8px; font-size: 13px; }
}
@media (max-width: 420px) {
  .nav a { padding: 8px 4px; font-size: 12px; }
  .nav .long { display: none; }
}

/* ============ page head / hero ============ */
.page-head { padding: 44px 0 22px; }
.page-head h1 { font: 900 clamp(30px, 5vw, 48px)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 8px; }
.page-head p { margin: 0; color: var(--text-2); font-size: 16px; }

.hero { padding: 56px 0 28px; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.hero h1 { font: 900 clamp(44px, 9vw, 92px)/0.98 var(--display); letter-spacing: -0.045em; margin: 18px 0 12px; }
.hero p { margin: 0 auto; max-width: 560px; color: var(--text-2); font-size: 17px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(89, 214, 160, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(89, 214, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(89, 214, 160, 0); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 34px auto 0; }
.stat { padding: 18px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font: 900 clamp(22px, 4vw, 32px)/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } .stat:first-child { grid-column: span 2; } }

/* marquee of best sellers */
.marquee { position: relative; margin: 36px 0 8px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: slide 60s linear infinite; padding: 6px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.mq-item { width: 132px; flex: none; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 8px; transition: transform .3s var(--spring), border-color .2s; cursor: pointer; }
.mq-item:hover { transform: translateY(-4px) scale(1.03); border-color: var(--line-2); }
.mq-item img { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); }
.mq-item span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 48px 0 18px; flex-wrap: wrap; }
.section-title h2 { margin: 0; font: 900 clamp(22px, 3.4vw, 30px)/1.1 var(--display); letter-spacing: -0.02em; }
.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* ============ group cards (matches the community banners) ============ */
.group-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .group-list { grid-template-columns: 1fr; } }

.gcard {
  --accent: #9aa4ff;
  position: relative; display: flex; gap: 22px; align-items: center;
  padding: 24px; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    linear-gradient(135deg, #18171c, #0f0f13);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, rgba(255,255,255,.06));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .5s var(--ease), border-color .3s, box-shadow .4s;
  will-change: transform;
}
.gcard:hover { --ty: -4px; border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.gcard::after { /* moving shine */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.06), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.gcard:hover::after { opacity: 1; }
.gicon {
  flex: none; width: 128px; height: 128px; border-radius: 26px; overflow: hidden;
  border: 4px solid var(--accent); background: var(--surface-2);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform .5s var(--spring), box-shadow .4s;
}
.gicon img { width: 100%; height: 100%; object-fit: cover; }
.gcard:hover .gicon { transform: scale(1.05) rotate(-2deg); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 75%, transparent); }
.gbody { min-width: 0; flex: 1; }
.glabel { font: 800 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.gname { margin: 8px 0 2px; font: 900 clamp(28px, 4vw, 40px)/1 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.gby { color: var(--text-2); font-weight: 600; font-size: 17px; }
.gby .vf { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-left: 4px; color: var(--brand-a); }
.gpill {
  display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 10px;
  padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: color-mix(in srgb, var(--accent) 14%, #26252c); font-variant-numeric: tabular-nums;
}
.gpill .num { display: inline-block; transition: color .4s; }
.gpill .num.bump { color: var(--good); animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: translateY(-3px) scale(1.08); } }
.gdesc { margin: 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gactions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.rank {
  position: absolute; top: 16px; right: 16px; min-width: 40px; height: 32px; padding: 0 10px;
  display: grid; place-items: center; border-radius: 999px;
  font: 900 14px/1 var(--display); background: rgba(255,255,255,.06); color: var(--text-2); border: 1px solid var(--line);
}
.rank.r1 { background: linear-gradient(135deg, #ffe29a, #f5b94c); color: #3a2600; border: 0; box-shadow: 0 6px 18px rgba(255, 196, 80, .35); }
.rank.r2 { background: linear-gradient(135deg, #f1f4fa, #b8c0cf); color: #20242c; border: 0; }
.rank.r3 { background: linear-gradient(135deg, #ffc9a3, #d48a5a); color: #3a1c08; border: 0; }

@media (max-width: 560px) {
  .gcard { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
  .gicon { width: 96px; height: 96px; border-radius: 22px; border-width: 3px; }
}

/* ============ buttons, chips, toggles ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: transform .2s var(--spring), background .2s, border-color .2s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255,255,255,.2); }
.btn:active { transform: scale(.95); }
.btn.primary { background: linear-gradient(100deg, var(--brand-a), var(--brand-b)); color: #0b0b0e; border: 0; box-shadow: 0 8px 24px -8px rgba(245, 143, 182, .55); }
.btn.primary:hover { box-shadow: 0 10px 30px -6px rgba(245, 143, 182, .7); }
.btn.accent { background: color-mix(in srgb, var(--accent) 22%, #1d1c22); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.35); animation: ripple .6s var(--ease); pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-2); transition: color .25s; }
.seg button.on { color: #0b0b0e; }
.seg .seg-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: #fff; transition: transform .45s var(--spring), width .45s var(--spring); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 13px; color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--spring);
}
.chip.no-icon { padding: 0 14px; }
.chip img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--text); color: #0b0b0e; border-color: transparent; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.search input, .select, .field {
  width: 100%; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input { padding-left: 42px; }
.search input:focus, .select:focus, .field:focus { border-color: rgba(124, 200, 255, .5); box-shadow: 0 0 0 4px rgba(124, 200, 255, .12); }
.select { width: auto; padding-right: 34px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a09cb0' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
textarea.field { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }

/* ============ item cards ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.icard {
  position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--spring), border-color .25s, box-shadow .35s;
}
.icard:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.icard:active { transform: scale(.97); }
.ithumb { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 40%, #2b2a35, #17161c 70%); overflow: hidden; }
.ithumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.icard:hover .ithumb img { transform: scale(1.07); }
.ibody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.iname { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.imeta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; font-size: 13px; }
.price { font-weight: 800; color: var(--good); white-space: nowrap; }
.price.off { color: var(--muted); font-weight: 600; }
.price.free { color: var(--brand-a); }
.fav { color: var(--muted); font-weight: 600; white-space: nowrap; }
.igroup { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; min-width: 0; }
.igroup img { width: 18px; height: 18px; border-radius: 6px; flex: none; }
.igroup span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge {
  position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: rgba(10,10,13,.75); backdrop-filter: blur(6px); border: 1px solid var(--line-2);
}
.badge.hot { background: linear-gradient(100deg, #ffe29a, #f5b94c); color: #3a2600; border: 0; }
.badge.right { top: auto; left: auto; right: 8px; bottom: 8px; }

/* best-seller carousels */
.bs-group { margin-bottom: 34px; }
.bs-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bs-head img { width: 44px; height: 44px; border-radius: 13px; border: 2px solid var(--accent, #9aa4ff); box-shadow: 0 0 14px color-mix(in srgb, var(--accent, #9aa4ff) 45%, transparent); }
.bs-head h3 { margin: 0; font: 900 20px/1.1 var(--display); letter-spacing: -0.02em; }
.bs-head .muted { font-size: 13px; }
.bs-head .btn { margin-left: auto; flex: none; }
.bs-head img { flex: none; }
.bs-head > div { min-width: 0; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 190px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.rail > * { scroll-snap-align: start; }
.rail .icard .rank-big {
  position: absolute; left: 10px; bottom: 8px; font: 900 44px/1 var(--display); letter-spacing: -0.04em;
  color: #fff; -webkit-text-stroke: 0; text-shadow: 0 4px 18px rgba(0,0,0,.7); opacity: .95;
}
.rail .icard .rank-big.g1 { color: var(--gold); }
.rail .icard .rank-big.g2 { color: var(--silver); }
.rail .icard .rank-big.g3 { color: var(--bronze); }
.rail-btn {
  position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(20,20,25,.85); backdrop-filter: blur(8px);
  transition: opacity .2s, transform .2s var(--spring);
}
.rail-btn:hover { transform: scale(1.08); }
.rail-btn.prev { left: -8px; } .rail-btn.next { right: -8px; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .rail-btn { display: none; } }

/* ============ outfits ============ */
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
@media (max-width: 480px) { .look-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.lcard { cursor: pointer; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--spring), border-color .25s, box-shadow .35s; display: flex; flex-direction: column; }
.lcard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 50px -24px rgba(124, 200, 255, .35); }
.lcard:active { transform: scale(.97); }
.lthumb { position: relative; aspect-ratio: 1; background: radial-gradient(circle at 50% 35%, #34324a, #16151c 72%); overflow: hidden; }
.lthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.lcard:hover .lthumb img { transform: scale(1.06) translateY(-2%); }
.lgo {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap;
  background: linear-gradient(100deg, var(--brand-a), var(--brand-b)); color: #0b0b0e;
  opacity: 0; transition: opacity .25s, translate .4s var(--spring); pointer-events: none;
}
.lcard:hover .lgo, .lcard:focus-visible .lgo { opacity: 1; translate: -50% 0; }
.lcard:hover .badge.right { opacity: 0; }
.lbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lname { font-weight: 800; font-size: 15px; line-height: 1.25; }
.lstrip { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.lstrip img { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.lstrip .more { font-size: 12px; font-weight: 700; color: var(--muted); padding-left: 2px; }

/* ============ modal (quick view) ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(5,5,8,.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .3s var(--ease); }
.modal-box {
  position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow-x: hidden; overflow-y: auto;
  border-radius: 28px; background: #141419; border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.8);
  animation: pop .45s var(--spring);
}
.modal.closing .modal-bg { animation: fade .2s var(--ease) reverse forwards; }
.modal.closing .modal-box { animation: pop-out .2s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(14px) scale(.96); } }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,20,25,.8); display: grid; place-items: center; transition: transform .3s var(--spring); }
.modal-x:hover { transform: rotate(90deg); }
.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qv-img { background: radial-gradient(circle at 50% 40%, #2f2d3d, #141419 72%); aspect-ratio: 1; overflow: hidden; min-width: 0; }
.qv-img img { width: 100%; height: 100%; object-fit: cover; animation: zoom-in .6s var(--ease); }
@keyframes zoom-in { from { transform: scale(1.08); opacity: .4; } }
.qv-info { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.qv-info h3 { margin: 0; font: 900 26px/1.15 var(--display); letter-spacing: -0.02em; padding-right: 30px; }
.qv-price { font: 900 24px/1 var(--display); color: var(--good); }
.qv-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--text-2); }
.tag img { width: 18px; height: 18px; border-radius: 6px; }
.qv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.qv-more { padding: 0 28px 28px; }
.qv-more h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.qv-more .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
@media (max-width: 680px) {
  .modal { place-items: end center; padding: 0; }
  .modal-box { border-radius: 26px 26px 0 0; max-height: 92vh; animation: sheet .45s var(--ease); }
  .modal.closing .modal-box { animation: sheet-out .22s var(--ease) forwards; }
  @keyframes sheet { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
  .qv { grid-template-columns: 1fr; }
  .qv-img { aspect-ratio: 4 / 3; }
  .qv-info { padding: 20px; }
  .qv-more { padding: 0 20px 24px; }
}

/* ============ loading / reveal / misc ============ */
.skel { position: relative; overflow: hidden; background: var(--surface); border-radius: 20px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel.card { aspect-ratio: .78; }
.skel.gcard-skel { height: 176px; border-radius: 28px; }

.reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(min(var(--i, 0), 12) * 45ms); }
.reveal.in { opacity: 1; transform: none; }
.gcard.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 20px; }
.notice { padding: 14px 16px; border-radius: 14px; background: rgba(255, 122, 133, .08); border: 1px solid rgba(255, 122, 133, .25); color: #ffc2c7; }

.foot { margin-top: 70px; padding: 28px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot a:hover { color: var(--text); }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,20,25,.85); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; translate: -50% 0; padding: 12px 18px; border-radius: 14px; background: #f5f4fa; color: #0b0b0e; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: toast 2.8s var(--ease) forwards; }
.toast.bad { background: var(--bad); }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ============ admin ============ */
.admin .panel { padding: 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.admin .panel h2 { margin: 0 0 4px; font: 900 20px/1.2 var(--display); }
.admin .panel-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin .panel-head p { margin: 0; }
.admin label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 13px; color: var(--text-2); }
.admin .row { display: flex; gap: 10px; align-items: start; }
.admin .row .field { flex: 1; }
.admin .two { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: 10px; }
.admin .login { max-width: 460px; }
.admin .login .row { margin-top: 8px; }
.col { padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; animation: pop .35s var(--spring); }
.col-head { display: flex; gap: 8px; margin-bottom: 12px; }
.col-head .field { flex: 1; font-weight: 800; }
.mini-looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.mini-look { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.mini-look.bad { border-color: rgba(255,122,133,.5); }
.mini-look img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-3); }
.mini-look span { display: block; padding: 6px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.mini-look:hover .mini-actions, .mini-look:focus-within .mini-actions { opacity: 1; }
@media (hover: none) { .mini-actions { opacity: 1; } }
.mini-actions button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(10,10,13,.85); font-size: 12px; }
.mini-actions button[disabled], .btn[disabled] { opacity: .35; pointer-events: none; }
.rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.grow { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.grow img, .grow .ph { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-3); }
.grow .btn { margin-left: auto; }
.savebar { position: fixed; left: 50%; bottom: 18px; z-index: 60; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(27,27,34,.92); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.6); font-weight: 700; animation: pop .4s var(--spring); white-space: nowrap; }
@media (max-width: 600px) { .admin .two { grid-template-columns: 1fr; } .admin .row { flex-direction: column; align-items: stretch; } .savebar { width: calc(100% - 24px); justify-content: space-between; } }

/* ============ outfits: colour aura, spotlight ============ */
.lcard { --accent: #9aa4ff; }
.lthumb {
  background:
    radial-gradient(60% 55% at 50% 48%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    radial-gradient(circle at 50% 35%, #2a2836, #141319 75%);
  transition: background .4s;
}
.lthumb::after { /* soft floor shadow under the avatar */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 7%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  pointer-events: none;
}
.lthumb img { position: relative; z-index: 1; }
.lcard:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 50px -22px color-mix(in srgb, var(--accent) 55%, transparent); }
.lcard:hover .lthumb img { transform: translateY(-8px) scale(1.05); }
.lgo, .lthumb .badge { z-index: 2; }
.lstrip img { background: #2a2934; border-color: rgba(255,255,255,.08); transition: transform .25s var(--spring); }
.lcard:hover .lstrip img { transform: translateY(-2px); }
.lcard:hover .lstrip img:nth-child(2) { transition-delay: .03s; }
.lcard:hover .lstrip img:nth-child(3) { transition-delay: .06s; }
.lcard:hover .lstrip img:nth-child(4) { transition-delay: .09s; }
.lcard:hover .lstrip img:nth-child(5) { transition-delay: .12s; }

.spot {
  --accent: #9aa4ff;
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 12px;
  margin-bottom: 26px; padding: 28px 32px; border-radius: 30px; overflow: hidden;
  background:
    radial-gradient(70% 90% at 80% 50%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(135deg, #18171d, #0f0f13);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, rgba(255,255,255,.06));
  transition: border-color .3s, box-shadow .4s, transform .5s var(--ease);
}
.spot:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.spot-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; }
.spot-eyebrow { font: 800 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.spot h2 { margin: 0; font: 900 clamp(30px, 5vw, 52px)/1 var(--display); letter-spacing: -0.035em; }
.spot-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-2); font-weight: 700; font-size: 15px; }
.spot-meta .price { font-size: 17px; }
.spot-items { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.spot-items img { width: 52px; height: 52px; border-radius: 14px; background: #2a2934; border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--spring); }
.spot:hover .spot-items img { transform: translateY(-3px); }
.spot-img { --h: 380px; position: relative; height: var(--h); display: grid; place-items: center; }
.spot-img::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 4%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); }
/* Roblox renders leave lots of empty space around the avatar, so scale up from the centre */
.spot-img img { position: relative; z-index: 1; height: var(--h); width: auto; max-width: 100%; object-fit: contain; scale: 1.12; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 720px) {
  .spot { grid-template-columns: 1fr; padding: 22px; }
  .spot-img { order: -1; --h: 240px; }
  .spot-img img { scale: 1.1; }
  .spot-img { margin-bottom: 8px; }
}

/* Roblox renders every look in dim light; lift them a little. Your own pictures are shown as they are. */
.lthumb:not(.own) img, .spot-img:not(.own) img { filter: brightness(1.12) saturate(1.06); }
.lthumb.own img { object-fit: cover; }
.lthumb.own::after, .spot-img.own::after { display: none; }
/* your own picture keeps its proportions */
.spot-img.own, .spot-img.own img { height: auto; }
.spot-img.own img { scale: 1; max-height: 420px; object-fit: contain; border-radius: 22px; animation: none; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }

/* admin: picture buttons on outfit tiles */
.mini-img { position: relative; }
.mini-look .own-tag { position: absolute; bottom: 6px; left: 6px; padding: 3px 7px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; background: linear-gradient(100deg, var(--brand-a), var(--brand-b)); color: #0b0b0e; }
.mini-look img.own { object-fit: cover; }
.pic-row { display: flex; gap: 4px; padding: 0 6px 8px; }
.pic-btn { flex: 1; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 8px; padding: 5px 4px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.pic-btn:hover { color: var(--text); background: var(--surface-3); }

@media (max-width: 600px) {
  .col-head { flex-wrap: wrap; }
  .col-head .field { flex: 1 1 100%; }
}
