/* ============================================================================
   Moikom — stylesheet
   ----------------------------------------------------------------------------
   Table of contents:
     1.  Design tokens (CSS custom properties)
     2.  Reset & base
     3.  Typography
     4.  Layout helpers
     5.  Buttons
     6.  Forms
     7.  Badges, pills & alerts
     8.  Cards
     9.  Header & navigation
     10. Footer
     11. Hero sections
     12. Category & provider cards
     13. Dashboard shell
     14. Tables & lists
     15. Chat
     16. Star rating
     17. Misc components (stats, steps, FAQ, pricing)
     18. Utilities
     19. Responsive
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------ */
:root {
  /* Colour */
  --ink: #211C35;
  --ink-soft: #6B6483;
  --ink-faint: #9992AD;
  --canvas: #FAF8FC;
  --surface: #FFFFFF;

  --primary: #4A3B78;
  --primary-dark: #382C5E;
  --primary-tint: #F1ECF9;

  --accent: #FF4D6D;
  --accent-dark: #E63A59;
  --accent-tint: #FFEAEE;

  --gold: #F0A93E;
  --gold-tint: #FFF6E9;

  --sage: #2F9E6E;
  --sage-tint: #E8F6EF;

  --border: #EAE5F2;
  --border-strong: #D8D0EA;

  --danger: #C63838;
  --danger-tint: #FDECEC;

  --whatsapp: #25D366;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(33, 28, 53, 0.06);
  --shadow-md: 0 6px 20px rgba(33, 28, 53, 0.08);
  --shadow-lg: 0 16px 40px rgba(33, 28, 53, 0.14);

  /* Layout */
  --container-w: 1200px;
  --container-narrow: 760px;
  --header-h: 76px;
}

/* ---------------------------------------------------------------------------
   2. Reset & base
   ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
fieldset { border: none; margin: 0; padding: 0; }
hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

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

::selection { background: var(--gold); color: var(--ink); }

main { display: block; min-height: 40vh; }

/* ---------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------ */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1, .h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2.1rem); }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------------------
   4. Layout helpers
   ------------------------------------------------------------------------ */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.section { padding-block: var(--sp-8); }
