/* dattabots Leads and Events App — Visual System */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --deep: #12101a;
  --mid: #2a1848;
  --lift: #241e32;
  --accent: #b8a8ec;
  --sand: #fff9e5;
  --cream: #f5f0ff;
  --darkest: #000000;
  --white: #FFFFFF;
  --muted: #c4bcd9; /* opaque lavender-gray: 8.7:1 on #2a1848, 11.5:1 on #000 */
  --placeholder: #a9a2bd;
  --hairline: rgba(184, 168, 236, 0.28);
  --card-wash: rgba(18, 16, 26, 0.82);
  --danger: #c07070;
  --radius: 10px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Jost', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background-color: var(--darkest);
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--cream);
  /* Solid darkest for FULL scroll height — never fall through to white.
     Do NOT use background-attachment:fixed (breaks on mobile + long pages → mint/white gap). */
  background-color: var(--darkest);
  background-image: radial-gradient(ellipse 140% 900px at 50% -5%, var(--mid) 0%, var(--deep) 45%, var(--darkest) 78%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  line-height: 1.5;
  position: relative;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
}

a { color: var(--sand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cream); }

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

/* ——— Typography ——— */
.label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--sand);
}

.label-muted { color: var(--muted); letter-spacing: 0.35em; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.display-xl { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.15; }
.display-lg { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; }
.display-md { font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.25; }

.brand-xi {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  color: var(--sand);
  line-height: 1;
}

.brand-members {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 0.35rem;
}

.hairline {
  width: 4.5rem;
  height: 1px;
  background: var(--hairline);
  border: none;
  margin: 1.75rem auto;
}

/* ——— Layout ——— */
.wrap {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
}

.wrap-narrow { width: min(480px, 92vw); }
.wrap-wide { width: min(1100px, 94vw); }

.center-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  position: relative;
  z-index: 1;
}

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack-lg { gap: 1.75rem; }
.row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-sand { color: var(--sand); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--hairline);
}

.site-nav-inner {
  width: min(1100px, 94vw);
  margin: 0 auto;
  padding: 0.9rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
}

.nav-brand .xi {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sand);
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav-brand .sub {
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-links a {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.nav-user {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--cream);
  padding: 0.4rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
}

.back-link {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 10;
}
.back-link:hover { color: var(--cream); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  text-decoration: none;
  background: transparent;
  color: var(--cream);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: rgba(184, 168, 236, 0.22);
  border-color: rgba(184, 168, 236, 0.55);
  color: var(--cream);
}
.btn-primary:hover {
  background: rgba(184, 168, 236, 0.35);
  border-color: var(--accent);
  color: var(--white);
}

.btn-ghost {
  border-color: var(--hairline);
  color: var(--sand);
}
.btn-ghost:hover {
  border-color: var(--sand);
  color: var(--cream);
  background: rgba(255, 249, 229, 0.06);
}

.btn-sand {
  background: rgba(255, 249, 229, 0.12);
  border-color: rgba(255, 249, 229, 0.45);
  color: var(--sand);
}
.btn-sand:hover {
  background: rgba(255, 249, 229, 0.22);
  color: var(--cream);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
}

.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.btn.rsvp-active {
  background: rgba(184, 168, 236, 0.4);
  border-color: var(--accent);
  color: var(--white);
}

.btn.rsvp-no.rsvp-active {
  background: rgba(192, 112, 112, 0.35);
  border-color: var(--danger);
}

/* ——— Forms ——— */
.form { display: flex; flex-direction: column; gap: 1.25rem; width: 100%; }

.field { display: flex; flex-direction: column; gap: 0.45rem; text-align: left; }

.field label {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--cream);
  background: rgba(18, 16, 26, 0.55);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 168, 236, 0.15);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 26, 0.8);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: var(--muted);
  border-radius: 50%;
  transition: 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: rgba(184, 168, 236, 0.35);
  border-color: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent);
}

.error-msg {
  color: #e8a0a0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  display: none;
}
.error-msg.show { display: block; }

.success-panel {
  text-align: center;
  padding: 2rem 1rem;
  display: none;
}
.success-panel.show { display: block; }
.form.hide { display: none; }

/* ——— Cards ——— */
.card {
  background: var(--card-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: border-color 0.2s, background 0.2s;
  color: var(--cream);
}

.card:hover { border-color: rgba(184, 168, 236, 0.45); }

.card-link { display: block; color: inherit; text-decoration: none; }

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.event-card-h {
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 0.85rem 1rem;
}
.event-card-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: rgba(18, 16, 26,0.5);
  flex-shrink: 0;
}
.event-card-thumb-empty {
  display: block;
  background: linear-gradient(135deg, rgba(184, 168, 236,0.2), rgba(255, 255, 255,0.15));
}
.event-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.event-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}
.event-date-inline {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.event-date-inline .event-month {
  color: var(--accent);
  letter-spacing: 0.2em;
}
.event-day-inline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.event-card-h .event-title {
  font-size: 1.15rem;
  line-height: 1.25;
}
@media (max-width: 520px) {
  .event-card-h {
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
  }
  .event-card-thumb {
    width: 72px;
    height: 72px;
  }
}

.event-date-block {
  text-align: center;
  min-width: 3.5rem;
  padding-top: 0.15rem;
}

.event-month {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.event-day {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
  line-height: 1.05;
  font-weight: 400;
}

.event-year {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.event-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.event-meta {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.event-loc {
  font-size: 0.75rem;
  color: var(--sand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.rsvp-badge {
  display: inline-block;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  margin-top: 0.6rem;
}

.rsvp-badge.going {
  color: var(--accent);
  border-color: rgba(184, 168, 236, 0.5);
  background: rgba(184, 168, 236, 0.12);
}
.rsvp-badge.maybe {
  color: var(--sand);
  border-color: rgba(255, 249, 229, 0.4);
  background: rgba(255, 249, 229, 0.08);
}
.rsvp-badge.no {
  color: #c09090;
  border-color: rgba(192, 112, 112, 0.35);
}

.grid-events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

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

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--cream);
  line-height: 1;
}

.stat-label {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ——— Tables ——— */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--card-wash);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 400;
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(184, 168, 236, 0.12);
  color: var(--cream);
  vertical-align: middle;
}

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

.status-pill {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--hairline);
}
.status-pill.pending { color: var(--sand); }
.status-pill.approved { color: var(--accent); border-color: rgba(184, 168, 236, 0.4); }

/* ——— Landing ——— */
.landing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.landing-foot {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  text-align: center;
}

/* ——— Page header ——— */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 400;
  color: var(--cream);
}

.page-header p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

/* ——— Detail ——— */
.detail-hero {
  margin-bottom: 2rem;
}

.detail-hero .event-month { font-size: 0.72rem; }
.detail-hero .event-day { font-size: 3.5rem; }

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.panel {
  background: var(--card-wash);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--deep);
  border: 1px solid var(--accent);
  color: var(--cream);
  padding: 0.75rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 10000;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.admin-tabs .btn { flex: 1; min-width: 120px; }
.admin-tabs .btn.active {
  background: rgba(184, 168, 236, 0.3);
  border-color: var(--accent);
}

.admin-panel { display: none; }
.admin-panel.active { display: block; }

/* ——— Mobile ——— */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li {
    border-bottom: 1px solid rgba(184, 168, 236, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

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

  .event-card {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .back-link { left: 1rem; top: 1.15rem; }

  .landing-ctas { flex-direction: column; align-items: stretch; }
  .landing-ctas .btn { width: 100%; }
}

@media (max-width: 400px) {
  .event-day { font-size: 1.65rem; }
}

/* ——— v0.2 extensions: credits, media, modal, stripe mock, purple accents ——— */
:root {
  --purple: #ffffff;
  --purple-soft: rgba(255, 255, 255, 0.18);
  --purple-line: rgba(255, 255, 255, 0.35);
  --ok: #6db88a;
}

.proto-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--purple);
  color: #000000;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  font-weight: 500;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-end .nav-user {
  white-space: nowrap;
}
.credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--purple-line);
  background: var(--purple-soft);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.credits-chip strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  color: var(--purple);
}

.balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255,0.12), rgba(184, 168, 236,0.12));
  border: 1px solid var(--purple-line);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}
.balance-card .num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--cream);
}
.stripe-badge {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--purple-line);
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.pack-card {
  text-align: center;
  padding: 1.35rem 1rem;
}
.pack-card .pack-credits {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
}
.pack-card .pack-price {
  color: var(--sand);
  font-size: 0.9rem;
  margin: 0.35rem 0 1rem;
}

.ledger { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--card-wash);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 0.85rem;
}
.ledger-row .amt { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.ledger-row .amt.pos { color: var(--ok); }
.ledger-row .amt.neg { color: #e8a0a0; }

.city-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.city-chip {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-sans);
}
.city-chip.active, .city-chip:hover {
  color: var(--cream);
  border-color: var(--accent);
  background: rgba(184, 168, 236,0.15);
}

.cover-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  margin-bottom: 1rem;
  background: rgba(18, 16, 26,0.5);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.media-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--card-wash);
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; }
.media-tile.hidden-media { opacity: 0.4; }
.media-tile .media-badge {
  position: absolute;
  bottom: 0.35rem;
  left: 0.35rem;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0, 0, 0,0.85);
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
}

.guest-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.guest-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(184, 168, 236,0.12);
  font-size: 0.875rem;
}
.address-reveal {
  padding: 1rem 1.15rem;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  background: rgba(184, 168, 236,0.08);
  margin-top: 0.75rem;
}
.address-locked { color: var(--muted); font-size: 0.85rem; font-style: italic; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }
.modal {
  width: min(420px, 100%);
  background: var(--deep);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.modal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; margin: 0.5rem 0; }

/* Stripe mock checkout */
.stripe-mock {
  border: 1px solid var(--purple-line);
  border-radius: 8px;
  padding: 1.25rem;
  background: rgba(12, 10, 18, 0.45);
  margin-top: 1rem;
}
.stripe-mock .stripe-label {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.85rem;
}
.stripe-elements-fake {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.stripe-elements-fake .fake-field {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 255, 255,0.25);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  user-select: none;
  pointer-events: none;
}
.stripe-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.65rem;
  line-height: 1.45;
}

.next-up {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .next-up { grid-template-columns: 1fr; }
}

.home-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.status-pill.denied { color: #e8a0a0; border-color: rgba(192,112,112,0.4); }
.status-pill.waitlist { color: var(--sand); }
.status-pill.guest_pending { color: var(--sand); }
.status-pill.published { color: var(--accent); border-color: rgba(184, 168, 236,0.4); }
.status-pill.draft { color: var(--muted); }

.cover-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}
.cover-pick label {
  display: block;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
}
.cover-pick label img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.cover-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cover-pick label:has(input:checked),
.cover-pick label.selected {
  border-color: var(--accent);
}

.plus-one-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.plus-one-row input[type="number"] { width: 4.5rem; }

.footer-house {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  color: var(--muted);
  font-size: 0.75rem;
  background: transparent;
}
.footer-house a { color: var(--sand); }

.nav-credits {
  margin-left: 0.25rem;
}

/* Extra-guest pending */
.status-pill.pending { color: var(--sand); }
.rsvp-badge.waitlist { color: var(--sand); border-color: rgba(255, 249, 229, 0.45); }

/* Admin forms: full content width (Create event = SMS) */
.form-panel-full {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}


/* ——— Month calendar ——— */
.cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .cal-layout { grid-template-columns: 1fr; }
}
.cal-panel {
  background: rgba(18, 16, 26, 0.35);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.cal-month-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0;
  text-align: center;
  flex: 1;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}
.cal-day {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  min-height: 4.25rem;
  padding: 0.4rem 0.35rem 0.45rem;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
}
.cal-day:hover { border-color: var(--hairline); }
.cal-day-empty {
  background: transparent;
  border: none;
  min-height: 4.25rem;
  pointer-events: none;
}
.cal-day-num {
  font-size: 0.85rem;
  font-weight: 500;
}
.cal-day-today .cal-day-num {
  color: var(--sand);
}
.cal-day-has-event {
  border-color: rgba(184, 168, 236, 0.45);
  background: rgba(184, 168, 236, 0.12);
}
.cal-day-yes {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.16);
}
.cal-day-maybe {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.12);
}
.cal-day-other {
  border-color: rgba(180, 180, 180, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.cal-day-selected {
  outline: 2px solid var(--sand);
  outline-offset: 1px;
}
.cal-day-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: auto;
}
.cal-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent, #b8a8ec);
}
.cal-dot-event { background: #b8a8ec; }
.cal-dot-yes { background: #ffffff; }
.cal-dot-maybe { background: #d4af37; }
.cal-dot-no { background: #8a8a8a; }
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.cal-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cal-side { min-height: 12rem; }
.cal-event-card {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
}
.cal-event-card:last-child { border-bottom: none; padding-bottom: 0; }
.cal-rsvp-badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--cream);
}
.cal-rsvp-going { border-color: rgba(255, 255, 255,0.6); color: #ffffff; background: rgba(255, 255, 255,0.15); }
.cal-rsvp-maybe { border-color: rgba(212,175,55,0.55); color: #e8d48b; background: rgba(212,175,55,0.12); }
.cal-rsvp-waitlist,
.cal-rsvp-no { color: var(--muted); }
.cal-rsvp-none { color: var(--muted); }

/* +1 guests box */
.plus-guests-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--purple-line);
  background: var(--purple-soft);
  border-radius: var(--radius);
  display: none;
}
.plus-guests-box.show { display: block; }
.plus-guests-box .plus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.plus-guests-box label { margin: 0; }
.plus-guests-box #plus-count {
  width: 5rem;
  text-align: center;
}
.plus-guest-names {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.rsvp-badge.requested { color: var(--sand); border-color: rgba(255, 249, 229, 0.45); }
.status-pill.requested { color: var(--sand); }

/* ——— Logged-in home redesign (v0.2 logged-in update) ——— */
.greeting { padding-top: 0.25rem; margin-bottom: 0.5rem; }
.greeting h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.tier {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--sand), #b8a8ec);
  color: var(--deep);
  font-weight: 500;
}

.home-two-col {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 960px) {
  .home-two-col { grid-template-columns: 1.55fr 1fr; }
}
.home-section { margin-top: 1.5rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  gap: 1rem;
}
.section-link { font-size: 0.8rem; color: var(--sand); }
.mb-0 { margin-bottom: 0 !important; }

/* Credits chip — cream/lavender (match demo) */
.credits-chip {
  border-color: var(--hairline);
  background: rgba(42, 24, 72, 0.18);
  gap: 0.35rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.82rem;
}
.credits-chip .chip-star { color: var(--sand); }
.credits-chip strong {
  color: var(--cream);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0;
}

/* Filter chips */
.chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
  margin-bottom: 0.85rem;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}
