:root {
  --pink: #b01868;
  --purple: #8060b8;
  --soft: #e080b8;
  --leaf: #586838;
  --cream: #f6eef8;
  --muted: #c4a8d4;
  --bg: #07040e;
  --glass: rgba(18, 10, 32, 0.55);
  --line: rgba(128, 96, 184, 0.32);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.22, 1.15, .36, 1);
  --dur: .55s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); }
body {
  font-family: Cairo, sans-serif;
  color: var(--cream);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img { -webkit-user-drag: none; }

html:has(body.admin-page),
html.admin-html {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}
body.admin-page {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden;
  user-select: text;
  touch-action: auto;
}
button, input, select { font-family: inherit; }

/* —— Atmosphere —— */
.bg {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden;
  background: #07040e;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  will-change: transform;
}
.bg-blob-a {
  width: 55vmax; height: 55vmax;
  top: -18%; right: -12%;
  background: radial-gradient(circle, rgba(128,96,184,.55), transparent 68%);
  animation: blobA 22s var(--ease-out) infinite alternate;
}
.bg-blob-b {
  width: 48vmax; height: 48vmax;
  bottom: -20%; left: -14%;
  background: radial-gradient(circle, rgba(176,24,104,.42), transparent 68%);
  animation: blobB 26s var(--ease-out) infinite alternate;
}
.bg-blob-c {
  width: 36vmax; height: 36vmax;
  top: 38%; left: 42%;
  background: radial-gradient(circle, rgba(88,48,120,.5), transparent 70%);
  animation: blobC 18s ease-in-out infinite alternate;
}
@keyframes blobA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-8%, 10%) scale(1.12); }
}
@keyframes blobB {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12%, -8%) scale(1.08); }
}
@keyframes blobC {
  from { transform: translate(0, 0) scale(.9); opacity: .4; }
  to { transform: translate(-6%, 6%) scale(1.15); opacity: .65; }
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.sparkles {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  width: 100%; height: 100%;
}

.logo-drift {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.floater {
  position: absolute; left: 0; top: 0;
  height: 64px; width: auto; opacity: .28;
  filter: drop-shadow(0 0 18px rgba(128,96,184,.4));
  will-change: transform;
  transition: opacity .6s;
}
.floater:nth-child(2) { height: 46px; opacity: .2; }
.floater:nth-child(3) { height: 78px; opacity: .16; }

.mascot-curtain {
  position: fixed; inset: 0; z-index: 28;
  display: grid; place-content: center; place-items: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 28%, rgba(255,120,40,.18), rgba(7,4,14,.96) 58%);
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease, visibility .55s, filter .55s;
}
.mascot-curtain.is-on {
  opacity: 1; visibility: visible;
}
.mascot-curtain.is-out {
  opacity: 0; visibility: hidden; filter: blur(10px);
}
.mc-glow {
  position: absolute; width: min(70vw, 520px); height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,48,.28), transparent 68%);
  top: 8%; left: 50%; transform: translateX(-50%);
  animation: mcPulse 2.4s ease-in-out infinite;
}
.mc-beam {
  position: absolute; top: 0; left: 50%; width: min(42vw, 280px); height: 58%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,170,70,.35), transparent 75%);
  clip-path: polygon(32% 0, 68% 0, 100% 100%, 0 100%);
  opacity: .55;
  filter: blur(1px);
}
.mc-cast {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 2vw, 18px);
  min-height: 180px;
}
.mc-cast img {
  height: clamp(110px, 28vw, 210px);
  width: auto;
  opacity: 0;
  transform: translateY(80px) scale(.7);
  filter: drop-shadow(0 22px 30px rgba(0,0,0,.55));
}
.mascot-curtain.is-on .mc-cast img {
  animation: mcRise 1s var(--ease-out) forwards;
}
.mascot-curtain.is-on .mc-cast img:nth-child(1) { animation-delay: .08s; }
.mascot-curtain.is-on .mc-cast img:nth-child(2) { animation-delay: .2s; }
.mascot-curtain.is-on .mc-cast img:nth-child(3) { animation-delay: .32s; }
.mascot-curtain.is-on .mc-cast img:nth-child(4) { animation-delay: .44s; }
.mc-kicker {
  position: relative; z-index: 1;
  margin: 8px 0 0;
  color: #ffb06a;
  letter-spacing: .38em;
  font-weight: 800;
  font-size: 12px;
  opacity: 0;
}
.mc-title {
  position: relative; z-index: 1;
  margin: 0;
  font-family: Tajawal, Cairo, sans-serif;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 900;
  background: linear-gradient(180deg, #fff, #ffb06a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
}
.mascot-curtain.is-on .mc-kicker,
.mascot-curtain.is-on .mc-title {
  animation: rise .8s .55s both var(--ease-out);
}
.mascot-curtain.is-on .mc-title { animation-delay: .7s; }
@keyframes mcRise {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mcPulse {
  0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.host {
  position: absolute;
  left: 2%;
  bottom: 10%;
  z-index: 1;
  width: clamp(120px, 22vw, 190px);
  height: clamp(140px, 26vw, 230px);
  display: grid; place-items: end center;
  opacity: 0;
  transform: translateY(28px) scale(.85);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  pointer-events: none;
}
.host.is-live {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.host-aura {
  position: absolute;
  left: 50%; bottom: 8%;
  width: 120%; height: 48%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,140,48,.45), transparent 70%);
  filter: blur(8px);
  animation: hostAura 3.2s ease-in-out infinite;
}
.host-plate {
  position: absolute;
  left: 50%; bottom: 4%;
  width: 78%; height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,170,80,.55), rgba(0,0,0,0) 72%);
  box-shadow: 0 0 28px rgba(255,130,40,.35);
}
.host-burst {
  position: absolute; inset: 10% 0 20%;
  pointer-events: none;
  opacity: 0;
}
.host-burst i {
  position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: #ffb56a;
  box-shadow: 0 0 10px rgba(255,160,70,.8);
  opacity: 0;
}
.host.is-burst .host-burst i {
  animation: hostSpark .7s var(--ease-out) forwards;
}
.host-swap {
  position: relative;
  width: 100%;
  height: 88%;
  display: grid; place-items: end center;
}
.host-img {
  position: absolute;
  bottom: 10%;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transform: translateX(-50%) scale(.92);
  opacity: 0;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.55));
  transition: opacity .45s ease, transform .55s var(--ease-out), filter .45s;
  will-change: transform, opacity;
}
.host-img.is-front {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: hostBreathe 3.6s ease-in-out infinite;
  z-index: 2;
}
.host.is-swap .host-img.is-front {
  animation: hostPop .7s var(--ease-out);
}
@keyframes hostBreathe {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-7px) scale(1.03); }
}
@keyframes hostPop {
  0% { transform: translateX(-50%) scale(.7) rotate(-8deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.4)) brightness(1.4); }
  55% { transform: translateX(-50%) scale(1.08) rotate(4deg); filter: drop-shadow(0 22px 28px rgba(255,140,40,.35)) brightness(1.1); }
  100% { transform: translateX(-50%) scale(1) rotate(0); filter: drop-shadow(0 18px 24px rgba(0,0,0,.55)) brightness(1); }
}
@keyframes hostAura {
  0%, 100% { opacity: .55; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.12); }
}
@keyframes hostSpark {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2); }
}

/* —— Loader / Intro —— */
.loader, .intro {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-content: center; place-items: center; gap: 14px; text-align: center;
}
.loader { background: var(--bg); transition: opacity .65s var(--ease-out), visibility .65s; }
.loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  position: absolute;
  width: min(320px, 78vw); height: min(320px, 78vw);
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--soft);
  border-right-color: rgba(128,96,184,.35);
  animation: spin 1.4s linear infinite;
  opacity: .7;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-logo, .intro-logo {
  width: min(280px, 70vw);
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 32px rgba(128,96,184,.5));
  animation: logoBreathe 4s ease-in-out infinite;
}
.loader p, .intro-sub { color: var(--muted); letter-spacing: .14em; font-size: 13px; }
.intro {
  z-index: 25;
  background: radial-gradient(ellipse at 50% 40%, rgba(40,24,72,.45), rgba(7,4,14,.92) 62%);
  transition: opacity .7s var(--ease-out), visibility .7s, filter .7s;
}
.intro-glow {
  position: absolute; width: min(520px, 90vw); height: min(520px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,24,104,.22), transparent 65%);
  animation: glowPulse 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.12); opacity: 1; }
}
.intro.gone {
  opacity: 0; visibility: hidden; pointer-events: none;
  filter: blur(8px);
}
.intro-kicker {
  color: var(--soft); letter-spacing: .42em; font-weight: 800; font-size: 12px;
  animation: rise .8s .1s both var(--ease-out);
}
.intro h1 {
  font-family: Tajawal, Cairo, sans-serif;
  font-size: clamp(36px, 7vw, 68px); font-weight: 900;
  animation: rise .85s .22s both var(--ease-out);
  background: linear-gradient(180deg, #fff, var(--soft));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.intro-sub { animation: rise .85s .34s both var(--ease-out); }
#enterBtn {
  margin-top: 8px; border: 0; cursor: pointer;
  padding: 15px 44px; border-radius: 999px;
  font: 800 16px Cairo; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 40px rgba(176,24,104,.4), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-spring), box-shadow .35s;
  animation: rise .9s .48s both var(--ease-out);
}
#enterBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(176,24,104,.55), inset 0 1px 0 rgba(255,255,255,.3);
}
#enterBtn:active { transform: scale(.97); }
#enterBtn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 62%);
  transform: translateX(-130%);
  animation: sheen 3.6s ease-in-out infinite 1.2s;
}
@keyframes logoBreathe {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 24px rgba(128,96,184,.45)); }
  50% { transform: translateY(-6px) scale(1.03); filter: drop-shadow(0 0 42px rgba(176,24,104,.55)); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes sheen {
  0%, 60% { transform: translateX(-130%); }
  85%, 100% { transform: translateX(130%); }
}

/* —— Salon —— */
.salon {
  position: relative; z-index: 4; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: max(10px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  gap: 10px;
  min-height: 0;
  opacity: 0;
  transform: translateY(20px) scale(.985);
  filter: blur(4px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s;
}
.salon[hidden] { display: none; }
.salon.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.top { display: grid; gap: 12px; justify-items: center; }
.brand {
  height: 48px;
  filter: drop-shadow(0 0 16px rgba(128,96,184,.45));
}
.cats {
  display: flex; gap: 10px; flex-wrap: nowrap;
  justify-content: center; width: 100%;
  overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  border-radius: 999px;
  padding: 12px 26px;
  font: 900 17px/1 Tajawal, Cairo, sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition:
    transform .4s var(--ease-spring),
    opacity .3s,
    color .3s,
    background .35s,
    border-color .35s,
    box-shadow .4s;
}
.cat:hover {
  color: #fff;
  border-color: rgba(224,128,184,.45);
  transform: translateY(-2px);
}
.cat.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 10px 32px rgba(176,24,104,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transform: translateY(-2px) scale(1.02);
}
.cat.active::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%);
  animation: sheen 4s ease-in-out infinite;
}
.cat:active { transform: scale(.96); }

.icon-btn, .close-x, .nav-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); color: #fff;
  cursor: pointer; backdrop-filter: blur(14px); font-size: 22px;
  touch-action: manipulation;
  transition: transform .35s var(--ease-spring), border-color .25s, box-shadow .3s, background .25s;
}
.nav-btn { width: 56px; height: 56px; font-size: 32px; flex-shrink: 0; }
.nav-btn:hover, .icon-btn:hover {
  border-color: var(--soft);
  box-shadow: 0 0 28px rgba(224,128,184,.3);
  transform: scale(1.08);
  background: rgba(128,96,184,.22);
}
.nav-btn:active { transform: scale(.9); }

