/* =========================================================
   NIGHT ANGELS — clean flat redesign (2018–2020 style)
   Light-first · white cards · soft shadows · Manrope sans
   Rewritten from scratch. Targets all existing selectors so
   every page keeps working; only the look changes.
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root,
[data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #f4f4f5;
  --surface:   #ffffff;
  --surface-2: #f4f4f5;
  --card:      #ffffff;
  --card-2:    #f4f4f5;
  --card-bg:   #ffffff;
  --ink:       #111113;
  --text:      #111113;
  --ink-soft:  #3f3f46;
  --muted:     #8a8a92;
  --gold:      #e11d48;   /* single bright accent — red */
  --gold-2:    #f43f5e;
  --gold-deep: #be123c;
  --wine:      #be123c;
  --line:      #e4e4e7;
  --line-gold: #f6c3cd;
  --shadow:    rgba(17, 17, 19, 0.08);
  --on-gold:   #ffffff;
  --photo-filter: none;
  --header-bg: #ffffff;
  --chip-bg:   #f4f4f5;
  --display:   var(--sans);
}

[data-theme="dark"] {
  --bg:        #0a0a0b;
  --bg-2:      #000000;
  --surface:   #151517;
  --surface-2: #1e1e21;
  --card:      #151517;
  --card-2:    #1e1e21;
  --card-bg:   #151517;
  --ink:       #f4f4f5;
  --text:      #f4f4f5;
  --ink-soft:  #c7c7cc;
  --muted:     #8a8a92;
  --gold:      #f43f5e;
  --gold-2:    #fb7185;
  --gold-deep: #fb7185;
  --wine:      #fb7185;
  --line:      #2a2a2e;
  --line-gold: #4a1c28;
  --shadow:    rgba(0, 0, 0, 0.6);
  --on-gold:   #ffffff;
  --photo-filter: none;
  --header-bg: #0a0a0b;
  --chip-bg:   #1e1e21;
}

