/* ============================================================
   CHOSIE — Design System
   Editorial talent-booking platform
   ============================================================ */

/* --- Custom Properties ----------------------------------- */
:root {
  --ink: #0c0c0c;
  --paper: #faf9f6;
  --paper-2: #f3f1ec;
  --paper-3: #ebe8e1;
  --line: rgba(12, 12, 12, 0.12);
  --line-strong: rgba(12, 12, 12, 0.30);
  --muted: rgba(12, 12, 12, 0.56);
  --accent: #0c0c0c;
  --ok: #2d6a4f;
  --warn: #b5620e;
  --no: #9b2335;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "Fira Mono", monospace;

  --radius: 3px;
  --btn-radius: 100px;
  --transition: 160ms ease;
}

.app-confirm-dialog {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 19, 17, 0.45);
}

.app-confirm-modal {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 28px;
  border: 1px solid rgba(28, 27, 24, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.app-confirm-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-confirm-icon[hidden] {
  display: none;
}

.app-confirm-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.app-confirm-icon.is-success,
.app-confirm-icon.is-default {
  color: #3e7a46;
  background: #e7f1e5;
}

.app-confirm-icon.is-danger {
  color: #a13333;
  background: #f8e9e7;
}

.app-confirm-icon .app-confirm-alert,
.app-confirm-icon.is-danger .app-confirm-check {
  display: none;
}

.app-confirm-icon.is-danger .app-confirm-alert {
  display: block;
}

.app-confirm-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--ink);
}

.app-confirm-message {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.app-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.app-confirm-cancel,
.app-confirm-ok {
  min-width: 132px;
  justify-content: center;
}

.app-confirm-ok.is-danger {
  border-color: #a13333;
  background: #a13333;
  color: #fff;
}

/* --- Reset ------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input,
select,
textarea {
  font: inherit;
}

/* --- Page Fade ------------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  animation: fadeUp 0.4s ease both;
}

/* --- Typography ------------------------------------------ */
.display {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.display em {
  font-style: italic;
  font-weight: 400;
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.h1 em {
  font-style: italic;
  font-weight: 400;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.h2 em {
  font-style: italic;
}

.h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono {
  font-family: var(--mono);
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.serif {
  font-family: var(--serif);
}

.muted {
  color: var(--muted);
}

/* --- Layout ---------------------------------------------- */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.row {
  display: flex;
  flex-direction: row;
}

.col {
  display: flex;
  flex-direction: column;
}

.flex1 {
  flex: 1;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 16px;
}

.gap-4 {
  gap: 24px;
}

.gap-5 {
  gap: 32px;
}

.gap-6 {
  gap: 48px;
}

.gap-7 {
  gap: 64px;
}

/* --- Hairline Rules -------------------------------------- */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

.rule-strong {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  border: none;
  margin: 0;
}

.v-rule {
  display: block;
  width: 1px;
  background: var(--line);
  align-self: stretch;
}

/* --- Navigation ------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  height: 56px;
  display: flex;
  align-items: center;
}

.topbar.dark {
  background: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 32px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.topbar.dark .nav-links a {
  color: rgba(255, 255, 255, 0.55);
}

.topbar.dark .nav-links a:hover,
.topbar.dark .nav-links a.active {
  color: #fff;
}

.locale-switcher {
  display: flex;
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.locale-switcher a {
  color: var(--muted);
  padding: 2px 4px;
}

.locale-switcher a.active,
.locale-switcher a:hover {
  color: var(--ink);
}

.topbar.dark .locale-switcher a {
  color: rgba(255, 255, 255, 0.4);
}

.topbar.dark .locale-switcher a.active,
.topbar.dark .locale-switcher a:hover {
  color: #fff;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
}

.topbar.dark .nav-hamburger span {
  background: var(--paper);
}

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--btn-radius);
  transition: background var(--transition), color var(--transition), opacity var(--transition), border-color var(--transition);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.82;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(12, 12, 12, 0.25);
}

.btn-outline:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.btn-warning {
  background: var(--warn, #f59e0b);
  color: #fff;
  border-color: var(--warn, #f59e0b);
}

.btn-warning:hover {
  opacity: 0.85;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.76rem;
}

.btn-lg {
  padding: 13px 30px;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.btn-icon {
  padding: 8px;
  border-radius: 50%;
}

.btn-accent {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* --- Tags / Badges --------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.tag.solid {
  background: var(--paper-2);
}

.tag.dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag.ok {
  color: var(--ok);
  border-color: var(--ok);
  background: rgba(45, 106, 79, 0.08);
}

.tag.warn {
  color: var(--warn);
  border-color: var(--warn);
  background: rgba(181, 98, 14, 0.08);
}

.tag.invited {
  color: #2c5f9e;
  border-color: rgba(44, 95, 158, 0.42);
  background: rgba(44, 95, 158, 0.08);
}

.tag.no {
  color: var(--no);
  border-color: var(--no);
  background: rgba(155, 35, 53, 0.08);
}

.tag.pending-invite {
  color: #6b7280;
  border-color: rgba(107, 114, 128, 0.38);
  background: rgba(107, 114, 128, 0.08);
}

/* --- Status Dots ----------------------------------------- */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.status-dot.ok {
  background: var(--ok);
}

.status-dot.warn {
  background: var(--warn);
}

.status-dot.no {
  background: var(--no);
}

/* --- Model Photos ---------------------------------------- */
.mphoto {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}

.mphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.04);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.mphoto:hover img {
  transform: scale(1.03);
  filter: grayscale(0.8) contrast(1.04);
}

.avatar-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
  flex-shrink: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.04);
}

/* --- Model Cards ----------------------------------------- */
.model-card {
  position: relative;
  cursor: pointer;
}

.model-card .mphoto {
  aspect-ratio: 3/4;
}

.model-meta {
  padding: 10px 0 0;
}

.model-meta .name {
  font-size: 0.9rem;
  font-weight: 500;
}

.model-meta .sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.model-card .heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(250, 249, 246, 0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition);
  cursor: pointer;
}

.model-card:hover .heart-btn {
  opacity: 1;
}

.model-card .heart-btn.saved {
  opacity: 1;
  color: var(--no);
}

.shortlist-toggle-btn {
  min-width: 42px;
  justify-content: center;
  font-size: 1rem;
}

.shortlist-toggle-btn.saved {
  color: var(--paper);
  background: var(--no);
  border-color: var(--no);
}

.shortlist-inline-flash {
  margin: -12px 0 24px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  background: #fafafa;
  color: var(--warn);
  font-size: 0.875rem;
}

.shortlist-inline-flash.is-success {
  border-left-color: var(--ok);
  color: var(--ok);
}

@keyframes pulseHighlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(12, 12, 12, 0); }
  50% { box-shadow: 0 0 0 5px rgba(12, 12, 12, 0.15); }
}

.pulse-highlight {
  animation: pulseHighlight 1s ease-in-out 2;
}

.model-card .lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.model-card:hover .lock-overlay {
  opacity: 1;
}

.row-hidden {
  display: none;
}

/* --- Panels ---------------------------------------------- */
.panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel-inset {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

/* --- Forms ----------------------------------------------- */
.field {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color var(--transition);
  width: 100%;
}

.field-input:focus {
  outline: none;
  border-color: var(--ink);
}

.field-input::placeholder {
  color: rgba(12, 12, 12, 0.28);
  font-weight: 400;
}

select.field-input {
  appearance: none;
  cursor: pointer;
}

textarea.field-input {
  resize: vertical;
  min-height: 120px;
}

/* Segment Control */
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.seg button {
  padding: 7px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
  border-right: 1px solid var(--line);
  transition: background var(--transition), color var(--transition);
}

.seg button:last-child {
  border-right: none;
}

.seg button.active,
.seg button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  background: var(--paper);
}

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

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

/* Inherit the chip's own (already-correct) text color instead of a fixed
   muted gray, which went invisible against .chip.active's dark background. */
.chip-count {
  color: inherit;
  opacity: 0.65;
}

/* --- Tables ---------------------------------------------- */
.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tbl th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}

.tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.tbl tr:last-child td {
  border-bottom: none;
}

.tbl tbody tr:hover {
  background: var(--paper-2);
}

/* --- Tabs ------------------------------------------------ */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs .tab {
  flex-shrink: 0;
}

.tab {
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}

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

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 500;
}

/* --- Accordion ------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  padding: 18px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
}

.accordion-trigger .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.accordion-item.open .accordion-trigger .icon {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* --- Modal ----------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 12, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  animation: fadeUp 0.25s ease both;
}

/* --- Toast ----------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.25s ease both;
  min-width: 220px;
}

.toast.ok {
  background: var(--ok);
}

.toast.warn {
  background: var(--warn);
}

.toast.no {
  background: var(--no);
}

/* --- Marquee --------------------------------------------- */
@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-outer {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  display: inline-block;
  padding: 0 40px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Stat Tiles ------------------------------------------ */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-tile {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.stat-tile:last-child {
  border-right: none;
}

.stat-tile .value {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-tile .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Hero Grid ------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 0px;
  min-height: calc(100vh - 56px);
  max-height: 860px;
  align-items: stretch;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 0;
}

.hero-photo-col {
  position: relative;
  overflow: hidden;
}

.hero-photo-col::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--paper) 0%, transparent 12%, transparent 86%, var(--paper) 100%),
    linear-gradient(to right, var(--paper) 0%, transparent 16%, transparent 84%, var(--paper) 100%);
}

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.8);
  background: rgba(12, 12, 12, 0.35);
  padding: 4px 8px;
}

/* --- Steps Grid ------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.steps-grid.steps-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}

.step-card:last-child {
  border-right: none;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* --- Discovery Grid -------------------------------------- */
.disc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - 56px);
  align-items: start;
}

.disc-sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 24px;
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.disc-main {
  padding: 32px;
}

.disc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Booking Room ---------------------------------------- */
.booking-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  height: calc(100vh - 56px);
  position: relative;
  transition: grid-template-columns 0.25s ease;
}

.booking-grid.sidebar-collapsed {
  grid-template-columns: 0px 1fr;
}

.booking-sidebar {
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overflow-x: hidden;
  white-space: nowrap;
}

.booking-grid.sidebar-collapsed .booking-sidebar {
  border-right: none;
}

.booking-sidebar-toggle {
  position: absolute;
  top: 20px;
  left: 260px;
  transform: translateX(-50%);
  z-index: 20;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: left 0.25s ease, transform 0.25s ease;
}

.booking-sidebar-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.booking-grid.sidebar-collapsed .booking-sidebar-toggle {
  left: 10px;
  transform: rotate(180deg);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(12, 12, 12, 0.25);
}

.booking-grid.sidebar-collapsed .booking-sidebar-toggle:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 0.85;
}

.booking-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-list-item {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--transition);
}

.booking-list-item:hover,
.booking-list-item.active {
  background: var(--paper-2);
}

.booking-archive-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-archive-toggle:hover {
  background: var(--paper-2);
}

.booking-list-item.active {
  border-left: 3px solid var(--ink);
  padding-left: 17px;
}

.booking-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper-3);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.booking-message-status {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.booking-message-status.pending {
  color: var(--warn);
}

.booking-message-status.error {
  color: var(--no);
}

/* --- Feature Row ----------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-cell {
  padding: 48px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-cell:last-child {
  border-right: none;
}

.feature-glyph {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

.feature-row.light .feature-cell {
  border-right: 1px solid var(--line);
}

.feature-row.light .feature-glyph {
  color: var(--line-strong);
}

.feature-row.light .feature-title {
  color: var(--ink);
}

.feature-row.light .feature-desc {
  color: var(--muted);
}

/* --- Checklist (light theme) ------------------------------ */
.checklist-light {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.checklist-light li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
}

.checklist-light li::before {
  content: '✓';
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--ink);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--paper-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 20px;
}

/* --- Marketplace vs Chosie comparison mockup --------------- */
.compare-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-col {
  padding: 28px 28px;
}

.compare-col + .compare-col {
  border-left: 1px solid var(--line);
}

.compare-col.is-chosie {
  background: var(--ink);
}

.compare-col-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.compare-col.is-chosie .compare-col-label {
  color: rgba(255, 255, 255, 0.5);
}

.compare-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.compare-col.is-chosie .compare-row {
  color: rgba(255, 255, 255, 0.9);
}

.compare-row-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  background: var(--paper-2);
  color: var(--muted);
}

.compare-col.is-chosie .compare-row-icon {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
}

@media (max-width: 700px) {
  .compare-table {
    grid-template-columns: 1fr;
  }

  .compare-col + .compare-col {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

/* --- Sidebar Nav ----------------------------------------- */
.app-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 56px);
}

