/* Salamfest — base styles */

:root {
  --c-fg: #0f3d2e;
  --c-accent: #c8851a;
  --c-bg: #f6efe1;
  --c-surface: #fbf7ec;
  --c-line: #d8c89c;
  --c-text: #2b3024;
  --c-muted: #6e6852;
  --c-deep: #2b3024;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  color: var(--c-fg);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-year {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 11px;
  color: var(--c-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1px;
}

.event-meta {
  display: flex;
  gap: 28px;
  margin-left: 12px;
}

.meta-cell { min-width: 0; }

.meta-k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2px;
}

.meta-v {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text);
}

.meta-sub {
  color: var(--c-muted);
  font-weight: 400;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2f7a45;
  white-space: nowrap;
  margin-top: 1px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fa85a;
  box-shadow: 0 0 0 0 rgba(47,168,90,0.55);
  animation: live-pulse 2s ease-out infinite;
}
.live-pill-wait { color: var(--c-muted); }
.live-pill-wait .live-dot { background: #b8902f; animation: none; }
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(47,168,90,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(47,168,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,168,90,0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-fg);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.link-btn:hover { background: rgba(15,61,46,0.08); }

/* ─── Layout ─────────────────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.sidebar {
  padding: 24px 22px;
  overflow-y: auto;
}

.sidebar-left {
  border-right: 1px solid var(--c-line);
  background: var(--c-surface);
}

.sidebar-right {
  border-left: 1px solid var(--c-line);
  background: var(--c-surface);
}

.sidebar-section { margin-bottom: 24px; }

.sidebar-h {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--c-fg);
}

.sidebar-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-muted);
  margin: 0;
  text-wrap: pretty;
}

/* ─── Legend ─────────────────────────────────────────────────────────── */
.legend-section { margin-bottom: 22px; }

.legend-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 10px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 4px 0;
  color: var(--c-text);
}

.sw {
  width: 16px;
  height: 12px;
  border: 1px solid;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-block;
}

.sw-hatch {
  background: repeating-linear-gradient(45deg,
    #d2cabf 0 3px, #8c8276 3px 4px);
  border-color: #a99e8f;
}

.sw-reserved {
  background: repeating-linear-gradient(45deg,
    #f3e6c4 0 3px, #c79324 3px 4px);
  border-color: #c79324;
}

/* Group filter chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.filter-chip:hover { background: rgba(15,61,46,0.05); }
.filter-chip.active {
  background: var(--c-fg);
  border-color: var(--c-fg);
  color: var(--c-bg);
}

/* Pricing tiers */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tier-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 2px;
  font-size: 12.5px;
  color: var(--c-text);
}
.tier-sw {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid;
  flex-shrink: 0;
}
.tier-label { flex: 1; }
.tier-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.legend-note {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--c-muted);
  margin-top: 10px;
  text-wrap: pretty;
}

.type-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.type-row {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--c-text);
  width: 100%;
}

.type-row:hover { background: rgba(15,61,46,0.05); }

.type-row.active {
  background: rgba(15,61,46,0.10);
  color: var(--c-fg);
}

.type-row.active .type-label { font-weight: 600; }

.type-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #b8a878;
  flex-shrink: 0;
}

.type-label { flex: 1; }

.type-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--c-muted);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--c-text);
}
.toggle-row input { accent-color: var(--c-fg); }

/* ─── Main ───────────────────────────────────────────────────────────── */
.main {
  padding: 24px 28px;
  min-width: 0;
  overflow-y: auto;
}

.plan-frame {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset,
              0 1px 3px rgba(60, 50, 20, 0.05);
}

.plan-frame-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-line);
}

.plan-hd-l {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.plan-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-fg);
}

.plan-sub {
  font-size: 12px;
  color: var(--c-muted);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2f7d4f;
  background: rgba(78, 162, 79, 0.14);
  padding: 2px 8px;
  border-radius: 999px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a9d5d;
  box-shadow: 0 0 0 0 rgba(58, 157, 93, 0.5);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(58, 157, 93, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(58, 157, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(58, 157, 93, 0); }
}

.plan-hd-r {
  display: flex;
  gap: 18px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-muted);
}