.chip.active {
  background: var(--cream);
  color: var(--deep);
  border-color: var(--cream);
  font-weight: 500;
}
.chip .n { opacity: 0.6; margin-left: 0.25rem; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 400;
  border: 1px solid var(--hairline);
  color: var(--cream);
}
.pill.going, .pill.requested {
  background: rgba(184, 168, 236, 0.2);
  border-color: var(--accent);
  color: #e6e0fb;
}
.pill.maybe {
  background: rgba(255, 249, 229, 0.15);
  border-color: var(--sand);
  color: var(--sand);
}
.pill.no {
  background: rgba(211, 130, 130, 0.12);
  border-color: #d38282;
  color: #f0b9b9;
}
.pill.past, .pill.waitlist { color: var(--muted); }
.pill.cost {
  color: var(--cream);
  background: rgba(0, 0, 0, 0.5);
}
.pill.cost::before { content: '✦'; color: var(--sand); }

/* Event cards (demo-style horizontal) */
.ev-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 960px) {
  .ev-grid { grid-template-columns: 1fr 1fr; }
}
a.ev-card, .ev-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem;
  text-decoration: none;
  color: inherit;
  align-items: stretch;
}
.ev-cover {
  position: relative;
  width: 96px;
  min-width: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mid, #2a1848);
}
.ev-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ev-date {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  padding: 0.15rem 0.4rem;
  text-align: center;
  line-height: 1.05;
}
.ev-date b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--cream);
}
.ev-date i {
  font-style: normal;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
}
.ev-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
}
.ev-meta-line {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}
.ev-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0.15rem 0 0;
  line-height: 1.2;
}
.ev-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.is-hidden { display: none !important; }
.filter-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.25rem;
  color: var(--muted);
}

.event-with-rsvp {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.event-rsvp-bar {
  padding: 0 0.25rem 0.35rem 108px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .event-rsvp-bar { padding-left: 0.25rem; }
}

/* Next-event hero */
.hero-card {
  padding: 0;
  overflow: hidden;
  display: grid;
}
@media (min-width: 960px) {
  .hero-card { grid-template-columns: 1.2fr 1fr; }
}
.hero-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #2a1848, #000000 70%);
  min-height: 180px;
}
@media (min-width: 960px) {
  .hero-cover { aspect-ratio: auto; height: 100%; min-height: 260px; }
}
.hero-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-cover .cover-tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.6rem;
  z-index: 2;
}
.hero-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}
.hero-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  margin: 0.3rem 0 0.5rem;
  color: var(--cream);
  line-height: 1.15;
}
.hero-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.hero-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
@media (min-width: 960px) {
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}
.qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.74rem;
  color: var(--cream);
  padding: 0.85rem 0.3rem;
  border-radius: var(--radius);
  background: rgba(18, 16, 26, 0.88);
  border: 1px solid var(--hairline);
  text-decoration: none;
  transition: border-color 0.15s;
}
.qa:hover { border-color: var(--accent); color: var(--cream); }
.qa-ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 249, 229, 0.14);
}
.qa-ic svg {
  width: 19px;
  height: 19px;
  stroke: var(--sand);
  fill: none;
  stroke-width: 1.6;
}

/* From dattabots announcements */
.ann {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.ann-mark {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--deep);
  border: 1px solid var(--sand);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: var(--sand);
  font-size: 0.95rem;
}
.ann-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0.15rem 0 0.25rem;
}

/* Bottom tabs (mobile 4-tab feel) — fixed to viewport, not document flow */
.bottom-tabs { display: none !important;
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 300;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  padding: 0.45rem 0.25rem calc(0.55rem + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  transform: none; /* avoid containing-block quirks */
}
.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.2rem 0;
  text-decoration: none;
  position: relative;
}
.bottom-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.bottom-tab.active { color: var(--sand); }
.bottom-tab.active::before {
  content: '';
  position: absolute;
  top: -0.46rem;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
}
body.has-bottom-tabs { padding-bottom: 4.5rem; }
@media (min-width: 960px) {
  .bottom-tabs { display: none !important; display: none; }
  body.has-bottom-tabs { padding-bottom: 0; }
}

.home-main { padding-bottom: 1rem; }


/* ——— Dark shell safety (logged-in redesign fix) ——— */
html, body {
  background-color: #000000 !important;
}
body {
  background-image: radial-gradient(ellipse 140% 900px at 50% -5%, #2a1848 0%, #12101a 45%, #000000 78%) !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  background-size: auto !important;
}
.home-main,
.wrap,
.wrap-wide,
.home-two-col,
.home-primary,
.home-aside,
.home-section,
.from-xi,
#homeEvents,
#events-list,
#invites-list {
  background: transparent;
}
a.ev-card, .ev-card, .hero-card, .ann, .event-with-rsvp > .ev-card {
  background: rgba(18, 16, 26, 0.9);
  color: var(--cream);
}
.ev-title, .ann-title, .hero-body h2, #invites-list strong {
  color: var(--cream);
}
.empty-state, .filter-empty {
  background: rgba(18, 16, 26, 0.55);
  color: var(--muted);
}
#invites-list .card {
  background: rgba(18, 16, 26, 0.9);
  color: var(--cream);
}


