/* Farmasi Product Brand Ambassadors — Editorial Beauty Magazine Theme */
:root {
  --bg: #FAF7F2;
  --bg-warm: #F3ECE1;
  --surface: #FFFFFF;
  --surface-soft: #FDFBF8;
  --blush: #FBF0EE;
  --blush-border: #EFD2CE;
  --gold-soft: #FAF2E1;
  --gold-border: #E5CFA2;
  --sage-soft: #ECF5F0;
  --sage: #2A684C;
  --ink: #1D1614;
  --ink-2: #4A3D37;
  --muted: #76665E;
  --line: #E8DFD3;
  --line-strong: #D9CBB9;
  --accent: #C4524A;
  --accent-dark: #A53D36;
  --gold: #B68838;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(29, 22, 20, 0.04);
  --shadow: 0 10px 30px rgba(29, 22, 20, 0.06);
  --shadow-lg: 0 24px 64px rgba(29, 22, 20, 0.18);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(196, 82, 74, 0.055), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(198, 154, 75, 0.08), transparent 38%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--ink);
  color: #FAF7F2;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(198, 154, 75, 0.45);
}

.brand-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-link:hover {
  background: var(--blush);
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Container & Hero */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 72px;
}

.hero {
  text-align: center;
  padding: 34px 4px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 7.2vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.hero-sub {
  margin: 14px auto 0;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 600px;
  line-height: 1.6;
}

.hero-meta {
  margin-top: 18px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta span strong {
  color: var(--ink);
  font-weight: 700;
}

/* Primary 2-Tab Switch */
.main-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 520px;
  margin: 6px auto 26px;
  padding: 6px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.main-tab {
  border: 0;
  background: transparent;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.18s ease;
  min-height: 44px;
}

.main-tab:hover {
  color: var(--ink);
}

.main-tab.active {
  background: var(--ink);
  color: #FAF7F2;
  box-shadow: 0 4px 14px rgba(29, 22, 20, 0.16);
}

.tab-pill-count {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(29, 22, 20, 0.08);
  color: var(--ink-2);
}

.main-tab.active .tab-pill-count {
  background: rgba(250, 247, 242, 0.18);
  color: #FAF7F2;
}

/* Controls bar (search + filters) */
.controls-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 15px;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 38px 11px 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  display: none;
  place-items: center;
}

.search-clear.visible {
  display: grid;
}

.btn-outline {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--blush);
  color: var(--accent-dark);
}

.btn-primary {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(196, 82, 74, 0.25);
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-dark {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 0;
  background: var(--ink);
  color: #FAF7F2;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.btn-dark:hover {
  opacity: 0.9;
}

.btn-danger-ghost {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid #E9C6C3;
  background: #FFF7F6;
  color: #A42E27;
  font-size: 12.5px;
  font-weight: 600;
}

.btn-danger-ghost:hover {
  background: #FCE8E6;
}

/* Filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FAF7F2;
}

.chip-sub {
  font-size: 11.5px;
  opacity: 0.78;
}

.roster-hint {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Roster Grid */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.ambassador-card {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ambassador-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.ambassador-card.is-active {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF9F1 100%);
}

.amb-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--bg-warm);
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--line);
}

.ambassador-card.is-active .amb-avatar {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: var(--gold-border);
}

.amb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amb-body {
  flex: 1 1 auto;
  min-width: 0;
}

.amb-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.amb-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.fl-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--muted);
}

.amb-status {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.amb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--blush);
  border: 1px solid var(--blush-border);
  padding: 3px 9px;
  border-radius: 999px;
  max-width: 100%;
}

.amb-badge-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amb-chevron {
  color: var(--muted);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.14s ease, color 0.14s ease;
}

.ambassador-card:hover .amb-chevron {
  color: var(--accent);
  transform: translateX(2px);
}

