/* ============================================================
   ShowRev — Shared Design System
   All static pages link to this stylesheet.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0A0A0B;
  --ink-2: #131316;
  --ink-3: #1C1C21;
  --bone: #F5F1EA;
  --bone-2: #EAE3D6;
  --paper: #FBF8F3;
  --line: rgba(10,10,11,0.10);
  --line-strong: rgba(10,10,11,0.18);
  --line-dark: rgba(245,241,234,0.14);
  --muted: #6B6760;
  --muted-dark: #9A958C;
  --coral: oklch(0.72 0.18 35);
  --coral-deep: oklch(0.62 0.20 32);
  --coral-soft: oklch(0.86 0.10 38);
  --acid: oklch(0.92 0.18 105);
  --sky: oklch(0.78 0.10 220);
  --green: oklch(0.72 0.16 155);
  --amber: oklch(0.78 0.14 75);
  --red: oklch(0.62 0.22 25);
  --font-display: 'Instrument Serif','Times New Roman',serif;
  --font-sans: 'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-mono: 'Geist Mono',ui-monospace,'SF Mono',monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --maxw: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--coral); }
h1.display { font-size: clamp(42px,7vw,80px); }
h2.display { font-size: clamp(36px,5vw,64px); }
h3.display { font-size: clamp(24px,3vw,40px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow.on-dark { color: var(--muted-dark); }

p.lede {
  font-size: clamp(17px,1.4vw,21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}

h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

/* ---------- Container / Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.page {
  padding: 100px 0 80px;
  min-height: 100vh;
}

.page-header {
  margin-bottom: 40px;
}
.page-header h1 {
  margin-bottom: 8px;
}
.page-header p {
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--coral-deep); color: var(--bone); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--coral-deep); color: var(--bone); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 12px; font-size: 12px; }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:disabled, .btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------- Site Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.logo-mark {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before, .logo-mark::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--coral);
  mix-blend-mode: screen;
}
.logo-mark::after {
  background: var(--bone);
  transform: translateX(40%);
  mix-blend-mode: difference;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--bone);
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 180ms ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ---------- Site Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--bone);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.footer-links a {
  color: var(--muted-dark);
  transition: color 180ms ease;
}
.footer-links a:hover { color: var(--bone); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.04em;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(10,10,11,0.12);
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-body {
  padding: 24px;
}
.card-img {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.card-img-gradient {
  position: absolute;
  inset: 0;
}

/* ---------- Forms ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.form-input,
.form-select,
.form-textarea {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: white;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px oklch(0.72 0.18 35 / 0.12);
}
.form-input::placeholder { color: var(--muted); }
.form-textarea {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' fill='none' stroke='%236B6760' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 460px;
  margin: 0 auto;
}
.form-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.form-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.form-footer a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead {
  background: var(--bone);
}
th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:hover {
  background: rgba(245,241,234,0.5);
}
.table-actions {
  display: flex;
  gap: 8px;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bone);
  color: var(--muted);
}
.badge-active, .badge-paid, .badge-live {
  background: oklch(0.92 0.08 155);
  color: oklch(0.38 0.12 155);
}
.badge-pending, .badge-draft {
  background: oklch(0.94 0.06 75);
  color: oklch(0.48 0.14 75);
}
.badge-cancelled, .badge-failed, .badge-error {
  background: oklch(0.92 0.06 25);
  color: oklch(0.48 0.18 25);
}
.badge-refunded {
  background: oklch(0.92 0.04 280);
  color: oklch(0.48 0.14 280);
}
.badge-escrow {
  background: oklch(0.92 0.06 220);
  color: oklch(0.42 0.12 220);
}
.badge-in-person {
  background: oklch(0.92 0.08 35);
  color: oklch(0.48 0.16 35);
}
.badge-virtual {
  background: oklch(0.92 0.06 220);
  color: oklch(0.42 0.14 220);
}
.badge-hybrid {
  background: oklch(0.92 0.06 280);
  color: oklch(0.42 0.14 280);
}
.badge-complete {
  background: oklch(0.92 0.08 155);
  color: oklch(0.38 0.12 155);
}
.badge-paused {
  background: var(--bone-2);
  color: var(--muted);
}

/* ---------- Progress bars ---------- */
.progress {
  height: 8px;
  background: var(--bone-2);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--coral);
  border-radius: 4px;
  transition: width 600ms ease;
}
.progress-bar-green { background: var(--green); }
.progress-bar-amber { background: var(--amber); }

