:root {
  --bg: #fcf9fa;
  --surface: #ffffff;
  --surface-soft: #f6eff2;
  --border: #eadce2;
  --border-strong: #c99eaa;
  --ink: #100a2b;
  --ink-muted: #5c4f61;
  --primary: #7b0d35;
  --primary-hover: #4e0a23;
  --primary-soft: #f6eff2;
  --dusty-rose: #c99eaa;
  --success: #2f6f4e;
  --success-hover: #24583d;
  --success-soft: #edf7f1;
  --amber: #a86c14;
  --amber-soft: #fef6e8;
  --indigo: #4b5ea8;
  --indigo-soft: #eef1fb;
  --danger: #b52b45;
  --danger-soft: #fdeef1;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 3px 14px rgba(16, 10, 43, 0.05);
  --shadow-lg: 0 20px 50px rgba(78, 10, 35, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Heebo", Arial, sans-serif;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.jsd-container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

/* ── Sticky White Brand Header (#masthead) ───────────────────────────────── */
.jsd-masthead {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #ffffff;
  border-bottom: 1px solid #c99eaa;
  min-height: 76px;
  display: flex;
  align-items: center;
}

.jsd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.jsd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.jsd-heart-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f6eff2;
  border: 1.5px solid #c99eaa;
  color: #7b0d35;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.jsd-brand-title {
  font-size: 1rem;
  font-weight: 800;
  color: #100a2b;
  letter-spacing: -0.01em;
}

/* ── Full-Bleed Blush Hero Banner (.jsd-v3-hero) ────────────────────────── */
.jsd-hero-banner {
  background: #f6eff2;
  border-bottom: 1px solid #e7dce0;
  padding: 28px 0;
}

.jsd-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.jsd-hero-copy {
  text-align: right;
  max-width: 440px;
}

.brand-wordmark {
  font-family: "Caveat", cursive;
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  font-weight: 600;
  color: #7b0d35;
  line-height: 1;
  margin-bottom: 6px;
  text-align: right;
}

.jsd-hero-title {
  margin: 0 0 4px;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  font-weight: 800;
  color: #100a2b;
  letter-spacing: -0.02em;
}

.jsd-hero-sub {
  margin: 0;
  font-size: 0.94rem;
  color: #5a4b52;
}

.jsd-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(115px, 1fr));
  gap: 12px;
  flex: 1;
  max-width: 580px;
}

.hero-stat {
  background: #ffffff;
  border: 1px solid #efe4e8;
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(78, 10, 35, 0.045);
}

.hero-stat-accent {
  background: #7b0d35;
  border-color: #7b0d35;
  color: #ffffff;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #5a4b52;
}

.hero-stat-accent .hero-stat-label,
.hero-stat-accent .hero-stat-sub {
  color: #f6eff2;
}

.hero-stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #100a2b;
  line-height: 1.2;
}

.hero-stat-accent .hero-stat-val {
  color: #ffffff;
}

.hero-stat-sub {
  font-size: 0.74rem;
  color: #5a4b52;
}

.app-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

/* ── Deep Wine Brand Footer (#colophon .dana-footer) ────────────────────── */
.jsd-footer {
  background: #4e0a23;
  color: #f6eff2;
  padding: 24px 0;
  margin-top: 32px;
  font-size: 0.88rem;
}

.jsd-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.jsd-footer-brand {
  font-family: "Caveat", cursive;
  font-size: 1.55rem;
  font-weight: 600;
  color: #f6eff2;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-outline-wine {
  background: #ffffff;
  color: #7b0d35;
  border: 1.5px solid #c99eaa;
}
.btn-outline-wine:hover {
  background: #7b0d35;
  border-color: #7b0d35;
  color: #ffffff;
}