/* ——— Admin Guests tab: compact event rows ——— */
.admin-guest-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-guest-card {
  padding: 0.7rem 0.85rem;
}
.admin-guest-row {
  display: flex;
  gap: 0.85rem;
  align-items: stretch;
}
.admin-guest-thumb {
  position: relative;
  width: 72px;
  min-width: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mid, #2a1848);
}
.admin-guest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.admin-guest-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
}
.admin-guest-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.admin-guest-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin: 0;
  line-height: 1.2;
}
.admin-guest-meta {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}
.admin-guest-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}
.admin-guest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-guest-pills .pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
}
.admin-guest-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.admin-guest-status-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
}
.admin-guest-status-row .label {
  padding-top: 0.25rem;
}
.admin-guest-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.admin-guest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  color: var(--cream);
}
.admin-guest-promote {
  padding: 0.15rem 0.45rem !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.08em;
}
@media (max-width: 720px) {
  .admin-guest-status-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .admin-guest-thumb { width: 64px; min-width: 64px; }
}

.admin-guest-sms {
  padding: 0.15rem 0.45rem !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.08em;
}

/* Deep: hide floating footer */
.bottom-tabs,.bottom-tab-bar{display:none!important}
body.has-bottom-tabs,body.has-bottom-tabs-off{padding-bottom:0!important}

/* ═════════ Mobile UX pass — Oct 5 2026 (v=20261005io6) ═════════
   1) Type size + contrast  2) 44px tap targets  4) single-row Events filters
   (3 — menu trim — lives in app.js renderNav) */

/* 1 · Type: labels/eyebrows/meta 12–13px, body 15–16px, buttons 13px */
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
.label { font-size: 0.8rem; letter-spacing: 0.3em; }           /* 12.8px */
.label-muted { letter-spacing: 0.26em; }
.section-label { font-size: 0.8rem; letter-spacing: 0.26em; }  /* 12.8px */
.field label { font-size: 0.78rem; letter-spacing: 0.24em; }   /* 12.5px */
.brand-members { font-size: 0.78rem; }
.nav-brand .sub { font-size: 0.75rem; letter-spacing: 0.3em; } /* 12px */
.nav-links a { font-size: 0.8rem; letter-spacing: 0.2em; }     /* 12.8px */
.nav-user { font-size: 0.75rem; }
.nav-toggle { font-size: 0.75rem; letter-spacing: 0.18em; min-height: 44px; padding: 0.5rem 0.9rem; }
.back-link { font-size: 0.75rem; letter-spacing: 0.24em; }
.text-sm { font-size: 0.9375rem; }                             /* 15px */
.text-xs { font-size: 0.8125rem; }                             /* 13px */
.field-hint { font-size: 0.8125rem; }
.error-msg { font-size: 0.875rem; }
.page-header p { font-size: 1rem; }                            /* 16px */
.page-header p.label { font-size: 0.8rem; }                    /* eyebrow 12.8px (was inheriting .page-header p) */
.event-meta { font-size: 0.875rem; }
.event-loc { font-size: 0.8125rem; }
.event-month { font-size: 0.75rem; }
.event-year { font-size: 0.75rem; }
.event-date-inline { font-size: 0.8125rem; }
.ev-meta-line { font-size: 0.8125rem; }
.ev-date i { font-size: 0.68rem; }
.meta-row { font-size: 0.875rem; }
.hero-kv { font-size: 0.9375rem; }
.section-link { font-size: 0.875rem; }
.tier { font-size: 0.72rem; }
.rsvp-badge { font-size: 0.75rem; letter-spacing: 0.16em; }    /* 12px */
.status-pill { font-size: 0.75rem; letter-spacing: 0.12em; }
.pill { font-size: 0.8125rem; }                                /* 13px */
.stat-label { font-size: 0.75rem; letter-spacing: 0.2em; }
.stripe-badge { font-size: 0.72rem; letter-spacing: 0.14em; }
.stripe-label { font-size: 0.75rem; letter-spacing: 0.2em; }
.stripe-note { font-size: 0.8125rem; }
.stripe-elements-fake .fake-field { font-size: 0.9375rem; }
.proto-banner { font-size: 0.72rem; letter-spacing: 0.18em; }
table { font-size: 0.9rem; }
th { font-size: 0.75rem; letter-spacing: 0.18em; }
.ledger-row { font-size: 0.9375rem; }
.guest-list li { font-size: 0.9375rem; }
.address-locked { font-size: 0.9375rem; }
.toast { font-size: 0.8rem; letter-spacing: 0.14em; }
.qa { font-size: 0.8125rem; }
.footer-house { font-size: 0.8125rem; }
.cal-weekdays span { font-size: 0.72rem; letter-spacing: 0.08em; }
.cal-legend { font-size: 0.8125rem; }
.cal-rsvp-badge { font-size: 0.72rem; letter-spacing: 0.1em; }
.media-tile .media-badge { font-size: 0.68rem; }
.admin-guest-meta { font-size: 0.8125rem; }
.admin-guest-pills .pill { font-size: 0.75rem; }
.chip .n { opacity: 0.85; }

/* Buttons 13px */
.btn { font-size: 0.8125rem; letter-spacing: 0.18em; }
.btn-sm { font-size: 0.8125rem; letter-spacing: 0.12em; padding: 0.6rem 1.1rem; }

/* 2 · Tap targets ≥44px */
.event-rsvp-bar .btn,
#rsvp-btns .btn {
  min-height: 44px;
  min-width: 4.5rem;
  padding: 0.65rem 1.15rem;
}
.event-rsvp-bar { align-items: center; gap: 0.5rem; }
.chip,
.city-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.875rem;                                         /* 14px */
  flex-shrink: 0;
}
.city-chip { letter-spacing: 0.04em; text-transform: none; }
@media (max-width: 720px) {
  .btn-sm { min-height: 44px; }
  .nav-links a { font-size: 0.875rem; padding: 0.95rem 0; }   /* menu rows ≈48px */
}

/* 4 · Events: ONE horizontally scrollable filter row (status + city) */
.filter-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 0 1.25rem;
  padding-bottom: 0.15rem;
}
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-scroll .filter-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.filter-scroll .chip,
.filter-scroll .city-chip { scroll-snap-align: start; }
.filter-scroll .filter-sep {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 0.5rem 0.25rem;
  background: var(--hairline);
}
.filter-scroll .city-chip.active {
  background: rgba(184, 168, 236, 0.22);
  border-color: var(--accent);
  color: var(--cream);
  font-weight: 500;
}

/* Events ↔ Calendar view toggle (calendar folded into Events) */
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
  margin-top: 1rem;
}
.view-toggle a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
}
.view-toggle a.active { background: var(--cream); color: var(--deep); font-weight: 500; }
.view-toggle a:not(.active):hover { color: var(--cream); }


/* dattabots wordmark (replaces XI text mark) */
.brand-xi .brand-wordmark-img { display: block; height: clamp(1.9rem, 6vw, 2.6rem); width: auto; margin: 0 auto; border: 0; border-radius: 0; }
.nav-brand { align-items: center; }
.nav-brand .xi { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-brand .xi .brand-wordmark-img { display: block; height: 1.05rem; width: auto; max-width: none; border: 0; border-radius: 0; }
.ann-mark img { display: block; }
@media (max-width: 480px) { .nav-brand .sub { display: none; } }

/* ═════════ Bot workspace (Approvals · My Bots · Leads · Social) — v=20261005io6 ═════════ */
[hidden] { display: none !important; }

/* Nav: 9 member links — wrap on desktop, scroll on mobile */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; margin-left: 0.4rem;
  border-radius: 999px; background: var(--accent); color: #000;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0; vertical-align: middle;
}
@media (min-width: 721px) {
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 1.05rem; }
}
@media (max-width: 720px) {
  .nav-links { max-height: calc(100dvh - 120px); overflow-y: auto; -webkit-overflow-scrolling: touch; background: #000 !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6); }
  .nav-links a { display: flex; align-items: center; min-height: 44px; }
}

.count-badge {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  min-width: 2rem; height: 2rem; padding: 0 0.6rem; margin-left: 0.35rem;
  border-radius: 999px; background: rgba(184, 168, 236, 0.22); border: 1px solid var(--accent);
  color: var(--cream); font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500;
}

/* Approvals */
.apr-title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--cream); margin-top: 0.4rem; }
.apr-preview {
  margin-top: 0.85rem; padding: 0.9rem 1rem; border-radius: 8px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(184, 168, 236, 0.16);
}
.apr-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; margin-bottom: 0.75rem; }
.apr-subject { font-size: 0.9375rem; font-weight: 400; color: var(--cream); }
.apr-body { white-space: pre-wrap; font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.55; color: var(--muted); margin-top: 0.4rem; }
.apr-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.apr-actions .btn { min-height: 44px; }
.apr-edit, .apr-reject { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--hairline); }
.btn-danger-ghost { color: #f0b9b9; border-color: rgba(211, 130, 130, 0.45); }
.btn-danger-ghost:hover { border-color: #d38282; color: #ffd6d6; }
.btn-danger { background: rgba(192, 112, 112, 0.22); border-color: #d38282; color: #ffe1e1; }

/* My Bots */
.bot-name { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--cream); line-height: 1.2; }
.bot-status {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.8125rem; letter-spacing: 0.04em; border: 1px solid var(--hairline);
}
.bot-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.bot-status.running { color: #b9e4c9; border-color: rgba(109, 184, 138, 0.5); }
.bot-status.running .dot { background: #6db88a; box-shadow: 0 0 0 3px rgba(109, 184, 138, 0.2); }
.bot-status.paused { color: var(--sand); border-color: rgba(255, 249, 229, 0.35); }
.bot-status.paused .dot { background: var(--sand); }
.bot-task { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 8px; background: rgba(184, 168, 236, 0.07); border: 1px solid rgba(184, 168, 236, 0.16); }
.bot-task .label { margin-bottom: 0.3rem; }
.bot-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.bot-controls .btn { min-height: 44px; }
.bot-controls .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.soon { margin-left: 0.4rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: none; color: var(--muted); }
.log-list { list-style: none; display: flex; flex-direction: column; }
.log-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 0; border-top: 1px solid rgba(184, 168, 236, 0.12); }
.log-row:first-child { border-top: 0; }
.log-row .btn { flex-shrink: 0; min-height: 44px; }
.log-main { min-width: 0; }
.log-action { font-size: 0.9375rem; color: var(--cream); }
.log-row.is-rolled .log-action, .log-row.is-rolled .text-sm { text-decoration: line-through; text-decoration-color: rgba(196, 188, 217, 0.5); }

/* Plan gate */
.plan-bar { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--hairline); background: rgba(18, 16, 26, 0.6); }
.plan-bar-text { display: flex; align-items: flex-start; gap: 0.6rem; }
.plan-chip { flex-shrink: 0; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; }
.plan-chip.premium { background: linear-gradient(135deg, var(--sand), var(--accent)); color: #12101a; font-weight: 500; }
.plan-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.plan-preview-label { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; padding: 3px; gap: 3px; }
.seg-btn { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-family: var(--font-sans); font-size: 0.875rem; cursor: pointer; }
.seg-btn.active { background: var(--cream); color: var(--deep); font-weight: 500; }
.locked-card { text-align: center; padding: 2rem 1.25rem; border-radius: var(--radius); border: 1px dashed rgba(184, 168, 236, 0.45); background: rgba(42, 24, 72, 0.35); }
.lock-ic { width: 48px; height: 48px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--hairline); }

/* Leads */
.lead-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.1rem; min-height: 44px; }
.lead-row-main { min-width: 0; }
.lead-name { font-size: 1rem; color: var(--cream); font-weight: 400; }
.lead-status { flex-shrink: 0; font-size: 0.8125rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--hairline); color: var(--cream); }
.lead-status.s-new { border-color: var(--accent); color: #e6e0fb; background: rgba(184, 168, 236, 0.14); }
.lead-status.s-contacted { border-color: rgba(255, 249, 229, 0.4); color: var(--sand); }
.lead-status.s-booked { border-color: rgba(212, 175, 55, 0.55); color: #e8d48b; background: rgba(212, 175, 55, 0.1); }
.lead-status.s-won { border-color: rgba(109, 184, 138, 0.55); color: #b9e4c9; background: rgba(109, 184, 138, 0.1); }
.lead-status.s-lost { border-color: rgba(180, 180, 180, 0.35); color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; font-size: 0.9375rem; }
.kv dt { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.08em; padding-top: 0.1rem; }
.kv dd { color: var(--cream); word-break: break-word; }

/* Social */
.stats-strip { margin-bottom: 1.25rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--hairline); background: linear-gradient(135deg, rgba(42, 24, 72, 0.55), rgba(18, 16, 26, 0.8)); }
.demo-tag { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); border: 1px dashed rgba(184, 168, 236, 0.45); border-radius: 999px; padding: 0.2rem 0.6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.85rem; }
.stat-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--cream); line-height: 1.1; }
.stat .stat-label { color: var(--muted); text-transform: uppercase; margin-top: 0.2rem; }
.stat-delta { font-size: 0.8125rem; color: #b9e4c9; margin-top: 0.15rem; }
.day-head { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); margin: 0.75rem 0 -0.25rem; }
.platform { font-size: 0.8125rem; letter-spacing: 0.06em; padding: 0.25rem 0.65rem; border-radius: 6px; border: 1px solid var(--hairline); color: var(--cream); }
.platform.p-instagram { background: rgba(184, 168, 236, 0.16); }
.platform.p-linkedin { background: rgba(255, 249, 229, 0.08); }
.platform.p-x { background: rgba(255, 255, 255, 0.06); }
.post-status { font-size: 0.8125rem; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid var(--hairline); }
.post-status.st-draft { color: var(--muted); }
.post-status.st-awaiting { color: #e8d48b; border-color: rgba(212, 175, 55, 0.55); }
.post-status.st-scheduled { color: #e6e0fb; border-color: var(--accent); background: rgba(184, 168, 236, 0.14); }
.post-status.st-posted { color: #b9e4c9; border-color: rgba(109, 184, 138, 0.5); }
.post-preview { margin-top: 0.75rem; border-radius: 8px; overflow: hidden; border: 1px solid rgba(184, 168, 236, 0.16); background: rgba(0, 0, 0, 0.35); }
.post-preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-caption { padding: 0.85rem 1rem; font-size: 0.9375rem; line-height: 1.55; color: var(--cream); }

/* ——— Mobile pass (Oct 5 2026) ——— */
/* 1. Demo banner scrolls away instead of sticking over the sticky nav (Menu was untappable once scrolled) */
.proto-banner { position: relative; top: auto; }
/* 2. "← House / ← Services" link sat under the banner: put it in the flow below the banner */
.proto-banner + .back-link { position: relative; top: auto; left: auto; display: inline-flex; align-items: center; min-height: 44px; margin: 0.25rem 0 0 1rem; }
/* 3. Home grid: let the single mobile column shrink so the chip row scrolls instead of pushing the page wide */
.home-two-col { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .home-two-col { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.home-primary, .home-aside { min-width: 0; }
/* 4. Admin cover picker: hidden radios inherited width:100% and made the page 649px wide */
.cover-pick label { position: relative; }
.cover-pick input { width: 1px; height: 1px; margin: 0; top: 0; left: 0; }
/* 5. 44px tap targets */
.nav-brand { min-height: 44px; align-items: center; }
.nav-end .credits-chip { min-height: 44px; }
.section-link, .back-link { display: inline-flex; align-items: center; min-height: 44px; }
.plus-guests-box #plus-count { min-height: 44px; font-size: 16px; }
@media (max-width: 760px) {
  /* 16px+ inputs so iOS Safari doesn't zoom on focus; 44px min height */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: max(16px, 1em); }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select { min-height: 44px; }
  /* keep focused fields clear of the sticky nav */
  html { scroll-padding-top: 6rem; }
}
/* 6. Calendar: tighter gaps on phones so every day cell is at least 44px wide */
@media (max-width: 480px) {
  .cal-panel { padding: 0.85rem 0.5rem 1rem; }
  .cal-grid, .cal-weekdays { gap: 2px; }
  .cal-day { padding: 0.35rem 0.3rem 0.4rem; }
}
@media (max-width: 374px) {
  .cal-grid, .cal-weekdays { gap: 1px; }
}
@media (max-width: 760px) { select.btn, select.btn-sm { font-size: 16px; min-height: 44px; } }

/* Oct 9 2026 · name dropdown (Profile · Sign Out) */
.nav-user-menu { position: relative; }
.nav-user-btn { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.6rem; background: none; border: 1px solid transparent; border-radius: 999px; font-family: var(--font-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); cursor: pointer; white-space: nowrap; }
.nav-user-btn:hover, .nav-user-btn.active, .nav-user-btn[aria-expanded="true"] { color: var(--cream); border-color: var(--hairline); background: rgba(184, 168, 236, 0.1); }
.nav-user-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-user-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--accent); transition: transform 0.15s ease; }
.nav-user-btn[aria-expanded="true"] .nav-user-caret { transform: rotate(180deg); }
.nav-user-dropdown { position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 130; min-width: 10.5rem; max-width: calc(100vw - 1.5rem); display: flex; flex-direction: column; padding: 0.35rem; background: var(--lift); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); }
.nav-user-dropdown[hidden] { display: none; }
.nav-user-dropdown a { display: flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border-radius: 6px; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); text-decoration: none; white-space: nowrap; }
.nav-user-dropdown a + a { border-top: 1px solid var(--hairline); border-radius: 0 0 6px 6px; }
.nav-user-dropdown a:hover, .nav-user-dropdown a:focus-visible, .nav-user-dropdown a.active { background: rgba(184, 168, 236, 0.12); color: var(--accent); outline: none; }