.stat-n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  color: var(--c-text);
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.stat-dot-avail { background: #dbe8c4; border: 1px solid #5a6e4f; }
.stat-dot-rsvd  { background: #f0d997; border: 1px solid #b8902f; }
.stat-dot-sold  { background: #d9c8b8; border: 1px solid #a89886; }

.floorplan {
  position: relative;
  padding: 18px;
  background:
    radial-gradient(ellipse at center, var(--c-surface), #f4ecd6);
}

.floorplan svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Tooltip ────────────────────────────────────────────────────────── */
.tooltip {
  position: absolute;
  background: var(--c-surface);
  border: 1px solid;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 180px;
  pointer-events: none;
  z-index: 10;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 4px 16px rgba(40, 30, 10, 0.18);
  font-size: 13px;
}

.tt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.tt-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-fg);
  letter-spacing: 0.04em;
}

.tt-status {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.tt-available { background: #dbe8c4; color: #3a4d2c; }
.tt-reserved  { background: #f0d997; color: #6b5215; }
.tt-sold      { background: #d9c8b8; color: #6b5840; }

.tt-type {
  font-weight: 600;
  font-size: 13.5px;
  margin-top: 7px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.tt-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid;
  flex-shrink: 0;
  display: inline-block;
}

.tt-size {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-muted);
}

.tt-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-fg);
  margin-top: 2px;
}

.tt-period {
  color: var(--c-muted);
  font-weight: 400;
  font-size: 12px;
}

.tt-hint {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ─── Booking panel ──────────────────────────────────────────────────── */
.panel-empty {
  text-align: center;
  padding: 40px 14px;
  color: var(--c-muted);
}

.panel-empty-icon {
  color: var(--c-fg);
  opacity: 0.4;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}

.panel-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}

.panel-empty-sub {
  font-size: 12.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.panel-detail-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 4px;
}

.panel-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 26px;
  font-weight: 600;
  color: var(--c-fg);
  letter-spacing: -0.01em;
  line-height: 1;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--c-muted);
  font-size: 14px;
}
.icon-btn:hover { background: rgba(15,61,46,0.08); color: var(--c-fg); }

.panel-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  border-top: 1px solid var(--c-line);
  padding-top: 14px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
}

.detail-k {
  color: var(--c-muted);
}

.detail-v {
  font-weight: 500;
  color: var(--c-text);
  text-align: right;
}

.detail-row.big {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed var(--c-line);
}

.detail-row.big .detail-k { font-weight: 600; color: var(--c-text); }
.detail-row.big .price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-fg);
}

.panel-includes {
  background: rgba(200, 133, 26, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.includes-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 6px;
}

.panel-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-includes li {
  font-size: 12.5px;
  color: var(--c-text);
  padding: 3px 0 3px 16px;
  position: relative;
}

.panel-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1.5px;
  background: var(--c-accent);
}

.sfa-note {
  background: #fcf3ee;
  border: 1px solid #f1d9cf;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.sfa-note-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9c4a2f;
  margin-bottom: 8px;
}
.sfa-note ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sfa-note li {
  font-size: 12px;
  line-height: 1.4;
  color: var(--c-text);
  padding-left: 14px;
  position: relative;
}
.sfa-note li::before {
  content: '•';
  position: absolute;
  left: 2px;
  color: #c8854a;
}
.sfa-note-warn {
  background: #fcebea;
  border: 1px solid #f3c9c5;
  color: #9c2f25;
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 500;
}