:root {
  --serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --r-lg: 4px;
  --r-md: 3px;
  --r-sm: 2px;
  --r-pill: 999px;
  --adm-top-h: 60px;   /* admin bar height on mobile; the nav drawer hangs off it */
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
::selection { background: var(--gold); color: var(--on-gold); }
.muted { color: var(--muted); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep);
}
.eyebrow::before, .eyebrow::after { content: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r-md);
  cursor: pointer; background: none; line-height: 1.2; transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-block { display: flex; width: 100%; text-align: center; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; width: 100%; padding: 14px 0;
  background: var(--header-bg);
  border-bottom: 2px solid var(--ink);
  box-shadow: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark {
  font-family: var(--serif); font-size: 20px; font-weight: 800; letter-spacing: 0.02em;
  color: var(--ink); text-transform: none;
}
.brand-sub { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; margin-right: 6px; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; padding: 6px 0; position: relative; transition: color 0.18s var(--ease); white-space: nowrap; font-weight: 600;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a::after { content: none; }

/* language switch */
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.lang-switch button {
  background: var(--surface); border: none; color: var(--muted); cursor: pointer;
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 11px; transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover { color: var(--ink); background: var(--surface-2); }
.lang-switch button.active { background: var(--gold); color: var(--on-gold); }

/* theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  color: var(--ink-soft); cursor: pointer; transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.theme-toggle:hover { color: var(--gold-deep); border-color: var(--gold); }
.theme-toggle svg { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }
[data-theme="dark"]  .theme-toggle .ic-sun  { display: block; }

/* mobile nav toggle */
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  cursor: pointer; padding: 0; flex-direction: column; gap: 4px; transition: border-color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-soft); transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Filter bar ---------- */
.filter-bar { position: relative; z-index: 5; padding: 0 0 22px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.filter-toggle {
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 12px 14px; cursor: pointer; transition: border-color 0.18s var(--ease);
}
.filter-toggle:hover { border-color: var(--gold); }
.filter-toggle svg { color: var(--gold); transition: transform 0.2s var(--ease); flex-shrink: 0; }
.filter-bar.open .filter-toggle svg { transform: rotate(180deg); }

.filter-panel { padding-top: 22px; }
.filter-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.filter-head-label { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); }
.filter-head-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.filter-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.filter-count #resultsCount { color: var(--gold-deep); font-family: var(--serif); font-size: 20px; font-weight: 700; margin-right: 3px; }
.filter-reset {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 8px 14px; transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.filter-reset:hover { border-color: var(--gold); color: var(--gold-deep); }

.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.filter-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter-grid label > span { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-weight: 600; }
.filter-grid select,
.filter-grid input[type="text"] {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 400;
  appearance: none; cursor: pointer; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.filter-grid select { padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a94a2' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.filter-grid option { background: var(--surface); color: var(--ink); }
.filter-grid select:focus,
.filter-grid input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16); }
.filter-grid select:hover,
.filter-grid input:hover { border-color: var(--gold); }

/* custom filter dropdowns */
.fsel { position: relative; width: 100%; }
.fsel-native { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.fsel-btn {
  width: 100%; height: 40px; padding: 0 32px 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--ink); font-family: var(--sans); font-size: 14px; text-align: left; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a94a2' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.fsel-btn.is-placeholder { color: var(--muted); }
.fsel-btn:hover { border-color: var(--gold); }
.fsel.is-open .fsel-btn { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.16); }
.fsel-menu {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 40;
  max-height: 220px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: 0 12px 30px var(--shadow); padding: 5px;
}
.fsel-opt {
  display: block; width: 100%; text-align: left; background: none; border: none; border-radius: var(--r-sm);
  color: var(--ink); font-family: var(--sans); font-size: 14px; padding: 9px 11px; cursor: pointer;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.fsel-opt:hover { background: var(--chip-bg); color: var(--gold-deep); }
.fsel-opt.is-active { background: var(--gold); color: var(--on-gold); font-weight: 600; }

.na-scroll { scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.na-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.na-scroll::-webkit-scrollbar-track { background: transparent; }
.na-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.na-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.f-search { grid-column: span 2; }
.f-age { grid-column: span 2; }
.f-check { grid-column: span 2; flex-direction: row !important; align-items: center; gap: 9px !important; align-self: end; min-height: 40px; cursor: pointer; }
.f-check input { width: 17px; height: 17px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.f-check span { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.f-search input { cursor: text; }
.f-search input::placeholder { color: var(--muted); }
.age-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.age-row select { min-width: 0; }
.age-dash { color: var(--muted); text-align: center; font-size: 13px; }

/* ---------- Catalog ---------- */
.catalog { padding: 30px 0 60px; }
.profiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.catalog-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 18px; }
.catalog-note { margin: 44px auto 0; font-size: 13px; color: var(--muted); max-width: 640px; }

/* ---------- Profile card (clean image-top card) ---------- */
.profile {
  position: relative; display: block; background: var(--surface); cursor: pointer;
  border: 1px solid var(--line); text-decoration: none; color: inherit;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 3px var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  opacity: 0; transform: translateY(12px);
}
.profile.in { opacity: 1; transform: none; }
.profile:hover { transform: translateY(-4px); box-shadow: 0 10px 26px var(--shadow); border-color: var(--line-gold); }
.profile::after { content: none; }

.profile-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background-size: cover; background-position: center top; background-color: var(--surface-2); }
.profile-photo::after { content: none; }
.profile-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.profile-verified { position: absolute; top: 10px; left: 10px; z-index: 2; background: rgba(20,25,35,0.62); border-radius: var(--r-sm); color: #fff; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; }
.profile-badges { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.badge { font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-sm); font-weight: 600; }
.badge-premium { background: var(--gold); color: var(--on-gold); }
.badge-online { background: rgba(20,25,35,0.62); color: #cdeccf; }
.badge-online::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #34d058; margin-right: 5px; vertical-align: middle; }
.badge-top { background: #111113; color: #fff; }
.badge-vip { background: var(--gold); color: #fff; }

.profile-hoverbtn { display: none; }

.profile-body { padding: 14px 15px 16px; position: relative; }
.profile-name { font-family: var(--serif); font-size: 19px; color: var(--ink); line-height: 1.2; font-weight: 700; }
.profile-loc { font-size: 12px; letter-spacing: 0.02em; text-transform: none; color: var(--gold-deep); margin-top: 4px; font-weight: 600; }
.profile-divider { height: 1px; background: var(--line); margin: 11px 0; }
.profile-phys { font-size: 13px; color: var(--ink-soft); }
.profile-travel { display: inline-block; margin-top: 7px; font-size: 11px; letter-spacing: 0.02em; text-transform: none; color: var(--muted); }
.profile-travel::before { content: "\2708  "; color: var(--gold-deep); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.profile-tags span { font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); border: 1px solid var(--line); background: var(--chip-bg); padding: 3px 9px; border-radius: var(--r-pill); }
.is-premium { border-color: var(--line-gold); }
.profile-rating { font-size: 12px; font-weight: 700; color: var(--gold-deep); margin-left: 6px; white-space: nowrap; }
.profile-rating i { color: var(--muted); font-style: normal; font-weight: 400; }

.profile-fav {
  position: absolute; top: 9px; right: 9px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85); border: 1px solid var(--line); color: #64707e; transition: transform 0.15s, background 0.15s, color 0.15s;
}
.profile-fav svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-fav:hover { transform: scale(1.08); }
.profile-fav.is-fav { background: #e5484d; border-color: #e5484d; color: #fff; }
.profile-fav.is-fav svg { fill: #fff; stroke: #fff; }

/* ---------- quick filter chips ---------- */
.quick-chips { position: relative; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.qchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.qchip:hover { border-color: var(--gold); color: var(--ink); }
.qchip.is-on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.qchip-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d058; }
.qchip-heart { color: #e5484d; font-size: 14px; line-height: 1; }
.qchip.is-on .qchip-heart { color: inherit; }

/* ---------- saved searches + city alerts ---------- */
.saved-bar { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.saved-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.saved-chip { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.saved-chip-apply { background: none; border: none; color: var(--ink-soft); padding: 6px 4px 6px 12px; font-size: 12px; cursor: pointer; }
.saved-chip-x { background: none; border: none; color: var(--muted); padding: 6px 10px 6px 4px; font-size: 15px; line-height: 1; cursor: pointer; }
.saved-chip-x:hover { color: var(--wine); }
#cityAlertBtn.active { border-color: var(--gold); color: var(--gold-deep); }

/* ---------- VIP carousel rail ---------- */
.vip-rail { margin: 6px 0 22px; }
.vip-rail-title { display: flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.vip-rail-badge { background: var(--gold); color: #fff; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); font-size: 12px; }
.vip-rail-track { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.vip-rail-track::-webkit-scrollbar { height: 8px; }
.vip-rail-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.vip-card { flex: 0 0 160px; scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
.vip-card-img { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r-lg); background-size: cover; background-position: center top; border: 1px solid var(--line); overflow: hidden; }
.vip-card-online { position: absolute; top: 9px; left: 9px; width: 10px; height: 10px; border-radius: 50%; background: #34d058; box-shadow: 0 0 0 2px #fff; }
.vip-card-rating { position: absolute; bottom: 8px; left: 8px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20,25,35,0.7); padding: 2px 7px; border-radius: var(--r-pill); }
.vip-card-name { display: block; font-weight: 700; font-size: 14px; margin: 8px 2px 0; color: var(--ink); }
.vip-card-loc { display: block; font-size: 12px; color: var(--muted); margin: 2px 2px 0; }
.vip-card:hover .vip-card-img { border-color: var(--gold); }

/* ---------- recently viewed rail ---------- */
.recent-rail { margin: 0 0 22px; }
.recent-rail-title { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.recent-rail-track { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.recent-card { flex: 0 0 auto; width: 112px; text-decoration: none; color: inherit; }
.recent-card-img { display: block; width: 112px; height: 148px; border-radius: var(--r-lg); background-size: cover; background-position: center; background-color: var(--surface-2); }
.recent-card-name { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- stories rail ---------- */
.stories-rail { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 18px; margin-bottom: 4px; }
.story-ava { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 74px; }
.story-ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: var(--gold); display: block; }
.story-ring-img { display: block; width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center top; border: 2px solid var(--bg); }
.story-ava-name { font-size: 12px; color: var(--ink-soft); max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Contact strip ---------- */
.contact-strip { padding: 64px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.strip-title { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 14px; color: var(--ink); font-weight: 800; }
.strip-text { font-size: 16px; color: var(--ink-soft); max-width: 520px; margin: 0 auto 26px; }
.contact-channels { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-hours { margin-top: 22px; font-size: 12px; letter-spacing: 0.02em; text-transform: none; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 36px; border-bottom: 1px solid var(--line); }
/* the home page adds a fifth column listing the cities once there are any, and
   with room for only four the support one dropped onto a line of its own */
.footer-top:has(#footerCities:not([hidden])) { grid-template-columns: 1.4fr repeat(4, 1fr); }
.footer-brand .brand-mark { display: block; margin-bottom: 10px; }
.footer-brand .brand-sub { display: block; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--ink-soft); text-decoration: none; margin-bottom: 9px; transition: color 0.18s var(--ease); }
.footer-col a:hover { color: var(--gold-deep); }
.footer-hours { color: var(--muted) !important; }
.footer-bottom { padding: 28px 0; text-align: center; }
.footer-bottom .brand-mark { display: inline-block; margin-bottom: 12px; }
.footer-bottom p { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.footer-disclaimer { opacity: 0.85; max-width: 720px; margin: 6px auto 0; }
.footer-admin { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; opacity: 0.6; transition: 0.2s var(--ease); }
.footer-admin:hover { opacity: 1; color: var(--gold-deep); }

/* ---------- Landing sections ---------- */
section[id] { scroll-margin-top: 76px; }
.section { padding: 64px 0; }
.section-tight { padding: 44px 0 12px; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-title { font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.01em; font-weight: 800; margin: 12px 0 12px; color: var(--ink); }
.section-lead { font-size: 16px; color: var(--ink-soft); max-width: 600px; margin: 0 auto; }
.section-head.center .section-lead, .center .section-lead { margin-left: auto; margin-right: auto; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--surface); }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--bg); }
.hero-inner { position: relative; z-index: 1; text-align: left; padding: 92px 0 84px; max-width: 780px; margin: 0; border-left: 4px solid var(--gold); padding-left: 34px; }
.hero-eyebrow { margin-bottom: 18px; }
.hero-title { font-family: var(--serif); font-size: clamp(36px, 6.4vw, 66px); line-height: 1.05; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; margin: 0; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: clamp(15px, 1.6vw, 19px); color: var(--ink-soft); max-width: 560px; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.hero-micro { margin-top: 20px; font-size: 12px; letter-spacing: 0.02em; text-transform: none; color: var(--muted); }

/* value props */
.values { background: var(--bg); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: 0 1px 3px var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.value-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px var(--shadow); }
.value-num { font-family: var(--serif); font-size: 13px; letter-spacing: 0.06em; color: var(--gold-deep); font-weight: 700; }
.value-t { font-size: 19px; color: var(--ink); margin: 12px 0 8px; font-weight: 700; }
.value-d { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* gallery intro */
.gallery-intro { background: var(--bg); padding-top: 44px; }

/* how it works */
.how { background: var(--bg-2); border-top: 1px solid var(--line); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.step-card { text-align: center; padding: 16px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: var(--gold); border-radius: 50%; font-family: var(--serif); font-size: 22px; color: var(--on-gold); margin-bottom: 16px; font-weight: 700; }
.step-t { font-size: 19px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.step-d { font-size: 14px; color: var(--ink-soft); line-height: 1.65; max-width: 300px; margin: 0 auto; }

/* experiences */
.experiences { background: var(--bg); border-top: 1px solid var(--line); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: 0 1px 3px var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.exp-card::before { content: none; }
.exp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px var(--shadow); }
.exp-t { font-size: 18px; color: var(--ink); margin-bottom: 8px; font-weight: 700; }
.exp-d { font-size: 14px; color: var(--ink-soft); line-height: 1.65; }
.exp-cta { margin-top: 36px; text-align: center; }

/* membership */
.membership { background: var(--bg-2); border-top: 1px solid var(--line); }
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 32px 26px; box-shadow: 0 1px 3px var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.tier-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px var(--shadow); }
.tier-featured { border-color: var(--gold); box-shadow: 0 10px 30px var(--shadow); }
.tier-badge { position: absolute; top: -11px; right: 22px; background: var(--gold); color: var(--on-gold); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); font-weight: 700; }
.tier-name { font-size: 24px; color: var(--ink); font-weight: 800; }
.tier-pos { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin-top: 6px; font-weight: 600; }
.tier-price { font-family: var(--serif); font-size: 20px; color: var(--ink); margin: 18px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tier-list { list-style: none; margin: 0 0 26px; flex: 1; }
.tier-list li { font-size: 14px; color: var(--ink-soft); line-height: 1.5; padding: 7px 0 7px 22px; position: relative; }
.tier-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.mem-note { margin: 36px auto 0; max-width: 640px; font-size: 13px; color: var(--muted); text-align: center; }

/* for women */
.forwomen { background: var(--bg); border-top: 1px solid var(--line); }
.forwomen .section-lead { margin-bottom: 28px; }

/* faq (landing + page) */
.faq { background: var(--bg); border-top: 1px solid var(--line); }
.faq-list { max-width: 820px; margin: 0 auto 32px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq-item summary, .faq-q {
  list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; position: relative;
  font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: color 0.18s var(--ease);
}
.faq-item summary::-webkit-details-marker, .faq-q::-webkit-details-marker { display: none; }
.faq-item summary::after, .faq-q::after {
  content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--gold-deep); font-family: var(--sans); font-weight: 400; transition: transform 0.18s var(--ease);
}
.faq-item[open] summary, .faq-item[open] .faq-q { color: var(--gold-deep); }
.faq-item[open] summary::after, .faq-item[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover, .faq-q:hover { color: var(--gold-deep); }
.faq-item p, .faq-a { font-size: 15px; color: var(--ink-soft); line-height: 1.7; padding: 0 18px 18px; max-width: 720px; }

/* =========================================================
   PROFILE PAGE
   ========================================================= */
.pp { padding: 24px 0 80px; }
.pp-back { display: inline-block; margin-bottom: 20px; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); text-decoration: none; transition: color 0.18s var(--ease); }
.pp-back::before { content: "\2190  "; color: var(--gold-deep); }
.pp-back:hover { color: var(--gold-deep); }

.pp-hero { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: stretch; margin-bottom: 30px; }
.pp-intro { display: flex; flex-direction: column; min-width: 0; }
.pp-intro .pp-tags { margin-bottom: 4px; }
.pp-cards { columns: 2; column-gap: 18px; margin-bottom: 6px; }
.pp-cards .pp-card { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 18px; }
.pp-foot { margin-top: 8px; }

/* media / carousel */
.pp-media { min-width: 0; align-self: start; }
.pp-stage { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); touch-action: pan-y; box-shadow: 0 1px 3px var(--shadow); }
.pp-track { display: flex; height: 100%; transition: transform 0.4s var(--ease); }
.pp-slide { flex: 0 0 100%; height: 100%; background-size: cover; background-position: center top; cursor: zoom-in; }
.pp-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.pp-stage::after { content: none; }
.pp-verified { position: absolute; top: 12px; left: 12px; z-index: 3; background: rgba(20,25,35,0.62); color: #fff; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-sm); }
.pp-badges { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pp-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: rgba(20,25,35,0.5); color: #fff; font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s var(--ease), background 0.2s var(--ease); }
.pp-stage:hover .pp-arrow { opacity: 1; }
.pp-arrow:hover { background: rgba(20,25,35,0.75); }
.pp-arrow-prev { left: 12px; }
.pp-arrow-next { right: 12px; }
.pp-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.pp-dot { width: 7px; height: 7px; border-radius: 50%; border: none; cursor: pointer; padding: 0; background: rgba(255,255,255,0.55); transition: all 0.2s var(--ease); }
.pp-dot.active { background: var(--gold); width: 20px; border-radius: var(--r-pill); }
.pp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.pp-thumb { aspect-ratio: 1 / 1; background-size: cover; background-position: center; border: 1px solid var(--line); cursor: pointer; padding: 0; opacity: 0.65; border-radius: var(--r-md); transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); }
.pp-thumb:hover { opacity: 1; }
.pp-thumb.active { opacity: 1; border-color: var(--gold); }

/* body */
.pp-body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pp-header { margin-bottom: 24px; }
.pp-header-top .pp-quick { margin-top: 16px; }
.pp-name { font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); color: var(--ink); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; }
.pp-loc { font-size: 13px; letter-spacing: 0.02em; text-transform: none; color: var(--gold-deep); margin: 10px 0 0; font-weight: 600; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.pp-online { display: inline-flex; align-items: center; gap: 6px; color: #2f9e44; font-weight: 600; }
.pp-online-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d058; }
.pp-views { display: inline-flex; align-items: center; gap: 5px; }
.pp-meta-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-deep); font-weight: 700; }
.pp-meta-rating i { color: var(--muted); font-style: normal; font-weight: 400; }

.pp-quick { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.pp-quick-item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 62px; padding: 10px 15px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.pp-quick-item b { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--ink); }
.pp-quick-item i { font-style: normal; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }

.pp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.pp-tags span { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); border: 1px solid var(--line); background: var(--chip-bg); padding: 5px 12px; border-radius: var(--r-pill); }
.pp-write { width: 100%; }

/* cards */
.pp-card { margin-top: 0; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 3px var(--shadow); }
.pp-card[hidden] { display: none; }
.pp-card-wide { margin-top: 26px; }
.pp-h { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 14px; }
.pp-about { font-family: var(--serif); font-size: 17px; font-weight: 400; line-height: 1.6; color: var(--ink-soft); font-style: normal; margin: 0; }
.pp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin: 0; }
.pp-specs .spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pp-specs dt { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); align-self: center; }
.pp-specs dd { font-size: 14px; color: var(--ink); text-align: right; margin: 0; font-weight: 600; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chips span { font-size: 13px; letter-spacing: 0; color: var(--ink-soft); border: 1px solid var(--line); background: var(--chip-bg); padding: 7px 13px; border-radius: var(--r-pill); }

.pp-drow { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pp-drow:first-child { padding-top: 0; }
.pp-drow:last-child { padding-bottom: 0; border-bottom: none; }
.pp-drow[hidden] { display: none; }
.pp-dlabel { flex: 0 0 110px; font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); padding-top: 7px; }
.pp-drow .pp-chips { flex: 1; min-width: 0; }
.pp-note { margin: 20px 0 0; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.6; }

.pp-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pp-socials[hidden] { display: none; }
.pp-social { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; width: 42px; height: 42px; border-radius: 50%; color: #fff; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.pp-social:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.pp-social--telegram { background: linear-gradient(180deg, #37bbfe, #007dbb); }
.pp-social--whatsapp { background: #25D366; }
.pp-social--viber { background: #7360f2; }
.pp-social--website { background: var(--gold); color: var(--on-gold); }
.pp-social.pp-share { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); cursor: pointer; }

.pp-cta { margin-top: auto; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line-gold); background: var(--surface); box-shadow: 0 1px 3px var(--shadow); }
.pp-cta[hidden] { display: none; }
.pp-cta-price { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); color: var(--ink); margin-bottom: 14px; font-weight: 800; }
.pp-cta-price[hidden] { display: none; }
.pp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-cta-actions .btn { flex: 1 1 auto; }
.pp-cta-points { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pp-cta-points li { position: relative; padding-left: 22px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.pp-cta-points li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold-deep); font-weight: 700; }

.pp-report { display: inline-block; margin-top: 14px; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 4px 0; }
.pp-report:hover { color: var(--ink); }
.pp-report-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.pp-report-backdrop { position: absolute; inset: 0; background: rgba(20,25,35,0.5); }
.pp-report-card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: 0 20px 60px var(--shadow); }
.pp-report-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.pp-report-title { margin: 0 0 6px; font-size: 19px; color: var(--ink); }
.pp-report-text { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.pp-report-reasons { display: grid; gap: 10px; margin-bottom: 14px; }
.pp-report-reasons label { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); cursor: pointer; }
.pp-report-note { width: 100%; min-height: 76px; resize: vertical; border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font: inherit; margin-bottom: 16px; }
.pp-report-note::placeholder { color: var(--muted); }

.pp-similar { margin-top: 30px; padding-bottom: 16px; }
.pp-similar-title { font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); margin: 0 0 18px; font-weight: 800; }
.pp-notfound { text-align: center; padding: 70px 0 100px; }
.pp-notfound .pp-name { font-size: clamp(30px, 5vw, 46px); }
.pp-notfound .pp-about { max-width: 460px; margin: 16px auto 28px; font-size: 17px; }

/* reviews */
.pp-rating-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pp-rating-stars { letter-spacing: 1px; }
.pp-star { color: var(--line); }
.pp-star.on { color: var(--gold); }
.pp-rating-avg { font-size: 20px; font-weight: 700; }
.pp-rating-count, .pp-rating-empty { color: var(--muted); font-size: 14px; }
.pp-reviews { display: grid; gap: 12px; }
.pp-review { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.pp-review-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.pp-review-name { font-weight: 700; }
.pp-review-stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.pp-review-body { margin: 4px 0 6px; line-height: 1.5; color: var(--ink-soft); }
.pp-review-date { font-size: 12px; color: var(--muted); }
.pp-review-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.pp-review-formlabel { font-size: 13px; color: var(--muted); }
.pp-stars-input { display: flex; gap: 4px; }
.pp-star-pick { background: none; border: none; cursor: pointer; font-size: 28px; line-height: 1; color: var(--line); transition: color 0.12s; padding: 0; }
.pp-star-pick:hover, .pp-star-pick.on { color: var(--gold); }
.pp-review-text { width: 100%; min-height: 80px; resize: vertical; border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font: inherit; }
.pp-review-note { font-size: 13px; color: var(--gold-deep); margin: 0; }
.pp-review-login { margin-top: 14px; }

/* profile langs + rates */
.pp-langs { display: grid; gap: 8px; }
.pp-lang-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pp-lang-row:last-child { border-bottom: none; }
.pp-lang-name { font-size: 14px; color: var(--ink-soft); }
.pp-lang-stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.pp-star-empty { color: var(--line); }
.pp-rates { display: grid; gap: 10px; }
.pp-rate { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.pp-rate-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pp-rate-dur { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.pp-rate-label { font-size: 15px; color: var(--ink); }
.pp-rate-side { text-align: right; flex-shrink: 0; }
.pp-rate-price { font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--gold-deep); }
.pp-rate-tags { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.pp-rate-tags span { font-size: 10px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 8px; }

/* mobile sticky CTA */
.pp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px var(--shadow); }
.pp-sticky[hidden] { display: none; }
.pp-sticky-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pp-sticky-name { font-size: 14px; color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-sticky-price { font-size: 12px; color: var(--gold-deep); }
.pp-sticky .btn { flex-shrink: 0; }

/* lightbox */
.is-zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(15,18,24,0.92); }
.lightbox-img { position: relative; z-index: 1; max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border-radius: var(--r-md); }
.lightbox-close { position: absolute; top: 18px; right: 22px; z-index: 2; width: 42px; height: 42px; border: none; background: rgba(255,255,255,0.14); color: #fff; font-size: 26px; cursor: pointer; border-radius: 50%; }
.lightbox-close:hover { background: rgba(255,255,255,0.26); }
.lightbox-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: none; background: rgba(255,255,255,0.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; border-radius: 50%; }
.lightbox-nav:hover { background: rgba(255,255,255,0.26); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,0.85); font-size: 13px; letter-spacing: 0.08em; }

/* story viewer */
.story-viewer { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; }
.sv-backdrop { position: absolute; inset: 0; background: rgba(15,18,24,0.94); }
.sv-stage { position: relative; z-index: 1; width: min(420px, 96vw); height: min(86vh, 760px); background: #000; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sv-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sv-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; display: flex; gap: 4px; }
.sv-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.3); overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: 0; background: #fff; }
.sv-bar.done i { width: 100%; }
.sv-bar.active i { width: 100%; transition: width 5s linear; }
.sv-head { position: absolute; top: 22px; left: 14px; right: 14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.sv-name { color: #fff; font-weight: 600; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.sv-close { width: 36px; height: 36px; border: none; background: rgba(0,0,0,0.4); color: #fff; font-size: 22px; cursor: pointer; border-radius: 50%; }
.sv-tap { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 2; border: none; background: none; cursor: pointer; }
.sv-prev { left: 0; }
.sv-next { right: 0; }

/* toast */
.na-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(12px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.25); opacity: 0; pointer-events: none; transition: opacity 0.22s, transform 0.22s; z-index: 9999; }
.na-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* age gate + cookie */
.na-age { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15,18,24,0.72); backdrop-filter: blur(4px); }
.na-age-card { max-width: 440px; width: 100%; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 26px; color: var(--ink); box-shadow: 0 24px 70px var(--shadow); }
.na-age-mark { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 19px; margin-bottom: 16px; }
.na-age-title { font-size: 22px; margin: 0 0 10px; color: var(--ink); }
.na-age-text { color: var(--ink-soft); line-height: 1.55; margin: 0 0 22px; }
.na-age-btns { display: flex; flex-direction: column; gap: 10px; }
.na-age-btns .btn { width: 100%; }
.na-age-btns #naAgeYes { background: var(--gold); border: none; color: var(--on-gold); }
.na-age-btns #naAgeNo { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.na-age-btns #naAgeNo:hover { border-color: var(--muted); color: var(--ink); }
.na-age-note { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.na-age-note a { color: var(--gold-deep); }
.na-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 18px; box-shadow: 0 12px 40px var(--shadow); }
.na-cookie-text { font-size: 13px; color: var(--ink-soft); }
.na-cookie-text a { color: var(--gold-deep); }
@media (min-width: 640px) { .na-cookie { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* =========================================================
   CHAT DRAWER
   ========================================================= */
.chat { position: fixed; inset: 0; z-index: 300; }
.chat[hidden] { display: none; }
.chat-backdrop { position: absolute; inset: 0; background: rgba(15,18,24,0.45); animation: fade 0.25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.chat-panel { position: absolute; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 40px var(--shadow); animation: slideIn 0.3s var(--ease); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head-photo { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center top; border: 1px solid var(--line); flex-shrink: 0; }
.chat-head-info { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.chat-head-name { font-family: var(--serif); font-size: 18px; color: var(--ink); font-weight: 700; }
.chat-head-sub { font-size: 11px; letter-spacing: 0.02em; text-transform: none; color: var(--gold-deep); margin-top: 2px; }
.chat-close { background: none; border: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; transition: 0.18s var(--ease); padding: 0 4px; }
.chat-close:hover { color: var(--ink); }
.chat-thread { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-loading { color: var(--muted); font-size: 13px; text-align: center; margin: auto; }
.cmsg { display: flex; flex-direction: column; max-width: 80%; }
.cmsg-them { align-self: flex-start; align-items: flex-start; }
.cmsg-me { align-self: flex-end; align-items: flex-end; }
.cmsg-bubble { padding: 10px 14px; font-size: 14px; line-height: 1.5; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cmsg-them .cmsg-bubble { background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 4px; }
.cmsg-me .cmsg-bubble { background: var(--gold); color: var(--on-gold); border-color: var(--gold); border-bottom-right-radius: 4px; }
.cmsg-meta { font-size: 10px; letter-spacing: 0.02em; text-transform: none; color: var(--muted); margin-top: 4px; }
.cmsg-day { align-self: center; margin: 10px 0 4px; font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 12px; }
.cmsg-photo { display: block; max-width: 200px; border-radius: var(--r-md); overflow: hidden; }
.cmsg-photo img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
.cmsg-tick { font-size: 11px; opacity: 0.6; margin-left: 4px; }
.cmsg-tick.read { color: #111113; opacity: 1; }
.chat-form { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); padding: 11px 13px; font-family: var(--sans); font-size: 14px; transition: border-color 0.18s var(--ease); }
.chat-form input::placeholder { color: var(--muted); }
.chat-form input:focus { outline: none; border-color: var(--gold); }
.chat-send { flex-shrink: 0; width: 44px; border: 1px solid var(--gold); border-radius: var(--r-md); background: var(--gold); color: var(--on-gold); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: 0.18s var(--ease); }
.chat-send:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.chat-attach { background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; display: inline-flex; align-items: center; }
.chat-attach:hover { color: var(--gold-deep); }
.chat-foot { border-top: 1px solid var(--line); }
.chat-foot .chat-form { border-top: none; padding-bottom: 6px; }
.chat-formmeta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 18px 12px; min-height: 16px; }
.chat-count { color: var(--muted); font-size: 11px; }
.chat-warn { color: var(--wine); font-size: 12px; opacity: 0; transition: opacity 0.2s var(--ease); }
.chat-warn.show { opacity: 1; }
.chat-gate { padding: 18px 20px 22px; text-align: center; }
.chat-gate-text { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.chat-typing { display: flex; gap: 4px; padding: 4px 18px 8px; }
.chat-typing[hidden] { display: none; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.5; animation: na-typing 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes na-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-form { padding-bottom: max(14px, env(safe-area-inset-bottom)); }

/* cabinet chat */
.chat2 { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 420px; }
.chat2-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 520px; background: var(--surface-2); }
.chat2-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: none; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; transition: background 0.15s var(--ease); }
.chat2-item:hover { background: var(--surface); }
.chat2-item.active { background: var(--surface); box-shadow: inset 3px 0 0 var(--gold); }
.chat2-ava { width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--on-gold); font-family: var(--serif); font-size: 16px; font-weight: 700; }
.chat2-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat2-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat2-last { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat2-badge { flex: none; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--wine); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.chat2-pane { display: flex; flex-direction: column; min-width: 0; }
.chat2-empty { margin: auto; padding: 30px; color: var(--muted); font-size: 14px; text-align: center; }
.chat2-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 700; }
.chat2-thread { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; max-height: 400px; }
.chat2-form { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); }
.chat2-form input { flex: 1; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 14px; }
.chat2-form input:focus { outline: none; border-color: var(--gold); }
.chat2-form .btn { flex: none; }
.chat2-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 16px 12px; }
.chat2-count { color: var(--muted); font-size: 11px; }
.chat2-warn { color: var(--wine); font-size: 12px; }
.chat2-for { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--gold); color: var(--on-gold); font-size: 10px; font-weight: 700; vertical-align: middle; }
.chat2-head .chat2-for { font-size: 11px; }

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-body { background: var(--bg); }

.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login[hidden] { display: none; }
.admin-login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; box-shadow: 0 20px 50px var(--shadow); }
.admin-login-card .brand-mark { font-size: 26px; }
.admin-login-sub { font-size: 12px; letter-spacing: 0.02em; text-transform: none; color: var(--muted); margin-bottom: 12px; text-align: center; }
.admin-field { width: 100%; display: flex; flex-direction: column; gap: 7px; }
.admin-field > span { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-weight: 600; }
.admin-field input { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); padding: 12px 13px; font-family: var(--sans); font-size: 15px; }
.admin-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(225,29,72,0.16); }
.admin-login-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.admin-login-hint.error { color: var(--wine); }

.admin-app[hidden] { display: none; }
.admin-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 24px; background: var(--header-bg); border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px var(--shadow); }
.admin-top-brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.admin-top-brand .brand-mark { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-tag { flex: none; }
.admin-tag { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); border: 1px solid var(--line-gold); border-radius: var(--r-sm); padding: 3px 8px; font-weight: 700; }
.admin-top-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.admin-link-out { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); text-decoration: none; }
.admin-link-out:hover { color: var(--gold-deep); }
.admin-logout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; padding: 8px 14px; transition: 0.18s var(--ease); }
.admin-logout:hover { border-color: var(--wine); color: var(--wine); }

.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.admin-nav { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 3px; background: var(--surface); }
.admin-nav-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: none; border: none; border-radius: var(--r-md); color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 11px 13px; transition: 0.15s var(--ease); }
.admin-nav-item:hover { background: var(--surface-2); color: var(--ink); }
.admin-nav-item.active { background: var(--chip-bg); color: var(--gold-deep); box-shadow: inset 3px 0 0 var(--gold); font-weight: 600; }
.nav-badge { font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; background: var(--muted); color: #fff; border-radius: var(--r-pill); }
.nav-badge:empty { display: none; }
.nav-badge-alert { background: var(--wine); color: #fff; }
.admin-nav-foot { margin-top: auto; padding-top: 14px; }
.admin-reset { width: 100%; background: none; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); cursor: pointer; font-size: 12px; padding: 10px; transition: 0.18s var(--ease); }
.admin-reset:hover { border-color: var(--wine); color: var(--wine); }

.admin-main { padding: 28px 32px 56px; min-width: 0; }
.admin-panel { animation: fade 0.2s var(--ease); }
.admin-panel[hidden] { display: none; }
.admin-h1 { font-family: var(--serif); font-size: 28px; font-weight: 800; color: var(--ink); margin-bottom: 22px; }
.admin-h2 { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink); margin: 28px 0 14px; letter-spacing: 0; text-transform: none; }
.admin-sub { color: var(--muted); font-size: 14px; margin: -14px 0 20px; }
.admin-empty { color: var(--muted); font-size: 14px; padding: 24px 0; text-align: center; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 3px var(--shadow); }
.stat-val { font-family: var(--serif); font-size: 34px; font-weight: 800; color: var(--gold-deep); line-height: 1; }
.stat-label { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }

.admin-activity { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.act-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.act-row:last-child { border-bottom: none; }
.act-type { font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.act-msg { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

.admin-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-input { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); padding: 10px 12px; font-family: var(--sans); font-size: 14px; min-width: 160px; }
.admin-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(225,29,72,0.16); }
.admin-btn-ghost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; padding: 9px 14px; text-decoration: none; display: inline-block; transition: 0.18s var(--ease); }
.admin-btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

.admin-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; overflow-x: auto; background: var(--surface); -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
/* header stays put while a long list scrolls under it */
.admin-table th { position: sticky; top: 0; z-index: 2; text-align: left; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 800; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: middle; line-height: 1.45; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background 0.12s var(--ease); }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table td b { color: var(--ink); font-weight: 700; }
.admin-table .muted { font-size: 12.5px; }
.prof-thumb { display: block; width: 44px; height: 56px; background-size: cover; background-position: center top; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prof-status { min-width: 140px; margin-right: 8px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.status-active { background: #34d058; }
.status-pending { background: var(--gold); }
.status-paused { background: #d0913f; }
.status-rejected { background: var(--wine); }

.admin-splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.admin-splash .brand-mark { font-size: 24px; }
.admin-splash-sub { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.admin-spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: na-spin 0.8s linear infinite; }
@keyframes na-spin { to { transform: rotate(360deg); } }

.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-chip { display: inline-block; font-size: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-pill); white-space: nowrap; color: var(--ink-soft); }
.pay-chip.pay-paid { border-color: #34d058; color: #2f9e44; }
.pay-chip.pay-pending { border-color: var(--gold); color: var(--gold-deep); }
.pay-chip.pay-blocked { border-color: var(--wine); color: var(--wine); }
.admin-table tr.row-blocked { opacity: 0.62; }

/* ---------- model book: a sheet that is typed into, not read ----------
   Cells look like plain text until touched, so the table stays readable, but
   they are real inputs and keep their own borders on focus. */
.lead-count { font-size: 13px; color: var(--muted); align-self: center; }
.lead-table td { padding: 4px 6px; }
.lead-table th:first-child, .lead-table td:first-child { padding-left: 12px; }
.lead-in, .lead-sel {
  width: 100%; min-width: 78px; background: transparent; border: 1px solid transparent;
  border-radius: var(--r-sm); color: var(--ink); font-family: var(--sans); font-size: 13.5px;
  padding: 8px 8px; transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.lead-in::placeholder { color: var(--muted); opacity: 0.7; }
.lead-in:hover, .lead-sel:hover { border-color: var(--line); }
.lead-in:focus, .lead-sel:focus { outline: none; background: var(--surface); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(225,29,72,0.14); }
/* the whole point of typing straight into the table is knowing it landed */
.lead-in.is-saving { border-color: var(--line); opacity: 0.65; }
.lead-in.is-saved, .lead-sel.is-saved { border-color: #34d058; }
.lead-in.is-failed { border-color: var(--wine); background: rgba(190,24,60,0.08); }
.lead-table td:nth-child(1) .lead-in { min-width: 118px; font-weight: 700; }
.lead-table td:nth-child(2) .lead-in { min-width: 118px; }
/* the handles are short; giving the row less to insist on keeps the delete
   column inside the card instead of pushing it past the right edge */
.lead-table td:nth-child(3) .lead-in,
.lead-table td:nth-child(4) .lead-in,
.lead-table td:nth-child(5) .lead-in { min-width: 74px; }
.lead-table td:nth-child(8) .lead-in { min-width: 150px; }
/* a native select clips its label, so the two dropdown columns get the room
   their longest option needs */
.lead-sel { cursor: pointer; min-width: 118px; font-size: 13px; }
.lead-status-listed { color: #2f9e44; font-weight: 700; }
.lead-status-refused, .lead-status-lost { color: var(--muted); }
.lead-status-new { color: var(--gold-deep); font-weight: 700; }
.lead-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.lead-actions { text-align: right; }
.lead-actions .lead-del { padding: 6px 10px; line-height: 1; }
.lead-actions .lead-del:hover { border-color: var(--wine); color: var(--wine); }
/* two rows holding one phone number means two people wrote down the same woman */
.lead-table tr.lead-dupe td:nth-child(2) { box-shadow: inset 3px 0 0 var(--wine); }
.lead-table tr.lead-dupe td:nth-child(2) .lead-in { color: var(--wine); }

/* table pagination */
.admin-pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 2px 4px; }
.admin-pager-info { font-size: 13px; color: var(--muted); }
.admin-pager-btns { display: inline-flex; align-items: center; gap: 6px; }
.admin-pager-btns button { min-width: 34px; padding: 6px 10px; }
.admin-pager-btns button[disabled] { opacity: 0.4; cursor: default; }
.admin-pager-cur { font-size: 13px; color: var(--ink-soft); padding: 0 6px; white-space: nowrap; }

/* a failed section says so and offers a retry instead of looking empty */
.admin-error { padding: 22px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-soft); }
.admin-error p { margin-bottom: 12px; font-size: 14px; }
.admin-link { color: var(--gold-deep); text-decoration: none; }
.admin-link:hover { text-decoration: underline; }
.log-jump { font-size: 12px; margin-left: 6px; white-space: nowrap; }
.pay-chips-lg .pay-chip { font-size: 12px; padding: 5px 12px; }

.admin-btn-mini { cursor: pointer; font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); margin: 2px 4px 2px 0; transition: 0.15s var(--ease); }
.admin-btn-ok { border-color: #34d058; color: #2f9e44; }
.admin-btn-ok:hover { background: #34d058; color: #fff; }
.admin-btn-no { border-color: var(--wine); color: var(--wine); }
.admin-btn-no:hover { background: var(--wine); color: #fff; }
.tal-view { margin-bottom: 6px; }
.tal-pending { color: var(--gold-deep); font-weight: 600; font-size: 12px; }
.tal-verify-actions { display: flex; gap: 6px; margin-top: 6px; }
.tal-verified { color: #2f9e44; font-weight: 600; }
.tal-expired { color: var(--wine); }
.tal-status { min-width: 130px; margin-right: 8px; margin-bottom: 6px; }

/* talent modal */
.tal-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.tal-modal-backdrop { position: fixed; inset: 0; background: rgba(15,18,24,0.5); }
.tal-modal-card { position: relative; z-index: 1; width: 100%; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 80px var(--shadow); }
.tal-modal-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink-soft); font-size: 20px; line-height: 1; cursor: pointer; }
.tal-modal-close:hover { border-color: var(--gold); color: var(--gold-deep); }
.tal-modal-body { padding: 24px 26px 8px; }
.tal-modal-title { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; font-weight: 800; }
.tal-modal-loading { padding: 60px 0; text-align: center; color: var(--muted); }
.tal-modal-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding-right: 40px; }
.tal-modal-head h2 { font-size: 24px; margin: 0; }
.tal-modal-status { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }
.tal-modal-tag { font-family: var(--sans); font-size: 11px; letter-spacing: 0; text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-soft); }
.tal-modal-tag.tag-premium { border-color: var(--line-gold); color: var(--gold-deep); }
.tal-modal-tag.verify-approved { border-color: #34d058; color: #2f9e44; }
.tal-modal-loc { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.tal-modal-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 18px; }
.tal-modal-photo { aspect-ratio: 3 / 4; background-size: cover; background-position: center top; border: 1px solid var(--line); border-radius: var(--r-md); }
.tal-modal-section { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.tal-modal-section h3 { font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--gold-deep); margin: 14px 0 8px; }
.tal-modal-section h3:first-child { margin-top: 0; }
.tal-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; }
.tal-kv { display: flex; flex-direction: column; gap: 2px; }
.tal-kv span { font-size: 12px; color: var(--muted); }
.tal-kv b { font-size: 14px; color: var(--ink); font-weight: 600; word-break: break-word; }
.tal-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.tal-chip { font-size: 12px; padding: 4px 11px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-soft); }
.tal-modal-text { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; white-space: pre-wrap; }
.tal-modal-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.tal-modal-foot .tal-danger { border-color: var(--wine); color: var(--wine); }
.tal-modal-foot .tal-danger:hover { background: var(--wine); color: #fff; }
.tal-modal-moderate h3 { color: var(--gold-deep); }
.tal-modal-photo--pending { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.tal-mod-btns { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.6)); }
.btn-xs { font-size: 11px; padding: 5px 8px; }
.btn-xs.admin-btn-ok, .btn-xs.admin-btn-no { background: rgba(255,255,255,0.9); }
.tal-pending-badge { font-size: 11px; color: var(--gold-deep); white-space: nowrap; }

/* log types */
.log-type { font-size: 11px; letter-spacing: 0; text-transform: uppercase; padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-soft); white-space: nowrap; }
.log-message { border-color: var(--line-gold); color: var(--gold-deep); }
.log-moderation { border-color: #d0913f; color: #d0913f; }
.log-auth { border-color: var(--line); }
.log-payment { border-color: var(--line-gold); color: var(--gold-deep); }
.log-register { border-color: #111113; color: #111113; }
.log-backup { border-color: var(--line); color: var(--ink-soft); }
/* a failed backup is the one log line that must not look like the others */
.log-backup_failed { border-color: #c92a2a; color: #fff; background: #c92a2a; font-weight: 700; }
.log-ts { white-space: nowrap; color: var(--muted); font-size: 12px; }

/* messages layout */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 540px; background: var(--surface); }
.msg-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 70vh; }
.conv-item { width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; transition: background 0.15s var(--ease); }
.conv-item:hover { background: var(--surface-2); }
.conv-item.active { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--gold); }
.conv-top { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.conv-unread { font-size: 11px; min-width: 17px; height: 17px; line-height: 17px; text-align: center; background: var(--wine); color: #fff; border-radius: var(--r-pill); }
.conv-who { font-size: 12px; color: var(--gold-deep); }
.conv-prev { grid-column: 1 / 2; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { grid-column: 2 / 3; grid-row: 3; font-size: 11px; color: var(--muted); align-self: end; white-space: nowrap; }
.msg-thread-wrap { display: flex; flex-direction: column; min-width: 0; }
.msg-thread-head { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 600; }
.msg-thread-head .muted { color: var(--muted); font-size: 12px; font-weight: 400; }
.msg-thread { flex: 1; overflow-y: auto; max-height: 56vh; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg-reply { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.msg-reply[hidden] { display: none; }
.msg-reply input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); padding: 11px 14px; font-family: var(--sans); font-size: 14px; }
.msg-reply input:focus { outline: none; border-color: var(--gold); }

/* admin analytics */
.admin-analytics { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 22px; }
.ana-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 1px 3px var(--shadow); }
.ana-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ana-head b { font-size: 18px; color: var(--ink); }
.ana-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.ana-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.ana-bar-fill { width: 70%; min-height: 2px; background: var(--gold); border-radius: 4px 4px 0 0; transition: height 0.3s; }
.ana-bar-val { font-size: 9px; color: var(--muted); height: 12px; }
.ana-bar-x { font-size: 9px; color: var(--muted); transform: rotate(-30deg); white-space: nowrap; }
.ana-mix { display: grid; gap: 10px; }
.ana-mix-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ana-mix-row b { margin-left: auto; }
.ana-dot { width: 10px; height: 10px; border-radius: 50%; }
.ana-vip { background: var(--gold); } .ana-top { background: #111113; } .ana-std { background: #8a94a2; }
/* Traffic has eight figures, and left to fill the row as they fit they break
   into seven and a lonely one. Four to a row makes two even rows, and pairs
   each "человек" with the "страниц" beside it. */
#trafficStats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { #trafficStats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* traffic: two series on one axis. The pair shares a column so a day reads as
   one thing — people and the pages they opened — instead of two charts the eye
   has to line up, and both are drawn to the same scale so the gap between them
   means something. */
.ana-card-wide { grid-column: 1 / -1; }
.ana-bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 100%; flex: 1; }
.ana-bar-pair .ana-bar-fill { width: 42%; }
.ana-bar-alt { background: #8a94a2; }
.ana-legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
.ana-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.ana-dot-main { background: var(--gold); }
.ana-dot-alt { background: #8a94a2; }

.ana-toplist { display: block; }
.ana-top-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 14px; }
.ana-top-row:last-child { border-bottom: none; }
.ana-top-row:hover { color: var(--gold-deep); }

/* admin reviews + reports */
.adm-rv-item { padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); margin-bottom: 12px; background: var(--surface); box-shadow: 0 1px 3px var(--shadow); }
.adm-rv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.adm-rv-top a { color: inherit; text-decoration: none; }
.adm-rv-stars { color: var(--gold); letter-spacing: 1px; }
.adm-rp-reason { font-size: 13px; color: var(--wine); font-weight: 600; }
.adm-rv-author { font-size: 12px; color: var(--muted); margin: 4px 0; }
.adm-rv-body { margin: 6px 0 10px; line-height: 1.5; color: var(--ink-soft); }
.adm-rv-btns { display: flex; gap: 8px; }

/* =========================================================
   REGISTRATION PAGE
   ========================================================= */
.reg-page { padding: 48px 0 80px; }
.reg-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.reg-title { font-size: clamp(26px, 5vw, 40px); margin: 12px 0 8px; font-weight: 800; }
.reg-subtitle { color: var(--ink-soft); font-size: 16px; }
.reg-account-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 760px; margin: 0 auto 18px; padding: 12px 18px; border: 1px solid var(--line-gold); border-radius: var(--r-md); background: var(--surface); font-size: 14px; color: var(--ink-soft); }
.reg-account-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Registering and signing in are separate intents, so the tabs are grouped
   rather than presented as four equivalent choices in one row. */
.reg-tabs { display: flex; justify-content: center; align-items: flex-end; gap: 8px 22px; margin-bottom: 24px; flex-wrap: wrap; }
.reg-tabs-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; position: relative; }
.reg-tabs-group + .reg-tabs-group { padding-left: 22px; border-left: 1px solid var(--line); }
.reg-tabs-caption { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.reg-tab { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none; padding: 10px 20px; transition: 0.18s var(--ease); }
.reg-tab:hover { border-color: var(--gold); color: var(--gold-deep); }
.reg-tab.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
@media (max-width: 620px) {
  .reg-tabs { gap: 10px; }
  .reg-tabs-group { width: 100%; justify-content: center; }
  .reg-tabs-group + .reg-tabs-group { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 10px; }
}

/* password field with a reveal toggle */
.reg-pass { position: relative; display: block; }
.reg-pass input { padding-right: 42px !important; }
.reg-pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer;
}
.reg-pass-toggle:hover { color: var(--gold-deep); background: rgba(0, 0, 0, 0.04); }
.reg-pass-toggle.is-on { color: var(--gold-deep); }
.reg-field input.is-invalid { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12); }

/* the card an already-authenticated visitor sees instead of the sign-up forms */
.reg-signedin-who { margin: 4px 0 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.reg-signedin-who span { color: var(--muted); font-size: 13px; }
.reg-linkbtn {
  display: inline-block; margin-top: 18px; padding: 0; border: 0; background: none;
  color: var(--muted); font-family: var(--sans); font-size: 13px; cursor: pointer; text-decoration: underline;
}
.reg-linkbtn:hover { color: var(--gold-deep); }

.reg-body { display: flex; justify-content: center; }
.reg-card { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 32px 36px; box-shadow: 0 4px 16px var(--shadow); }
.reg-card-narrow { max-width: 460px; }
.reg-card-wide { max-width: 880px; }
.reg-card-title { font-size: 24px; margin-bottom: 6px; font-weight: 800; }
.reg-card-text { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }

.reg-section { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--gold-deep); margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.reg-section em { font-style: normal; color: var(--muted); font-weight: 400; text-transform: none; }
.reg-grid { display: grid; gap: 16px 18px; }
.reg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.reg-grid-3 { grid-template-columns: repeat(3, 1fr); }

.reg-steps { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 24px; }
.reg-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.reg-steps li span { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--gold); color: var(--on-gold); }

/* telegram linking */
.tg-gate-note { margin: 0 0 14px; }
.tg-box { border: 1px solid var(--line-gold); background: var(--chip-bg); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 18px; }
.tg-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tg-link-hint { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; min-width: 180px; }
.tg-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(180deg, #37bbfe, #007dbb); padding: 6px 12px; border-radius: var(--r-pill); }
.tg-username { font-size: 14px; color: var(--ink); flex: 1; min-width: 120px; }
.socials-grid.is-locked { opacity: 0.5; pointer-events: none; }
.socials-grid.is-locked input { cursor: not-allowed; }

.reg-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.reg-grid .reg-field { margin-bottom: 0; }
.user-pass-row { display: flex; gap: 8px; align-items: stretch; }
.user-pass-row input { flex: 1; }
.user-pass-row .admin-btn-ghost { white-space: nowrap; }
.reg-label { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-weight: 600; }
.reg-label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.8; font-weight: 400; }
.reg-field input, .reg-field select, .reg-field textarea { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-md); padding: 11px 13px; font-family: var(--sans); font-size: 14px; width: 100%; transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.reg-field input:focus, .reg-field select:focus, .reg-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(225,29,72,0.16); }
.reg-field textarea { resize: vertical; line-height: 1.6; }

.reg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.reg-chip { position: relative; cursor: pointer; }
.reg-chip input { position: absolute; opacity: 0; pointer-events: none; }
.reg-chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 13px; color: var(--ink-soft); transition: 0.15s var(--ease); }
.reg-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.reg-chip:hover span { border-color: var(--gold); }

.reg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.reg-photo { position: relative; cursor: pointer; }
.reg-photo input { position: absolute; opacity: 0; pointer-events: none; }
.reg-photo span { display: block; aspect-ratio: 3 / 4; background-size: cover; background-position: center top; border: 2px solid transparent; border-radius: var(--r-md); transition: 0.15s var(--ease); }
.reg-photo:hover span { border-color: var(--gold); }
.reg-photo input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }

.reg-check { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.reg-check input { width: 17px; height: 17px; accent-color: var(--gold); }

.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan-option { cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-box { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); height: 100%; transition: 0.18s var(--ease); position: relative; }
.plan-option:hover .plan-box { border-color: var(--gold); }
.plan-option input:checked + .plan-box { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--surface-2); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 700; }
.plan-save { font-size: 10px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; background: var(--wine); padding: 3px 8px; border-radius: var(--r-sm); }
.plan-price { font-family: var(--serif); font-size: 28px; color: var(--gold-deep); font-weight: 800; }
.plan-desc { font-size: 13px; color: var(--muted); }

.addon-grid { display: flex; flex-direction: column; gap: 12px; }
.addon-option { cursor: pointer; }
.addon-option input { position: absolute; opacity: 0; pointer-events: none; }
.addon-box { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); transition: 0.18s var(--ease); }
.addon-option:hover .addon-box { border-color: var(--gold); }
.addon-option input:checked + .addon-box { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--surface-2); }
.addon-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.addon-price { color: var(--gold-deep); font-weight: 700; }
.addon-desc { font-size: 13px; color: var(--muted); }

.reg-summary { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.reg-total-label { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.reg-total { font-family: var(--serif); font-size: 34px; color: var(--gold-deep); font-weight: 800; }
.reg-note { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.reg-err { color: var(--wine); font-size: 13px; margin-bottom: 14px; }
.reg-err.ok { color: #2f9e44; }
.reg-mini { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.reg-mini a { color: var(--gold-deep); }
.reg-submit { margin-top: 22px; }
.reg-ok { color: #2f9e44; font-size: 13px; margin: 12px 0 0; }
.reg-success { padding-top: 40px; text-align: center; }
.reg-success-mark { width: 62px; height: 62px; line-height: 58px; margin: 0 auto 16px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 30px; text-align: center; }
.reg-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* profile-form: lang stars + rates editor */
.lang-levels { display: grid; gap: 10px; margin-top: 4px; }
.lang-level-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; align-items: center; gap: 12px; }
.lang-level-name { font-size: 14px; color: var(--ink-soft); }
.lang-stars { display: flex; gap: 4px; }
.lang-star { background: none; border: none; padding: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--line); transition: color 0.15s var(--ease), transform 0.15s var(--ease); }
.lang-star.on { color: var(--gold); }
.lang-star:hover { color: var(--gold-2); transform: scale(1.08); }
.rates-editor { margin-top: 4px; }
.rates-head, .rates-row { display: grid; grid-template-columns: 1.1fr 1.35fr 1fr 120px 34px; gap: 10px; align-items: center; }
.rates-head { font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rates-row + .rates-row { margin-top: 8px; }
.rates-row input[type="number"], .rates-row select { width: 100%; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-family: var(--sans); font-size: 13px; }
.rates-row select { padding-right: 28px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a94a2' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.rates-del { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.rates-del:hover { border-color: var(--wine); color: var(--wine); }
.rates-add { margin-top: 12px; }

/* =========================================================
   CABINET (dashboard.html)
   ========================================================= */
.cab-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 940px; margin: 0 auto 20px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--r-md); box-shadow: 0 1px 3px var(--shadow); }
.cab-status-main { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.cab-status-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cab-status-label { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.cab-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.cab-status.is-active { border-left-color: #2f9e44; } .cab-status.is-active .cab-status-dot { background: #2f9e44; }
.cab-status.is-pending { border-left-color: var(--gold-deep); } .cab-status.is-pending .cab-status-dot { background: var(--gold-deep); }
.cab-status.is-rejected, .cab-status.is-expired { border-left-color: var(--wine); }
.cab-status.is-rejected .cab-status-dot, .cab-status.is-expired .cab-status-dot { background: var(--wine); }
.cab-status.is-profile .cab-status-dot { background: var(--gold); }

.cab-grid { display: flex; flex-direction: column; gap: 20px; max-width: 940px; margin: 0 auto; }
.cab-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 32px; box-shadow: 0 4px 16px var(--shadow); }
.cab-empty { color: var(--muted); font-size: 14px; padding: 8px 0 14px; }
.cab-card.is-muted { opacity: .72; }
.cab-lock { font-size: 13px; color: var(--gold-deep); background: var(--surface-2); border: 1px dashed var(--line-gold); border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 18px; }
.cab-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cab-chip { flex: none; font-size: 11px; letter-spacing: 0; color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; white-space: nowrap; }

/* readiness — the listing stays private until every requirement is green */
.cab-steps { list-style: none; display: flex; gap: 10px; margin: 18px 0 6px; padding: 0; flex-wrap: wrap; }
.cab-step { flex: 1 1 150px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--surface-2); }
.cab-step-n { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.cab-step.is-current { border-color: var(--gold); color: var(--ink); }
.cab-step.is-current .cab-step-n { background: var(--gold); color: var(--on-gold); }
.cab-step.is-done { color: var(--ink); }
.cab-step.is-done .cab-step-n { background: #2f9e44; color: #fff; }
.cab-progress { height: 6px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 12px 0; }
.cab-progress i { display: block; height: 100%; background: var(--gold); transition: width .35s ease; }
.cab-reqs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 9px 16px; }
.cab-req { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.cab-req-mark { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.cab-req.is-ok { color: var(--ink); }
.cab-req.is-ok .cab-req-mark { background: #2f9e44; border-color: #2f9e44; }
.cab-req-link { background: none; border: none; padding: 0; font: inherit; color: var(--wine); border-bottom: 1px dashed currentColor; cursor: pointer; text-align: left; }
.cab-req-link:hover { opacity: .75; }
.cab-lock .cab-req-link { color: inherit; }

.reg-req { color: var(--wine); margin-left: 3px; }
.reg-field.is-invalid input,
.reg-field.is-invalid select,
.reg-field.is-invalid textarea,
.reg-field.is-invalid .lang-levels,
.reg-field.is-invalid .rates-editor { border-color: var(--wine); }
.reg-field.is-flash { animation: cabFlash 1.2s ease; }
@keyframes cabFlash { 0%, 100% { background: transparent; } 25% { background: rgba(214,31,61,.07); } }
.reg-counter { align-self: flex-end; font-size: 11px; color: var(--muted); }
.reg-counter.is-short { color: var(--wine); }
.cab-dirty { font-size: 13px; color: var(--gold-deep); background: var(--surface-2); border: 1px dashed var(--line-gold); border-radius: var(--r-md); padding: 10px 13px; margin: 0 0 12px; }

.cab-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.cab-photo { position: relative; aspect-ratio: 3 / 4; background-size: cover; background-position: center; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cab-photo.is-main { border: 2px solid var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.cab-photo-tag { position: absolute; left: 8px; bottom: 8px; font-size: 10px; letter-spacing: 0; text-transform: uppercase; background: var(--gold); color: var(--on-gold); padding: 3px 8px; border-radius: var(--r-sm); }
.cab-photo-set { position: absolute; left: 8px; bottom: 8px; font-size: 10px; letter-spacing: 0; text-transform: uppercase; background: rgba(20,25,35,0.6); color: #fff; border: none; padding: 5px 9px; cursor: pointer; border-radius: var(--r-sm); transition: background 0.15s; }
.cab-photo-set:hover { background: var(--gold); color: var(--on-gold); }
.cab-photo-del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(20,25,35,0.6); color: #fff; border: none; cursor: pointer; font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.cab-photo-del:hover { background: var(--wine); }
.cab-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cab-upload-info { font-size: 13px; color: var(--muted); }
.cab-pending-note { color: var(--gold-deep); margin-top: 18px; }
.cab-photos--pending { margin-top: 8px; }
.cab-photo.is-pending { opacity: 0.85; }
.cab-photo.is-pending::after { content: ""; position: absolute; inset: 0; box-shadow: 0 0 0 2px var(--gold-deep) inset; pointer-events: none; }
.cab-photo-tag--pending { background: var(--gold-deep); color: #fff; }

.cab-payfields { border: 0; padding: 0; margin: 0; min-width: 0; }
.cab-payfields[disabled] { opacity: 0.5; pointer-events: none; }
.cab-cur { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cab-cur-opt { cursor: pointer; min-width: 0; }
.cab-cur-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cab-cur-opt span { display: block; text-align: center; padding: 12px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: var(--r-md); transition: 0.18s var(--ease); }
.cab-cur-opt:hover span { border-color: var(--gold); }
.cab-cur-opt input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--surface-2); }
.cab-pending { text-align: center; padding-top: 34px; }
.cab-invoice { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.cab-invoice-grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.cab-qr { flex: none; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); line-height: 0; }
.cab-qr img { display: block; width: 190px; height: 190px; }
.cab-invoice-info { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.cab-inv-row { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cab-inv-row > span { font-size: 12px; letter-spacing: 0; text-transform: uppercase; color: var(--muted); }
.cab-inv-row em { font-style: normal; color: var(--muted); }
.cab-inv-addr code { font-family: var(--sans); font-size: 13px; word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px; color: var(--ink); }
.cab-inv-addr { gap: 8px; }
.cab-inv-addr #copyAddr { align-self: flex-start; }
.cab-guest-info { padding-top: 30px; }
/* the "signed up on the wrong form" escape hatch — present but not shouting */
.cab-become { border-style: dashed; box-shadow: none; }
.cab-become .reg-card-text { margin-bottom: 18px; }

.cab-hero { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 18px; border: 1px solid #34d058; border-left-width: 4px; border-radius: var(--r-md); background: rgba(52,208,88,0.06); }
.cab-hero-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d058; flex: none; }
.cab-hero-main { flex: 1; margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.cab-hero-main b { color: var(--ink); font-weight: 700; }
.cab-hero-main span { color: var(--muted); }

.cab-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cab-notif-badge { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--gold); color: var(--on-gold); font-size: 12px; text-align: center; vertical-align: middle; }
.cab-notif-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cab-notif-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cab-notif-item:last-child { border-bottom: none; }
.cab-notif-item.is-unread { padding-left: 12px; border-left: 3px solid var(--gold); }
.cab-notif-t { font-weight: 700; font-size: 14px; color: var(--ink); }
.cab-notif-b { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.cab-notif-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

.cab-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cab-story { position: relative; aspect-ratio: 9/16; background-size: cover; background-position: center; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cab-story-ttl { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(20,25,35,0.6); color: #fff; }
.cab-story-del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: none; border-radius: 50%; background: rgba(20,25,35,0.6); color: #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.cab-story-del:hover { background: var(--wine); }

/* cabinet promotion */
.cab-promo-current { font-size: 14px; margin: 4px 0 14px; color: var(--muted); }
.cab-promo-tier { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); margin-bottom: 12px; }
.cab-promo-tier.is-current { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.cab-promo-vip .cab-promo-name { color: var(--gold-deep); }
.cab-promo-top .cab-promo-name { color: #111113; }
.cab-promo-name { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.cab-promo-active { font-size: 12px; font-weight: 500; color: var(--muted); }
.cab-promo-opts { display: flex; flex-wrap: wrap; gap: 8px; }

/* cabinet self-analytics */
.cst-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.cst-tot { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; text-align: center; }
.cst-tot b { display: block; font-size: 22px; color: var(--ink); }
.cst-tot span { font-size: 11px; color: var(--muted); }
.cst-chart { margin-top: 14px; }
.cst-chart-h { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cst-bars { display: flex; align-items: flex-end; gap: 3px; height: 80px; }
.cst-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.cst-bar-f { width: 68%; min-height: 2px; background: var(--gold); border-radius: 3px 3px 0 0; }
.cst-bar-v { font-size: 9px; color: var(--muted); height: 11px; }
.cst-bar-x { font-size: 8px; color: var(--muted); transform: rotate(-30deg); white-space: nowrap; }

/* manager cabinet */
.cab-mgr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cab-mgr-top .reg-card-title { margin-bottom: 4px; }
.mgr-add-btn { flex: none; }
.cab-mgr-stats { display: flex; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.cab-stat { flex: 1; min-width: 92px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); }
.cab-stat b { font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--ink); font-weight: 800; }
.cab-stat span { font-size: 11px; letter-spacing: 0; text-transform: uppercase; color: var(--ink-soft); }
.cab-mgr-hint { margin: 8px 0 0; font-size: 13px; color: var(--gold-deep); }
.mgr-editbar { display: flex; align-items: center; gap: 14px; margin: 16px 0 8px; }
.mgr-editbar-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mgr-editbar-info b { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.mgr-girls { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin: 16px 0 4px; }
.mgr-girl { position: relative; text-align: left; cursor: pointer; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; background: var(--surface); box-shadow: 0 1px 3px var(--shadow); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.mgr-girl:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 24px var(--shadow); }
.mgr-girl-cover { position: relative; aspect-ratio: 3/4; background-size: cover; background-position: center top; }
.mgr-girl-cover.is-empty { background: linear-gradient(135deg, var(--surface-2), var(--line)); }
.mgr-girl-st { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(20,25,35,0.62); color: #fff; }
.mgr-st-active { background: #34d058; color: #0c1a0f; }
.mgr-st-pending { background: var(--gold); color: var(--on-gold); }
.mgr-st-rejected { background: var(--wine); color: #fff; }
.mgr-st-suspended { background: #8a94a2; color: #fff; }
.mgr-st-expired { background: #8a8a8a; color: #fff; }
.mgr-st-draft, .mgr-st-profile { background: rgba(20,25,35,0.55); color: #fff; }
.mgr-girl-body { padding: 11px 13px 14px; display: flex; flex-direction: column; gap: 3px; }
.mgr-girl-body b { font-size: 14.5px; color: var(--ink); }
.mgr-girl-sub { font-size: 12px; color: var(--ink-soft); }
.mgr-girl-exp { font-size: 11px; color: var(--gold-deep); }
.mgr-girl-go { position: absolute; right: 11px; bottom: 12px; color: var(--gold); font-size: 16px; opacity: 0; transition: opacity 0.18s var(--ease); }
.mgr-girl:hover .mgr-girl-go { opacity: 1; }
.mgr-empty { grid-column: 1 / -1; text-align: center; padding: 36px 16px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.mgr-empty-ico { display: block; font-size: 26px; color: var(--gold); margin-bottom: 8px; }

/* =========================================================
   LEGAL + 404
   ========================================================= */
.legal-page { padding: 48px 0 80px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.legal-tabs a { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 16px; transition: all 0.18s var(--ease); }
.legal-tabs a:hover { border-color: var(--gold); color: var(--gold-deep); }
.legal-tabs a.active { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.legal-back { display: inline-block; margin: -22px 0 28px; font-size: 13px; color: var(--muted); text-decoration: none; }
.legal-back:hover { color: var(--gold-deep); }
.legal-doc { max-width: 760px; }
.legal-title { font-size: clamp(26px, 4vw, 40px); color: var(--ink); font-weight: 800; margin: 12px 0 8px; }
.legal-updated { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 32px; }
.legal-h { font-size: 20px; color: var(--ink); font-weight: 700; margin: 30px 0 12px; }
.legal-p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }

.nf-page { min-height: 68vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 70px 0; }
.nf-code { font-family: var(--serif); font-size: clamp(72px, 15vw, 160px); line-height: 1; color: var(--gold-deep); font-weight: 800; }
.nf-title { font-size: clamp(24px, 4vw, 36px); color: var(--ink); font-weight: 700; margin: 8px 0 14px; }
.nf-text { font-size: 16px; color: var(--ink-soft); max-width: 420px; margin: 0 auto 30px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nav-links { gap: 18px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-list { border-right: none; border-bottom: 1px solid var(--line); max-height: 240px; }
}
/* tablet band only: the sidebar lies down into a strip above the content.
   Below 900px it becomes a slide-out drawer, so these must not leak down. */
@media (max-width: 980px) and (min-width: 901px) {
  .admin-nav { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); padding: 10px; gap: 6px; }
  .admin-nav-item.active { box-shadow: inset 0 -2px 0 var(--gold); }
  .admin-nav-foot { margin: 0; padding: 0; }
  .admin-reset { width: auto; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 90; margin: 0; padding: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease), padding 0.25s var(--ease);
  }
  .site-header.nav-open .nav-links { max-height: 60vh; opacity: 1; visibility: visible; padding: 6px 0; }
  .nav-links a { padding: 14px 24px; font-size: 15px; border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: none; }
}
@media (max-width: 860px) {
  .pp-hero { grid-template-columns: 1fr; gap: 20px; align-items: start; margin-bottom: 22px; }
  .pp-cards { columns: 1; }
  .pp-stage { aspect-ratio: 4 / 5; }
  .pp-arrow { opacity: 1; width: 38px; height: 38px; }
  .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .reg-grid-2, .reg-grid-3, .plan-grid { grid-template-columns: 1fr; }
  .reg-card, .cab-card { padding: 24px 20px 30px; }
  .cab-cur { grid-template-columns: 1fr; }
  .chat2 { grid-template-columns: 1fr; }
  .chat2-list { max-height: 220px; border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .brand-sub { display: none; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .f-search, .f-age, .f-check { grid-column: span 2; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 48px 0; }
  .hero-inner { padding: 64px 0 56px; }
  .steps-grid, .exp-grid, .tiers-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 30px; }
  .tier-featured { order: -1; }
  .pp { padding: 20px 0 88px; }
  .pp-card { padding: 20px 18px; }
  .pp-specs { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 600px) {
  body { overflow-wrap: anywhere; }
  .reg-field input, .reg-field select, .reg-field textarea,
  .admin-field input, .admin-input,
  .chat-form input, .chat2-form input, .msg-reply input,
  .filter-grid input[type="text"], .filter-grid select { font-size: 16px; }
  .catalog { padding: 24px 0 44px; }
  .filter-toggle { display: flex; }
  .filter-bar:not(.open) .filter-panel { display: none; }
  .filter-bar.open .filter-panel { padding-top: 14px; }
  .filter-head { flex-wrap: wrap; gap: 12px; }
  .filter-head-actions { width: 100%; justify-content: space-between; }
  .filter-grid { grid-template-columns: 1fr; gap: 12px; }
  .f-search, .f-age, .f-check { grid-column: span 1; }
  .hero-cta, .contact-channels, .reg-success-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .contact-channels .btn, .reg-success-actions .btn { width: 100%; text-align: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cst-totals { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 20px 14px 44px; }
  .chat2-thread, .msg-thread { max-height: 50vh; }
  .pp-write { display: block; width: 100%; text-align: center; }
  .cab-grid, .cab-status { max-width: 100%; }
  .cab-status { flex-direction: column; align-items: flex-start; }
  .chat-panel { max-width: 100%; }
}
@media (max-width: 420px) {
  .header-actions { gap: 7px; }
  .lang-switch button { padding: 7px 8px; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-name { font-size: 17px; }
  .stat-grid { grid-template-columns: 1fr; }
  .reg-card, .cab-card { padding: 20px 14px 26px; }
  .cab-qr img { width: 150px; height: 150px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .profile { opacity: 1; transform: none; }
  .sv-bar.active i { transition: none; width: 100%; }
  html.anim-ready .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   ENHANCEMENTS — motion layer, reworked profile, content pages
   ========================================================= */

/* ----- Scroll reveal (active only when anim.js adds .anim-ready) ----- */
html.anim-ready .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform;
}
html.anim-ready .reveal.in { opacity: 1; transform: none; }

/* ----- Micro-interactions ----- */
.btn { transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.16s var(--ease); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(225,29,72,0.26); }
.btn-outline:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.value-card, .exp-card, .tier-card, .profile { will-change: transform; }
.step-num { transition: transform 0.25s var(--ease); }
.step-card:hover .step-num { transform: translateY(-3px) rotate(-4deg); }
.pp-quick-item { transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.pp-quick-item:hover { transform: translateY(-2px); border-color: var(--gold); }
.pp-rate { transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.pp-rate:hover { transform: translateY(-2px); border-color: var(--gold); }
.qchip, .saved-chip, .pp-tags span { transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease); }
.pp-thumb { transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.pp-thumb:hover { transform: translateY(-2px); }

/* subtle sticky-header shadow when scrolled (toggled by script.js .scrolled) */
.site-header.scrolled { box-shadow: 0 2px 0 rgba(17,17,19,0.04); }

/* ----- Reworked profile (анкета) layout ----- */
.pp { padding: 28px 0 90px; }
.pp-hero {
  grid-template-columns: minmax(0, 452px) minmax(0, 1fr);
  gap: 46px; align-items: start; margin-bottom: 44px;
}
.pp-media { position: sticky; top: 92px; align-self: start; }
.pp-stage { border-radius: var(--r-lg); box-shadow: 0 2px 10px var(--shadow); }
.pp-intro { gap: 4px; }
.pp-name { letter-spacing: -0.02em; }
.pp-loc { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }

/* details switch from fragile masonry columns to a clean responsive grid */
.pp-cards {
  columns: auto; column-gap: normal;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; align-items: start; margin-bottom: 8px;
}
.pp-cards .pp-card { margin: 0; break-inside: auto; }
#ppAboutCard { grid-column: 1 / -1; }
.pp-card { border-radius: var(--r-lg); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.pp-card:hover { border-color: var(--line-gold); box-shadow: 0 6px 18px var(--shadow); }
.pp-h { color: var(--gold-deep); }

@media (max-width: 860px) {
  .pp-hero { grid-template-columns: 1fr; gap: 22px; }
  .pp-media { position: static; top: auto; }
  .pp-cards { grid-template-columns: 1fr; }
  #ppAboutCard { grid-column: auto; }
}

/* =========================================================
   CONTENT PAGES (About / Experiences / Pricing / For women / How)
   ========================================================= */
.np-hero { position: relative; border-bottom: 2px solid var(--ink); background: var(--surface); overflow: hidden; }
.np-hero-inner { max-width: 820px; padding: 84px 0 72px; border-left: 4px solid var(--gold); padding-left: 34px; }
.np-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px; }
.np-title { font-size: clamp(34px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); margin: 0; max-width: 20ch; }
.np-lead { font-size: clamp(16px, 1.8vw, 20px); color: var(--ink-soft); max-width: 640px; margin: 22px 0 0; line-height: 1.6; }

.np-section { padding: 66px 0; border-top: 1px solid var(--line); }
.np-section:first-of-type { border-top: none; }
.np-section.alt { background: var(--bg-2); }
.np-shead { max-width: 720px; margin: 0 0 34px; }
.np-shead.center { margin-left: auto; margin-right: auto; text-align: center; }
.np-stitle { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 8px 0 0; }
.np-sublead { font-size: 16px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.65; max-width: 620px; }
.np-shead.center .np-sublead { margin-left: auto; margin-right: auto; }

/* manifesto / prose */
.np-prose { max-width: 720px; }
.np-prose p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; }
.np-prose p strong, .np-prose strong { color: var(--ink); font-weight: 700; }
.np-quote { border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; margin: 0 0 26px; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }

/* feature/value grid */
.np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.np-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.np-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.np-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: 0 1px 3px var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease); }
.np-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px var(--shadow); border-color: var(--line-gold); }
.np-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--gold); color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.np-card-t { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.np-card-d { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.np-card-meta { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.np-card-meta div { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.np-card-meta b { color: var(--ink); font-weight: 600; }

/* numbered steps */
.np-steps { display: grid; gap: 14px; max-width: 760px; }
.np-step { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.np-step:hover { transform: translateX(4px); border-color: var(--line-gold); }
.np-step-n { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 20px; font-weight: 800; }
.np-step-t { font-size: 18px; font-weight: 700; color: var(--ink); margin: 4px 0 6px; }
.np-step-d { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

/* check / bullet lists */
.np-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 640px; }
.np-list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.np-list li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--gold); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.np-list.dash li::before { content: ""; top: 11px; width: 14px; height: 2px; border-radius: 0; background: var(--gold); }
.np-list li b { color: var(--ink); font-weight: 700; }

/* two-column split */
.np-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.np-split .np-prose { max-width: none; }

/* CTA strip */
.np-ctastrip { padding: 72px 0; border-top: 2px solid var(--ink); text-align: center; }
.np-ctastrip .np-stitle { margin-bottom: 10px; }
.np-ctastrip p { font-size: 16px; color: var(--ink-soft); max-width: 520px; margin: 0 auto 26px; }
.np-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* pricing tiers reuse .tiers-grid/.tier-card from landing */
.np-pricing { padding-top: 12px; }

@media (max-width: 900px) {
  .np-grid, .np-grid.cols-2, .np-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .np-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .np-hero-inner { padding: 60px 0 52px; }
  .np-section { padding: 48px 0; }
  .np-grid, .np-grid.cols-2, .np-grid.cols-4 { grid-template-columns: 1fr; }
  .np-step { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .np-step-n { width: 44px; height: 44px; font-size: 17px; }
  .np-ctastrip { padding: 52px 0; }
}

/* =========================================================
   PROFILE SETUP WIZARD + STORIES  (profile-setup.html, stories.html)
   Focus screens: no catalogue navigation, one task at a time.
   ========================================================= */
.setup-body { background: var(--bg); }
.setup-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.setup-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.setup-header-side { display: flex; align-items: center; gap: 10px; }
.setup-exit { font-size: 13px; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.setup-exit:hover { color: var(--ink); border-color: var(--line-gold); }
.setup-main { padding: 30px 0 70px; }
.setup-container { max-width: 860px; }

.setup-top { margin-bottom: 20px; }
.setup-top-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.setup-title { font-family: var(--font-display, inherit); font-size: 26px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.setup-who { color: var(--gold); }
.setup-count { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.setup-bar { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 14px 0 16px; }
.setup-bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.35s var(--ease); }

.setup-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.setup-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font: inherit; font-size: 13px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; transition: border-color 0.15s var(--ease), color 0.15s var(--ease); }
.setup-tab:hover { border-color: var(--line-gold); color: var(--ink); }
.setup-tab-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.setup-tab.is-done .setup-tab-n { background: #2e9e5b; color: #fff; }
.setup-tab.is-current { border-color: var(--ink); background: var(--ink); color: #fff; }
.setup-tab.is-current .setup-tab-n { background: rgba(255,255,255,0.22); color: #fff; }

.setup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 28px; box-shadow: 0 1px 3px var(--shadow); }
.setup-card.center { text-align: center; }
.setup-h { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.setup-sub { font-size: 15px; font-weight: 700; color: var(--ink); margin: 22px 0 10px; }
.setup-lead { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 20px; }
.setup-card .reg-field { margin-bottom: 16px; }
.setup-card .reg-grid { gap: 16px; }

.setup-notice { display: flex; flex-direction: column; gap: 4px; border-radius: var(--r-md); padding: 13px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.55; }
.setup-notice b { font-size: 14px; }
.setup-notice--lock { background: rgba(214, 31, 61, .06); border: 1px solid var(--line-wine, rgba(214, 31, 61, .3)); color: var(--ink-soft); }
.setup-notice--lock b { color: var(--wine); }
.setup-notice--info { background: var(--surface-2); border: 1px dashed var(--line-gold); color: var(--ink-soft); }
.setup-notice--info b { color: var(--gold-deep); }
.rates-row.is-invalid input[type="number"] { border-color: var(--wine); background: rgba(214, 31, 61, .05); }
.setup-card input:disabled, .setup-card select:disabled, .setup-card textarea:disabled,
.setup-card .btn:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

.setup-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.setup-actions .btn { min-width: 130px; }
.setup-actions #nextBtn { margin-left: auto; }
.setup-save-state { font-size: 13px; color: var(--ink-soft); }
.setup-save-state.is-ok { color: #2e9e5b; }
.setup-progress-note { font-size: 13px; color: var(--ink-soft); text-align: center; margin: 18px 0 0; }

.setup-drop { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 34px 20px; border: 1.5px dashed var(--line); border-radius: var(--r-md); background: var(--bg-soft, transparent); margin-bottom: 16px; }
.setup-drop b { font-size: 15px; color: var(--ink); }
.setup-drop span { font-size: 13px; color: var(--ink-soft); }

.setup-summary { margin-bottom: 20px; }
.setup-publish { border-top: 1px solid var(--line); padding-top: 20px; }
.setup-publish .btn-block { margin-top: 14px; }
.cab-payfields { border: 0; padding: 0; margin: 0; }
.cab-payfields[disabled] { opacity: 0.55; }

.setup-done { text-align: center; padding: 18px 0 6px; }
.setup-done-mark { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.setup-done h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.setup-done p { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.setup-done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* stories manager */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.story-tile { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-md); background: var(--line) center/cover no-repeat; margin: 0; overflow: hidden; }
.story-ttl { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(16,15,18,0.72); color: #fff; font-size: 11px; font-weight: 600; }
.story-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(16,15,18,0.68); color: #fff; font-size: 13px; cursor: pointer; }
.story-del:hover { background: #d61f3d; }

/* cabinet: listing summary card */
.cab-listing-top { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: start; }
.cab-listing-cover { width: 92px; aspect-ratio: 3 / 4; border-radius: var(--r-md); background: var(--line) center/cover no-repeat; }
.cab-listing-cover.is-empty { background: repeating-linear-gradient(135deg, var(--line) 0 8px, transparent 8px 16px); }
.cab-listing-info .cab-progress { margin: 12px 0 6px; }
.cab-listing-count { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.cab-card-missing { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 14px 0 0; }
.cab-listing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* manager list rows now link straight into the wizard */
.mgr-girls .mgr-girl { cursor: default; }
.mgr-girls .mgr-girl:hover { transform: none; }
.mgr-girl-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding: 0 13px 13px; }
.mgr-girl-actions .btn { flex: 1 1 auto; justify-content: center; }
.mgr-girl-progress { display: block; height: 3px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.mgr-girl-progress i { display: block; height: 100%; background: var(--gold); }

@media (max-width: 700px) {
  .setup-main { padding: 18px 0 54px; }
  .setup-card { padding: 20px 16px 22px; border-radius: var(--r-md); }
  .setup-title { font-size: 21px; }
  .setup-header-inner { height: 56px; }
  .setup-header-side .lang-switch { display: none; }
  .setup-actions { flex-wrap: wrap; }
  .setup-actions .btn { flex: 1 1 auto; min-width: 0; }
  .setup-save-state { order: 3; width: 100%; text-align: center; }
  .cab-listing-top { grid-template-columns: 68px 1fr; gap: 14px; }
  .cab-listing-cover { width: 68px; }
  .cab-listing-actions .btn { flex: 1 1 100%; }
  .story-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
}

/* =========================================================
   ADMIN v2 — role-aware control room
   ========================================================= */

/* ---- topbar identity ---- */
.admin-whoami { font-size: 13px; font-weight: 600; color: var(--ink); }
.admin-tag.is-super { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.admin-burger { display: none; width: 38px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--ink-soft); cursor: pointer; align-items: center; justify-content: center; }
.admin-burger:hover { border-color: var(--gold); color: var(--gold-deep); }

/* ---- sidebar groups ---- */
.admin-nav-group { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 16px 13px 6px; }
.admin-nav-group:first-child { padding-top: 2px; }
.admin-nav-group[hidden], .admin-nav-item[hidden] { display: none; }
.admin-nav-scrim { position: fixed; inset: 0; z-index: 18; background: rgba(15,18,24,0.45); animation: navScrimIn 0.22s var(--ease); }
@keyframes navScrimIn { from { opacity: 0; } to { opacity: 1; } }
/* freeze the page behind the open drawer so a swipe scrolls the menu, not the table */
body.nav-locked { overflow: hidden; }

/* ---- segmented tabs (queue filters, user tabs) ---- */
.seg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.seg-tab { display: inline-flex; align-items: center; gap: 7px; background: none; border: 1px solid transparent; border-radius: var(--r-pill); color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 8px 14px; transition: 0.15s var(--ease); }
.seg-tab:hover { background: var(--surface-2); color: var(--ink); }
.seg-tab.active { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.seg-tab[hidden] { display: none; }
.seg-count { font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-soft); }
.seg-tab.active .seg-count { background: rgba(255,255,255,0.24); color: #fff; }
#queueFilters { border-bottom: 1px solid var(--line); padding-bottom: 12px; }

/* ---- task queue ---- */
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-card { display: grid; grid-template-columns: 104px 1fr auto auto; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.queue-card:hover { border-color: var(--gold); box-shadow: 0 4px 18px var(--shadow); }
.queue-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 6px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }
.queue-tag--gold   { background: var(--chip-bg); color: var(--gold-deep); border-color: var(--line-gold); }
.queue-tag--blue   { background: rgba(56,120,220,0.12); color: #2c62b8; border-color: rgba(56,120,220,0.3); }
.queue-tag--violet { background: rgba(130,80,220,0.12); color: #6b3fc0; border-color: rgba(130,80,220,0.3); }
.queue-tag--green  { background: rgba(40,170,90,0.13); color: #1e7f47; border-color: rgba(40,170,90,0.32); }
.queue-tag--red    { background: rgba(220,50,60,0.12); color: #b32530; border-color: rgba(220,50,60,0.3); }
.queue-tag--amber  { background: rgba(210,150,40,0.15); color: #8e6410; border-color: rgba(210,150,40,0.35); }
.queue-tag--cyan   { background: rgba(30,160,180,0.13); color: #14707f; border-color: rgba(30,160,180,0.32); }
[data-theme="dark"] .queue-tag--blue   { color: #8fb6ff; }
[data-theme="dark"] .queue-tag--violet { color: #c0a4ff; }
[data-theme="dark"] .queue-tag--green  { color: #74dfa1; }
[data-theme="dark"] .queue-tag--red    { color: #ff9098; }
[data-theme="dark"] .queue-tag--amber  { color: #ffcf7a; }
[data-theme="dark"] .queue-tag--cyan   { color: #74d9e6; }
.queue-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.queue-title { font-size: 15px; color: var(--ink); font-weight: 700; }
.queue-sub { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-note { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-time { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; }
.queue-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }

/* age pressure: nothing should quietly rot at the bottom of the queue */
.queue-card--warn { border-color: rgba(210,150,40,0.45); }
.queue-card--late { border-color: rgba(220,50,60,0.5); background: linear-gradient(90deg, rgba(220,50,60,0.05), transparent 40%); }
.queue-time--warn { color: #8e6410; font-weight: 700; }
.queue-time--late { color: var(--wine); font-weight: 800; }
[data-theme="dark"] .queue-time--warn { color: #ffcf7a; }
[data-theme="dark"] .queue-time--late { color: #ff9098; }
.queue-hint { font-size: 13px; margin: 0 0 14px; }
.queue-hint:empty { display: none; }
.queue-alert { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--wine); background: rgba(220,50,60,0.09); border: 1px solid rgba(220,50,60,0.28); border-radius: var(--r-pill); padding: 5px 13px; }
.queue-alert::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--wine); color: #fff; font-size: 11px; font-weight: 800; }
[data-theme="dark"] .queue-alert { color: #ff9098; }
.queue-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); text-align: center; }
.queue-empty-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(40,170,90,0.14); color: #1e7f47; font-size: 22px; font-weight: 700; }
.queue-empty b { font-family: var(--serif); font-size: 18px; color: var(--ink); }

/* ---- showcase table extras ---- */
.col-check { width: 34px; }
.col-check input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--gold); }
.col-actions { white-space: nowrap; }
.col-actions > * + * { margin-left: 6px; }
.bulk-bar { position: sticky; top: 62px; z-index: 6; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--chip-bg); border: 1px solid var(--line-gold); border-radius: var(--r-md); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--gold-deep); }
.bulk-bar[hidden] { display: none; }
.prof-thumb--sm { width: 34px; height: 44px; }
.tal-reason { font-size: 13px; line-height: 1.5; color: var(--wine); background: rgba(220,50,60,0.08); border-left: 3px solid var(--wine); border-radius: var(--r-sm); padding: 9px 12px; margin: 10px 0; }
.tal-ask { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--gold-deep); background: var(--chip-bg); border: 1px solid var(--line-gold); border-radius: var(--r-md); padding: 10px 13px; margin: 12px 0; }

/* ---- pre-publish checklist ---- */
.tal-check-section h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check-score { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: var(--r-pill); }
.check-score.ok { background: rgba(40,170,90,0.14); color: #1e7f47; }
.check-score.no { background: rgba(210,150,40,0.16); color: #8e6410; }
[data-theme="dark"] .check-score.ok { color: #74dfa1; }
[data-theme="dark"] .check-score.no { color: #ffcf7a; }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 7px; }
.check-row { font-size: 13px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; line-height: 1.45; }
.check-row i { font-style: normal; font-weight: 800; flex-shrink: 0; }
.check-row em { font-style: normal; font-weight: 500; color: var(--muted); }
.check-row.ok { color: #1e7f47; }
.check-row.no { color: var(--wine); }
[data-theme="dark"] .check-row.ok { color: #74dfa1; }
[data-theme="dark"] .check-row.no { color: #ff9098; }
.check-warn { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---- photo flags: new shots ride along with the listing decision ---- */
.photo-flag { position: absolute; left: 7px; bottom: 7px; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-sm); }
.photo-flag--main { background: var(--gold); color: var(--on-gold); }
.photo-flag--new { background: #6b3fc0; color: #fff; }
.tal-modal-photo { position: relative; }
.tal-modal-photo--pending { box-shadow: 0 0 0 2px #6b3fc0 inset; }
.tal-pending-note { font-size: 13px; line-height: 1.5; color: #6b3fc0; background: rgba(130,80,220,0.09); border-left: 3px solid #6b3fc0; border-radius: var(--r-sm); padding: 9px 12px; margin: -8px 0 18px; }
[data-theme="dark"] .tal-pending-note { color: #c0a4ff; }
.cab-photo--pending { box-shadow: 0 0 0 2px #6b3fc0 inset; }
.cab-photo-tag--new { background: #6b3fc0; color: #fff; }
.tal-pending-badge { display: inline-block; font-size: 11px; font-weight: 700; vertical-align: middle; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(130,80,220,0.12); color: #6b3fc0; border: 1px solid rgba(130,80,220,0.3); }
[data-theme="dark"] .tal-pending-badge { color: #c0a4ff; }

/* ---- side drawer ---- */
.adm-drawer { position: fixed; inset: 0; z-index: 130; }
.adm-drawer[hidden] { display: none; }
.adm-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,18,24,0.5); }
.adm-drawer-card { position: absolute; top: 0; right: 0; height: 100%; width: min(660px, 100%); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 60px var(--shadow); animation: drawerIn 0.22s var(--ease); }
@keyframes drawerIn { from { transform: translateX(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.adm-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.adm-drawer-title { display: flex; flex-direction: column; gap: 3px; font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--ink); min-width: 0; }
.adm-drawer-sub { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); }
.adm-drawer-head .tal-modal-close { position: static; flex-shrink: 0; }
.adm-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }
.adm-drawer-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.adm-drawer-foot:empty { display: none; }
body.drawer-open { overflow: hidden; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }

/* ---- mini list (account listings) ---- */
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; padding: 8px 12px; transition: 0.15s var(--ease); }
.mini-row:hover { border-color: var(--gold); }
.mini-main { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink); min-width: 0; }
.mini-go { color: var(--gold-deep); font-weight: 700; }

/* ---- account type switcher (admin user drawer) ---- */
.role-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.role-opt {
  position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; cursor: pointer; transition: 0.15s var(--ease); font-family: var(--sans);
}
.role-opt:hover { border-color: var(--gold); }
.role-opt b { font-size: 14px; color: var(--ink); font-weight: 700; }
.role-opt span { font-size: 12px; color: var(--muted); line-height: 1.4; }
/* the account's present type is a label, not a choice */
.role-opt.is-current { border-color: var(--gold); background: var(--surface); cursor: default; }
.role-opt.is-current:hover { border-color: var(--gold); }
.role-now {
  position: absolute; top: 9px; right: 11px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-deep);
}

/* ---- internal notes ---- */
.note-add { display: flex; gap: 8px; margin-bottom: 12px; }
.note-add .admin-input { flex: 1; min-width: 0; }
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }
.note-item p { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 5px 0 0; white-space: pre-wrap; }
.note-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.note-meta b { color: var(--ink); }
.note-del { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 4px; }
.note-del:hover { color: var(--wine); }

/* ---- permissions editor ----
   Every checkbox states its own consequence: whoever hands out access should
   not have to guess what "talents.moderate" means in practice. */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.perm-group { display: flex; flex-direction: column; gap: 2px; }
.perm-group-title { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.perm-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: var(--r-md); border: 1px solid transparent; cursor: pointer; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.perm-row:hover { background: var(--surface-2); border-color: var(--line); }
.perm-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.perm-row.is-disabled { opacity: 0.45; cursor: not-allowed; }
.perm-row.is-disabled:hover { background: none; border-color: transparent; }
.perm-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.perm-text b { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.perm-text em { font-style: normal; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.perm-dep { display: block; font-size: 11.5px; text-decoration: none; color: var(--gold-deep); font-weight: 600; margin-top: 1px; }
.perm-risk { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(220,50,60,0.1); color: var(--wine); border: 1px solid rgba(220,50,60,0.28); }
[data-theme="dark"] .perm-risk { color: #ff9098; }
.perm-row--risk:has(input:checked) { background: rgba(220,50,60,0.05); border-color: rgba(220,50,60,0.22); }
.perm-warn { color: var(--wine); background: rgba(220,50,60,0.07); border-left: 3px solid var(--wine); border-radius: var(--r-sm); padding: 10px 12px; }
[data-theme="dark"] .perm-warn { color: #ff9098; }

/* ready-made starting sets */
.preset-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.preset-btn { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; cursor: pointer; font-family: var(--sans); transition: 0.15s var(--ease); }
.preset-btn:hover { border-color: var(--gold); }
.preset-btn.active { border-color: var(--gold); background: var(--chip-bg); }
.preset-btn b { font-size: 13.5px; color: var(--ink); }
.preset-btn span { font-size: 12px; line-height: 1.45; color: var(--muted); }
.preset-btn--clear b { color: var(--muted); }

/* plain-language result of whatever is ticked right now */
.perm-summary-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.perm-summary-box h3 { margin-top: 0; }
.perm-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.perm-summary li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.perm-summary li::before { content: "→"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

.perm-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.perm-chip { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }
.perm-chip.is-on { background: var(--chip-bg); border-color: var(--line-gold); color: var(--gold-deep); }

/* ---- staff list ---- */
.role-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); }
.role-chip.role-super { background: var(--chip-bg); border-color: var(--line-gold); color: var(--gold-deep); }
.state-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); }
.state-on { background: rgba(40,170,90,0.13); color: #1e7f47; }
.state-off { background: rgba(220,50,60,0.1); color: var(--wine); }
[data-theme="dark"] .state-on { color: #74dfa1; }
[data-theme="dark"] .state-off { color: #ff9098; }
.col-scope { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-scope { font-size: 12px; font-weight: 600; color: var(--muted); }
.perm-scope--all { color: var(--gold-deep); font-weight: 700; }
.perm-scope--risk { color: var(--wine); font-weight: 700; cursor: help; }
[data-theme="dark"] .perm-scope--risk { color: #ff9098; }
.tag-you { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-pill); background: var(--chip-bg); color: var(--gold-deep); border: 1px solid var(--line-gold); }
tr.row-off { opacity: 0.6; }

/* ---- form clarity: hints and credential rows ---- */
.field-hint { display: block; font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 5px; font-weight: 400; }
.pass-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pass-row .admin-input { flex: 1; min-width: 180px; font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); }
.cred-box { display: block; margin: 8px 0; padding: 10px 12px; background: var(--surface-2); border: 1px dashed var(--line-gold); border-radius: var(--r-md); font-family: var(--mono, ui-monospace, "SF Mono", Menlo, monospace); font-size: 13px; color: var(--ink); user-select: all; }

/* ---- my profile ---- */
.profile-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px 24px; }
.admin-card .admin-h2 { margin-top: 0; }

/* ---- reason prompt modal ---- */
.tal-modal-card--sm { max-width: 460px; }
.reason-presets { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.reason-presets[hidden] { display: none; }
.reason-chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-soft); cursor: pointer; font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 6px 11px; transition: 0.15s var(--ease); }
.reason-chip:hover { border-color: var(--gold); color: var(--gold-deep); }
#askInput { width: 100%; resize: vertical; }
#askInput[hidden] { display: none; }
.btn-danger { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn-danger:hover { background: var(--wine); border-color: var(--wine); filter: brightness(1.1); color: #fff; }

/* ---- toast ---- */
.admin-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; max-width: 90vw; background: var(--ink); color: var(--bg); border-radius: var(--r-md); padding: 12px 20px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 34px rgba(0,0,0,0.28); animation: toastIn 0.2s var(--ease); }
.admin-toast[hidden] { display: none; }
.admin-toast.is-error { background: var(--wine); color: #fff; }
@keyframes toastIn { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---- messages: search above the dialog list ---- */
.msg-list-wrap { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.msg-list-wrap .admin-input { margin: 12px; min-width: 0; }
.msg-list-wrap .msg-list { border-right: none; flex: 1; }

/* ---- logs: who did it ---- */
.act-actor { color: var(--gold-deep); font-weight: 600; }
.log-staff { background: var(--chip-bg); color: var(--gold-deep); }
.log-review, .log-report { background: var(--surface-2); color: var(--ink-soft); }

@media (max-width: 1080px) {
  /* keep the waiting time visible — it is the whole point of the ordering */
  .queue-card { grid-template-columns: 96px 1fr auto; grid-template-areas: "tag main time" "acts acts acts"; row-gap: 12px; }
  .queue-tag { grid-area: tag; align-self: start; }
  .queue-main { grid-area: main; }
  .queue-time { grid-area: time; align-self: start; }
  .queue-actions { grid-area: acts; justify-content: flex-start; }
  .perm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* fixed bar height keeps the drawer offset below honest */
  .admin-top { height: var(--adm-top-h); padding: 0 12px; gap: 10px; }
  .admin-burger { display: inline-flex; flex: none; width: 40px; height: 40px; }
  .admin-burger[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-deep); background: var(--chip-bg); }
  .admin-top-brand { flex: 1 1 auto; gap: 8px; }
  .admin-top-brand .brand-mark { font-size: 17px; }
  .admin-top-actions { gap: 8px; }

  .admin-shell { grid-template-columns: 1fr; min-height: calc(100vh - var(--adm-top-h)); }
  /* drawer sits under the bar so the burger stays reachable to close it */
  .admin-nav {
    position: fixed; top: var(--adm-top-h); left: 0; z-index: 19;
    width: min(84vw, 280px);
    height: calc(100% - var(--adm-top-h));
    height: calc(100dvh - var(--adm-top-h));   /* survives the mobile URL bar sliding away */
    flex-direction: column; flex-wrap: nowrap; gap: 3px;
    padding: 12px 12px calc(20px + env(safe-area-inset-bottom));
    border-right: 1px solid var(--line); border-bottom: none;
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-100%); visibility: hidden;
    box-shadow: 6px 0 24px var(--shadow);
    transition: transform 0.22s var(--ease), visibility 0s linear 0.22s;
  }
  .admin-nav.is-open { transform: none; visibility: visible; transition-delay: 0s, 0s; }
  .admin-nav-item { white-space: normal; min-height: 44px; padding: 11px 13px; }
  .admin-nav-item.active { box-shadow: inset 3px 0 0 var(--gold); }
  .admin-nav-group { padding: 14px 13px 5px; }
  .admin-nav-group:first-child { padding-top: 2px; }
  .admin-nav-scrim { top: var(--adm-top-h); }

  .admin-main { padding: 20px 16px 48px; }
  .admin-whoami, .admin-link-out { display: none; }
  .msg-layout { grid-template-columns: 1fr; }
  .msg-list-wrap { border-right: none; border-bottom: 1px solid var(--line); }
  .msg-list-wrap .msg-list { max-height: 260px; }
  .adm-drawer-card { width: 100%; }
  .bulk-bar { position: static; }
  /* thumb-sized controls and a drawer footer that never scrolls out of reach */
  .admin-btn-ghost, .admin-btn-mini { min-height: 38px; }
  .adm-drawer-foot { position: sticky; bottom: 0; gap: 7px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .adm-drawer-foot .btn, .adm-drawer-foot .admin-btn-ghost { flex: 1 1 auto; justify-content: center; text-align: center; }
  .adm-drawer-body { padding: 16px 16px 20px; }
  .adm-drawer-head { padding: 14px 16px 12px; }
  .admin-table { font-size: 13.5px; }
  .admin-table th, .admin-table td { padding: 11px 12px; }
  .preset-row { grid-template-columns: 1fr; }
  .queue-actions { width: 100%; }
  .queue-actions .admin-btn-mini, .queue-actions .admin-btn-ghost { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 560px) {
  .queue-card { grid-template-columns: 1fr auto; grid-template-areas: "tag time" "main main" "acts acts"; gap: 10px; padding: 13px 14px; }
  .queue-tag { justify-self: start; }
  .queue-sub, .queue-note { white-space: normal; }
  .admin-h1 { font-size: 24px; }
  .check-list { grid-template-columns: 1fr; }
  .tal-modal-photos { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

@media (max-width: 400px) {
  /* the role badge would squeeze the brand into an ellipsis; it is still on «Мой профиль» */
  .admin-top-brand .admin-tag { display: none; }
  .admin-top { padding: 0 10px; gap: 8px; }
  .admin-logout { padding: 8px 11px; }
}