/* Oct 9 2026 · leads: + Add lead button and modal (list format unchanged) */
.lead-add-row { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
.lead-modal { width: min(540px, 100%); max-height: calc(100dvh - 2rem); overflow-y: auto; text-align: left; padding: 1.5rem 1.4rem; }
.lead-modal h2 { margin-top: 0; }
.lead-modal .form { gap: 0.9rem; }
.lead-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.lead-modal select option { background: var(--lift); color: var(--cream); }
.lead-modal-actions { justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; }
.lead-status.s-contact { border-color: rgba(255, 249, 229, 0.4); color: var(--sand); }
@media (max-width: 520px) {
  .modal-backdrop:has(.lead-modal) { padding: 0.75rem; }
  .lead-modal-grid { grid-template-columns: 1fr; }
  .lead-modal-actions .btn { flex: 1 1 auto; }
}
.lead-modal-actions .lead-delete { margin-right: auto; }

/* Oct 9 2026 · desktop (1024px+): signed-in nav stays on one line; narrower widths unchanged, phone keeps the Menu toggle */
@media (min-width: 1024px) {
  .site-nav-inner { flex-wrap: nowrap; }
  .nav-brand, .nav-end { flex-shrink: 0; white-space: nowrap; }
  .nav-links { flex-wrap: nowrap; white-space: nowrap; gap: 0 1.05rem; }
  .nav-links a { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-nav-inner { gap: 0.6rem; }
  .nav-links { gap: 0 0.7rem; }
  .nav-links a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .nav-badge { margin-left: 0.25rem; }
  .nav-end { gap: 0.45rem; }
}
/* Oct 9 2026 · desktop (1024px+): link group right-justified next to the credits chip, clear gap from logo/HQ */
@media (min-width: 1024px) {
  .nav-links { margin-left: auto; padding-left: 2rem; }
  .nav-end { margin-left: 1.5rem; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-links { padding-left: 1.25rem; }
  .nav-end { margin-left: 1rem; }
}

/* Oct 9 2026 · leads: Leads ↔ Apollo toggle + Apollo import table */
.leads-view-seg { margin: 0.9rem 0 0.4rem; }
.apollo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.apollo-actions { gap: 0.5rem; flex-wrap: wrap; }
.apollo-hint { margin-bottom: 0.9rem; }
.apollo-table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.apollo-table { min-width: 1100px; }
.apollo-table th, .apollo-table td { vertical-align: top; }
.apollo-table td { overflow-wrap: anywhere; max-width: 16rem; }
.apollo-table .apollo-name { white-space: nowrap; font-weight: 500; }
.apollo-table a { color: var(--accent); }

/* Oct 9 2026 · leads: admin Calendar view (layout from the io calendar, dattabots palette) */
.acal-layout { margin-bottom: 1.5rem; }
.acal-day-going { border-color: rgba(255, 255, 255, 0.65); background: rgba(255, 255, 255, 0.16); }
.acal-day-maybe { border-color: rgba(184, 168, 236, 0.85); background: rgba(184, 168, 236, 0.24); }
.acal-day-interested { border-color: rgba(184, 168, 236, 0.45); background: rgba(184, 168, 236, 0.1); }
.acal-dot-going { background: #ffffff; }
.acal-dot-maybe { background: var(--accent); }
.acal-dot-interested { background: transparent; border: 1px solid var(--accent); box-sizing: border-box; }
.acal-badge-going { border-color: rgba(255, 255, 255, 0.6); color: #ffffff; background: rgba(255, 255, 255, 0.15); }
.acal-badge-maybe { border-color: rgba(184, 168, 236, 0.7); color: #e6e0fb; background: rgba(184, 168, 236, 0.18); }
.acal-badge-interested { color: var(--muted); }
.cal-ev-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--hairline); margin: 0 0 0.85rem; background: rgba(42, 24, 72, 0.5); }
.acal-notes { white-space: pre-line; overflow-wrap: anywhere; }
.acal-edit-row { gap: 0.5rem; flex-wrap: wrap; }
.acal-cover-row { gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }
.acal-upcoming { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; }
.acal-upcoming li + li { border-top: 1px solid var(--hairline); }
.acal-up-row { width: 100%; display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; min-height: 44px; padding: 0.6rem 0.25rem; background: none; border: 0; color: var(--cream); font: inherit; text-align: left; cursor: pointer; }
.acal-up-row:hover .acal-up-title { color: var(--accent); }
.acal-up-date { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); }
.acal-up-title { overflow-wrap: anywhere; }
@media (min-width: 721px) {
  .acal-btns { flex-wrap: nowrap; gap: 0.4rem; }
  .acal-btns .btn { padding-left: 0.7rem; padding-right: 0.7rem; letter-spacing: 0.08em; white-space: nowrap; }
}
@media (max-width: 720px) {
  .acal-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .acal-btns .btn { width: 100%; margin: 0; justify-content: center; text-align: center; white-space: nowrap; }
  .acal-up-row { grid-template-columns: minmax(0, 1fr) auto; }
  .acal-up-date { grid-column: 1 / -1; }
}

/* Oct 9 2026: Services (admin create/publish + catalog edit; member cost pill), dattabots palette */
.pill.svc-usd { color: var(--accent); border-color: var(--accent); background: rgba(184, 168, 236, 0.12); }
#create-service.svc-form-wide { max-width: none; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 18px; align-items: start; }
.svc-grid > .field { margin: 0 0 12px; min-width: 0; }
.svc-g-desc { grid-column: 1 / span 2; }
.svc-g-img { grid-column: 3 / span 2; }
.svc-g-desc textarea { min-height: 132px; }
.svc-g-cost .error-msg { margin-top: 4px; }
.svc-seg { display: flex; width: 100%; border: 1px solid var(--hairline); border-radius: 8px; overflow: hidden; min-height: 2.75rem; }
.svc-seg label { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; margin: 0; font-size: 0.85rem; letter-spacing: 0; text-transform: none; color: var(--muted); cursor: pointer; position: relative; }
.svc-seg label + label { border-left: 1px solid var(--hairline); }
.svc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.svc-seg label:has(input:checked) { background: rgba(184, 168, 236, 0.2); color: var(--white); }
.svc-seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.svc-img-pick { display: flex; gap: 14px; align-items: flex-start; }
.svc-img-pick .svc-prev { width: 132px; aspect-ratio: 4 / 3; border-radius: 8px; border: 1px dashed var(--hairline); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--placeholder); font-size: 12px; background: rgba(18, 16, 26, 0.55); }
.svc-img-pick .svc-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-img-pick .svc-img-inputs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.svc-img-pick input[type=file] { font-size: 0.8rem; color: var(--muted); max-width: 100%; }
.svc-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.svc-card .svc-main { min-width: 0; }
.svc-card .svc-thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; border: 1px solid var(--hairline); background: linear-gradient(135deg, var(--mid), var(--deep)); display: block; }
.svc-edit { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.svc-edit-cost, .svc-edit-img { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.svc-edit-lbl { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); flex: none; }
.svc-edit select, .svc-edit input[type=number], .svc-edit input[type=text] { height: 32px; min-height: 0; padding: 0 10px; font-size: 12.5px; width: auto; background: rgba(0, 0, 0, 0.5); color: var(--cream); border: 1px solid var(--hairline); border-radius: 7px; outline: none; box-shadow: none; font-family: inherit; }
.svc-edit select:focus, .svc-edit input:focus { border-color: var(--accent); }
.svc-edit input[type=number] { width: 6rem; }
.svc-edit input[type=text] { width: 12rem; }
.svc-edit input[type=file] { font-size: 11.5px; max-width: 220px; color: var(--muted); }
.svc-cost-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; vertical-align: 1px; }
.svc-cost-tag.svc-cost-none { border-color: var(--hairline); color: var(--placeholder); }
@media (max-width: 1180px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-g-desc, .svc-g-img { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-img-pick { flex-direction: column; align-items: stretch; }
  .svc-card { display: block; }
  .svc-card::after { content: ''; display: block; clear: both; }
  .svc-card .svc-thumb { float: left; width: 72px; margin: 0 12px 8px 0; }
  .svc-card .svc-edit { clear: both; }
  .svc-card > .btn-group { clear: both; margin-top: 12px; }
  .svc-edit { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
  .svc-edit-cost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; }
  .svc-edit-img { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .svc-edit-cost .svc-edit-lbl { grid-column: 1 / -1; }
  .svc-edit select, .svc-edit input[type=number], .svc-edit input[type=text] { width: 100%; height: 40px; font-size: 14px; }
  .svc-edit input[type=file] { width: 100%; max-width: 100%; font-size: 13px; }
}

/* Oct 10 2026: Projects (projects.html, project-email.html, project-status.html), from the approved mockup */
.nav-user-dropdown a + a:not(:last-child) { border-radius: 0; }
.pj-wrap { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.pj-eyebrow { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.pj-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--cream); margin: .35rem 0 .6rem; overflow-wrap: anywhere; }
.pj-lede { color: var(--muted); max-width: 40rem; line-height: 1.6; }
.pj-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.pj-card { background: var(--card-wash); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.6rem; min-width: 0; }
.pj-card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--cream); margin-bottom: 1.2rem; }
.pj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pj-form { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.pj-side h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--cream); margin-bottom: .8rem; }
.pj-steps { list-style: none; display: flex; flex-direction: column; gap: .9rem; color: var(--muted); font-size: .92rem; line-height: 1.5; padding: 0; margin: 0; }
.pj-steps b { color: var(--sand); font-weight: 500; display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.pj-success { text-align: center; padding: 2.5rem 1.5rem; }
.pj-success h2 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--cream); }
.pj-success .pj-lede { margin: .6rem auto 1rem; }
.pj-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok, #6db88a); display: grid; place-items: center; margin: 0 auto 1rem; color: #0b1a10; font-size: 2rem; }
.pj-id { font-family: ui-monospace, monospace; color: var(--sand); letter-spacing: .08em; }
.pj-err { color: var(--danger); font-size: .8rem; margin-bottom: .8rem; }
.pj-mine { margin-top: 1.5rem; }
.pj-mine-list { list-style: none; padding: 0; margin: 0; }
.pj-mine-list li + li { border-top: 1px solid var(--hairline); }
.pj-mine-list a { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .85rem 0; color: var(--cream); text-decoration: none; }
.pj-mine-list a:hover .pj-mine-msg { color: var(--accent); }
.pj-mine-msg { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.pj-mine-step { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.pj-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 1.5rem; }
.pj-meta span { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.pj-meta strong { color: var(--cream); font-weight: 400; overflow-wrap: anywhere; }
.pj-msg { white-space: pre-line; overflow-wrap: anywhere; max-width: none; color: var(--cream); }
.pj-prog { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin: 2rem 0 1rem; padding: 0; }
.pj-prog li { position: relative; text-align: center; padding: 0 .5rem; }
.pj-prog li::before { content: ""; position: absolute; top: 22px; left: -50%; width: 100%; height: 3px; background: var(--hairline); z-index: 0; }
.pj-prog li:first-child::before { display: none; }
.pj-prog li.done::before, .pj-prog li.current::before { background: var(--accent); }
.pj-dot { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; margin: 0 auto .8rem; display: grid; place-items: center; border: 2px solid var(--hairline); background: var(--deep); color: var(--muted); font-size: .9rem; }
.pj-prog .done .pj-dot { background: var(--accent); border-color: var(--accent); color: var(--deep); font-size: 1.2rem; }
.pj-prog .current .pj-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px rgba(184,168,236,.18); animation: pjpulse 1.8s infinite; }
@keyframes pjpulse { 0% { box-shadow: 0 0 0 0 rgba(184,168,236,.55); } 70% { box-shadow: 0 0 0 14px rgba(184,168,236,0); } 100% { box-shadow: 0 0 0 0 rgba(184,168,236,0); } }
@media (prefers-reduced-motion: reduce) { .pj-prog .current .pj-dot { animation: none; } }
.pj-prog .lbl { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pj-prog .done .lbl, .pj-prog .current .lbl { color: var(--cream); }
.pj-prog .st { display: block; font-size: .72rem; color: var(--placeholder); margin-top: .3rem; }
.pj-prog .current .st { color: var(--accent); }
.pj-tl { list-style: none; border-left: 1px solid var(--hairline); margin: 0 0 0 .4rem; padding: 0 0 0 1.2rem; display: flex; flex-direction: column; gap: 1rem; }
.pj-tl li { position: relative; color: var(--muted); font-size: .92rem; }
.pj-tl li::before { content: ""; position: absolute; left: -1.55rem; top: .35rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.pj-tl time { display: block; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--placeholder); }
.pj-admin-row td { vertical-align: top; }
.pj-admin-row select { min-width: 11rem; }
.pj-admin-msg { max-width: 26rem; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .pj-grid, .pj-row, .pj-meta { grid-template-columns: 1fr; }
  .pj-prog { grid-template-columns: 1fr; gap: 1.6rem; margin-left: .2rem; }
  .pj-prog li { display: grid; grid-template-columns: 46px 1fr; gap: 1rem; align-items: center; text-align: left; padding: 0; }
  .pj-prog li::before { top: -1.6rem; left: 22px; width: 3px; height: 1.6rem; }
  .pj-dot { margin: 0; }
  .pj-card { padding: 1.2rem; }
  .pj-mine-list a { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; }
  .pj-mine-list .pj-mine-msg { grid-column: 1 / -1; grid-row: 2; }
}
/* Project confirmation email (simulated) */
body.pj-mail-page { background: #0c0a12; }
.pj-mail-chrome { max-width: 680px; margin: 1.5rem auto 0; padding: 0 1rem; color: var(--muted); font-size: .82rem; line-height: 1.7; overflow-wrap: anywhere; }
.pj-mail-chrome b { color: var(--cream); font-weight: 400; }
.pj-mail { max-width: 680px; margin: 1rem auto 3rem; background: var(--deep); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
@media (max-width: 712px) { .pj-mail { margin-left: 1rem; margin-right: 1rem; } }
.pj-mail-hd { padding: 1.6rem 2rem; background: linear-gradient(135deg, var(--mid), var(--deep)); border-bottom: 1px solid var(--hairline); }
.pj-mail-hd img { height: 22px; width: auto; display: block; }
.pj-mail-bd { padding: 2rem; }
.pj-mail-bd h1 { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; color: var(--cream); margin-bottom: .8rem; line-height: 1.15; }
.pj-mail-bd p { color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.pj-quote { border-left: 3px solid var(--accent); padding: .8rem 1rem; background: rgba(184,168,236,.07); border-radius: 0 8px 8px 0; color: var(--cream); font-style: italic; margin: 1rem 0 1.5rem; overflow-wrap: anywhere; white-space: pre-line; }
.pj-idbox { display: inline-block; border: 1px solid var(--hairline); border-radius: 8px; padding: .5rem .9rem; margin-bottom: 1.2rem; }
.pj-idbox span { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-right: .6rem; }
.pj-cta { text-align: center; margin: 2rem 0; }
.pj-cta .btn { font-size: .85rem; padding: 1rem 2rem; background: var(--accent); color: var(--deep); border-color: var(--accent); }
.pj-mail-ft { padding: 1.2rem 2rem; border-top: 1px solid var(--hairline); font-size: .75rem; color: var(--placeholder); }
@media (max-width: 480px) { .pj-mail-bd, .pj-mail-hd, .pj-mail-ft { padding-left: 1.25rem; padding-right: 1.25rem; } .pj-mail-bd h1 { font-size: 1.9rem; } }
