/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #fffaf7;
  --surface:      #ffffff;
  --surface-soft: #fff5f1;
  --text:         #2e1f22;
  --text-muted:   #8c6f73;
  --primary:      #e26d88;
  --primary-dark: #c94f6b;
  --accent:       #f7b267;
  --success:      #1d8a62;
  --danger:       #b94956;
  --border:       #f0d8dc;
  --ring:         rgba(226,109,136,.22);
  --shadow-sm:    0 2px 8px rgba(226,109,136,.10);
  --shadow-md:    0 8px 28px rgba(226,109,136,.16);
  --shadow-lg:    0 20px 50px rgba(226,109,136,.18);
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, #ffd9d8 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 5%, #ffe9cf 0%, transparent 50%),
    linear-gradient(160deg, #fffaf7 0%, #fff5f2 60%, #fffcf8 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── BG ORBS ────────────────────────────────────────────── */
.bg-orb {
  position: fixed; z-index: -1; border-radius: 50%;
  pointer-events: none; filter: blur(2px); opacity: .55;
}
.orb-1 { width:260px; height:260px; background:linear-gradient(135deg,#ffc6d0,#ffdfc2); top:-80px; right:-80px; animation:drift 13s ease-in-out infinite alternate; }
.orb-2 { width:180px; height:180px; background:linear-gradient(135deg,#ffd4dd,#f6af8d); bottom:22%; left:-60px; animation:drift 10s ease-in-out infinite alternate-reverse; }
.orb-3 { width:200px; height:200px; background:linear-gradient(135deg,#fff0cf,#ffc7ba); bottom:-60px; right:18%; animation:drift 15s ease-in-out infinite alternate; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { width: min(1140px, 94%); margin-inline: auto; }
main { padding: 28px 0 48px; }
.grid-two { display: grid; gap: 20px; }
@media (min-width:960px) {
  .grid-two { grid-template-columns: 1fr 1fr; align-items: start; }
  main { padding-top: 36px; }
}

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(255,250,247,.85);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 0;
}
.brand-kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--primary-dark);
}
.brand-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  color: var(--text); line-height: 1.1;
}
@media (max-width:520px) {
  .topbar-inner { flex-direction:column; align-items:flex-start; }
  .topbar .btn { align-self:stretch; justify-content:center; }
}

/* ─── CARD ───────────────────────────────────────────────── */
.card {
  background: linear-gradient(160deg, #fff 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}
@media (min-width:960px) { .card { padding: 32px 30px; } }

/* ─── HERO ───────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #fff 0%, #fff0f3 55%, #fff8ee 100%);
  position: relative; overflow: hidden;
}
.hero-section::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(247,178,103,.12) 0%, transparent 60%);
  pointer-events:none;
}
.hero-content { position:relative; }
.eyebrow {
  display: inline-block;
  font-size: .73rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--primary-dark), #c8446a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.hero-section h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 5vw, 2.6rem);
  line-height: 1.2; letter-spacing: -.02em;
  margin-bottom: 16px;
}
.hero-section h2 em { font-style: italic; color: var(--primary-dark); }
.hero-desc {
  color: #5f4455; font-size: 1rem; line-height: 1.75; max-width: 540px; margin-bottom: 22px;
}
.hero-pills { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 0; }
.pill {
  font-size: .76rem; font-weight: 600; letter-spacing: .03em;
  border-radius: 999px; padding: 6px 14px;
  background: linear-gradient(135deg,#ffe8e4,#ffd6e4);
  color: #7d3d49; border: 1px solid rgba(226,109,136,.22);
  transition: transform .2s, background .2s;
}
.pill:hover { transform: translateY(-2px); background: linear-gradient(135deg,#ffd4ce,#ffc4d8); }

.hero-trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.trust-item { display:flex; align-items:center; gap:7px; font-size:.83rem; color:var(--text-muted); font-weight:500; }
.trust-icon { font-size:1.1rem; }
.trust-divider { width:1px; height:18px; background:var(--border); }
@media (max-width:480px) { .trust-divider { display:none; } }

/* ─── SECTION HEAD ───────────────────────────────────────── */
.section-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-head-icon {
  font-size: 1.5rem; line-height: 1;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px; flex-shrink: 0;
}
.section-head h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem); line-height: 1.2; margin-bottom: 4px;
}
.section-head p { font-size:.88rem; color:var(--text-muted); margin:0; }

/* ─── FORM ───────────────────────────────────────────────── */
.form-grid { display:grid; gap:16px; }
.field-group { display:grid; gap:7px; }
.field-label { font-size:.88rem; font-weight:600; color:var(--text); }
.label-optional { font-weight:400; color:var(--text-muted); font-size:.82rem; }
.field-input {
  width:100%; border:1.5px solid var(--border); border-radius:var(--r-sm);
  background:#fff; color:var(--text); padding:11px 14px;
  font:inherit; font-size:.93rem;
  transition: border-color .2s, box-shadow .2s;
}
.field-input:focus {
  outline:none; border-color:var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
textarea.field-input { resize:vertical; min-height:80px; }
.split-field { display:grid; gap:14px; }
@media (min-width:480px) { .split-field { grid-template-columns:1fr 1fr; } }

.input-prefix-wrap { display:flex; align-items:stretch; }
.input-prefix {
  display:flex; align-items:center; padding:0 12px;
  background:var(--surface-soft); border:1.5px solid var(--border);
  border-right:none; border-radius:var(--r-sm) 0 0 var(--r-sm);
  font-size:.88rem; color:var(--text-muted); font-weight:600; white-space:nowrap;
}
.field-input.has-prefix { border-radius:0 var(--r-sm) var(--r-sm) 0; }

/* ─── DP NOTE ────────────────────────────────────────────── */
.dp-note {
  display:flex; align-items:flex-start; gap:12px;
  background:linear-gradient(135deg,#fff9f0,#fff3e0);
  border:1.5px solid #ffe0b2; border-radius:var(--r-md); padding:14px 16px;
}
.dp-note-icon { font-size:1.3rem; flex-shrink:0; margin-top:1px; }
.dp-note strong { font-size:.9rem; color:#7a4a00; display:block; margin-bottom:4px; }
.dp-note p { font-size:.82rem; color:#8a5e00; margin-bottom:8px; }

/* Bank info card inside dp-note */
.bank-info-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.7);
  border: 1.5px solid #ffd08a;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-top: 4px;
}
.bank-logo-wrap { display: flex; align-items: center; gap: 6px; }
.bank-icon { font-size: 1.1rem; }
.bank-name {
  font-weight: 700; font-size: .85rem; color: #5a3800;
  letter-spacing: .02em; text-transform: uppercase;
}
.bank-num-wrap { display: flex; flex-direction: column; }
.bank-label { font-size: .7rem; color: #8a6500; text-transform: uppercase; letter-spacing: .06em; }
.bank-number {
  font-family: "Courier New", monospace;
  font-size: 1rem; font-weight: 700; letter-spacing: .08em;
  color: #3a2200;
}

/* ─── FILE UPLOAD ────────────────────────────────────────── */
.file-upload-area {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  border:2px dashed var(--border); border-radius:var(--r-md);
  padding:22px 16px; cursor:pointer; text-align:center;
  background:var(--surface-soft);
  transition:border-color .2s, background .2s;
}
.file-upload-area:hover { border-color:var(--primary); background:#fff5f8; }
.file-icon { font-size:1.6rem; }
.file-text { font-size:.9rem; font-weight:600; color:var(--primary-dark); }
.file-upload-area small { font-size:.78rem; color:var(--text-muted); }
.file-input-hidden { position:absolute; opacity:0; pointer-events:none; width:1px; height:1px; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  border:none; border-radius:var(--r-sm); padding:12px 20px;
  font:inherit; font-size:.93rem; font-weight:600; cursor:pointer;
  text-decoration:none; transition:transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform:translateY(-2px); }
.btn:active { transform:translateY(0); }
.btn-sm { padding:9px 16px; font-size:.84rem; }
.btn-full { width:100%; }
.btn-primary {
  background:linear-gradient(145deg, var(--primary), var(--primary-dark));
  color:#fff; box-shadow:0 10px 24px rgba(201,79,107,.3);
}
.btn-primary:hover { box-shadow:0 14px 30px rgba(201,79,107,.38); }
.btn-outline {
  border:1.5px solid #e6bfc5; color:#7f4a57;
  background:rgba(255,255,255,.75);
}
.btn-glow { animation:btnGlow 2.8s ease-in-out infinite; }

/* ─── MESSAGES ───────────────────────────────────────────── */
.message { font-size:.88rem; min-height:18px; color:var(--text-muted); }
.message.success { color:var(--success); font-weight:500; }
.message.error   { color:var(--danger);  font-weight:500; }
.helper-text { font-size:.82rem; color:var(--text-muted); }
.helper-text code { background:var(--surface-soft); padding:2px 6px; border-radius:5px; font-family:monospace; }

/* ─── AVAILABILITY GRID ──────────────────────────────────── */
.availability-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:7px; margin-bottom:14px;
}
@media (min-width:500px) { .availability-grid { grid-template-columns:repeat(7,1fr); } }

.date-card {
  border:1.5px solid var(--border); border-radius:var(--r-sm);
  padding:8px 4px; background:#fff; text-align:center;
  transition: transform .2s, border-color .2s;
}
.date-card:hover { transform:translateY(-2px); }
.date-card strong { display:block; font-size:.82rem; font-weight:700; }
.date-card small  { color:var(--text-muted); font-size:.68rem; display:block; margin-top:2px; }
.date-card.booked {
  border-color:#f0a8ba; background:linear-gradient(135deg,#fff1f4,#ffeaf3);
}
.date-card.booked small { color:var(--primary-dark); font-weight:600; }

.legend-row {
  display:flex; gap:16px; align-items:center;
  margin-bottom:16px; font-size:.8rem; color:var(--text-muted);
}
.legend-item { display:flex; align-items:center; gap:5px; }
.legend-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.dot-free   { background:#e8f5ef; border:2px solid #7bbfa0; }
.dot-booked { background:#fff1f4; border:2px solid #f0a8ba; }

/* ─── STATUS PANELS ──────────────────────────────────────── */
.status-panels { display:grid; gap:12px; margin-bottom:18px; }
@media (min-width:480px) { .status-panels { grid-template-columns:1fr 1fr; } }

.status-panel {
  border-radius:var(--r-md); padding:14px 16px; border:1.5px solid var(--border);
}
.panel-free   { background:linear-gradient(135deg,#f2fbf6,#eafaf2); border-color:#b8e8d0; }
.panel-booked { background:linear-gradient(135deg,#fff4f6,#ffeaf3); border-color:#f0b8c8; }

.status-panel-title { margin-bottom:10px; }
.status-badge {
  font-size:.75rem; font-weight:700; border-radius:999px; padding:4px 10px;
}
.dot-free   { background:var(--primary-light); }
.dot-partial { background: #fbbf24; }
.dot-booked { background:var(--primary); }
.dot-past   { background: #e0d0d5; }
.badge-free   { background:#d1f0e1; color:#1a7a52; }
.badge-booked { background:#ffd6e2; color:#a83050; }

.status-list {
  padding:0; list-style:none; display:grid; gap:5px;
  max-height:170px; overflow-y:auto;
}
.status-list li {
  font-size:.82rem; color:#5f4f51; padding:5px 8px;
  background:rgba(255,255,255,.7); border-radius:7px;
}
.status-list .empty { color:var(--text-muted); font-style:italic; background:transparent; }

/* ─── UPCOMING BOOKINGS ──────────────────────────────────── */
.next-bookings-wrap {
  border-top:1px solid var(--border); padding-top:16px;
}
.next-bookings-title {
  display:flex; align-items:center; gap:6px;
  font-size:.92rem; font-weight:700; color:var(--text); margin-bottom:12px;
}
.next-bookings-title svg { color:var(--accent); }
.upcoming-list { list-style:none; display:grid; gap:8px; max-height:180px; overflow-y:auto; }
/* ─── MONTHLY CALENDAR ───────────────────────────────────── */
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.cal-nav-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text); transition: background .18s, border-color .18s, transform .15s;
  flex-shrink: 0;
}
.cal-nav-btn:hover { background: var(--surface-soft); border-color: var(--primary); transform: scale(1.08); }
.cal-month-label {
  font-size: .98rem; font-weight: 700; color: var(--text);
  text-align: center; flex: 1; text-transform: capitalize;
}

.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px; gap: 3px;
}
.cal-weekdays span {
  text-align: center; font-size: .68rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted);
  padding: 3px 0;
}

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

.cal-day {
  aspect-ratio: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  background: none; cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s;
  padding: 0;
}
.cal-day.cal-empty { background: transparent !important; cursor: default; border: none; }

.cal-day-num  { font-size: .82rem; font-weight: 700; line-height: 1; color: inherit; }
.cal-day-status { font-size: .58rem; margin-top: 2px; color: inherit; opacity: .75; font-weight: 600; }

/* Available */
.cal-day.available {
  background: linear-gradient(135deg,#f0fdf5,#dcfce7);
  border-color: #bbf7d0; color: #166534;
}
.cal-day.available:hover:not(:disabled) {
  background: linear-gradient(135deg,#dcfce7,#a7f3d0);
  border-color: #4ade80;
  transform: scale(1.1); box-shadow: 0 4px 12px rgba(74,222,128,.25);
}

/* Booked (all sessions full) */
.cal-day.booked {
  background: linear-gradient(135deg,#fff5f7,#ffe4e8);
  border-color: rgba(226,109,136,.3); color: var(--primary-dark);
  cursor: default;
}

/* Partial (some sessions still free) */
.cal-day.partial {
  background: linear-gradient(135deg,#fffbeb,#fef3c7);
  border-color: #fcd34d; color: #92400e; cursor: pointer;
}
.cal-day.partial:hover {
  background: linear-gradient(135deg,#fef3c7,#fde68a);
  border-color: #f59e0b;
  transform: scale(1.08); box-shadow: 0 4px 10px rgba(245,158,11,.2);
}

/* Past */
.cal-day.past {
  background: transparent; border-color: transparent;
  color: #d0c0c5; cursor: default;
}
.cal-day.past .cal-day-num { font-weight: 400; }

/* Today highlight */
.cal-day.today { outline: 2px solid var(--primary); outline-offset: 1px; }
.cal-day.today .cal-day-num { color: var(--primary-dark); }

/* Legend update */
.dot-past { background: #e0d0d5; }

.upcoming-list li {
  font-size:.84rem; color:#5f4f51;
  background:linear-gradient(135deg,#fff8f5,#fff0f6);
  border:1px solid var(--border); border-radius:var(--r-sm);
  padding:9px 12px; display:flex; align-items:center; gap:8px;
}
.upcoming-list li::before { content:"✦"; color:var(--primary); font-size:.65rem; flex-shrink:0; }
.upcoming-list .empty { color:var(--text-muted); font-style:italic; background:transparent; border:none; }


/* ─── ADMIN SECTION ──────────────────────────────────────── */
.admin-section { }
.admin-login-wrap { max-width:420px; margin-inline:auto; }
.admin-login-form { display:grid; gap:16px; }

.dashboard-topbar {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; margin-bottom:20px;
}
.dashboard-title {
  font-family:"Playfair Display",serif; font-size:1.25rem; line-height:1.2; margin-bottom:3px;
}
.dashboard-sub { font-size:.83rem; color:var(--text-muted); }

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:20px; }
@media (max-width:480px) { .stats-grid { grid-template-columns:1fr; } }

.stat-card {
  position:relative; overflow:hidden;
  background:linear-gradient(135deg,#fff,var(--surface-soft));
  border:1.5px solid var(--border); border-radius:var(--r-md);
  padding:16px 16px 14px;
}
.stat-card::after {
  content:""; position:absolute; bottom:-20px; right:-16px;
  width:70px; height:70px; border-radius:50%;
  background:rgba(226,109,136,.07);
}
.stat-label { font-size:.78rem; color:var(--text-muted); font-weight:500; margin-bottom:6px; }
.stat-value { display:block; font-size:2rem; font-weight:700; line-height:1; color:var(--text); }
.stat-icon {
  position:absolute; top:14px; right:14px;
  font-size:1.3rem; opacity:.5;
}
.stat-today .stat-value   { color:var(--primary-dark); }
.stat-upcoming .stat-value { color:#c07a2b; }

/* ─── TABLE ──────────────────────────────────────────────── */
.table-wrap {
  overflow-x:auto; border-radius:var(--r-md);
  border:1.5px solid var(--border);
  box-shadow:var(--shadow-sm);
}
table { width:100%; border-collapse:collapse; min-width:900px; background:#fff; }
th, td { padding:12px 14px; text-align:left; font-size:.86rem; border-bottom:1px solid #f2e5e8; vertical-align:top; }
th { background:linear-gradient(90deg,#fff8f5,#fff3f7); font-weight:700; color:#7f4a57; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
tr:last-child td { border-bottom:none; }
tr:hover td { background:#fffbfc; }

.delete-btn {
  padding:6px 12px; border-radius:7px; border:none;
  background:linear-gradient(135deg,#d44f63,#b93c4f);
  color:#fff; font:inherit; font-size:.8rem; font-weight:600; cursor:pointer;
  transition:opacity .2s, transform .2s;
}
.delete-btn:hover { opacity:.88; transform:translateY(-1px); }

.proof-link {
  color:var(--primary-dark); font-weight:700; font-size:.85rem;
  text-decoration:none; background:transparent; border:none;
  cursor:pointer; font:inherit; padding:0;
}
.proof-link:hover { text-decoration:underline; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position:fixed; inset:0; z-index:120;
  background:rgba(28,12,18,.65);
  display:grid; place-items:center; padding:20px;
  backdrop-filter:blur(4px);
}
.modal-panel {
  position:relative; width:min(700px,96vw); max-height:90vh;
  background:#fff; border-radius:var(--r-xl);
  padding:20px; box-shadow:0 24px 64px rgba(28,13,18,.4);
  display:flex; flex-direction:column; gap:12px;
}
.modal-close {
  position:absolute; top:-12px; right:-12px;
  width:36px; height:36px; border:none; border-radius:50%;
  background:var(--danger); color:#fff;
  display:grid; place-items:center; cursor:pointer;
  box-shadow:0 4px 12px rgba(185,73,86,.4);
}
.modal-label { font-size:.8rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:.1em; }
.modal-panel img {
  width:100%; max-height:calc(90vh - 80px); object-fit:contain;
  border-radius:var(--r-md); border:1px solid var(--border);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  padding:32px 0 40px; border-top:1px solid var(--border);
  background:linear-gradient(180deg,transparent,rgba(255,240,235,.35));
}
.footer-inner { text-align:center; display:grid; gap:6px; }
.footer-brand { font-size:1.3rem; }
.footer-tagline { font-size:.88rem; color:var(--text-muted); font-style:italic; }
.footer-copy { font-size:.78rem; color:#b08a8e; }

/* ─── REVEAL ANIMATION ───────────────────────────────────── */
[data-reveal] { opacity:0; transform:translateY(18px) scale(.99); transition:opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity:1; transform:translateY(0) scale(1); }

/* ─── UTILITY ────────────────────────────────────────────── */
.hidden { display:none !important; }

/* ─── KEYFRAMES ──────────────────────────────────────────── */
@keyframes drift {
  from { transform:translate(0,0) rotate(0deg); }
  to   { transform:translate(16px,-12px) rotate(8deg); }
}
@keyframes btnGlow {
  0%,100% { box-shadow:0 10px 22px rgba(201,79,107,.28); }
  50%      { box-shadow:0 12px 30px rgba(201,79,107,.45); }
}

/* ═══════════════════════════════════════════════════════════
   INVOICE MODAL
═══════════════════════════════════════════════════════════ */
.invoice-panel {
  width: min(480px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 28px 70px rgba(28,13,18,.42);
  display: flex;
  flex-direction: column;
}

/* ─── Printable Area ────── */
.invoice-print-area {
  padding: 32px 28px 24px;
  display: grid;
  gap: 20px;
}

/* Header */
.inv-header { text-align: center; }
.inv-studio-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--primary-dark); margin-bottom: 6px;
}
.inv-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem; color: var(--text); margin-bottom: 12px; line-height: 1;
}
.inv-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 0 auto 12px; width: 60%;
}
.inv-doc-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-muted);
}

/* Booking Code Box */
.inv-code-box {
  background: linear-gradient(135deg, #fff5f8, #ffeef5);
  border: 2px dashed var(--primary);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-align: center;
}
.inv-code-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px;
}
.inv-code-value {
  font-family: "Courier New", monospace;
  font-size: 1.65rem; font-weight: 700; letter-spacing: .12em;
  color: var(--text); margin-bottom: 6px;
  background: linear-gradient(90deg, var(--primary-dark), #a03060);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.inv-code-hint { font-size: .76rem; color: var(--text-muted); }

/* Detail Rows */
.inv-details {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.inv-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: .87rem;
}
.inv-row:last-child { border-bottom: none; }
.inv-key { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.inv-val { font-weight: 600; color: var(--text); text-align: right; }

/* Payment Box */
.inv-payment-box {
  background: linear-gradient(135deg, #fdf5ff, #fff0f3);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.inv-payment-row, .inv-status-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 11px 16px; font-size: .88rem;
}
.inv-payment-row { border-bottom: 1px solid var(--border); }
.inv-pay-label { color: var(--text-muted); font-weight: 500; }
.inv-pay-amount { font-size: 1.1rem; color: var(--text); }
.inv-status-badge {
  font-size: .78rem; font-weight: 700; border-radius: 999px;
  padding: 5px 12px; background: #fff3c0; color: #8a6500;
  border: 1px solid #f5d98a;
}

/* Note Box */
.inv-note-box {
  background: var(--surface-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 12px 14px;
  display: grid; gap: 5px;
  font-size: .82rem; color: #5f4a52; line-height: 1.55;
}

/* Footer stamp */
.inv-footer-stamp { text-align: center; }
.inv-stamp-line {
  height: 1px; background: var(--border); margin-bottom: 10px;
}
.inv-stamp-brand { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.inv-stamp-time  { font-size: .72rem; color: #c0a0a8; margin-top: 3px; }

/* Invoice Actions */
.invoice-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

/* ─── @media print ──────────────────────────────────────── */
@media print {
  .topbar, main, .footer {
    display: none !important;
  }
  body, html {
    background: #fff !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .modal-overlay {
    position: static !important;
    background: #fff !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }
  .modal-panel, .invoice-panel {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .invoice-actions, .modal-close {
    display: none !important;
  }
  .invoice-print-area {
    padding: 0 !important;
  }
  .inv-code-value {
    -webkit-text-fill-color: var(--primary-dark) !important;
    color: var(--primary-dark) !important;
  }
}

