/* ═══════════════════════════════════════════════════════════
   Fairmont Southampton — Uniform Portal  |  Luxury Design
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --ink:       #0d1b2e;
  --ink-mid:   #152640;
  --gold:      #5ba3d9;
  --gold-lt:   #a8d4f0;
  --gold-dk:   #2f7ab8;
  --gold-pale: #eaf4fb;
  --cream:     #f3f8fd;
  --white:     #ffffff;
  --teal:      #1a7fa3;
  --teal-lt:   #ceeaf5;
  --grey-50:   #f0f5fa;
  --grey-100:  #dde8f2;
  --grey-200:  #bdd0e6;
  --grey-400:  #7a9ab8;
  --grey-600:  #4a6a88;
  --error:     #b83232;
  --success:   #1e7a52;

  --r:    10px;
  --r-sm: 6px;
  --r-lg: 18px;
  --sh:   0 4px 32px rgba(13,27,46,.12);
  --sh-lg:0 12px 60px rgba(13,27,46,.20);
  --t:    all .28s cubic-bezier(.4,0,.2,1);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(91,163,217,.12) 0%, transparent 70%);
  pointer-events: none;
}
.header-gold-bar {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-lt) 50%, var(--gold) 80%, transparent);
}
.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 28px;
  gap: 10px;
}
.header-logo-img {
  height: 56px;
  filter: invert(1) brightness(10);
  opacity: .92;
  transition: opacity .3s;
}
.header-logo-img:hover { opacity: 1; }
.header-tagline {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .35em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: .9;
}

/* ── PROGRESS ────────────────────────────────────────────── */
.progress-wrap {
  background: var(--ink-mid);
  padding: 0 24px;
  border-bottom: 1px solid rgba(91,163,217,.2);
}
.progress-inner { max-width: 640px; margin: 0 auto; }
.progress-steps {
  display: flex;
  align-items: center;
  padding: 18px 0;
}
.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  position: relative;
}
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 1px;
  background: rgba(255,255,255,.15);
  transition: background .4s;
}
.progress-step.done:not(:last-child)::after { background: var(--gold); }

.step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  transition: var(--t);
  z-index: 1;
}
.progress-step.done .step-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.progress-step.active .step-dot {
  background: var(--white);
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(91,163,217,.25);
}
.step-label {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  font-family: var(--sans);
  white-space: nowrap;
}
.progress-step.active .step-label { color: var(--gold-lt); }
.progress-step.done .step-label { color: rgba(255,255,255,.6); }