.cta {
  width: 100%;
  appearance: none;
  border: 0;
  background: var(--c-fg);
  color: var(--c-bg);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 80ms, background 100ms;
  font-family: inherit;
}
.cta:hover { background: #0a2e22; }
.cta:active { transform: translateY(1px); }

.cta-incart {
  background: var(--c-surface);
  color: var(--c-fg);
  border: 1.5px solid var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-incart:hover { background: rgba(200, 133, 26, 0.10); }
.cta-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ─── Cart (right rail footer) ───────────────────────────────────────── */
.sidebar-right {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 22px;
}

.cart-panel {
  flex-shrink: 0;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg);
  padding: 16px 20px 18px;
  box-shadow: 0 -6px 18px -14px rgba(40, 30, 10, 0.4);
}

.cart-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--c-muted);
  padding: 18px 20px;
}
.cart-bag { font-size: 14px; filter: grayscale(0.3); opacity: 0.8; }

.cart-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-fg);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cart-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  background: var(--c-accent);
  color: #fff;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-clear {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.cart-clear:hover { color: var(--c-fg); text-decoration: underline; }

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 168px;
  overflow-y: auto;
  margin: 0 -4px 10px;
  padding: 0 4px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12.5px;
}
.ci-sw {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid;
  flex-shrink: 0;
}
.ci-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.ci-warn {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a6a12;
  background: rgba(200, 133, 26, 0.18);
  padding: 2px 5px;
  border-radius: 4px;
}
.ci-price {
  margin-left: auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}
.ci-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}
.ci-x:hover { background: rgba(180, 40, 40, 0.10); color: #b42828; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--c-muted);
  padding: 8px 0 10px;
  border-top: 1px dashed var(--c-line);
}
.cart-total-v {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-fg);
}

.cart-checkout {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--c-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: transform 80ms, background 100ms;
}
.cart-checkout:hover { background: #b1741399; background: #ad7113; }
.cart-checkout:active { transform: translateY(1px); }
.cart-checkout.disabled {
  background: #e3d6b9;
  color: #9a8a63;
  cursor: not-allowed;
}

.cart-foot {
  font-size: 10.5px;
  color: var(--c-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
  text-wrap: pretty;
}
.cart-foot code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--c-fg);
}

.panel-foot {
  font-size: 11px;
  color: var(--c-muted);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.04em;
}

.checkout-note {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f6efe1;
  border: 1px solid #e3d6bb;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text);
}
.checkout-note strong { font-weight: 700; }
.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.checkout-fields > div {
  padding-bottom: 5px;
  border-bottom: 1px dashed #d8c79e;
  color: var(--c-muted);
}

/* ─── Modal ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 22, 12, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: modal-fade 140ms ease-out;
}
.modal-card {
  position: relative;
  background: #fff;
  border: 1px solid #e3d6bb;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 26px 26px 22px;
  box-shadow: 0 20px 60px rgba(40, 28, 12, 0.35);
  animation: modal-pop 160ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: none;
  font-size: 16px;
  color: var(--c-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 14px;
  padding-right: 24px;
}
.modal-list {
  margin: 0 0 14px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--c-text);
}
.modal-warn {
  background: #fcebea;
  border: 1px solid #f3c9c5;
  color: #9c2f25;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 18px;
}
.modal-ok {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 9px;
  background: #0f3d2e;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
}
.modal-ok:hover { filter: brightness(1.08); }
.modal-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.modal-actions .modal-ok { flex: 1; }
.modal-secondary {
  flex: 1;
  border: 1px solid #cdbf99;
  border-radius: 9px;
  background: #fff;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
}
.modal-secondary:hover { background: #f6efe1; }

/* sticky mobile checkout bar — only on narrow screens */
.mobile-cart-bar { display: none; }
@media (max-width: 880px) {
  .mobile-cart-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #0f3d2e;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(15, 61, 46, 0.4);
    font-weight: 600;
  }
  .mobile-cart-bar.disabled { background: #8a7e70; }
  .mcb-count {
    background: rgba(255,255,255,0.18);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
  }
  .mcb-label { font-size: 14px; }
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { animation: none; }
}

/* ─── Toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-fg);
  color: var(--c-bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 8px 28px rgba(15, 61, 46, 0.28);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 220ms cubic-bezier(.3,.7,.4,1);
}

.toast strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  color: var(--c-accent);
}

.toast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

@keyframes toast-in {
  from { transform: translate(-50%, 8px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* ─── Density ────────────────────────────────────────────────────────── */
