/* HGFD CRM — iOS-inspired Design System */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand */
  --navy:   #0C1C2E;
  --navy2:  #1A3050;
  --gold:   #B8966A;
  --gold2:  #C9A87C;

  /* Surfaces */
  --cream:  #F2F2F7;
  --cream2: #FFFFFF;
  --cream3: #E5E5EA;

  /* Text */
  --text:   #1C1C1E;
  --muted:  #6E6E73;
  --ghost:  #AEAEB2;

  /* iOS separator */
  --border: rgba(60,60,67,0.15);

  /* iOS system colours */
  --red:    #FF3B30;
  --green:  #34C759;
  --blue:   #007AFF;
  --orange: #FF9500;
  --purple: #AF52DE;

  /* Geometry */
  --radius:     16px;
  --radius-sm:  12px;
  --radius-xs:  8px;

  /* Shadows */
  --shadow:    0 1px 6px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 3px 10px rgba(0,0,0,0.05);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
}
h1 { font-size: 2.2rem; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 1.25rem; margin-bottom: .75rem; }
h3 { font-size: 1.05rem; margin-bottom: .4rem; }
p { line-height: 1.65; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  background: rgba(10,22,38,0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 2rem;
  letter-spacing: 0.03em;
}
.nav-brand span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
}
.nav-links a {
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  font-weight: 500;
  padding: 0 0.8rem;
  height: 56px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.nav-links a:hover { color: rgba(255,255,255,0.88); }
.nav-links a.active { color: #fff; border-bottom-color: var(--gold); }
.nav-help { margin-left: auto; }
.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.14); }

