/* ================= v7: every-control-works additions ================= */

/* programmatic focus (view-switch focuses the h1) shows no ring for mouse users;
   keyboard focus keeps its :focus-visible ring */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* live listing original price, struck through next to the current price */
.price-line { display: inline-flex; align-items: baseline; gap: 10px; }
.price-line s { color: var(--text-3); font-size: 16px; font-weight: 500; }

/* the whole search pill is one tap target — clicks on its padding focus the input */
.search { cursor: text; }

/* mobile touch targets: 44px minimum (Apple HIG), chips get comfortable height */
@media (max-width: 640px) {
  .cat { min-height: 44px; padding: 11px 15px; }
  .icon-btn {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  /* the search and categories stay reachable while browsing the grid */
  .topbar {
    position: sticky; top: 0; z-index: 120;
    background: rgba(4, 13, 22, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  }
  /* 16px stops iOS from zooming the whole page when the search field is tapped */
  .search input { font-size: 16px; }
}

/* skip link: off-screen until keyboard focus */
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 400;
  background: var(--lime); color: var(--lime-ink);
  font-size: 13px; font-weight: 600;
  padding: 10px 18px;
  border-radius: 99px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 12px; outline: 2px solid #fff; }

/* hero carousel */
.hero-card { padding: 0; }
.hero-track {
  display: flex;
  height: 100%;
  min-height: 393px;
  transition: transform 0.7s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .hero-track { transition: none; }
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  overflow: hidden;
}
.hero-slide .hero-img {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 63%; height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero-dots {
  position: absolute; left: 44px; bottom: 20px; z-index: 3;
  display: flex; gap: 8px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
  transition: background 0.2s, width 0.3s var(--ease);
}
.dot.active { background: var(--lime); width: 22px; border-radius: 99px; }

/* generic page head for new views */
.page-head { margin: 6px 2px 22px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.page-sub { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.comm-strip { height: 30px; border-radius: 99px; }
.empty-note {
  color: var(--text-3); font-size: 14px;
  padding: 26px 4px;
}

/* cards: hit-area wrapper (real heart buttons now live beside, not inside) */
.card { position: relative; }
.card-hit {
  display: block; width: 100%;
  background: none; border: none; padding: 0;
  color: var(--text); text-align: left;
  font-family: var(--font);
  cursor: pointer;
}

/* dropdown menus */
.menu {
  position: fixed; z-index: 300;
  min-width: 170px;
  background: var(--raise);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: menu-in 0.18s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }
.menu-item {
  display: block; width: 100%;
  background: none; border: none;
  color: var(--text-2);
  font-family: var(--font); font-size: 14px; text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.menu-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.menu-item.selected { color: var(--lime); font-weight: 600; }
.filter-pill.on { border-color: var(--lime); color: var(--lime); }

/* bag drawer + scrim + popover */
.scrim {
  position: fixed; inset: 0; z-index: 240;
  background: rgba(2, 6, 10, 0.55);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 260;
  width: min(400px, 92vw);
  background: var(--panel);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s var(--ease);
}
.drawer.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.bag-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.bag-item img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.bag-item div { flex: 1; min-width: 0; }
.bag-item b { display: block; font-size: 14px; }
.bag-item span { color: var(--text-2); font-size: 13px; }
.drawer .empty-note { padding: 26px 20px; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); }
.bag-total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.bag-total b { font-size: 18px; }
.drawer-foot .btn-wide { margin-top: 0; }

.popover {
  position: fixed; z-index: 260;
  width: min(340px, 92vw);
  background: var(--raise);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  padding: 8px;
  animation: menu-in 0.18s var(--ease);
}
.pop-head { font-size: 13px; font-weight: 700; padding: 8px 12px 6px; color: var(--text-2); letter-spacing: 0.04em; text-transform: uppercase; }
.notif {
  display: block; width: 100%;
  background: none; border: none;
  color: var(--text);
  font-family: var(--font); font-size: 13.5px; line-height: 1.45; text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.notif:hover { background: rgba(255, 255, 255, 0.06); }
.notif span { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }

/* modal — [hidden] must beat the display overrides below */
.modal-wrap[hidden], .drawer[hidden], .popover[hidden], .scrim[hidden],
.feature-strip[hidden] { display: none; }
.modal-wrap { position: fixed; inset: 0; z-index: 270; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal {
  width: min(460px, 94vw);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.modal-body { padding: 16px 20px 22px; font-size: 14px; color: var(--text-2); }
.modal-body p { margin: 0 0 10px; }
.modal-body b { color: var(--text); }
.modal-body table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.modal-body th, .modal-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.modal-body th { color: var(--text); }

/* product gallery zoom + thumbs */
.gallery-main { overflow: hidden; }
.gallery-main img { transition: transform 0.6s var(--ease); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .gallery-main img { transition: none; } }
.thumb-list { flex: 1; display: flex; gap: 10px; min-width: 0; }
.thumb {
  flex: 1; min-width: 0;
  background: #0A0F13;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumb img { width: 100%; height: 62px; object-fit: cover; display: block; }
.thumb:hover { border-color: rgba(255, 255, 255, 0.3); }
.thumb.selected { border-color: var(--lime); }

/* looks + community */
.looks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.look-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0A0F13;
}
.look-card > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.look-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 8px 12px 16px;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 16, 0.85));
  font-size: 14px; font-weight: 600;
}
.look-bar .heart { position: static; }
.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
}
.post-card p { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.post-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.post-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* sell view */
.sell-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 860px;
  align-items: start;
}
.sell-photo {
  position: relative;
  border: 1.6px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--r-card);
  background: var(--panel-2);
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
}
.sell-photo:hover { border-color: var(--lime); }
.sell-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#sell-photo-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; }
#sell-photo-hint svg { width: 30px; height: 30px; }
.sell-fields { display: flex; flex-direction: column; gap: 16px; }
.sell-fields label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.sell-fields input[type="text"], .sell-fields input[type="number"] {
  background: var(--pill);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font); font-size: 15px;
  padding: 12px 14px;
}
.sell-fields input:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.sell-sizes { display: flex; gap: 8px; }

/* how view */
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px;
}
.step-no { color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.how-step b { display: block; font-size: 17px; margin: 10px 0 6px; }
.how-step p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* profile view */
.profile-head { display: flex; align-items: center; gap: 24px; margin: 8px 0 22px; }
.profile-avatar { position: relative; flex: none; }
.profile-avatar img {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--lime); padding: 4px;
}
.edit-dot {
  position: absolute; right: 2px; bottom: 6px;
  width: 34px; height: 34px;
  background: var(--lime); color: var(--lime-ink);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.edit-dot svg { width: 16px; height: 16px; }
.profile-id h1 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 28px; font-weight: 700; }
.profile-id p { margin: 4px 0 0; color: var(--text-2); font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.profile-meta { color: var(--text-2); }
.profile-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin-bottom: 26px;
  text-align: center;
}
.profile-stats div { padding: 18px 6px; }
.profile-stats div + div { border-left: 1px solid var(--line); }
.profile-stats b { display: block; font-size: 24px; font-weight: 700; }
.profile-stats span { color: var(--text-2); font-size: 11px; letter-spacing: 0.1em; }
#view-profile .results, #view-saved .results, #view-community .results { margin-bottom: 26px; }
#view-community .results { grid-template-columns: repeat(2, 1fr); }

/* d-links became <button>s — kill the UA button chrome (they rendered as
   white pills) and restore the lime text-link look */
button.d-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 13px; font-weight: 500;
  color: var(--lime);
  cursor: pointer;
  white-space: nowrap;
}
button.d-link:hover { text-decoration: underline; }