/* ── Pills & Badges ──────────────────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-demo {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #f0d7a3;
}

.pill-live {
  background: #f6eff2;
  color: #7b0d35;
  border: 1px solid #c99eaa;
}

.pill-muted {
  background: var(--surface-soft);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

/* ── Navigation Tabs (inside #masthead) ─────────────────────────────────── */
.nav-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.nav-tab {
  background: transparent;
  border: none;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: #100a2b;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav-tab:hover {
  color: #7b0d35;
  background: #fcf9fa;
}

.nav-tab.active {
  color: #7b0d35;
  border-bottom-color: #7b0d35;
}

.tab-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

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

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

.btn-sm {
  padding: 6px 12px;
  font-size: 0.83rem;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: var(--success-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-soft);
}

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

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: #e6b8b8;
}
.btn-outline-danger:hover {
  background: var(--danger-soft);
}

/* ── Stats Grid ──────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 4px solid var(--border);
}

.stat-amber { border-top-color: var(--amber); }
.stat-indigo { border-top-color: var(--indigo); }
.stat-rose { border-top-color: var(--danger); }
.stat-sage { border-top-color: var(--success); }

.stat-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* ── Demo Bar ────────────────────────────────────────────────────────────── */
.demo-bar {
  background: var(--amber-soft);
  border: 1px dashed #dfba6d;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-bar-text {
  font-size: 0.88rem;
  color: #6b470c;
}

.demo-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Attention Sections (Pending & Draft Review) ─────────────────────────── */
.attention-section {
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
  border: 1.5px solid #ecc98c;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.draft-section {
  background: linear-gradient(180deg, #f4f6fe 0%, #ffffff 100%);
  border-color: #bfc8f0;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
}

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

.attention-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attention-card-title {
  font-weight: 700;
  font-size: 1rem;
}

.attention-card-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.attention-card-payer {
  font-size: 0.84rem;
  background: var(--surface-soft);
  padding: 6px 10px;
  border-radius: 8px;
}

.attention-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* ── Cards & Lists ───────────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border: 1px solid #efe4e8;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 6px 22px rgba(78, 10, 35, 0.055);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #281d22;
}

.info-banner {
  background: #fcf9fa;
  color: #4e0a23;
  border: none;
  border-right: 3px solid #7b0d35;
  border-radius: 0;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--surface-soft);
  border: 1px solid transparent;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--primary);
  color: #fff;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  flex-wrap: wrap;
}

.lesson-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 220px;
  flex: 1;
}

.lesson-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lesson-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.lesson-meta {
  font-size: 0.83rem;
  color: var(--ink-muted);
}