/* ── HERO WELCOME ────────────────────────────────────────── */
.hero-wrap {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235ba3d9' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-wrap::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: var(--sans);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--gold-lt); }
.hero-subtitle {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-steps {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(91,163,217,.2);
  border-radius: 40px;
  padding: 10px 18px;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  font-family: var(--sans);
  backdrop-filter: blur(8px);
}
.hero-step .step-n {
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 50%;
  color: var(--ink);
  font-weight: 700;
  font-size: .72rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── MAIN ────────────────────────────────────────────────── */
.main-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px 80px; }

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  border: 1px solid var(--grey-100);
  margin-top: -32px;
  position: relative;
}
.card-top {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-mid) 100%);
  padding: 28px 32px;
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.card-top::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,163,217,.15), transparent 70%);
}
.card-top h2 {
  font-family: var(--serif);
  color: var(--white);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.card-top p { color: rgba(255,255,255,.55); font-size: .85rem; }
.card-body { padding: 32px; }
@media (max-width: 540px) { .card-body { padding: 20px; } .card-top { padding: 20px; } }

/* ── STEP TRANSITIONS ────────────────────────────────────── */
.step-panel { animation: fadeSlideUp .4s cubic-bezier(.4,0,.2,1); }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-section { margin-bottom: 28px; }
.section-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dk);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.full { grid-column: 1/-1; }
@media (max-width: 540px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--grey-600);
  letter-spacing: .04em;
  text-transform: uppercase;
}
label .req { color: var(--gold); margin-left: 2px; }
input, select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  transition: var(--t);
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(91,163,217,.12);
}
input.err, select.err { border-color: var(--error); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239a9082'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field-hint { font-size: .73rem; color: var(--grey-400); font-style: italic; line-height: 1.4; }
.field-err { font-size: .73rem; color: var(--error); display: none; }
.field-err.show { display: block; }

/* ── GENDER SELECTOR ─────────────────────────────────────── */
.gender-row { display: flex; gap: 12px; }
.gender-opt { flex: 1; position: relative; }
.gender-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.gender-opt label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r);
  cursor: pointer;
  transition: var(--t);
  text-transform: none;
  font-size: .85rem;
  color: var(--grey-600);
  background: var(--cream);
}
.gender-opt label .g-icon { font-size: 1.8rem; }
.gender-opt label .g-text { font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.gender-opt input:checked + label {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(91,163,217,.15);
}
.gender-opt label:hover { border-color: var(--gold-dk); background: var(--grey-50); }

/* ── UNIT TOGGLE ─────────────────────────────────────────── */
.unit-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--gold-pale);
  border: 1px solid rgba(91,163,217,.4);
  border-radius: var(--r-sm);
  margin-bottom: 24px;
}
.unit-bar-label { font-size: .78rem; font-weight: 600; color: var(--ink-mid); font-family: var(--sans); }
.toggle-pill {
  display: flex;
  background: var(--grey-100);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.toggle-pill button {
  padding: 5px 14px;
  border: none;
  border-radius: 16px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  background: transparent;
  color: var(--grey-400);
  transition: var(--t);
}
.toggle-pill button.active {
  background: var(--ink);
  color: var(--gold);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* ── MEASUREMENT LAYOUT ──────────────────────────────────── */
.meas-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 640px) { .meas-layout { grid-template-columns: 1fr; } .svg-panel { display: none; } }
.svg-panel { position: sticky; top: 20px; }
.svg-panel-title {
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-dk);
  text-align: center;
  margin-bottom: 8px;
  font-family: var(--sans);
}
.body-svg { width: 100%; max-width: 200px; display: block; margin: 0 auto; height: auto; }

/* callout animation */
.c-line { stroke: var(--grey-200); stroke-width: 1.5; stroke-dasharray: 4 3; transition: stroke .25s, stroke-width .25s; }
.c-dot  { fill: var(--grey-200); transition: fill .25s, r .25s; }
.c-lbl  { fill: var(--grey-400); font-family: var(--sans); font-size: 9px; transition: fill .25s; }
.c-line.lit { stroke: var(--gold) !important; stroke-width: 2.5 !important; stroke-dasharray: none !important; }
.c-dot.lit  { fill: var(--gold) !important; }
.c-lbl.lit  { fill: var(--ink) !important; font-weight: 700 !important; }