/* Story Wall Grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

@media (max-width: 420px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
  .roster-grid {
    grid-template-columns: 1fr;
  }
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.story-card.is-highlighted {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 82, 74, 0.16), var(--shadow);
}

.story-card.is-top-pick {
  border-color: var(--gold-border);
}

.story-top {
  padding: 18px 20px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #F3ECE2;
}

.story-author-wrap {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.story-monogram {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: #FAF7F2;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.story-author {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.story-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.cat-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Badges row */
.coach-badges {
  padding: 10px 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cbadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.cbadge-pick {
  background: var(--gold-soft);
  color: #875F1A;
  border: 1px solid var(--gold-border);
}

.cbadge-buy {
  background: var(--sage-soft);
  color: var(--sage);
  border: 1px solid #CBE3D5;
}

.cbadge-sample {
  background: var(--blush);
  color: var(--accent-dark);
  border: 1px solid var(--blush-border);
}

.cbadge-polish {
  background: #F4F1EC;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
}

.story-body {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
}

.story-product {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
}

/* Photo Mosaic */
.photo-gallery {
  display: grid;
  gap: 6px;
  border-radius: 14px;
  overflow: hidden;
}

.photo-gallery.count-1 {
  grid-template-columns: 1fr;
}

.photo-gallery.count-2 {
  grid-template-columns: 1fr 1fr;
}

.photo-gallery.count-3 {
  grid-template-columns: 1fr 1fr;
}

.photo-gallery.count-3 .photo-tile:first-child {
  grid-column: 1 / -1;
}

.photo-gallery.count-4 {
  grid-template-columns: 1fr 1fr;
}

.photo-tile {
  position: relative;
  border: 0;
  padding: 0;
  background: var(--bg-warm);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  width: 100%;
}

.photo-gallery.count-1 .photo-tile {
  aspect-ratio: 16 / 11;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.photo-tile:hover img {
  transform: scale(1.03);
}

/* Story Beats */
.benefits-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.beat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}

.beat-text {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.story-narrative {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.pull-quote {
  margin: 2px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--blush);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.32;
  color: var(--ink);
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.mini-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* Reactions Footer */
.story-footer {
  padding: 12px 18px 16px;
  border-top: 1px solid #F3ECE2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #FEFCF9;
}

.react-btn {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.react-btn:hover {
  border-color: var(--accent);
  background: var(--blush);
}

.react-btn.reacted {
  border-color: var(--accent);
  background: var(--blush);
  color: var(--accent-dark);
}

.react-count {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-warm);
  font-size: 12px;
}

.react-btn.reacted .react-count {
  background: var(--accent);
  color: #FFFFFF;
}

.share-icon-btn {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.share-icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 46px 22px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 12px auto;
}

.empty-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}

/* Modal / Drawer */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 22, 20, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 640px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetUp 0.2s ease-out;
}

@media (min-width: 640px) {
  .modal-sheet {
    border-radius: 22px;
    max-height: 88vh;
  }
}

@keyframes sheetUp {
  from { transform: translateY(18px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-head {
  padding: 18px 20px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.modal-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--blush);
  border-color: var(--accent);
}

.modal-body {
  padding: 18px 20px 26px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Form Elements */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.field-hint {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 7px;
  line-height: 1.45;
}

.input, .textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.55;
}

.textarea.tall {
  min-height: 126px;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cat-choice {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.cat-choice.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

/* Photo Upload Dropzone */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 14px;
  border-radius: 14px;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone:hover {
  border-color: var(--accent);
  background: var(--blush);
}

.upload-zone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.upload-zone-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--bg-warm);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0;
  background: rgba(29, 22, 20, 0.8);
  color: #FFFFFF;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.existing-strip {
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-2);
}

.existing-strip strong {
  color: var(--ink);
}

.form-error {
  display: none;
  padding: 10px 13px;
  border-radius: 10px;
  background: #FFF1F0;
  border: 1px solid #F0B6B1;
  color: #9F2A23;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-error.visible {
  display: block;
}

.success-card {
  text-align: center;
  padding: 16px 6px 10px;
}

.success-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 8px 0 8px;
}

.success-card p {
  color: var(--ink-2);
  margin: 0 0 20px;
  font-size: 15px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 12, 10, 0.92);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 82vh;
  border-radius: 12px;
  object-fit: contain;
}

.lb-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.45);
  color: #FFFFFF;
  font-size: 24px;
  display: grid;
  place-items: center;
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.45);
  color: #FFFFFF;
  font-size: 22px;
  display: grid;
  place-items: center;
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }

.lb-caption {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  background: rgba(0,0,0,0.55);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #FAF7F2;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 150;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Coach Desk Specific Styles */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 720px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .kpi-grid .kpi-card:last-child {
    grid-column: 1 / -1;
  }
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.kpi-num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 5px;
}

.desk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.desk-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F3ECE2;
  margin-bottom: 14px;
}

.verdict-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.verdict-btn {
  min-height: 40px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.14s ease;
}

.verdict-btn:hover {
  border-color: var(--ink);
}

.verdict-btn.active-buy {
  background: var(--sage);
  border-color: var(--sage);
  color: #FFFFFF;
}

.verdict-btn.active-sample {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.verdict-btn.active-polish {
  background: var(--ink);
  border-color: var(--ink);
  color: #FAF7F2;
}

.verdict-btn.active-pick {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF;
}

.desk-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F3ECE2;
}

.roster-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 740px) {
  .roster-manage-grid {
    grid-template-columns: 1fr;
  }
}

.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.roster-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.footer {
  text-align: center;
  padding: 28px 16px 40px;
  color: var(--muted);
  font-size: 12.5px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hidden {
  display: none !important;
}

@media (max-width: 520px) {
  .hero {
    padding: 20px 2px 14px;
  }
  .hero-sub {
    font-size: 14.5px;
    margin-top: 10px;
  }
  .main-tabs {
    margin: 4px auto 16px;
  }
  .controls-card {
    padding: 13px;
    margin-bottom: 14px;
  }
}