.lesson-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-awaiting_confirmation { background: var(--amber-soft); color: var(--amber); }
.badge-draft_review { background: var(--indigo-soft); color: var(--indigo); }
.badge-yesh_draft { background: var(--indigo-soft); color: var(--indigo); border: 1px solid #c5cef2; }
.badge-paid_invoiced { background: var(--success-soft); color: var(--success); }
.badge-unpaid { background: var(--danger-soft); color: var(--danger); }
.badge-scheduled { background: var(--surface-soft); color: var(--ink-muted); }
.badge-skipped { background: #eceae7; color: #857e76; }

/* ── Calendar View ───────────────────────────────────────────────────────── */
.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cal-month-title {
  margin: 0 !important;
  min-width: 140px;
  text-align: center;
  font-size: 1.15rem;
}

.cal-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-paid { background: #7b0d35; }
.dot-awaiting { background: #4e0a23; }
.dot-unpaid { background: #c99eaa; }
.dot-scheduled { background: #d6c8ce; }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-cell {
  min-height: 102px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-cell-other {
  background: #faf7f3;
  opacity: 0.55;
}

.cal-cell-today {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
  background: #fffaf7;
}

.cal-day-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.cal-cell-today .cal-day-num {
  background: var(--primary);
  color: #fff;
}

.cal-event {
  display: block;
  width: 100%;
  text-align: right;
  border: none;
  border-radius: 6px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: filter 0.12s;
}
.cal-event:hover {
  filter: brightness(0.95);
}

.cal-ev-paid_invoiced { background: #f6eff2; color: #7b0d35; border-right: 3px solid #7b0d35; }
.cal-ev-awaiting_confirmation { background: #7b0d35; color: #ffffff; border-right: 3px solid #4e0a23; }
.cal-ev-draft_review,
.cal-ev-yesh_draft { background: #f2e5ea; color: #4e0a23; border-right: 3px solid #c99eaa; }
.cal-ev-unpaid { background: #fdf2f4; color: #8c1a36; border-right: 3px solid #c99eaa; }
.cal-ev-scheduled { background: #fcf9fa; color: #3d2e35; border-right: 3px solid #d8c7ce; }
.cal-ev-skipped { background: #f4f1f2; color: #8c7e84; text-decoration: line-through; }

@media (max-width: 900px) {
  .jsd-hero-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .cal-cell {
    min-height: 76px;
    padding: 4px;
  }
  .cal-event {
    font-size: 0.68rem;
    padding: 3px 4px;
  }
}

/* ── Students Directory ──────────────────────────────────────────────────── */
.inline-form {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.students-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--ink-muted);
}

/* ── Forms & Settings ────────────────────────────────────────────────────── */
.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select {
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(123, 13, 53, 0.2);
  border-color: var(--primary);
}

.input-lg {
  font-size: 1.25rem !important;
  font-weight: 700;
}

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

.input-with-btn {
  display: flex;
  gap: 8px;
}
.input-with-btn input {
  flex: 1;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 8px 0;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.save-bar {
  display: flex;
  justify-content: flex-end;
}

/* ── Modal & 3-Step Flow ─────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 20, 0.55);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 1000;
  overflow-y: auto;
}

.modal-card {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.step-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.icon-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.icon-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.modal-body {
  padding: 20px 22px 22px;
}

.lesson-summary-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.lesson-summary-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.lesson-summary-meta {
  color: var(--ink-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.lesson-summary-student {
  margin-top: 6px;
  font-size: 0.92rem;
}

.question-prompt {
  font-size: 1.12rem;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 18px;
}

.step1-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step1-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-amounts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.chip-btn {
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.chip-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.info-banner {
  background: var(--indigo-soft);
  color: #2f3e78;
  border: 1px solid #c9d2f2;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.error-banner {
  background: var(--danger-soft);
  color: #8f2322;
  border: 1px solid #eabcbc;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.step3-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Receipt Preview Paper (Step 3) ──────────────────────────────────────── */
.receipt-paper {
  background: #ffffff;
  border: 1.5px solid var(--dusty-rose);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: inset 0 0 0 4px var(--surface-soft);
}

.receipt-paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.receipt-doc-type {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.receipt-badge-preview {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--indigo-soft);
  color: var(--indigo);
  padding: 2px 9px;
  border-radius: 999px;
}

.receipt-date {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.receipt-divider {
  border-top: 1px dashed var(--border-strong);
  margin: 12px 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding: 3px 0;
}

.receipt-key {
  color: var(--ink-muted);
}

.receipt-table {
  margin: 14px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.receipt-table-head,
.receipt-table-row {
  display: grid;
  grid-template-columns: 1fr 56px 90px;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.receipt-table-head {
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--ink-muted);
}

.receipt-table-row {
  background: #fff;
  border-top: 1px solid var(--border);
}

.receipt-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--success-soft);
  border: 1px solid #c3e2cf;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 10px;
}

.receipt-pay-method {
  font-size: 0.88rem;
}

.receipt-email-status {
  font-size: 0.79rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.receipt-total-amount {
  text-align: left;
}
.receipt-total-amount span {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-muted);
}
.receipt-total-amount strong {
  font-size: 1.4rem;
  color: var(--success);
}

.receipt-remarks {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .step1-secondary {
    grid-template-columns: 1fr;
  }
  .modal-footer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .step3-right {
    flex-direction: column;
  }
}