.hero {
  display: grid; grid-template-columns: auto 1.15fr .85fr auto;
  align-items: center; gap: 8px 18px; min-height: 0;
}
.vitrine {
  position: relative; height: min(58vh, 580px);
  display: grid; place-items: center;
  touch-action: pan-y;
  perspective: 1200px;
}
.stage {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
  will-change: transform;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(48px); pointer-events: none;
  will-change: transform, opacity;
}
.orb-a {
  width: 300px; height: 300px; background: rgba(128,96,184,.4); top: 4%; right: 6%;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-b {
  width: 240px; height: 240px; background: rgba(176,24,104,.32); bottom: 2%; left: 8%;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-c {
  width: 160px; height: 160px; background: rgba(224,128,184,.2); top: 42%; left: 46%;
  animation: orbFloat 7s ease-in-out infinite .8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .75; }
  50% { transform: translate3d(-22px, 16px, 0) scale(1.14); opacity: 1; }
}
.beam {
  position: absolute; top: -8%; left: 50%;
  width: 2px; height: 55%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(224,128,184,.55), transparent);
  filter: blur(1px);
  opacity: .45;
  pointer-events: none;
  animation: beamPulse 3.5s ease-in-out infinite;
}
@keyframes beamPulse {
  0%, 100% { opacity: .25; height: 48%; }
  50% { opacity: .55; height: 58%; }
}
.hero-wrap {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  max-width: min(460px, 92%);
  max-height: 100%;
}
#heroImg {
  position: relative; z-index: 2;
  max-height: min(54vh, 540px); max-width: 100%;
  width: auto; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
  transform-origin: 50% 70%;
  will-change: transform, opacity, filter;
}
.hero-reflect {
  position: absolute; z-index: 1;
  left: 8%; right: 8%; bottom: -6%;
  height: 28%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  transform: scaleY(-1);
  opacity: .22;
  filter: blur(1px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 75%);
  pointer-events: none;
  transition: opacity .4s;
}
.floor-glow {
  position: absolute; z-index: 1;
  bottom: 6%; left: 50%;
  width: min(280px, 70%); height: 36px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(176,24,104,.45), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  animation: floorPulse 4s ease-in-out infinite;
}
@keyframes floorPulse {
  0%, 100% { opacity: .45; transform: translateX(-50%) scaleX(1); }
  50% { opacity: .75; transform: translateX(-50%) scaleX(1.12); }
}