/* ---------- Stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-card .stat-change {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  margin-top: 6px;
}

/* ---------- Tabs ---------- */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab:hover { color: var(--ink); }
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--coral);
}

/* ---------- Filter pills ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-pill {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.filter-pill:hover { border-color: var(--ink); }
.filter-pill.active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ---------- Dashboard layout ---------- */
.dash-layout {
  min-height: 100vh;
  padding-top: 64px;
}
.dash-sidebar {
  background: var(--ink);
  border-right: 1px solid var(--line-dark);
  padding: 24px 0;
  position: fixed;
  top: 64px;
  bottom: 0;
  left: 0;
  width: 260px;
  overflow-y: auto;
}
.dash-sidebar-section {
  padding: 0 16px;
  margin-bottom: 24px;
}
.dash-sidebar-section .section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding: 0 12px;
  margin-bottom: 6px;
}
.dash-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: rgba(245,241,234,0.65);
  transition: color 180ms ease, background 180ms ease;
  cursor: pointer;
}
.dash-link:hover {
  color: var(--bone);
  background: rgba(245,241,234,0.06);
}
.dash-link.active {
  color: var(--bone);
  background: rgba(245,241,234,0.10);
}
.dash-link .icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}
.dash-main {
  padding: 32px 40px;
  margin-left: 260px;
  min-width: 0;
}
.dash-main .page-header {
  margin-bottom: 32px;
}
@media (max-width: 880px) {
  .dash-sidebar { display: none; }
  .dash-main { margin-left: 0; padding: 24px 16px; }
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,11,0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 24px 48px -12px rgba(10,10,11,0.25);
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ---------- Messages layout ---------- */
.msg-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  height: 600px;
}
.msg-list {
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.msg-list-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 180ms ease;
}
.msg-list-item:hover { background: var(--bone); }
.msg-list-item.active { background: var(--bone); }
.msg-list-item .msg-name {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}
.msg-list-item .msg-preview {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-list-item .msg-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  float: right;
}
.msg-thread {
  display: flex;
  flex-direction: column;
}
.msg-thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.msg-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.msg-bubble.sent {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bone);
  border-bottom-right-radius: 4px;
}
.msg-bubble.received {
  align-self: flex-start;
  background: var(--bone);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.msg-bubble .msg-bubble-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-dark);
  margin-top: 4px;
}
.msg-input-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.msg-input-bar input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  outline: none;
  font-size: 14px;
}
.msg-input-bar input:focus { border-color: var(--coral); }
@media (max-width: 768px) {
  .msg-layout { grid-template-columns: 1fr; height: auto; }
  .msg-list { max-height: 200px; border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Notification list ---------- */
.notif-item {
  display: flex;
  gap: 16px;
  align-items: start;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
  transition: background 180ms ease;
}
.notif-item.unread {
  background: oklch(0.97 0.02 35);
  border-left: 3px solid var(--coral);
}
.notif-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-item.read .notif-dot { background: var(--bone-2); }
.notif-content { flex: 1; }
.notif-content .notif-text { font-size: 14px; margin-bottom: 4px; }
.notif-content .notif-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Utilities ---------- */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-mono { font-family: var(--font-mono); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.font-display { font-family: var(--font-display); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

.w-full { width: 100%; }
.hidden { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Misc components ---------- */
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}
.avatar-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar-lg { width: 80px; height: 80px; }
.avatar-xl { width: 120px; height: 120px; }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bone);
}

/* ---------- Gradient placeholders ---------- */
.grad-coral { background: linear-gradient(135deg, var(--coral-soft), var(--coral)); }
.grad-ink { background: linear-gradient(135deg, var(--ink-2), var(--ink)); }
.grad-sky { background: linear-gradient(135deg, oklch(0.90 0.06 220), var(--sky)); }
.grad-acid { background: linear-gradient(135deg, oklch(0.95 0.10 105), var(--acid)); }
.grad-warm {
  background: linear-gradient(135deg, #2a1a0e, #0a0a0b);
}
.grad-purple {
  background: linear-gradient(135deg, oklch(0.85 0.08 280), oklch(0.65 0.18 295));
}
.grad-mixed {
  background: linear-gradient(135deg, var(--acid), var(--coral));
}

/* ---------- Auth page centering ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bone);
}
.auth-page .form-card {
  width: 100%;
}

/* ---------- Two-column detail page ---------- */
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) {
  .detail-layout { grid-template-columns: 1fr; }
}

/* ---------- Checkout layout ---------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 880px) {
  .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.checkout-item-info { flex: 1; }
.checkout-item-info .name { font-weight: 500; font-size: 15px; }
.checkout-item-info .meta { font-size: 13px; color: var(--muted); }
.checkout-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- Webinar layout ---------- */
.webinar-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  height: calc(100vh - 160px);
}
@media (max-width: 880px) {
  .webinar-layout { grid-template-columns: 1fr; height: auto; }
}
.webinar-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.webinar-sidebar-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.webinar-chat {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  font-size: 13px;
  line-height: 1.4;
}
.chat-msg b { color: var(--coral); font-weight: 500; margin-right: 6px; }

/* ---------- Quantity control ---------- */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  background: var(--bone);
  border: none;
  cursor: pointer;
}
.qty-control button:hover { background: var(--bone-2); }
.qty-control .qty-value {
  width: 44px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 36px;
  line-height: 36px;
}