@media (max-width: 768px) {
  .nav { padding: 0 1rem; height: 52px; }
  .nav-brand { margin-right: 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 52px;
    left: 0; right: 0;
    background: rgba(10,22,38,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 199;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    height: 48px;
    padding: 0 1.25rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav-links a.active { border-left-color: var(--gold); border-bottom: none; color: #fff; }
  .nav-help { margin-left: 0; }
}

/* ── Main ──────────────────────────────────────────────────── */
.main { max-width: 1440px; margin: 0 auto; padding: 2rem 1.5rem; }
@media (max-width: 768px) { .main { padding: 1.25rem 1rem; } }

/* ── Page header ───────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.subtitle { color: var(--muted); margin-top: .25rem; font-size: .875rem; }
.back-link {
  color: var(--muted);
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .5rem;
}
.back-link:hover { color: var(--gold); }
.header-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
  font-family: inherit;
}
.btn:hover { opacity: 0.82; color: #fff; }
.btn:active { transform: scale(0.96); opacity: 0.72; }
.btn--ghost {
  background: rgba(120,120,128,0.12);
  color: var(--text);
  border: none;
}
.btn--ghost:hover { background: rgba(120,120,128,0.2); color: var(--text); opacity: 1; }
.btn--sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: var(--gold2); color: #fff; opacity: 1; }
.btn--danger { background: transparent; color: var(--red); }
.btn--danger:hover { background: rgba(255,59,48,0.1); color: var(--red); opacity: 1; }

/* ── Flash messages ────────────────────────────────────────── */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.flash--success { background: rgba(52,199,89,0.12); color: #186b30; }
.flash--warn    { background: rgba(255,149,0,0.12); color: #8a5200; }
.flash--error   { background: rgba(255,59,48,0.10); color: #c0392b; }

/* ── Badges ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge--lg { font-size: 12px; padding: 4px 12px; }
.badge--new       { background: rgba(0,122,255,0.12); color: #0056cc; }
.badge--contacted { background: rgba(255,149,0,0.14); color: #b86600; }
.badge--quoted    { background: rgba(175,82,222,0.12); color: #7b3fb5; }
.badge--booked    { background: rgba(52,199,89,0.14); color: #1a7a38; }
.badge--completed { background: rgba(12,28,46,0.08); color: var(--navy); }
.badge--lost      { background: rgba(255,59,48,0.10); color: #c0392b; }
.badge--alert     { background: var(--gold); color: #fff; }
.badge--draft     { background: rgba(120,120,128,0.12); color: var(--muted); }
.badge--sent      { background: rgba(0,122,255,0.12); color: #0056cc; }
.badge--accepted  { background: rgba(52,199,89,0.14); color: #1a7a38; }
.badge--declined  { background: rgba(255,59,48,0.10); color: #c0392b; }

/* ── Tags ──────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: rgba(120,120,128,0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.tag--gold { background: rgba(184,150,106,0.15); color: #7a5200; }
.tag--muted { background: transparent; color: var(--ghost); border: 1px solid var(--border); }
.tag--sm { font-size: 10px; padding: 1px 7px; }

/* ── Stats grid ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card--link { cursor: pointer; }
.stat-card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-top: .45rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-label--new       { color: #0056cc; }
.stat-label--contacted { color: #b86600; }
.stat-label--quoted    { color: #7b3fb5; }
.stat-label--booked    { color: #1a7a38; }
.stat-label--completed { color: var(--navy); }
.stat-label--lost      { color: #c0392b; }

/* ── Section ───────────────────────────────────────────────── */
.section { margin-bottom: 2.5rem; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  gap: 1rem;
}
.section-header h2 { margin-bottom: 0; display: flex; align-items: center; gap: .5rem; }
.link-sm { font-size: .8rem; color: var(--muted); }
.link-sm:hover { color: var(--gold); }

/* ── Card list (grouped table style) ──────────────────────── */
.card-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 13px 16px;
  box-shadow: none;
  transition: background 0.12s;
}
.card-list > .card:last-child,
.card-list > a:last-child > .card,
.card-list > a.card:last-child { border-bottom: none; }
.card-list > a.card { display: flex; }
.card--link { cursor: pointer; }
.card--link:hover { background: rgba(0,0,0,0.025); color: inherit; }
.card--alert { border-left: 3px solid var(--gold); padding-left: 13px; background: rgba(184,150,106,0.04); }
.card-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.card-title { font-weight: 600; color: var(--text); font-size: 15px; }
.card-meta  { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.card-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex-shrink: 0; }

/* Empty state inside card-list */
.card-list .empty-state { box-shadow: none; border-radius: 0; background: transparent; }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  padding: 3rem 1rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.empty-state-title { font-weight: 600; color: var(--navy); margin-bottom: .5rem; font-size: 16px; }
.empty-state-body  { color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty { color: var(--muted); font-size: 13px; padding: .5rem 0; }

/* ── Filter bar ────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.filter-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.search-input {
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 13px;
  background: rgba(120,120,128,0.12);
  min-width: 200px;
  font-family: inherit;
  color: var(--text);
  transition: background 0.15s, box-shadow 0.15s;
}
.search-input::placeholder { color: var(--ghost); }
.search-input:focus { outline: none; background: rgba(120,120,128,0.18); box-shadow: 0 0 0 3px rgba(184,150,106,0.18); }
.select {
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  background: rgba(120,120,128,0.12);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: background 0.15s;
}
.select:focus { outline: none; background: rgba(120,120,128,0.18); }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  text-align: left;
  padding: 11px 16px;
  font-size: 11px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14px; }
.table tr:last-child td { border-bottom: none; }
.table-row { cursor: pointer; transition: background 0.1s; }
.table-row:hover { background: rgba(0,0,0,0.025); }
.td-name { font-weight: 600; font-size: 15px; color: var(--text); }
.td-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.td-muted { color: var(--muted); font-size: 13px; }

/* ── Pipeline ──────────────────────────────────────────────── */
.pipeline {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  align-items: flex-start;
  padding-bottom: 1.5rem;
}
.pipeline::-webkit-scrollbar { height: 4px; }
.pipeline::-webkit-scrollbar-track { background: transparent; }
.pipeline::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 2px; }
.pipeline-hint { color: var(--muted); font-size: 12px; margin-top: .5rem; }
.pipeline-col {
  flex: 0 0 232px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.pipeline-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.pipeline-col-title {
  font-weight: 700;
  font-size: 11px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.pipeline-col-count {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
}
.pipeline-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.pipeline-cards.drag-over { background: rgba(184,150,106,0.14); }
.pipeline-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: grab;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pipeline-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pipeline-card.dragging { opacity: .35; transform: scale(0.97); }
.pipeline-card-name { font-weight: 600; font-size: 14px; display: block; margin-bottom: .1rem; color: var(--text); }
.pipeline-card-sub   { font-size: 12px; color: var(--muted); margin-bottom: .1rem; }
.pipeline-card-email { color: var(--ghost); font-size: 11px; }
.pipeline-card-meta  { color: var(--muted); font-size: 11px; margin-top: .35rem; }
.pipeline-card-tags  { display: flex; gap: .25rem; flex-wrap: wrap; margin-top: .4rem; }
.pipeline-card-reminder { color: var(--gold); font-size: 11px; margin-top: .3rem; font-weight: 600; }
.pipeline-card-clash { color: #c0392b; font-size: 11px; margin-top: .3rem; font-weight: 600; cursor: default; }
.pipeline-empty { color: var(--ghost); font-size: 12px; padding: .5rem 0; text-align: center; }

/* ── Detail layout ─────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.contact-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }

.info-bar {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}
.info-item { display: flex; align-items: center; gap: .35rem; font-size: 14px; color: var(--text); }
.info-item:hover { color: var(--gold); }
.info-item--muted { color: var(--muted); cursor: default; }
.info-icon { font-size: .9rem; }

.card-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

/* ── Enquiry grid ──────────────────────────────────────────── */
.enquiry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.25rem; }
.enquiry-item { display: flex; flex-direction: column; gap: .1rem; }
.enquiry-item--full { grid-column: 1 / -1; }
.enquiry-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
@media (max-width: 500px) { .enquiry-grid { grid-template-columns: 1fr; } }

/* ── Activity timeline ─────────────────────────────────────── */
.timeline { display: flex; flex-direction: column; }
.timeline-item { display: flex; gap: .85rem; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: .4rem;
  background: #fff;
  border: 2px solid var(--border);
}
.timeline-item--enquiry  .timeline-dot { background: var(--blue); border-color: var(--blue); }
.timeline-item--email    .timeline-dot { background: var(--gold); border-color: var(--gold); }
.timeline-item--status   .timeline-dot { background: var(--purple); border-color: var(--purple); }
.timeline-item--reminder .timeline-dot { background: var(--green); border-color: var(--green); }
.timeline-item--note     .timeline-dot { background: var(--muted); border-color: var(--muted); }
.timeline-body { flex: 1; min-width: 0; }
.timeline-header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; flex-wrap: wrap; }
.timeline-kind { font-weight: 600; font-size: 13px; }
.timeline-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.timeline-subject { font-size: 13px; font-weight: 500; margin-bottom: .15rem; }
.timeline-text { font-size: 13px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }

/* ── Stage buttons ─────────────────────────────────────────── */
.stage-buttons { display: flex; flex-direction: column; gap: .35rem; }
.stage-btn {
  padding: 9px 14px;
  border: none;
  border-radius: var(--radius-xs);
  background: rgba(120,120,128,0.08);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: background 0.12s;
  font-family: inherit;
  color: var(--text);
}
.stage-btn:hover { background: rgba(120,120,128,0.16); }
.stage-btn--active { background: var(--navy); color: #fff; }
.stage-btn--active:hover { background: var(--navy2); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  max-width: 600px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 500px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group--sm { margin-bottom: .65rem; }
.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: none;
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(120,120,128,0.1);
  color: var(--text);
  transition: background 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(120,120,128,0.15);
  box-shadow: 0 0 0 3px rgba(184,150,106,0.2);
}
.form-actions { display: flex; gap: .5rem; }
.required { color: var(--red); }
.optional { color: var(--ghost); font-weight: 400; }

/* ── Reminders ─────────────────────────────────────────────── */
.reminder-list { list-style: none; margin-bottom: .85rem; }
.reminder-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.5;
}
.reminder-item--overdue { color: var(--red); }
.reminder-form { margin-top: .5rem; }

/* ── Notes textarea ────────────────────────────────────────── */
.notes-textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: .6rem;
  background: rgba(120,120,128,0.1);
  color: var(--text);
  transition: background 0.15s, box-shadow 0.15s;
}
.notes-textarea:focus { outline: none; background: rgba(120,120,128,0.15); box-shadow: 0 0 0 3px rgba(184,150,106,0.2); }

/* ── Import ────────────────────────────────────────────────── */
.import-form { display: flex; flex-direction: column; gap: .85rem; margin-top: 1.1rem; }

/* ── Help page ─────────────────────────────────────────────── */
.help-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .help-grid { grid-template-columns: 1fr; } }
.help-step { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: flex-start; }
.help-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: .1rem;
}
.help-step p { color: var(--muted); font-size: 14px; margin-top: .2rem; }
.help-note {
  font-size: 13px;
  background: rgba(255,149,0,0.1);
  border-radius: var(--radius-xs);
  padding: .45rem .75rem;
  margin-top: .4rem;
  color: #8a5200;
}
.help-success-note {
  font-size: 13px;
  background: rgba(52,199,89,0.1);
  border-radius: var(--radius-xs);
  padding: .45rem .75rem;
  margin-top: .4rem;
  color: #186b30;
}
.code-block {
  display: inline-block;
  background: rgba(120,120,128,0.1);
  border-radius: 6px;
  padding: .25rem .65rem;
  font-family: 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}
code {
  background: rgba(120,120,128,0.1);
  padding: .15rem .4rem;
  border-radius: 5px;
  font-size: 13px;
  font-family: 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
  color: var(--text);
}
.help-dl { display: flex; flex-direction: column; gap: .85rem; }
.help-dl dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: .15rem;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}
.help-dl dd { font-size: 14px; }
.checklist { list-style: none; display: flex; flex-direction: column; }
.checklist-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 14px;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item::before { content: '○'; color: var(--ghost); font-size: .9rem; flex-shrink: 0; line-height: 1; }
.checklist-item--done::before { content: '✓'; color: var(--green); font-weight: 700; }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: .25rem; padding-left: 0; }
.tips-list li {
  font-size: 14px;
  color: var(--muted);
  padding: .35rem 0 .35rem 1.1rem;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
}
.tips-list li:last-child { border-bottom: none; }
.tips-list li::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-size: 1.3rem; top: .15rem; }