.app-sidebar {
  border-right: 1px solid var(--line);
  padding: 32px 0;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.app-main {
  padding: 40px 48px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}

.sidebar-nav li a:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.sidebar-nav li a.active {
  color: var(--ink);
  font-weight: 500;
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
}

.sidebar-section {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 20px 24px 8px;
}

/* --- Progress / Brief ------------------------------------ */
.brief-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.brief-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.brief-step .circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.brief-step.active .circle {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.brief-step.done .circle {
  background: var(--ok);
  color: white;
  border-color: var(--ok);
}

.brief-step.active {
  color: var(--ink);
  font-weight: 500;
}

.brief-connector {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin: 0 12px;
}

/* --- Matching Loader ------------------------------------- */
.matching-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  text-align: center;
  gap: 32px;
}

.matching-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.matching-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 320px;
  transition: color var(--transition), border-color var(--transition);
}

.matching-step .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
  transition: background var(--transition);
}

.matching-step.done {
  color: var(--ok);
  border-color: var(--ok);
}

.matching-step.done .dot {
  background: var(--ok);
}

.matching-step.running {
  color: var(--ink);
  border-color: var(--ink);
}

.matching-step.running .dot {
  background: var(--ink);
  animation: pulse 1s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* --- Model Workspace ------------------------------------- */
.model-page {
  min-height: calc(100vh - 58px);
  padding: 34px 42px 52px;
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.86) 0, rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, #f7f5f0 0%, var(--paper) 46%, #f8f7f4 100%);
}

.model-page-inner {
  max-width: 1480px;
  margin: 0 auto;
}

.model-hero,
.model-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.model-calendar-layout > div:first-child {
  min-width: 0;
  width: 100%;
}

.model-hero {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
  align-items: stretch;
  margin-bottom: 26px;
}

.model-hero-card,
.model-panel,
.model-stat,
.model-action-card,
.model-table-card,
.model-calendar-card,
.model-empty-state {
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 48px rgba(24, 24, 24, 0.055);
  backdrop-filter: blur(10px);
}

.model-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 232px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.model-hero-title {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 0.95;
  margin: 8px 0 0;
  max-width: 980px;
}

.model-hero-copy {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 18px 0 0;
  font-weight: 300;
}

.model-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.model-hero-actions .tag {
  position: absolute;
  top: 34px;
  right: 34px;
}

.model-next-card {
  min-height: 232px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.model-next-title {
  margin: 14px 0 20px;
  line-height: 1.18;
}

.model-project-link {
  display: inline;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.model-project-link:hover,
.model-project-link:focus {
  color: var(--muted);
}

.model-next-meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.model-next-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.model-next-meta span {
  color: var(--muted);
}

.model-next-meta strong {
  color: var(--ink);
  font-size: 0.92rem;
  text-align: right;
}

.model-next-empty {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.model-profile-card {
  padding: 28px;
  width: auto;
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  grid-template-rows: auto 1fr auto;
  gap: 18px 22px;
  align-items: start;
}

.model-profile-card > div {
  grid-column: 1;
  grid-row: 1;
}

.model-profile-card > a {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  width: max-content;
  min-width: 180px;
}

.model-profile-photo {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: end;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--paper-3);
  margin-bottom: 0;
}

.model-alert {
  border: 1px solid rgba(198, 116, 22, 0.28);
  border-left: 3px solid var(--warn);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(255, 249, 235, 0.72);
}

.model-alert p {
  margin: 0;
}

.model-alert p + p {
  margin-top: 4px;
}

.model-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.model-stat {
  padding: 24px;
}

.model-stat .value {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  color: var(--ink);
}

.model-stat .label {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.model-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 16px;
}

.model-section-head p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 6px 0 0;
}

.model-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.model-action-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.model-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 18, 18, 0.24);
  box-shadow: 0 22px 56px rgba(24, 24, 24, 0.09);
  background: rgba(255, 255, 255, 0.84);
}

.model-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f1ec;
  color: #6f6a61;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.model-table-card {
  overflow: hidden;
}

.model-table-card .tbl-wrap {
  border: 0;
  border-radius: 0;
}