/* ── MEASUREMENT FIELD ───────────────────────────────────── */
.meas-field {
  background: var(--grey-50);
  border: 1.5px solid var(--grey-100);
  border-radius: var(--r);
  padding: 16px;
  transition: var(--t);
  cursor: default;
  margin-bottom: 12px;
}
.meas-field:hover { border-color: var(--grey-200); }
.meas-field.lit { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 2px 12px rgba(91,163,217,.12); }
.mf-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mf-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.meas-field.lit .mf-num { background: var(--gold); color: var(--ink); }
.mf-name { font-size: .88rem; font-weight: 600; color: var(--ink); }
.mf-tip { font-size: .73rem; color: var(--grey-400); font-style: italic; margin-bottom: 10px; line-height: 1.5; }
.mf-inputs { display: flex; gap: 10px; align-items: flex-end; }
.mf-group { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.mf-group label { font-size: .68rem; color: var(--grey-400); text-transform: uppercase; letter-spacing: .08em; }
.mf-group input { padding: 9px 10px; font-size: .88rem; background: var(--white); }
.mf-eq { color: var(--grey-300); font-size: .8rem; padding-bottom: 10px; flex-shrink: 0; }

/* ── SIZE SUGGESTION ─────────────────────────────────────── */
.size-box {
  background: var(--ink);
  border-radius: var(--r);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.size-box.show { opacity: 1; transform: translateY(0); }
.size-box-icon { font-size: 1.6rem; flex-shrink: 0; }
.size-box-body { flex: 1; }
.size-box-label { font-size: .72rem; color: rgba(255,255,255,.5); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.size-box-val { font-size: 1.4rem; font-weight: 700; color: var(--gold); font-family: var(--sans); }

/* ── COAT FIT SELECTOR ───────────────────────────────────── */
.fit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 400px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-opt { position: relative; }
.fit-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.fit-opt label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: var(--t);
  text-transform: none;
  font-size: .85rem;
  color: var(--grey-600);
  background: var(--cream);
}
.fit-badge {
  min-width: 36px; height: 36px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.fit-badge.sf { background: #e07b3a; }
.fit-badge.mf { background: #7b5ea7; }
.fit-badge.cf { background: #c0392b; }
.fit-badge.gf { background: #3a8fa0; }
.fit-info strong { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.fit-info span { font-size: .72rem; color: var(--grey-400); }
.fit-opt input:checked + label { border-color: var(--gold); background: var(--gold-pale); }

/* ── SIZE GRID (alpha/numeric) ───────────────────────────── */
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.size-opt label {
  display: flex; align-items: center; justify-content: center;
  min-width: 52px; height: 44px; padding: 0 10px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  transition: var(--t);
  text-align: center;
}
.size-opt input:checked + label { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.size-opt label:hover { border-color: var(--ink); }

/* ── REVIEW ──────────────────────────────────────────────── */
.review-block {
  border: 1.5px solid var(--grey-100);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 14px;
}
.review-hd {
  background: var(--ink);
  color: var(--white);
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-hd span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.review-edit { background: none; border: none; color: var(--gold); font-size: .75rem; cursor: pointer; font-family: var(--sans); text-decoration: underline; }
.review-rows { padding: 4px 16px; }
.review-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-50);
  font-size: .85rem;
}
.review-row:last-child { border: none; }
.rk { color: var(--grey-400); }
.rv { color: var(--ink); font-weight: 500; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 28px;
  border-radius: 40px;
  font-size: .85rem; font-weight: 600;
  font-family: var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  transition: var(--t);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-lt); border-color: var(--gold-lt); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,163,217,.4); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--grey-200);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-mid); }
.btn-lg { padding: 16px 40px; font-size: .95rem; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: .78rem; }

/* Shimmer on primary CTA */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left .5s;
}
.btn-gold:hover::after { left: 140%; }

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--grey-100);
}

/* ── SUCCESS ─────────────────────────────────────────────── */
.success-wrap { text-align: center; padding: 56px 32px; }
.success-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  box-shadow: 0 6px 24px rgba(91,163,217,.35);
}
.success-wrap h2 { font-family: var(--serif); font-size: 2rem; font-weight: 400; color: var(--ink); margin-bottom: 12px; }
.success-wrap p { color: var(--grey-600); max-width: 400px; margin: 0 auto 8px; }
.success-ref { font-size: .82rem; color: var(--gold-dk); margin-top: 8px; }