/* ── Pipeline explainer ────────────────────────────────────── */
.pipeline-explainer { display: flex; flex-direction: column; margin-top: 1rem; border-radius: var(--radius-sm); overflow: hidden; }
.pe-stage { padding: 10px 16px; font-size: 14px; }
.pe-stage--new       { background: rgba(0,122,255,0.08); }
.pe-stage--contacted { background: rgba(255,149,0,0.08); }
.pe-stage--quoted    { background: rgba(175,82,222,0.08); }
.pe-stage--booked    { background: rgba(52,199,89,0.08); }
.pe-stage--completed { background: rgba(120,120,128,0.08); }
.pe-stage--lost      { background: rgba(255,59,48,0.06); }
.pe-arrow { color: var(--ghost); padding: .1rem 1rem; font-size: 14px; background: rgba(0,0,0,0.02); }

/* ── Services page ─────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.service-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-md); transition: transform 0.15s, box-shadow 0.15s; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.service-card--muted { background: rgba(120,120,128,0.06); box-shadow: none; }
.service-card--muted:hover { transform: none; box-shadow: none; }
.service-icon { font-size: 2rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); font-size: 14px; margin-top: .35rem; margin-bottom: .75rem; }
.service-tags { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ── Menus page ────────────────────────────────────────────── */
.menu-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.menu-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.menu-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.menu-card--inactive { opacity: .5; }
.menu-card-top { display: flex; align-items: center; gap: .4rem; margin-bottom: .6rem; flex-wrap: wrap; }
.menu-course-badge {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(120,120,128,0.1);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.menu-dietary {
  font-size: 10px;
  color: #7a5200;
  font-weight: 700;
  background: rgba(184,150,106,0.15);
  padding: 2px 8px;
  border-radius: 999px;
}
.menu-card-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 600; margin-bottom: .3rem; color: var(--navy); }
.menu-card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: .5rem; }
.menu-card-price { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: .75rem; }
.menu-card-actions { display: flex; gap: .4rem; }

/* ── Quotes on contact detail ──────────────────────────────── */
.quote-list { list-style: none; display: flex; flex-direction: column; margin-bottom: .75rem; }
.quote-list-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.quote-list-item:last-child { border-bottom: none; }
.quote-list-link { font-weight: 600; font-size: 14px; display: block; margin-bottom: .2rem; }
.quote-list-meta { display: flex; align-items: center; gap: .5rem; }
.quote-list-date { font-size: 12px; color: var(--muted); }

/* ── Form input prefix (£) ─────────────────────────────────── */
.input-prefix {
  display: flex;
  align-items: center;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: rgba(120,120,128,0.1);
}
.input-prefix span {
  padding: 0 .6rem;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  border-right: 1px solid rgba(120,120,128,0.15);
}
.input-prefix input { border: none !important; border-radius: 0 !important; flex: 1; background: transparent !important; box-shadow: none !important; }

/* ── Checkbox label ────────────────────────────────────────── */
.checkbox-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: 14px; }
.checkbox-label input { width: auto; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }
