/* ============================================================
   CHIQUE Store Requirement Portal — premium design system
   Fashion-brand aesthetic. No external deps except Google Fonts.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink:        #1d1d1f;
  --ink-soft:   #86868b;
  --muted:      #86868b;
  --line:       #d2d2d7;
  --line-soft:  #f5f5f7;
  --bg:         #f5f5f7;
  --card:       #ffffff;
  --brand:      #000000;
  --brand-dark: #1d1d1f;
  --brand-soft: #e8e8ed;
  --gold:       #a1824a;
  --ok:         #248a3d;
  --ok-soft:    #e5f4e7;
  --warn:       #b96a00;
  --warn-soft:  #fdf0e0;
  --danger:     #ff3b30;
  --danger-soft:#ffeceb;
  --info:       #0071e3;
  --info-soft:  #e6f0fa;

  --radius:     20px;
  --radius-sm:  12px;

  /* Elevation system */
  --shadow-xs:  0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.06);
  --shadow-md:  0 8px 24px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
  --shadow-lg:  0 16px 40px rgba(0,0,0,.12);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.16);

  /* Motion */
  --spring:     cubic-bezier(0.25, 1, 0.5, 1);
  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);

  --font-display: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h3, .brand, .page-head h1, .art-id, .stat .value, .auth-card h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 8px; }