/* ---------- Subscription card ---------- */
.sub-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sub-card .sub-creator {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sub-card .sub-price {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.sub-card .sub-price small {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}
.sub-card .sub-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Donors / patrons list ---------- */
.donor-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.donor-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.donor-item:last-child { border-bottom: none; }
.donor-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  margin-left: auto;
}

/* ---------- Service cards (appointments/concierge) ---------- */
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(10,10,11,0.1);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.service-card .service-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--coral);
}

/* ---------- Date / time picker mock ---------- */
.day-picker {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.day-btn {
  width: 56px;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  background: white;
}
.day-btn .day-name {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.day-btn .day-num {
  font-weight: 600;
  font-size: 16px;
}
.day-btn.active,
.day-btn:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.day-btn.active .day-name { color: var(--muted-dark); }

.time-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}
.time-slot {
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: all 200ms ease;
  background: white;
}
.time-slot:hover { border-color: var(--ink); }
.time-slot.active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.time-slot.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Toggle switch ---------- */
.toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bone-2);
  position: relative;
  cursor: pointer;
  transition: background 200ms ease;
}
.toggle.on { background: var(--green); }
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 200ms ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle.on::after { transform: translateX(20px); }

/* ---------- Drag handle ---------- */
.drag-handle {
  width: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: grab;
  padding: 4px 0;
  opacity: 0.35;
}
.drag-handle span {
  width: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}
.drag-handle:hover { opacity: 0.7; }

/* ---------- Embed code box ---------- */
.code-box {
  background: var(--ink);
  color: var(--bone);
  padding: 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- Poll component ---------- */
.poll-option {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease;
}
.poll-option:hover { border-color: var(--ink); }
.poll-option .poll-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: oklch(0.95 0.04 35);
  z-index: 0;
}
.poll-option .poll-text {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.poll-option .poll-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