.density-compact .header { padding: 10px 22px; gap: 22px; }
.density-compact .sidebar { padding: 18px 18px; }
.density-compact .main { padding: 18px 22px; }
.density-compact .legend-section { margin-bottom: 14px; }

.density-comfy .header { padding: 22px 32px; }
.density-comfy .sidebar { padding: 30px 26px; }
.density-comfy .main { padding: 32px 36px; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 240px 1fr 280px; }
  .event-meta { gap: 20px; }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { border: 0; border-top: 1px solid var(--c-line); }
  .sidebar-right { border-top: 1px solid var(--c-line); }
}

/* ─── Pre-checkout details modal ─────────────────────────────────────── */
.co-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 22, 8, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: co-fade 140ms ease-out;
}
@keyframes co-fade { from { opacity: 0; } to { opacity: 1; } }

.co-modal {
  width: 100%;
  max-width: 560px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(30, 22, 6, 0.55);
  overflow: hidden;
  animation: co-rise 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes co-rise { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.co-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--c-line);
}
.co-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 5px;
}
.co-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--c-fg);
  margin: 0;
  letter-spacing: -0.01em;
}
.co-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-muted);
  font-size: 15px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  cursor: pointer;
  flex-shrink: 0;
}
.co-x:hover { background: rgba(15, 61, 46, 0.08); color: var(--c-fg); }

.co-booths {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(200, 133, 26, 0.07);
  border-bottom: 1px solid var(--c-line);
}
.co-booths-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  flex-shrink: 0;
}
.co-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.co-chip {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-fg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 3px 8px;
  border-radius: 5px;
}

.co-form { padding: 18px 22px 22px; }
.co-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.co-field { display: flex; flex-direction: column; gap: 5px; }
.co-span { grid-column: 1 / -1; }
.co-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-text);
}
.co-lbl i { color: #b42828; font-style: normal; }
.co-field input,
.co-field select,
.co-field textarea {
  font-family: inherit;
  font-size: 13px;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 7px;
  padding: 9px 10px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 100ms, box-shadow 100ms;
}
.co-field textarea { resize: vertical; min-height: 38px; }
.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(200, 133, 26, 0.15);
}
.co-field.invalid input,
.co-field.invalid select,
.co-field.invalid textarea { border-color: #d08a8a; }
.co-err {
  font-size: 10.5px;
  color: #b42828;
  font-weight: 500;
}

.co-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-text);
  cursor: pointer;
}
.co-agree input { accent-color: var(--c-fg); margin-top: 1px; flex-shrink: 0; }
.co-agree a { color: var(--c-accent); }
.co-agree.invalid { color: #b42828; }
.co-agree-err { display: block; margin-top: 4px; }

.co-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.co-back {
  appearance: none;
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.co-back:hover { background: rgba(15, 61, 46, 0.05); }
.co-go {
  appearance: none;
  flex: 1;
  border: 0;
  background: var(--c-accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 80ms, background 100ms;
}
.co-go:hover { background: #ad7113; }
.co-go:active { transform: translateY(1px); }
.co-go.soft { opacity: 0.55; }

.co-foot {
  font-size: 10.5px;
  color: var(--c-muted);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.45;
  text-wrap: pretty;
}
.co-foot code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: var(--c-fg);
}

@media (max-width: 560px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-overlay { padding: 0; }
  .co-modal { max-width: none; min-height: 100%; border-radius: 0; border: 0; }
}

/* ── Post-submit "complete your payment" screen ───────────────────────── */
.co-sent {
  padding: 26px 24px 24px;
  text-align: center;
}
.co-sent-icon {
  width: 60px;
  height: 60px;
  margin: 4px auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent);
  background: rgba(200, 133, 26, 0.12);
  border: 1px solid rgba(200, 133, 26, 0.35);
}
.co-sent-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-fg);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.co-sent-lead {
  font-size: 14px;
  color: var(--c-text);
  margin: 0 auto 20px;
  max-width: 380px;
  line-height: 1.55;
  text-wrap: pretty;
}
.co-sent-lead strong { color: var(--c-fg); }

.co-steps {
  margin: 0 auto 22px;
  padding: 16px 18px;
  max-width: 400px;
  text-align: left;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 10px;
}
.co-step {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  color: var(--c-text);
  padding: 6px 0;
}
.co-step + .co-step { border-top: 1px solid var(--c-line); }
.co-step span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-fg);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-step strong { color: var(--c-fg); }