.section-tint { background: var(--primary-tint); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-5 { gap: var(--sp-5); }
.flex-1 { flex: 1 1 0%; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* ---------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.7em 1.4em;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  line-height: 1.2;
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); opacity: 1; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); opacity: 1; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; opacity: 1; }
.btn-ghost { background: var(--primary-tint); color: var(--primary); }
.btn-ghost:hover { background: var(--border-strong); opacity: 1; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: #fff; opacity: 1; }

.btn-sm { padding: 0.5em 1.1em; font-size: 0.8rem; }
.btn-lg { padding: 0.85em 1.8em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-icon:hover { background: var(--primary-tint); border-color: var(--border-strong); }

.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.link-arrow .icon { transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
   6. Forms
   ------------------------------------------------------------------------ */
.field { margin-bottom: var(--sp-4); }

.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink); }
.prose p { margin-bottom: var(--sp-4); }
.prose h2 { font-size: 1.4rem; margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3 { font-size: 1.15rem; margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.prose ul, .prose ol { margin: 0 0 var(--sp-4) var(--sp-5); }
.prose li { margin-bottom: var(--sp-2); }
.prose img { max-width: 100%; border-radius: var(--radius-md); margin: var(--sp-4) 0; }
.prose a { color: var(--primary); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--primary); padding-left: var(--sp-4); margin: var(--sp-4) 0; color: var(--ink-soft); font-style: italic; }

.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 2.6em; }
.password-field__toggle {
  position: absolute; top: 50%; right: 0.6em; transform: translateY(-50%);
  background: none; border: none; padding: 0.2em; line-height: 1;
  font-size: 1.05rem; cursor: pointer; opacity: 0.7;
}
.password-field__toggle:hover { opacity: 1; }
.field:last-child { margin-bottom: 0; }
.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.input, .textarea, .select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65em 0.9em;
  font-size: 0.92rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.textarea { resize: vertical; min-height: 6em; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B6483'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8em center; background-size: 1.1em; padding-right: 2.4em; }
.field-hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: var(--sp-1); }
.field-error { font-size: 0.78rem; color: var(--danger); margin-top: var(--sp-1); font-weight: 600; }
.input-error, .select-error, .textarea-error { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.checkbox-row { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: 0.85rem; color: var(--ink-soft); }
.checkbox-row input { margin-top: 3px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}

.chip-select { display: grid; gap: var(--sp-2); }
.chip-option {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6em 0.5em;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.chip-option.is-active { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); }

/* ---------------------------------------------------------------------------
   7. Badges, pills & alerts
   ------------------------------------------------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 0.3em 0.8em;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.pill-tint { background: var(--primary-tint); color: var(--primary); }
.pill-gold { background: var(--gold); color: #fff; }
.pill-primary { background: var(--primary); color: #fff; }
.pill-sage { background: var(--sage-tint); color: var(--sage); }
.pill-accent { background: var(--accent-tint); color: var(--accent-dark); }
.pill-outline { background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink-soft); }

.tier-pill--starter { background: var(--primary-tint); color: var(--ink-soft); }
.tier-pill--pro { background: var(--primary); color: #fff; }
.tier-pill--featured { background: var(--gold); color: #fff; }

.alert {
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.alert-info { background: var(--primary-tint); color: var(--primary); }
.alert-success { background: var(--sage-tint); color: var(--sage); }
.alert-danger { background: var(--danger-tint); color: var(--danger); }
.alert-warning { background: var(--gold-tint); color: #8A5A15; }

.badge-count {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15em 0.55em;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   8. Cards
   ------------------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.card-hover { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
}
.stat-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.stat-card--link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------------------------------------------------------------------------
   9. Header & navigation
   ------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 252, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; flex-shrink: 0; }

.header-msg-link { position: relative; }
.header-msg-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: 0.62rem; font-weight: 800; line-height: 1;
  min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.account-menu { position: relative; }
.account-menu__trigger { background: none; border: none; padding: 0; cursor: pointer; display: flex; }
.account-menu__avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.account-menu__dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  z-index: 70;
}
.account-menu__dropdown[hidden] { display: none; }
.account-menu__you { padding: var(--sp-3) var(--sp-3) var(--sp-2); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-2); }
.account-menu__item { display: flex; align-items: center; gap: var(--sp-2); padding: 0.55em var(--sp-3); border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.account-menu__item:hover { background: var(--primary-tint); }
.header-link { font-size: 0.88rem; font-weight: 600; display: none; }
.header-link.is-active { color: var(--accent); }
.header-link-btn { display: none; }

.nav-menu { display: contents; }
.mobile-nav-toggle { display: inline-flex; }

body.nav-open { overflow: hidden; }

.nav-drawer-overlay {
  position: fixed; inset: 0; background: rgba(33, 28, 53, 0.45);
  z-index: 190; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
body.nav-open .nav-drawer-overlay { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 340px; max-width: 88vw;
  background: var(--surface);
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
body.nav-open .nav-drawer { transform: translateX(0); }

.nav-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.nav-drawer__head img { height: 28px; }

.nav-drawer__profile {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: var(--sp-4) var(--sp-5);
  padding: var(--sp-3);
  background: var(--primary-tint);
  border-radius: var(--radius-lg);
}
.nav-drawer__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.nav-drawer__profile-name { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.nav-drawer__profile-role { display: block; font-size: 0.74rem; color: var(--ink-soft); }

.nav-drawer__guest { display: flex; gap: var(--sp-2); margin: var(--sp-4) var(--sp-5); }
.nav-drawer__guest .btn { flex: 1; }

.nav-drawer__section { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--border); }
.nav-drawer__label { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--sp-3); }

.nav-drawer__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.nav-drawer__chip {
  padding: 0.4em 0.9em;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
}
.nav-drawer__chip:hover { background: var(--primary-tint); border-color: var(--primary); color: var(--primary); }

.nav-drawer__link { display: flex; align-items: center; gap: var(--sp-2); padding: 0.55em 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); }

.nav-drawer__footer { margin-top: auto; padding: var(--sp-5); border-top: 1px solid var(--border); flex-shrink: 0; }

@media (min-width: 768px) {
  .header-link { display: inline-block; }
  .header-link-btn { display: inline-flex; }
}

/* ---------------------------------------------------------------------------
   10. Footer
   ------------------------------------------------------------------------ */
.site-footer { margin-top: var(--sp-9); border-top: 1px solid var(--border); }
.site-footer__top {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: var(--sp-7) var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-7);
}
.site-footer__brand { max-width: 300px; }
.site-footer__brand p { margin-top: var(--sp-3); font-size: 0.88rem; color: var(--ink-soft); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
  flex: 1;
}
.site-footer__col-title { font-weight: 700; font-size: 0.88rem; margin-bottom: var(--sp-3); }
.site-footer__col a { display: block; font-size: 0.88rem; color: var(--primary); padding-block: 3px; }
.site-footer__bottom {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 0.78rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.site-footer__bottom a { margin-left: var(--sp-4); }

@media (min-width: 640px) {
  .site-footer__cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------------------------------------------------------------------
   11. Hero sections
   ------------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
  padding: var(--sp-8) var(--sp-5) var(--sp-9);
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 420px;
  background: radial-gradient(ellipse at top, rgba(255, 77, 109, 0.35), transparent 65%);
  pointer-events: none;
}
.hero__confetti { position: absolute; inset: 0; pointer-events: none; }
.hero__confetti span { position: absolute; border-radius: 50%; opacity: 0.55; }
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-w);
  margin-inline: auto;
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero p.lede { color: rgba(255,255,255,0.88); margin-bottom: var(--sp-6); }

.hero-search {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--sp-2);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.hero-search__field { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); flex: 1; }
.hero-search__field input, .hero-search__field select { border: none; outline: none; background: transparent; font-size: 0.92rem; color: var(--ink); width: 100%; }
.hero-search__divider { border-top: 1px solid var(--border); }

.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.hero-collage img { border-radius: var(--radius-lg); width: 100%; height: 220px; object-fit: cover; box-shadow: var(--shadow-lg); }
.hero-collage a:nth-child(2) img { margin-top: var(--sp-6); }

.page-hero {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
}
.page-hero--lg { padding-block: var(--sp-9); }
.page-hero h1 { max-width: 640px; margin-inline: auto; }
.page-hero p { max-width: 560px; margin: var(--sp-3) auto 0; color: rgba(255,255,255,0.88); }

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero-search { flex-direction: row; }
}

/* ---------------------------------------------------------------------------
   12. Category & provider cards
   ------------------------------------------------------------------------ */
.category-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card img { width: 100%; height: 150px; object-fit: cover; }
.category-card__body { padding: var(--sp-4); }
.category-card__body .name { font-weight: 700; margin-bottom: 2px; }

.provider-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.provider-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.provider-card__media { position: relative; height: 180px; }
.provider-card__media img { width: 100%; height: 100%; object-fit: cover; }
.provider-card__featured-tag {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--gold); color: #fff; font-weight: 700; font-size: 0.7rem;
  padding: 0.35em 0.8em; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; gap: 4px;
}
.provider-card__fav {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1rem;
}
.provider-card__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.provider-card__name { font-weight: 700; margin-bottom: 2px; }
.provider-card__meta { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: var(--sp-2); }
.provider-card__rating { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.82rem; }
.provider-card__link { margin-top: var(--sp-3); }
.provider-card__stretched-link { position: absolute; inset: 0; z-index: 1; }

/* "Ticket stub" signature motif — used sparingly, only for Featured-tier
   moments (pricing card + profile ribbon), to nod at the events/box-office
   world Moikom operates in without overusing the effect. */
.ticket-stub {
  position: relative;
  background: var(--gold-tint);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
}
.ticket-stub::before, .ticket-stub::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  background: var(--canvas);
  border: 2px solid var(--gold);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ticket-stub::before { left: -13px; }
.ticket-stub::after { right: -13px; }

@media (min-width: 640px) {
  .provider-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------------------
   13. Dashboard shell
   ------------------------------------------------------------------------ */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.dash-head .subtitle { color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }

.dash-layout { display: grid; gap: var(--sp-5); align-items: start; }
.dash-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2);
  display: flex;
  flex-direction: row;
  gap: 2px;
  overflow-x: auto;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.65em 0.9em;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.dash-nav a.is-active { background: var(--primary-tint); color: var(--primary); }
.dash-nav a:not(.is-active) { color: var(--ink); }
.dash-nav a:not(.is-active):hover { background: var(--canvas); }

.dash-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.dash-panel + .dash-panel { margin-top: var(--sp-5); }
.dash-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-4); flex-wrap: wrap; gap: var(--sp-2); }

.limit-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: var(--sp-2); }
.limit-row .used { font-weight: 700; }

.feature-line { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.88rem; padding-block: 3px; }
.feature-line.is-off { color: var(--ink-soft); }

.empty-state { padding: var(--sp-6); text-align: center; color: var(--ink-soft); font-size: 0.9rem; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }

.list-row { padding: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); justify-content: space-between; flex-wrap: wrap; }
.list-row + .list-row { border-top: 1px solid var(--border); }
.divide-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

@media (min-width: 860px) {
  .dash-layout { grid-template-columns: 230px 1fr; }
  .dash-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 16px); overflow: visible; }
}

/* ---------------------------------------------------------------------------
   14. Tables & lists
   ------------------------------------------------------------------------ */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); }
.data-table td { padding: var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }

.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--primary-tint); }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 56px; height: 56px; }
.avatar-lg { width: 112px; height: 112px; border: 4px solid var(--primary-tint); }

/* ---------------------------------------------------------------------------
   15. Chat
   ------------------------------------------------------------------------ */
.chat-shell { display: grid; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.chat-list { border-bottom: 1px solid var(--border); max-height: 260px; overflow-y: auto; }
.chat-list__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  width: 100%; text-align: left; border: none; background: transparent;
  border-bottom: 1px solid var(--border);
}
.chat-list__item.is-active { background: var(--primary-tint); }
.chat-list__item .meta { min-width: 0; flex: 1; }
.chat-list__item .name { font-size: 0.88rem; font-weight: 700; }
.chat-list__item .snippet { font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-main { display: flex; flex-direction: column; height: 560px; }
.chat-main__head { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.chat-main__notice { padding: var(--sp-2) var(--sp-4); font-size: 0.78rem; display: flex; align-items: center; gap: var(--sp-2); }
.chat-thread { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.bubble { max-width: 75%; padding: 0.6em 1em; border-radius: var(--radius-lg); font-size: 0.9rem; line-height: 1.4; }
.bubble-them { background: var(--primary-tint); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-me { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble-time { font-size: 0.66rem; opacity: 0.7; margin-top: 3px; }
.chat-composer { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--border); display: flex; gap: var(--sp-2); }
.chat-composer input { flex: 1; border: 1.5px solid var(--border); border-radius: var(--radius-full); padding: 0.6em 1.1em; outline: none; font-size: 0.9rem; }
.chat-composer input:focus { border-color: var(--primary); }
.chat-composer button { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; border: none; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.chat-locked { padding: var(--sp-4); border-top: 1px solid var(--border); background: var(--gold-tint); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.chat-empty { max-width: 420px; margin: var(--sp-8) auto; text-align: center; color: var(--ink-soft); }

@media (min-width: 768px) {
  .chat-shell { grid-template-columns: 280px 1fr; }
  .chat-list { border-bottom: none; border-right: 1px solid var(--border); max-height: none; }
}

/* ---------------------------------------------------------------------------
   16. Star rating
   ------------------------------------------------------------------------ */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--gold); }
.stars .icon { font-size: 0.85em; }
.rating-input { display: inline-flex; gap: 4px; }
.rating-input button { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--gold); padding: 2px; }

/* ---------------------------------------------------------------------------
   17. Misc components
   ------------------------------------------------------------------------ */
/* Stats bar */
.stats-bar { padding: var(--sp-6) var(--sp-5); border-bottom: 1px solid var(--border); }
.stats-bar__grid { max-width: var(--container-w); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); text-align: center; }
.stats-bar__value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--primary); }
.stats-bar__label { font-size: 0.76rem; color: var(--ink-soft); margin-top: 2px; }