/* ── ADMIN LAYOUT ────────────────────────────────────────── */
.admin-bar {
  background: var(--ink);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.admin-brand img { height: 36px; filter: invert(1) brightness(10); opacity: .85; }
.admin-brand-sub { font-size: .65rem; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; margin-top: 4px; }

.admin-nav { display: flex; gap: 4px; }
.admin-nav button {
  padding: 8px 16px;
  border: 1.5px solid transparent;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  transition: var(--t);
  letter-spacing: .04em;
}
.admin-nav button.active { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.admin-nav button:hover:not(.active) { color: var(--white); border-color: rgba(255,255,255,.2); }

.admin-wrap { max-width: 1400px; margin: 0 auto; padding: 24px 20px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* Stats */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.stat-card {
  flex: 1; min-width: 140px;
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
}
.stat-val { font-size: 2.2rem; font-weight: 700; color: var(--ink); font-family: var(--sans); line-height: 1; }
.stat-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-400); margin-top: 6px; }

/* Toolbar */
.toolbar {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 18px 20px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  margin-bottom: 20px;
}
.tb-group { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.tb-group label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-600); }
.tb-group select, .tb-group input { padding: 8px 12px; font-size: .85rem; }
.tb-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; align-items: center; }

/* Table */
.table-wrap {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: auto;
}
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .82rem; }
thead tr { background: var(--ink); }
thead th { padding: 12px 14px; color: var(--white); font-weight: 600; text-align: left; white-space: nowrap; letter-spacing: .03em; }
thead th:first-child { color: var(--gold); }
tbody tr { border-bottom: 1px solid var(--grey-50); transition: background .15s; }
tbody tr:hover { background: var(--gold-pale); }
tbody td { padding: 11px 14px; color: var(--ink); white-space: nowrap; }
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-foh   { background: #dceeff; color: #1a4080; }
.badge-chef  { background: #fff3dd; color: #804a00; }
.badge-other { background: var(--grey-100); color: var(--grey-600); }
.tbl-empty { text-align: center; padding: 48px; color: var(--grey-400); font-size: .9rem; }

/* CRUD panels */
.mgmt-wrap {
  background: var(--white);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 24px;
}
.mgmt-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mgmt-hd h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.mgmt-list { display: flex; flex-direction: column; gap: 10px; }
.mgmt-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-100);
  border-radius: var(--r-sm);
  background: var(--grey-50);
  transition: var(--t);
}
.mgmt-item:hover { border-color: var(--grey-200); }
.mgmt-item-icon { font-size: 1.3rem; width: 32px; text-align: center; flex-shrink: 0; }
.mgmt-item-name { flex: 1; font-weight: 500; }
.mgmt-item-actions { display: flex; gap: 6px; }
.mgmt-item.inactive { opacity: .5; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13,27,46,.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 36px;
  width: 400px;
  max-width: 94vw;
  transform: scale(.95) translateY(12px);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* Login overlay */
.login-overlay {
  position: fixed; inset: 0;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.login-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23c9a96e' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(91,163,217,.2);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  width: 380px;
  max-width: 92vw;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.login-box img { height: 50px; filter: invert(1) brightness(10); opacity: .85; margin-bottom: 24px; }
.login-box h2 { font-family: var(--serif); color: var(--white); font-size: 1.6rem; font-weight: 300; margin-bottom: 6px; }
.login-box p { color: rgba(255,255,255,.4); font-size: .82rem; margin-bottom: 28px; }
.login-box input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: var(--white); }
.login-box input:focus { border-color: var(--gold); background: rgba(255,255,255,.08); }
.login-box input::placeholder { color: rgba(255,255,255,.25); }
.login-err { color: #ff7070; font-size: .78rem; margin-top: 10px; display: none; }
.login-err.show { display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  text-align: center;
  padding: 28px 20px;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  font-family: var(--sans);
}
.site-footer .footer-logo { margin-bottom: 12px; }
.site-footer .footer-logo img { height: 28px; filter: invert(1) brightness(10); opacity: .4; }
.footer-gold-bar { height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-lt) 50%, var(--gold) 70%, transparent); margin-bottom: 28px; }

/* ── HELPERS ─────────────────────────────────────────────── */
.hidden  { display: none !important; }
.mt-12   { margin-top: 12px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.15); border-top-color: var(--ink); border-radius: 50%; animation: spin .65s linear infinite; display: inline-block; }

/* Scroll fade-in */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.fade-in.visible { opacity: 1; transform: none; }