.model-calendar-card {
  padding: 16px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.model-month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.model-calendar-weekdays,
.model-calendar-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.model-calendar-weekdays {
  margin-bottom: 6px;
}

.model-calendar-weekday {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  padding: 6px 0;
}

.model-calendar-day {
  min-height: 74px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
}

.model-calendar-day.is-available {
  background: #e7f4ec;
  border-color: #b9dcc8;
  color: #226246;
}

.model-calendar-day.is-booked {
  background: #f7e6e6;
  border-color: #e9b8b8;
  color: #8b2525;
}

.model-calendar-day.is-unavailable {
  background: #f0f0ee;
  border-color: #d4d4d0;
  color: #6f6f69;
  text-decoration: line-through;
}

.model-calendar-day.is-tentative {
  border-color: #c18a2d;
  border-style: dashed;
  color: #8a5a14;
}

.model-calendar-day.is-travel {
  background: #e8eef7;
  border-color: #bdcce3;
  color: #315071;
  font-style: italic;
}

.model-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.model-measurements-panel {
  margin-bottom: 16px;
}

.model-measurements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.model-measurements-grid > div {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.model-measurements-grid span {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  color: var(--muted);
}

.model-measurements-grid strong {
  font-family: var(--serif);
  font-size: 1.22rem;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 500;
}

.model-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.model-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.model-legend-swatch.is-available,
.tag.calendar-available {
  background: #e7f4ec;
  border-color: #b9dcc8;
  color: #226246;
}

.model-legend-swatch.is-unavailable,
.tag.calendar-unavailable {
  background: #f0f0ee;
  border-color: #d4d4d0;
  color: #6f6f69;
}

.model-legend-swatch.is-tentative,
.tag.calendar-tentative {
  background: #fff8e8;
  border-color: #e4c57a;
  color: #8a5a14;
}

.model-legend-swatch.is-tentative {
  border-style: dashed;
}

.model-legend-swatch.is-travel,
.tag.calendar-travel {
  background: #e8eef7;
  border-color: #bdcce3;
  color: #315071;
}

.model-legend-swatch.is-booked,
.tag.calendar-booked {
  background: #f7e6e6;
  border-color: #e9b8b8;
  color: #8b2525;
}

.model-side-panel {
  position: sticky;
  top: 78px;
}

.model-tip {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.model-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.model-empty-state {
  padding: 54px 32px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .model-hero,
  .model-calendar-layout {
    grid-template-columns: 1fr;
  }

  .model-profile-card {
    width: auto;
  }

  .model-stat-grid,
  .model-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .model-page {
    padding: 24px 18px 40px;
  }

  .model-hero-card,
  .model-next-card,
  .model-profile-card,
  .model-panel,
  .model-stat,
  .model-action-card,
  .model-calendar-card {
    border-radius: 10px;
  }

  .model-hero-card,
  .model-next-card,
  .model-profile-card {
    padding: 24px 20px;
  }

  .model-hero-actions .tag {
    top: 24px;
    right: 20px;
  }

  .model-profile-card {
    grid-template-columns: minmax(0, 1fr) 64px;
    min-height: 0;
  }

  .model-profile-photo {
    width: 64px;
    height: 64px;
  }

  .model-profile-card > a {
    width: 100%;
    min-width: 0;
  }

  .model-hero-title {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }

  .model-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-stat-grid,
  .model-action-grid {
    grid-template-columns: 1fr;
  }

  .model-action-card {
    min-height: 0;
  }

  .model-calendar-day {
    min-height: 46px;
    border-radius: 8px;
  }

  .model-measurements-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Calendar -------------------------------------------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cal-day-header {
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cal-cell {
  min-height: 100px;
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cal-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.cal-cell.today .cal-date {
  color: var(--ink);
  font-weight: 700;
}

.cal-cell.empty {
  background: var(--paper-2);
}

.cal-event {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 2px;
  background: var(--paper-3);
  border-left: 2px solid var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Availability Bar ------------------------------------ */
.avail-bar {
  width: 80px;
  height: 4px;
  background: var(--paper-3);
  border-radius: 2px;
  overflow: hidden;
}

.avail-bar-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 2px;
}

/* --- Photo Upload Area ----------------------------------- */
.upload-area {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.upload-area:hover {
  background: var(--paper-2);
  border-color: var(--ink);
}

/* --- Footer ---------------------------------------------- */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 64px 0 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.09) 0, rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #101010 0%, #080808 100%);
  color: var(--paper);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 88px;
  opacity: 0.42;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1.3fr) repeat(3, minmax(150px, 0.45fr));
  gap: 30px;
  padding-bottom: 42px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-panel {
  max-width: 440px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--paper);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

.footer-tagline {
  max-width: 330px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}

.footer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.footer-action-primary,
.footer-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.footer-action-primary {
  background: var(--paper);
  border: 1px solid var(--paper);
  color: var(--ink);
}

.footer-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
}

.footer-action-primary:hover,
.footer-action-secondary:hover {
  transform: translateY(-1px);
}

.footer-action-secondary:hover {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
}

.footer-link-col {
  padding-top: 10px;
}

.footer-heading {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--transition), transform var(--transition);
}

.footer-col-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 0;
  border-top: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.58);
}

.footer .locale-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer .locale-switcher a,
.footer .locale-switcher span {
  color: rgba(255, 255, 255, 0.58);
}

.footer .locale-switcher a:hover,
.footer .locale-switcher a.active {
  color: #fff;
}

/* --- Dark Section ---------------------------------------- */
.dark-section {
  background: var(--ink);
  color: var(--paper);
}

.dark-section .muted {
  color: rgba(255, 255, 255, 0.55);
}

.dark-section .rule {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Platform Mockup (landing "everything in one place") - */
.platform-mockup-outer {
  overflow: hidden;
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.platform-mockup {
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 -4px 40px rgba(12, 12, 12, 0.06);
}

.pm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.pm-tabs {
  display: flex;
  gap: 2px;
}

.pm-tab {
  padding: 5px 14px;
  font-size: 0.75rem;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.01em;
}

.pm-tab:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.pm-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.pm-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.pm-action-btn {
  padding: 5px 14px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

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

.pm-action-btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.pm-action-btn-primary:hover {
  opacity: 0.82;
  color: var(--paper);
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding: 36px 32px;
}

.pm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}

.pm-card-photo {
  position: relative;
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 8px 20px rgba(12, 12, 12, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pm-card:nth-child(5n+1) .pm-card-photo { transform: rotate(-1.1deg); }
.pm-card:nth-child(5n+2) .pm-card-photo { transform: rotate(0.8deg); }
.pm-card:nth-child(5n+3) .pm-card-photo { transform: rotate(-0.5deg); }
.pm-card:nth-child(5n+4) .pm-card-photo { transform: rotate(1.2deg); }
.pm-card:nth-child(5n+5) .pm-card-photo { transform: rotate(-0.8deg); }

.pm-card:hover .pm-card-photo {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 14px 30px rgba(12, 12, 12, 0.16);
}

.pm-card-photo-inner {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper-3);
}

.pm-card-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pm-card-meta {
  padding: 0 4px;
}

.pm-card-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}

.pm-card-code {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.pm-card-agency {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 1100px) {
  .pm-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-mockup-outer {
    padding: 0 20px;
  }
}

@media (max-width: 700px) {
  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .pm-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* --- Waitlist / CTA band --------------------------------- */
.waitlist-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 120px 0;
  text-align: center;
}

.waitlist-band .display {
  margin-bottom: 32px;
}

/* --- Not Marketplace section ----------------------------- */
.not-marketplace {
  background: var(--paper-2);
  color: var(--ink);
  padding: 88px 0;
}

/* --- Sign in --------------------------------------------- */
.signin-wrap {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 640px;
  width: 100%;
}

.role-card {
  padding: 48px 40px;
  cursor: pointer;
  border-right: 1px solid var(--line);
  transition: background var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.role-card:last-child {
  border-right: none;
}

.role-card:hover {
  background: var(--paper-2);
}

.admin-login-form {
  max-width: 420px;
  margin: 0 auto;
}

.admin-login-form .field {
  gap: 5px;
}

.admin-login-form .field-input {
  padding: 8px 10px;
  font-size: 0.84rem;
}

.admin-login-form .btn-submit {
  align-self: center;
  display: flex;
  justify-content: center;
  text-align: center;
  min-width: 120px;
  padding: 8px 18px;
  font-size: 0.78rem;
}

/* --- Notification ---------------------------------------- */
.notif-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.notif-item.unread .notif-title {
  font-weight: 600;
}

.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  margin-top: 6px;
  flex-shrink: 0;
}

.notif-item.read .notif-dot {
  background: transparent;
  border: 1px solid var(--muted);
}

/* --- Blog ------------------------------------------------ */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}

.blog-featured .mphoto {
  aspect-ratio: unset;
  min-height: 360px;
}

.blog-featured-text {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.blog-card {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--transition);
}

.blog-card:hover {
  background: var(--paper-2);
}

/* --- Availability Calendar inline ----------------------- */
.avail-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.avail-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
}

.avail-cal-day.is-available,
.avail-cal-swatch.is-available {
  background: #e7f4ec;
  border-color: #b9dcc8;
  color: #226246;
}

.avail-cal-day.is-unavailable,
.avail-cal-swatch.is-unavailable {
  background: #f0f0ee;
  border-color: #d4d4d0;
  color: #6f6f69;
}

.avail-cal-day.is-unavailable {
  text-decoration: line-through;
}

.avail-cal-day.is-tentative,
.avail-cal-swatch.is-tentative {
  background: #fff8e8;
  border-color: #e4c57a;
  color: #8a5a14;
}

.avail-cal-day.is-tentative,
.avail-cal-swatch.is-tentative {
  border-style: dashed;
}

.avail-cal-day.is-travel,
.avail-cal-swatch.is-travel {
  background: #e8eef7;
  border-color: #bdcce3;
  color: #315071;
}

.avail-cal-day.is-travel {
  font-style: italic;
}

.avail-cal-day.is-booked,
.avail-cal-swatch.is-booked {
  background: #f7e6e6;
  border-color: #e9b8b8;
  color: #8b2525;
}

.avail-cal-day.header {
  background: none;
  border-color: transparent;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avail-cal-day.empty {
  background: none;
  border-color: transparent;
}

.avail-cal-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  display: inline-block;
  flex: 0 0 auto;
}

.remove-availability-row,
.remove-shortlist-btn {
  margin-top: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(155, 35, 53, 0.38);
  border-radius: 999px;
  background: #ffffff;
  color: var(--no);
  box-shadow: 0 5px 14px rgba(12, 12, 12, 0.14);
  font-weight: 500;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.remove-shortlist-btn {
  width: 100%;
}

.remove-availability-row:hover,
.remove-shortlist-btn:hover {
  background: #fff8f8;
  border-color: rgba(155, 35, 53, 0.7);
  box-shadow: 0 8px 20px rgba(155, 35, 53, 0.18);
  transform: translateY(-1px);
}

.remove-availability-row:disabled,
.remove-shortlist-btn:disabled {
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.wa-chat-locked {
  margin: 14px 16px 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .disc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .step-card {
    border-bottom: 1px solid var(--line);
  }

  .hero-grid {
    grid-template-columns: 1fr 340px;
  }

  .stat-tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-tile {
    border-bottom: 1px solid var(--line);
  }

  .booking-grid {
    grid-template-columns: 220px 1fr;
  }

  .booking-grid.sidebar-collapsed {
    grid-template-columns: 0px 1fr;
  }

  .booking-sidebar-toggle {
    left: 220px;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .feature-cell:last-child {
    border-bottom: none;
  }

  .feature-row.light .feature-cell {
    border-bottom-color: var(--line);
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
  }

  .footer-brand-panel {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 800px) {
  .wrap {
    padding: 0 20px;
  }

  /* Header rows (title + action buttons, alert text + CTA, etc.) that use
     flex space-between stop fitting side-by-side on narrow screens — let
     them wrap and stack instead of overflowing or overlapping. */
  .row.between {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .fixed-sidebar-grid,
  .fixed-2col-grid {
    display: block !important;
  }

  .fixed-sidebar-grid > * + *,
  .fixed-2col-grid > * + * {
    margin-top: 16px;
  }

  .shortlist-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    max-height: unset;
  }

  .hero-photo-col {
    height: 420px;
  }

  .hero-text {
    padding: 48px 0 40px;
  }

  .disc-layout {
    grid-template-columns: 1fr;
  }

  .disc-sidebar {
    position: static;
    max-height: unset;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .disc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    padding: 24px 20px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .booking-sidebar,
  .booking-sidebar-toggle {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    gap: 16px;
    z-index: 99;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .role-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .disc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps-grid,
  .steps-grid.steps-grid-3 {
    grid-template-columns: 1fr;
  }

  .stat-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .tbl {
    font-size: 0.8rem;
  }

  .tbl th,
  .tbl td {
    padding: 10px 12px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding: 48px 0 26px;
  }

  .footer-brand-panel {
    grid-column: auto;
  }

  .footer-actions {
    margin-top: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