/* Numbered steps */
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.step-card__num { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #fff; margin-bottom: var(--sp-3); }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.faq-item__q { font-weight: 700; display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }

/* Pricing */
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-6); display: flex; flex-direction: column; }
.pricing-card--featured { border-color: var(--gold); border-width: 2px; background: var(--gold-tint); }
.pricing-card__price { margin: var(--sp-2) 0 var(--sp-5); }
.pricing-card__price .amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; }
.pricing-card__price .note { font-size: 0.85rem; color: var(--ink-soft); }
.pricing-card__features { font-size: 0.88rem; display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); flex: 1; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: var(--sp-2); }

/* Testimonial / blog / party-idea cards */
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); }
.quote-card p { margin: var(--sp-3) 0; color: var(--ink-soft); }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: block; }
.article-card img { width: 100%; height: 170px; object-fit: cover; }
.article-card__body { padding: var(--sp-4); }

/* Photo gallery on profile */
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.photo-gallery__item { display: block; padding: 0; border: none; background: none; cursor: pointer; border-radius: var(--radius-md); overflow: hidden; }
.photo-gallery__item img { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.2s ease; }
.photo-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 640px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Lightbox — deliberately placed at the top level in the page (not nested
   inside the header or any transformed/filtered ancestor), since a
   backdrop-filter/transform ancestor would otherwise hijack position:fixed
   and break it (see the header nav-drawer for the same lesson learned). */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 14, 26, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: var(--sp-5); right: var(--sp-5); width: 44px; height: 44px; font-size: 1.15rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.7rem; }
.lightbox__nav--prev { left: var(--sp-4); }
.lightbox__nav--next { right: var(--sp-4); }
.lightbox__count {
  position: absolute; bottom: var(--sp-5); left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8); font-size: 0.8rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.12); padding: 0.3em 0.9em; border-radius: var(--radius-full);
}
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.4rem; }
  .lightbox__nav--prev { left: var(--sp-2); }
  .lightbox__nav--next { right: var(--sp-2); }
}

/* Placeholder banners (privacy/terms) */
.notice-banner { background: var(--danger-tint); color: #7A2A20; border-radius: var(--radius-md); padding: var(--sp-4); font-size: 0.86rem; display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-5); }

/* Setup wizard */
.setup-shell { max-width: 560px; margin: var(--sp-8) auto; padding-inline: var(--sp-5); }
.setup-steps { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.setup-steps span { flex: 1; height: 4px; border-radius: var(--radius-full); background: var(--border); }
.setup-steps span.is-done { background: var(--sage); }
.setup-steps span.is-active { background: var(--primary); }

/* ---------------------------------------------------------------------------
   18. Utilities
   ------------------------------------------------------------------------ */
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-1 { margin-bottom: var(--sp-1); } .mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }
.w-full { width: 100%; }
.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; }
.rounded-full { border-radius: var(--radius-full); }
.no-underline { text-decoration: none; }
.divider-v { width: 1px; background: var(--border); align-self: stretch; }

/* ---------------------------------------------------------------------------
   19. Responsive — general container/grid breakpoints
   ------------------------------------------------------------------------ */
@media (min-width: 640px) {
  .sm\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .field-row-sm { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .md\:grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  h1, .h1 { font-size: 2rem; }
}

/* Skip link — visible only when focused, for keyboard users */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--ink); color: #fff; padding: 0.8em 1.2em; border-radius: var(--radius-md);
  z-index: 100; font-weight: 700; font-size: 0.85rem;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* Flash message container */
.flash-wrap { max-width: var(--container-w); margin: var(--sp-4) auto 0; padding-inline: var(--sp-5); }

@media print {
  .site-header, .site-footer, .btn, .dash-nav { display: none !important; }
}