.co-pay-btn {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: background 100ms, transform 80ms;
}
.co-pay-btn:hover { background: #ad7113; }
.co-pay-btn:active { transform: translateY(1px); }

.co-sent-note {
  font-size: 11.5px;
  color: var(--c-muted);
  margin: 13px auto 0;
  max-width: 360px;
  line-height: 1.5;
  text-wrap: pretty;
}

.co-sent-close {
  appearance: none;
  margin-top: 22px;
  background: transparent;
  border: 1px solid var(--c-line);
  color: var(--c-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
}
.co-sent-close:hover { background: rgba(15, 61, 46, 0.05); }

/* ─── Vendor registration: payment options + instructions ────────────── */
.reg-pay-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.reg-pay-card {
  appearance: none;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 110ms, box-shadow 110ms, background 110ms;
}
.reg-pay-card:hover { border-color: var(--c-accent); }
.reg-pay-card.active {
  border-color: var(--c-accent);
  background: rgba(200, 133, 26, 0.06);
  box-shadow: 0 0 0 3px rgba(200, 133, 26, 0.14);
}
.reg-pay-radio {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--c-line);
  margin-top: 2px;
  position: relative;
  transition: border-color 110ms;
}
.reg-pay-card.active .reg-pay-radio { border-color: var(--c-accent); }
.reg-pay-card.active .reg-pay-radio::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--c-accent);
}
.reg-pay-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.reg-pay-name { font-size: 13.5px; font-weight: 700; color: var(--c-fg); }
.reg-pay-desc { font-size: 11px; color: var(--c-muted); line-height: 1.35; }
.reg-pay-amt {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-fg);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reg-deposit-note {
  font-size: 11.5px;
  color: var(--c-muted);
  background: rgba(200, 133, 26, 0.08);
  border-left: 3px solid var(--c-accent);
  padding: 8px 11px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
  line-height: 1.5;
}

.reg-amt-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 14px;
  background: var(--c-bg, #f6efe1);
  border: 1px solid var(--c-line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--c-text);
}
.reg-amt-line b {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-fg);
  font-variant-numeric: tabular-nums;
}

.reg-summary {
  max-width: 360px;
  margin: 0 auto 4px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 6px 15px;
  text-align: left;
}
.reg-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  padding: 7px 0;
  color: var(--c-muted);
  border-bottom: 1px dashed var(--c-line);
}
.reg-summary-row:last-child { border-bottom: 0; }
.reg-summary-row b { color: var(--c-fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.reg-summary-bal b { color: var(--c-accent); }

.reg-paybox {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  padding: 13px 15px;
  margin-bottom: 18px;
  background: var(--c-bg, #f6efe1);
}
.reg-paybox-hd {
  font-size: 12.5px;
  color: var(--c-text);
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--c-line);
}
.reg-paybox-hd b { color: var(--c-fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.reg-paybox-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  padding: 3px 0;
}
.reg-paybox-row span { color: var(--c-muted); flex-shrink: 0; }
.reg-paybox-row b { color: var(--c-fg); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.reg-paybox-amt { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--c-line); }
.reg-paybox-amt b { font-size: 15px; font-weight: 700; }
.reg-paybox-tip {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 10px;
  line-height: 1.5;
  text-wrap: pretty;
}
.reg-paybox-note {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 9px;
  line-height: 1.5;
}
.reg-paybox-done { max-width: 380px; margin: 0 auto 20px; text-align: left; }

@media (max-width: 480px) {
  .reg-pay-opts { grid-template-columns: 1fr; }
}