/* ── Topbar / nav ────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; letter-spacing: .04em; font-size: 1.05rem; }
.brand .logo {
  position: relative; overflow: hidden;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; font-family: var(--font-body);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.brand .logo .logo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; background: #fff;
}
/* .logo-txt ("CH") sits underneath; shown only if the image fails to load */
.brand small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: .25rem; margin-left: 1rem; }
.nav a {
  position: relative; padding: .45rem .9rem; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: .9rem;
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.nav a:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--ink); color: #fff; font-weight: 600; }
.topbar .spacer { flex: 1; }
.who { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--ink-soft); }
.who .chip {
  background: var(--line-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  padding: .32rem .72rem; font-weight: 700; font-size: .76rem; letter-spacing: .04em;
}
.container { max-width: 1180px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; transition: opacity 150ms var(--ease); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.7rem; font-weight: 700; letter-spacing: -.01em; }
.page-head .sub { color: var(--muted); font-size: .88rem; margin-top: .25rem; }

/* ── Cards & stats ───────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat {
  position: relative; padding: 1.15rem 1.25rem; overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--spring), box-shadow 300ms var(--spring), border-color 300ms var(--ease);
}
.stat:hover {
  transform: translateY(-2px);
  border-color: #c2c2c7;
  box-shadow: var(--shadow-md);
}
.stat .label { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 2rem; font-weight: 800; margin-top: .35rem; letter-spacing: -.02em; line-height: 1.1; }
.stat .value.brand { color: var(--brand); }
.stat .value.ok { color: var(--ok); }
.stat .value.warn { color: var(--warn); }
.stat .value.info { color: var(--info); }
.stat .foot { color: var(--muted); font-size: .78rem; margin-top: .3rem; }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .26rem .62rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: badgePulse 2.4s var(--ease) infinite; }
@keyframes badgePulse { 0%,100% { opacity: .95; } 50% { opacity: .45; } }
.badge.pending   { background: var(--warn-soft);   color: var(--warn);   border-color: rgba(201,130,27,.22); }
.badge.approved  { background: var(--ok-soft);     color: var(--ok);     border-color: rgba(31,157,107,.22); }
.badge.rejected  { background: var(--danger-soft); color: var(--danger); border-color: rgba(210,71,90,.22); }
.badge.fulfilled { background: var(--info-soft);   color: var(--info);   border-color: rgba(58,110,165,.22); }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--card); }
thead th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; padding: .85rem 1rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #ffffff;
}
tbody td { padding: .82rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr { transition: background-color 120ms var(--ease); }
tbody tr:hover { background: var(--line-soft); }
tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.num.warn { color: var(--warn); }
.dim { color: var(--muted); }

/* ── Toolbar / search ────────────────────────────────────── */
.toolbar { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.1rem; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: .55rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .58rem 1.05rem;
  box-shadow: var(--shadow-xs); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.search:focus-within { border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
.search input { border: none; outline: none; flex: 1; font-size: .95rem; background: transparent; color: var(--ink); font-family: inherit; }
.search svg { color: var(--muted); flex-shrink: 0; }

/* ── Hero search (Request Dashboard) ─────────────────────── */
.hero-search {
  background: #ffffff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.6rem 1.6rem 1.4rem; margin-bottom: 1.4rem;
}
.hero-search h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 .35rem; }
.hero-search p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .9rem; max-width: 720px; }
.hero-search code { background: var(--line-soft); color: var(--ink); padding: .1rem .4rem; border-radius: 6px; font-size: .85em; font-weight: 600; }
.search.big {
  border-radius: 14px; padding: .95rem 1.2rem; gap: .7rem; border-width: 1px;
  box-shadow: var(--shadow-sm);
}
.search.big input { font-size: 1.12rem; font-weight: 500; }
.search.big svg { width: 22px; height: 22px; }
.search-clear {
  border: none; background: var(--line); color: var(--ink-soft); width: 26px; height: 26px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; flex-shrink: 0;
  transition: background 120ms var(--ease);
}
.search-clear:hover { background: #d2d2d7; }
.hero-meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; font-size: .85rem; color: var(--muted); }
.hero-meta #resultCount { font-weight: 800; color: var(--brand); }
.hero-meta .btn { margin-left: auto; }

/* ── Article list ────────────────────────────────────────── */
.art-list { display: flex; flex-direction: column; gap: .65rem; }
.art {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}
.art:hover { border-color: #c2c2c7; box-shadow: var(--shadow-md); }
.art.open { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-md); }
.art-head {
  display: grid; grid-template-columns: 1.4rem 2.1fr 1fr 1fr 1fr; align-items: center;
  gap: .75rem; padding: .95rem 1.15rem; cursor: pointer; user-select: none;
}
.art-head .caret { display: flex; align-items: center; transition: transform 220ms var(--spring), color 160ms var(--ease); color: var(--muted); }
.art.open .art-head .caret { transform: rotate(90deg); color: var(--brand); }
.art-id { font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; }
.art-meta { color: var(--muted); font-size: .82rem; margin-top: .18rem; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-right: .42rem; box-shadow: 0 0 0 2px rgba(161,130,74,.18); }
.metric { text-align: right; }
.metric .m-val { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.metric .m-lbl { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .1rem; }
.metric.sold .m-val { color: var(--brand); }
.metric.wh .m-val { color: var(--ok); }

/* Level 2: colours — INSTANT toggle (display) with a fast fade for polish */
.colors { display: none; padding: .35rem .4rem; background: var(--line-soft); border-top: 1px solid var(--line); }
.art.open > .colors { display: block; animation: fadeIn 90ms var(--ease); }
.color { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.color + .color { margin-top: .4rem; }
.color.open { border-color: #c2c2c7; box-shadow: var(--shadow-sm); }
.color-head {
  display: grid; grid-template-columns: 1.1rem 2fr 1fr 1fr 1fr; align-items: center; gap: .6rem;
  padding: .6rem .8rem; cursor: pointer; user-select: none;
}
.color-head .caret { display: flex; align-items: center; color: var(--muted); transition: transform 180ms var(--spring), color 140ms var(--ease); }
.color.open .color-head .caret { transform: rotate(90deg); color: var(--brand); }
.color-name { font-weight: 700; }

/* Level 3: sizes — INSTANT toggle */
.sizes { display: none; padding: .25rem .4rem .45rem; background: var(--line-soft); border-top: 1px dashed var(--line); }
.color.open > .sizes { display: block; animation: fadeIn 90ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.size-row {
  display: grid; grid-template-columns: 2.1fr 1fr 1fr 1fr auto; align-items: center; gap: .75rem;
  padding: .55rem .7rem; border-radius: var(--radius-sm); background: transparent;
  transition: background-color 110ms var(--ease);
}
.size-row + .size-row { margin-top: .15rem; }
.size-row:hover { background: #fff; box-shadow: var(--shadow-xs); }
.size-tag { font-weight: 700; }
.size-tag small { color: var(--muted); font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid transparent; border-radius: 999px; padding: .65rem 1.25rem;
  font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: transform 120ms var(--ease), background 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms var(--ease), opacity 150ms var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.btn-primary:hover { background: #333333; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--line-soft); text-decoration: none; }
.btn-sm { padding: .42rem .9rem; font-size: .85rem; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-info { background: var(--info); color: #fff; }
/* Out-of-stock / disabled */
.btn[disabled], .btn-disabled {
  position: relative; cursor: not-allowed; opacity: .5;
  background: var(--line-soft) !important; color: var(--muted) !important;
  border-color: var(--line) !important; box-shadow: none !important;
}
.btn-disabled::after { display: none; }
.btn[disabled]:hover, .btn-disabled:hover { transform: none; box-shadow: none !important; }

/* ── Forms ───────────────────────────────────────────────── */
input[type=number], input[type=text], input[type=password], select, textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: .65rem .85rem; background: #fff; outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
input:focus, select:focus, textarea:focus { border-color: var(--info); box-shadow: 0 0 0 3px var(--info-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.qty-input { width: 84px; text-align: center; font-weight: 600; }
label.fld { display: block; font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: .45rem; }

/* ── Login ───────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 408px; padding: 2.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.05); border-radius: 24px; box-shadow: var(--shadow-lg);
  animation: authIn 420ms var(--spring);
}
@keyframes authIn { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
.auth-card .brand { justify-content: center; margin-bottom: .5rem; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin: .7rem 0 .2rem; font-weight: 700; }
.auth-card p.tag { text-align: center; color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.auth-card .fld + .fld { margin-top: 1rem; }
.auth-card input { width: 100%; padding: .8rem .9rem; }
.auth-card .btn { width: 100%; margin-top: 1.5rem; padding: .85rem; font-size: 1rem; }
.alert { padding: .72rem .9rem; border-radius: 12px; font-size: .85rem; font-weight: 500; margin-bottom: 1rem; }
.alert.err { background: var(--danger-soft); color: var(--danger); }

/* ── Modal ───────────────────────────────────────────────── */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.25); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: none; place-items: center; z-index: 100; padding: 1rem; }
.modal-back.show { display: grid; animation: backIn 200ms var(--ease); }
@keyframes backIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: 100%; max-width: 430px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(0,0,0,0.05); border-radius: 24px; box-shadow: var(--shadow-xl); padding: 1.8rem; animation: modalIn 240ms var(--spring); }
@keyframes modalIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
.modal h3 { margin: 0 0 .3rem; font-size: 1.35rem; font-weight: 700; }
.modal .item-line { background: var(--line-soft); border-radius: 12px; padding: .85rem 1rem; margin: .95rem 0; font-size: .95rem; }
.modal .item-line b { color: var(--ink); }
.modal textarea { width: 100%; min-height: 80px; resize: vertical; margin-top: .2rem; }
.modal .actions { display: flex; gap: .6rem; margin-top: 1.25rem; }
.modal .actions .btn { flex: 1; }
.modal-warn { background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: .65rem .9rem; font-size: .85rem; font-weight: 500; margin-top: .65rem; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(140%);
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; padding: .85rem 1.4rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1);
  font-weight: 500; font-size: .95rem; z-index: 200; max-width: 90vw;
  transition: transform 320ms var(--spring);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--ok); }
.toast.warn { background: var(--warn); }
.toast.err { background: var(--danger); }

/* ── Misc ────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 3.5rem 1rem; color: var(--muted);
  background: linear-gradient(150deg, #fbf9fd 0%, #f4f1f8 100%);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty .big { font-size: 2.8rem; margin-bottom: .6rem; opacity: .75; animation: float 3.4s var(--ease) infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.empty p { max-width: 420px; margin: 0 auto; line-height: 1.6; }
.snap-note { font-size: .78rem; color: var(--muted); }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
/* Summary date-range filters: compact label + two date inputs */
.filters .flt-date { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.filters .flt-date input[type="date"] { padding: .4rem .5rem; font-size: .82rem; }
.filters .flt-count { margin-left: auto; font-size: .82rem; }

/* Urgent / 100%-sale flag + rejection reason */
.urgent-flag {
  display: inline-block; margin-left: .4rem; padding: .08rem .4rem;
  font-size: .64rem; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: var(--danger); border-radius: 6px; vertical-align: middle;
}
tr.urgent { background: var(--danger-soft); }
tr.urgent:hover { background: var(--danger-soft); }
.reject-reason { font-size: .72rem; color: var(--danger); margin-top: .2rem; max-width: 220px; }
/* Urgent checkbox in the reserve modal */
.urgent-check {
  display: flex; align-items: center; gap: .55rem; margin-top: .9rem;
  padding: .6rem .75rem; border: 1px solid var(--danger-soft); border-radius: 12px;
  background: var(--danger-soft); cursor: pointer; font-size: .9rem; font-weight: 600;
}
.urgent-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--danger); cursor: pointer; }
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .page-head h1 { font-size: 1.4rem; }
  .art-head { grid-template-columns: 1.2rem 1.6fr 1fr 1fr; gap: .5rem; padding: .85rem .9rem; }
  .art-head .metric.store { display: none; }
  .size-row { grid-template-columns: 1.3fr 1fr 1fr auto; }
  .size-row .store-col { display: none; }
  .nav a { padding: .4rem .65rem; font-size: .82rem; }
  .stat, .art, .btn { transition-duration: 110ms; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Admin: bulk action bar ──────────────────────────────── */
.bulkbar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  padding: .7rem 1rem; margin-bottom: 1rem;
}
.bulkbar .spacer { flex: 1; }
.bulk-check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.bulk-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.bulkbar select, .bulkbar input[type=date] { font-size: .88rem; padding: .45rem .6rem; }
.rowchk, #selectAllHead { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.row-actions { display: flex; gap: .45rem; flex-direction: column; align-items: stretch; }

/* ── Nav: animated sliding pill (segmented control) ──────── */
.nav {
  position: relative;
  display: flex;
  gap: 0;
  margin-left: 1rem;
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 4px;
}
.nav .nav-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  z-index: 0;
  pointer-events: none;
  transition: transform 380ms var(--spring), width 380ms var(--spring);
}
.nav a {
  position: relative;
  z-index: 1;
  padding: .42rem .95rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.nav a:hover { background: transparent; color: var(--ink); text-decoration: none; }
.nav a.active { background: transparent; color: var(--ink); font-weight: 700; }
.nav a.active::after { display: none; }   /* drop any older active marker */

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Login Store/Admin toggle (segmented control) ────────── */
.login-toggle {
  display: flex; gap: 4px; margin: 0 0 1.4rem;
  background: var(--brand-soft); border-radius: 999px; padding: 4px;
}
.login-toggle a {
  flex: 1; text-align: center; padding: .5rem .8rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem; color: var(--ink-soft); text-decoration: none;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.login-toggle a:hover { color: var(--ink); text-decoration: none; }
.login-toggle a.active { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