.sticker {
  position: absolute; z-index: 4; top: 5%; left: 2%;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-content: center; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 35%),
    radial-gradient(circle at 32% 28%, #f0a0c8, var(--pink) 58%, #6a1048);
  color: #fff;
  box-shadow:
    0 16px 36px rgba(176,24,104,.5),
    inset 0 0 0 3px rgba(255,255,255,.22),
    inset 0 -10px 20px rgba(0,0,0,.18);
  transform: rotate(-8deg);
  overflow: hidden;
  will-change: transform;
  animation: stickerBob 3.2s ease-in-out infinite;
}
@keyframes stickerBob {
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
  50% { transform: translateY(-10px) rotate(-2deg) scale(1.05); }
}
.sticker-shine {
  position: absolute; inset: -20%;
  background: linear-gradient(125deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  animation: stickerSheen 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes stickerSheen {
  0%, 55% { transform: translateX(-40%) rotate(12deg); opacity: 0; }
  70% { opacity: 1; }
  100% { transform: translateX(40%) rotate(12deg); opacity: 0; }
}
.sticker b {
  position: relative; z-index: 1;
  font-size: 28px; font-weight: 900; line-height: 1;
  font-family: Tajawal, Cairo, sans-serif;
  letter-spacing: -.02em;
}
.sticker span {
  position: relative; z-index: 1;
  font-size: 13px; font-weight: 800; opacity: .95; margin-top: 2px;
}
.idx,
.pager { display: none !important; }

.identity { min-width: 0; padding-inline: 8px 20px; }
.identity h2 {
  font-family: Tajawal, Cairo, sans-serif;
  font-size: clamp(26px, 4.2vw, 52px); font-weight: 900; line-height: 1.15;
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
  will-change: transform, opacity;
}
.pager { margin-top: 14px; color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.size {
  border: 1px solid var(--line); background: var(--glass); color: #fff;
  border-radius: 16px; padding: 10px 14px; cursor: pointer; text-align: center;
  backdrop-filter: blur(12px); touch-action: manipulation;
  transition: transform .35s var(--ease-spring), background .3s, border-color .3s, box-shadow .3s;
}
.size:hover { transform: translateY(-2px); border-color: var(--soft); }
.size:active { transform: scale(.96); }
.size b { display: block; font-size: 14px; font-weight: 900; }
.size span { font-size: 12px; color: var(--soft); font-weight: 800; }
.size.on {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(176,24,104,.4), inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.size.on span { color: #fff; }

.lookbook {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 2px;
  scrollbar-width: none; max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.lookbook::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 96px; height: 96px; border: 0; cursor: pointer;
  border-radius: 16px; padding: 6px 6px 7px;
  background: linear-gradient(165deg, rgba(48,28,72,.65), rgba(12,8,22,.78));
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  text-align: center; color: var(--cream);
  display: grid; grid-template-rows: 1fr auto; gap: 2px;
  transition: transform .4s var(--ease-spring), border-color .3s, box-shadow .4s, background .3s;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%);
  pointer-events: none;
}
.card img {
  width: 100%; height: 52px; object-fit: contain;
  transition: transform .45s var(--ease-spring);
  position: relative; z-index: 1;
}
.card b {
  font-size: 10px; line-height: 1.2; font-weight: 800;
  position: relative; z-index: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card span {
  display: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224,128,184,.55);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.card:hover img { transform: scale(1.08) translateY(-2px); }
.card.on {
  border-color: var(--pink);
  box-shadow: 0 10px 28px rgba(176,24,104,.4), 0 0 0 1px rgba(224,128,184,.25);
  transform: translateY(-4px);
  background: linear-gradient(165deg, rgba(176,24,104,.28), rgba(12,8,22,.85));
}
.card.on img { transform: scale(1.05); }

/* admin drawer leftovers */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.scrim[hidden], .admin[hidden] { display: none; }
.admin {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(400px, 94vw);
  z-index: 50; background: linear-gradient(180deg, #16102a, #07040e);
  border-left: 1px solid var(--line); padding: 22px; overflow: auto;
}
.admin-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.admin-head p { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.admin-upload { display: grid; gap: 8px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drop {
  display: grid; place-items: center; min-height: 110px; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 18px;
  background: rgba(128,96,184,.08); text-align: center; padding: 10px;
}
.drop.over { border-color: var(--pink); background: rgba(176,24,104,.16); }
.drop span { color: var(--muted); font-size: 13px; }
.drop img { max-height: 96px; max-width: 100%; object-fit: contain; }
.admin-upload input, .admin-upload select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: rgba(128,96,184,.08); color: #fff; font-size: 14px;
}
.admin-upload select option { color: #111; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#addBtn {
  border: 0; border-radius: 14px; padding: 12px; cursor: pointer;
  font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
#addBtn:disabled { opacity: .5; }
.admin-status { font-size: 12px; color: var(--soft); min-height: 1.2em; }
.admin-item {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center;
  padding: 10px; border-radius: 14px; background: rgba(128,96,184,.07);
  border: 1px solid var(--line); margin-bottom: 8px;
}
.admin-item img { width: 58px; height: 58px; object-fit: contain; background: #0a0814; border-radius: 10px; }
.admin-item span { font-size: 11px; color: var(--muted); display: block; }
.del-item { margin-top: 4px; border: 0; background: 0; color: var(--soft); cursor: pointer; font-size: 11px; }
.toggle {
  width: 50px; height: 28px; border: 0; border-radius: 999px; background: #2a2040; cursor: pointer; position: relative;
}
.toggle.on { background: linear-gradient(135deg, var(--pink), var(--purple)); }
.toggle i {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  transition: right .25s var(--ease-out);
}
.toggle.on i { right: 25px; }

@media (max-width: 900px) {
  .beam, .orb-c, .orb-a, .orb-b { display: none !important; }
  .logo-drift, .sparkles { display: none !important; }
  .host { display: none !important; }
  .bg-blob { filter: blur(70px); opacity: .32; }
  .intro-glow { opacity: .85; }

  .salon {
    position: relative;
    z-index: 10;
    isolation: isolate;
    height: 100dvh;
    height: 100svh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: max(8px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    gap: 8px;
    background: transparent;
  }
  .top {
    position: relative;
    z-index: 6;
    gap: 8px;
    width: 100%;
  }
  .brand { height: 36px; }
  .cats {
    justify-content: flex-start;
    padding: 2px 2px 4px;
    gap: 8px;
  }
  .cat {
    padding: 11px 18px;
    font-size: 15px;
    min-height: 44px;
    overflow: hidden;
    background: rgba(12, 8, 22, .88);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none !important;
    box-shadow: none;
  }
  .cat:hover { transform: none !important; }
  .cat.active {
    transform: none !important;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(176,24,104,.42);
  }
  .cat.active::before { display: none !important; animation: none !important; }
  .cat:active { transform: scale(.97) !important; }

  .hero {
    position: relative;
    z-index: 5;
    grid-template-columns: 44px 1fr 44px;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px 4px;
    min-height: 0;
  }
  .vitrine {
    grid-column: 2;
    height: auto;
    min-height: 0;
    max-height: none;
    align-self: stretch;
  }
  .stage { width: 100%; height: 100%; }
  .hero-wrap {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    z-index: 3;
  }
  #heroImg {
    max-height: min(58dvh, 560px);
    max-width: 100%;
    width: auto;
  }
  .hero-reflect { height: 14%; opacity: .1; bottom: -2%; }
  .floor-glow { bottom: 2%; height: 22px; opacity: .55; }
  .identity {
    position: relative;
    z-index: 5;
    grid-column: 1 / -1;
    text-align: center;
    padding: 0 4px;
  }
  .identity h2 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.2;
  }
  .sizes {
    justify-content: center;
    margin-top: 10px;
    gap: 6px;
  }
  .size { padding: 8px 12px; border-radius: 14px; min-height: 44px; }
  .nav-btn {
    width: 44px; height: 44px; font-size: 26px;
    align-self: center;
    position: relative;
    z-index: 6;
    background: rgba(12, 8, 22, .9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .sticker {
    width: 118px;
    height: 118px;
    top: 4%;
    left: 2%;
    z-index: 7;
    animation: none;
    transform: rotate(-8deg);
  }
  .sticker b {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.03em;
  }
  .sticker span {
    font-size: 13px;
    font-weight: 800;
  }
  .lookbook {
    position: relative;
    z-index: 6;
    gap: 8px;
    padding: 2px 2px 0;
  }
  .card {
    flex-basis: 78px;
    height: 78px;
    border-radius: 14px;
    padding: 5px;
    background: rgba(12, 8, 22, .9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .card img { height: 44px; }
  .card b { font-size: 10px; }
  .card.on { transform: translateY(-2px); }
  .loader-logo, .intro-logo { width: min(200px, 58vw); }
  .intro { gap: 10px; padding: 16px; }
  .intro h1 { font-size: clamp(28px, 8vw, 40px); }
  #enterBtn {
    width: min(280px, 86vw);
    padding: 16px 24px;
    font-size: 17px;
    min-height: 52px;
  }
}

@media (max-width: 480px) {
  .cat { padding: 10px 16px; font-size: 14px; }
  .sticker { width: 112px; height: 112px; }
  .sticker b { font-size: 28px; }
  .sticker span { font-size: 12px; }
  #heroImg { max-height: min(56dvh, 520px); max-width: 100%; }
  .card { flex-basis: 74px; height: 74px; }
  .card img { height: 42px; }
  .card b { font-size: 9px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .salon { grid-template-rows: auto minmax(0, 1fr); }
  .lookbook { display: none; }
  .vitrine { min-height: 55dvh; }
  #heroImg { max-height: 58dvh; }
}

/* ---------- admin page ---------- */
.gate {
  position: relative; z-index: 4; min-height: 100vh;
  display: grid; place-content: center; place-items: center; gap: 10px; text-align: center; padding: 40px 16px;
}
.gate h1 { font-family: Tajawal, Cairo, sans-serif; font-size: 32px; }
.gate p { color: var(--muted); font-size: 13px; }
.gate-form { display: grid; gap: 10px; width: min(320px, 92vw); margin-top: 8px; }
.gate-form input, .settings-bar input, .settings-bar select, .pin-form input {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: rgba(128,96,184,.1); color: #fff; font-size: 16px; text-align: center;
}
.gate-form button, .pin-form button {
  border: 0; border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.gate-form small { color: var(--muted); font-size: 11px; }
.desk {
  position: relative; z-index: 4;
  padding: 18px 20px 60px;
  max-width: 1100px; margin: 0 auto;
  min-height: 100vh;
}
.desk[hidden] { display: none !important; }
.gate[hidden] { display: none !important; }
.desk-top {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
  position: sticky; top: 0; z-index: 10;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(7,4,14,.96), rgba(7,4,14,.88));
  backdrop-filter: blur(10px);
}
.desk-top h1 { font-size: 22px; flex: 1; }
.desk-actions { display: flex; gap: 8px; }
.ghost {
  border: 1px solid var(--line); background: var(--glass); color: #fff;
  border-radius: 12px; padding: 8px 14px; cursor: pointer; text-decoration: none; font-size: 13px;
}
.ghost.sm { padding: 4px 10px; font-size: 12px; }
.settings-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end;
  padding: 14px; border-radius: 18px; background: rgba(18,10,32,.55);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.settings-bar label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.pin-form { display: flex; gap: 8px; }
.desk-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
.card-panel {
  padding: 16px; border-radius: 20px;
  background: rgba(18,10,32,.62); border: 1px solid var(--line);
}
.card-panel h3 { margin-bottom: 10px; }
.hint { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.sizes-editor { display: grid; gap: 8px; }
.sizes-head { display: flex; justify-content: space-between; align-items: center; }
.size-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.admin-list {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 4px;
  scrollbar-gutter: stable;
}
.admin-list::-webkit-scrollbar { width: 10px; }
.admin-list::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 999px; }
.admin-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pink), var(--purple));
  border-radius: 999px;
}
@media (max-width: 860px) {
  .desk-grid { grid-template-columns: 1fr; }
  .admin-list { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-blob, .loader-logo, .intro-logo, .loader-ring, .intro-glow,
  .orb, .beam, .floor-glow, .sticker-shine, .sticker, .cat.active::before, #enterBtn::after {
    animation: none !important;
  }
  .mascot-curtain, .host, .logo-drift, .sparkles { display: none !important; }
  .intro, .salon, .cat, .card, .size, .nav-btn, .stage {
    transition: none !important;
  }
  .sparkles { display: none; }
}