/* hearts fill RED when saved (user direction), everywhere */
.heart[aria-pressed="true"], [data-save][aria-pressed="true"] {
  background: #E5484D !important;
  border-color: #E5484D !important;
  color: #fff !important;
}
.heart[aria-pressed="true"] svg, [data-save][aria-pressed="true"] svg { fill: #fff; }

/* fly-to-bag animation */
.fly-bag {
  position: fixed; z-index: 400;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  /* a lime chip behind the glyph — the dark icon must never vanish into the dark page */
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  color: var(--lime-ink);
  pointer-events: none;
  transition: transform 0.8s cubic-bezier(0.35, -0.2, 0.65, 0.5), opacity 0.8s ease-in;
}
.fly-bag svg { width: 20px; height: 20px; stroke-width: 2; }
@keyframes badge-bump { 50% { transform: scale(1.5); } }
.badge.bump { animation: badge-bump 0.35s var(--ease); }

/* try-on v2: full model + draggable garment */
.tryon-stage { min-height: 560px; }
#tryon-athlete { opacity: 1; filter: none; object-position: top; }
#tryon-product {
  position: absolute; z-index: 2;
  left: 50%; top: 34%;
  width: 42%;
  max-width: none; max-height: 72%;
  object-fit: contain; /* oversized cutouts letterbox invisibly instead of spilling */
  transform: translate(-50%, -50%);
  cursor: grab;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  touch-action: none;
  mix-blend-mode: normal;
  opacity: 0.96;
}
#tryon-product.dragging { cursor: grabbing; box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65); }
/* AI cutout: the shadow follows the garment's silhouette, not a photo rectangle */
#tryon-product.cutout {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}
/* fallback when the AI can't run: light photo backgrounds melt into the scene */
#tryon-product.blend {
  mix-blend-mode: multiply;
  border-radius: 0;
  box-shadow: none;
}

/* the generated try-on photo covers the stage when ready; tap to peek the overlay */
.tryon-gen[hidden] { display: none; }
.tryon-gen {
  position: absolute; inset: 0; z-index: 3;
  display: block;
  padding: 0; border: none; cursor: pointer;
  background: #060d13;
  animation: gen-in 0.5s ease;
}
.tryon-gen img { width: 100%; height: 100%; object-fit: contain; display: block; background: #0a0f14; }
.gen-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 99px;
}
@keyframes gen-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tryon-gen { animation: none; } }

/* ---------- liquid-glass try-on: full-bleed stage, floating panels ---------- */
.glass-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 80vh;
  background: #060d13;
}
/* the photo box is the coordinate space for the garment, overlay and drag math —
   percentages always mean "of the photo", never "of the stacked mobile column" */
.stage-photo { position: absolute; inset: 0; }
.stage-photo > #tryon-athlete {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  /* contain, never crop — the full body is always in frame, matching the AI look */
  object-fit: contain; background: #0a0f14;
  opacity: 1; filter: none;
}
/* labels and notes sit on glass — lighten the muted tone inside panels for AA */
.gl-panel { --text-2: #B9C2CB; }
/* the reference panels are near-opaque dark, not translucent — sampled #131A1D */
.glass-stage .gl-panel {
  background: rgba(17, 22, 26, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* try-on's own header (the app topbar hides while the try-on is open) */
body.tryon-mode .topbar { display: none; }
.glass-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 6px 4px 18px;
}
.gt-brand { display: flex; align-items: center; gap: 16px; }
.gt-brand a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: 0.04em; line-height: 1.02; }
.gt-brand a span { display: block; position: relative; }
.gt-brand .swoosh { width: 26px; height: 11px; margin-left: 4px; }
.gt-tag { margin: 0; font-size: 12px; line-height: 1.35; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; border-left: 1px solid var(--line); padding-left: 16px; }
.gt-tag em { font-style: normal; color: var(--lime); }
.gt-seg {
  display: flex; gap: 4px;
  background: rgba(17, 22, 26, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}
.gt-tab {
  background: none; border: none;
  color: var(--text-2);
  font-family: var(--font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 26px; border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.gt-tab:hover { color: var(--text); }
.gt-tab.on { background: var(--lime); color: var(--lime-ink); }
.gt-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.gt-icons { display: flex; align-items: center; gap: 6px; }
.gt-user {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer; color: var(--text-2);
  padding: 4px; border-radius: 99px;
}
.gt-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.gt-user svg { width: 16px; height: 16px; }
.gt-user:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* athlete row with pager arrows — six chips scroll within the strip */
.gl-ath-row { display: flex; align-items: center; gap: 8px; }
.gl-ath-row .gl-avatars {
  flex: 1; min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 4px 2px;
}
.gl-ath-row .gl-avatars::-webkit-scrollbar { display: none; }
.gl-ath-row .gl-av { flex: none; width: 46px; height: 46px; }
@media (prefers-reduced-motion: reduce) { .gl-ath-row .gl-avatars { scroll-behavior: auto; } }
.gl-arrow {
  flex: none; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text-2); cursor: pointer; border-radius: 50%;
}
.gl-arrow svg { width: 16px; height: 16px; }
.gl-arrow:hover { color: var(--text); }
.gl-arrow:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.gl-reset {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  background: none; border: none; cursor: pointer;
  color: var(--text-2); font-family: var(--font); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 2px; border-radius: 8px;
}
.gl-reset svg { width: 15px; height: 15px; }
.gl-reset:hover { color: var(--text); }
.gl-reset:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* active chips and tiles fill lime, per the reference */
.glass-stage .gl-chip.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.glass-stage .gl-tile.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
/* height slider: lime fill left of the thumb */
.glass-stage .gl-slider { accent-color: var(--lime); }

/* right-panel structures */
.gl-chiprow { display: flex; align-items: center; gap: 8px; }
.gl-chiprow .heart { margin-left: auto; }
.gl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 99px;
}
.gl-pill svg { width: 13px; height: 13px; stroke: var(--lime); fill: none; stroke-width: 2; }
.gl-pill.blue { background: #366FA5; color: #fff; }
.gl-pill.dark { background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--text); }
.gl-pill.lime { background: rgba(211, 234, 44, 0.14); color: var(--lime); }
.gl-prod-title { margin: 14px 0 2px; font-size: 21px; font-weight: 700; line-height: 1.25; }
.gl-prod-sub { margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.gl-pricerow { display: flex; align-items: center; gap: 10px; }
.gl-pricerow s { color: var(--text-2); font-size: 15px; }
.gl-condline { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 13px; }
.gl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.gl-specs { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 0; }
.gl-specs > div { padding: 0 12px; }
.gl-specs > div:first-child { padding-left: 0; }
.gl-specs > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.gl-specs .gl-label { display: block; margin: 0 0 5px; }
.gl-specs b { display: block; }
.gl-info { width: 14px; height: 14px; stroke: var(--text-2); fill: none; stroke-width: 2; margin-left: 2px; }
.glass-stage #gl-sizes .gl-chip { padding: 10px 13px; }
.gl-specs b { font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
/* the reference's protection block is borderless — shield + copy between dividers */
.gl-protect {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 2px 0;
}
.gl-protect svg { flex: none; width: 20px; height: 20px; stroke: var(--lime); fill: none; stroke-width: 2; margin-top: 1px; }
.gl-protect b { display: block; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 3px; }
.gl-protect span { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.gl-wearblock { margin-top: 16px; }
.gl-wearblock p { margin: 4px 0 6px; font-size: 13px; color: var(--text); line-height: 1.5; }
.gl-viewlink { color: #DDE4EA; font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gl-viewlink:hover { color: #fff; }
.gl-viewlink:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.gl-colorrow[hidden], .gl-pill[hidden] { display: none; } /* hidden must beat the display overrides */
.gl-colorrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.gl-colorrow .gl-label { display: block; margin: 0 0 4px; }
.gl-colorrow b { display: block; font-size: 13px; font-weight: 600; }
.gl-swatch { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: #1d5c3e; }
.gl-ctarow { display: flex; gap: 10px; align-items: stretch; margin-top: 16px; }
.gl-ctarow .gl-cta { margin-top: 0; flex: 1; justify-content: center; gap: 10px; }
.gl-share {
  flex: none; width: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); cursor: pointer;
}
.gl-share svg { width: 19px; height: 19px; }
.gl-share:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* only the search bar rides the bottom edge of the scrolling right panel */
.gl-dock {
  position: sticky; bottom: -22px;
  margin: 14px -22px -22px;
  padding: 10px 22px 22px; /* must match the -22px stick or the pill's bottom clips */
  background: rgba(17, 22, 26, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.gl-results { margin-top: 12px; }

/* compare modal */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.compare-card { display: flex; flex-direction: column; gap: 8px; }
.compare-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.compare-card b { font-size: 13px; line-height: 1.35; }
.compare-card > span { font-size: 12.5px; color: var(--text-2); }
.compare-card .btn-lime { margin-top: 2px; font-size: 13px; padding: 10px 14px; }

/* FULL LOOK floating card */
.full-look[hidden] { display: none; }
.full-look {
  position: absolute; right: 360px; bottom: 22px; z-index: 5;
  width: 148px;
  background: rgba(17, 22, 26, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}
.fl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.fl-head span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.fl-expand { background: none; border: none; color: var(--text-2); cursor: pointer; padding: 2px; border-radius: 6px; }
.fl-expand svg { width: 14px; height: 14px; }
.fl-expand:hover { color: var(--text); }
.fl-expand:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.full-look > img { width: 100%; aspect-ratio: 3 / 4.6; object-fit: cover; border-radius: 10px; display: block; }
.fl-dots { display: flex; gap: 7px; justify-content: center; padding: 10px 0 2px; }
.fl-dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.28);
}
.fl-dots button.on { background: var(--lime); }
.fl-dots button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
@media (max-width: 1024px) {
  .glass-topbar { flex-wrap: wrap; }
  .gt-tag { display: none; }
  .gt-seg { order: 3; width: 100%; justify-content: center; }
  .gt-tab { flex: 1; text-align: center; padding: 10px 8px; }
  .full-look { right: 12px; bottom: 12px; top: auto; width: 112px; }
  /* the panel doesn't scroll on mobile — the dock flows normally instead of
     sticking to the viewport edge over the home indicator */
  .gl-dock { position: static; margin: 16px 0 0; padding: 0; border-top: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.glass-left {
  position: absolute; left: 22px; top: 22px; bottom: 22px;
  width: 300px; z-index: 5;
  overflow-y: auto; scrollbar-width: none;
}
.glass-left::-webkit-scrollbar { display: none; }
.glass-right {
  position: absolute; right: 22px; top: 22px;
  width: 320px; z-index: 5;
  max-height: calc(100% - 44px);
  overflow-y: auto; scrollbar-width: none;
}
.glass-right::-webkit-scrollbar { display: none; }
.gl-tile-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gl-tile-wrap > span { font-size: 11px; color: var(--text-2); }
.gl-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gl-card-head .gl-title { max-width: 220px; }
.gl-cta { margin-top: 16px; }
.gl-save { margin-top: 10px; }
.glass-stage .sim-tag { top: auto; bottom: 18px; right: auto; left: 50%; transform: translateX(-50%); z-index: 4; }
@media (max-width: 1024px) {
  .glass-stage { display: flex; flex-direction: column; min-height: 0; gap: 14px; padding-bottom: 14px; }
  .stage-photo { position: relative; inset: auto; height: 52vh; order: 0; }
  .glass-left, .glass-right {
    position: static; width: auto; max-height: none;
    margin: 0 14px; overflow: visible;
  }
  .glass-left { order: 2; }
  .glass-right { order: 1; }
}

/* live status while the AI dresses the model — the wait must never look dead */
.gen-status[hidden] { display: none; }
.gen-status {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 6;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(9, 19, 27, 0.92);
  border: 1px solid rgba(211, 234, 44, 0.5);
  color: var(--text, #F2F5F7);
  font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 99px;
}
.gen-status::before {
  content: '';
  width: 12px; height: 12px;
  border: 2px solid var(--lime);
  border-top-color: transparent;
  border-radius: 50%;
  animation: gen-spin 0.8s linear infinite;
}
.gen-status.done::before { display: none; }
@keyframes gen-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gen-status::before { animation: none; border-top-color: var(--lime); } }

/* search-in-flight skeleton cards — shimmer in the grid until real results land */
.skel-card {
  border-radius: 18px;
  aspect-ratio: 407 / 280;
  background: linear-gradient(100deg, #0B141C 40%, #121D26 50%, #0B141C 60%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.2s linear infinite;
}
@keyframes skel-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel-card { animation: none; } }

/* hero slides all use the same treatment: clean dramatic crops with no baked-in
   text — cover can crop them at any width and it always reads as design. Slide 1
   keeps its full wide frame (graffiti painted out at the source, so the whole
   athlete stays in view); narrow crops center on him, not the empty fence. */
.hero-slide:first-child .hero-img { object-position: 30% 40%; }

/* Shop-by-sport tiles */
.shop-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 4px 0 40px;
}
.shop-tile {
  position: relative;
  text-align: left;
  background: var(--panel, #09131B);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 22px 20px 20px;
  color: var(--text, #F2F5F7);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.shop-tile:hover { border-color: var(--lime); transform: translateY(-2px); }
.shop-tile:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.shop-tile b { display: block; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.shop-tile span { color: var(--text-2, #97A1AB); font-size: 13px; }
.shop-tile svg {
  position: absolute; right: 16px; top: 22px;
  width: 20px; height: 20px;
  stroke: var(--lime); stroke-width: 2; fill: none;
}
@media (prefers-reduced-motion: reduce) { .shop-tile:hover { transform: none; } }
.sim-tag {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  background: rgba(9, 19, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2);
}
.tryon-avatar {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--lime);
  object-fit: cover;
}
.tryon-hint { margin: 10px 0 0; color: var(--text-3); font-size: 12px; }
.size-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; }
.size-row label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: 0.06em; }
.size-row input[type="range"] { flex: 1; accent-color: var(--lime); }

/* real-store links on the product page */
.shops { margin-top: 18px; }
.shops-label { display: block; color: var(--text-2); font-size: 12.5px; margin-bottom: 10px; }
.shop-row { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--pill);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  font-size: 13px; font-weight: 600;
  padding: 9px 16px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.shop-link:hover { border-color: var(--lime); transform: translateY(-1px); }
.shop-link svg { width: 14px; height: 14px; color: var(--text-2); }

@media (max-width: 1024px) {
  .looks-grid, .how-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-dots { left: 22px; }
  .looks-grid, .how-steps, .sell-form, #view-community .results { grid-template-columns: 1fr; }
  .profile-head { gap: 16px; }
  .profile-avatar img { width: 96px; height: 96px; }
  .profile-id h1 { font-size: 22px; }
}
