/* ══════════════════════════════════════════════
   BillSettle — Guest Web App
   ══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --text: #1A1A1F;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --border: #E5E7EB;
  --accent: #1AAB8A;
  --accent-hover: #15946F;
  --accent-light: #E8F8F4;
  --accent-subtle: rgba(26, 171, 138, 0.08);
  --success: #22C55E;
  --error: #EF4444;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-elevated: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-btn: 0 1px 2px rgba(0,0,0,0.05);
  --radius-card: 16px;
  --radius-btn: 14px;
  --radius-input: 12px;
  --radius-pill: 100px;
  --radius-check: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0A0B;
    --surface: #161618;
    --surface-elevated: #1E1E21;
    --text: #F5F5F7;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;
    --border: #2A2A2E;
    --accent: #2DD4A8;
    --accent-hover: #25B892;
    --accent-light: #0D2E27;
    --accent-subtle: rgba(45, 212, 168, 0.08);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.3);
    --shadow-elevated: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-btn: 0 1px 2px rgba(0,0,0,0.2);
  }
}

/* ── Base ── */
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ── */
.display-text { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; }
.heading-text { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.body-text { font-size: 15px; font-weight: 400; line-height: 1.5; }
.caption { font-size: 13px; font-weight: 500; }
.mono { font-variant-numeric: tabular-nums; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); margin-bottom: 12px; }

/* ── Layout ── */
#app { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }

.screen {
  display: flex; flex-direction: column; height: 100%;
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.active {
  opacity: 1; transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.screen-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px;
}
.screen-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  gap: 20px;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.card-divider {
  height: 1px;
  background: var(--border);
  margin: 16px -24px;
}
.card-divider.thick {
  height: 2px;
  background: var(--border);
}

/* ══════════════════════════════════════════════
   Screen 1: Name
   ══════════════════════════════════════════════ */

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.brand-icon { font-size: 28px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }

.name-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.name-card .display-text { text-align: center; }
.name-card .body-text { text-align: center; margin-top: -8px; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.optional-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 4px;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input[type="text"]::placeholder,
input[type="tel"]::placeholder { color: var(--text-tertiary); }
input[type="text"]:focus,
input[type="tel"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:active:not(:disabled) { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:active { transform: scale(0.98); }
@media (hover: hover) {
  .btn-secondary:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
}

.btn-primary.loading { pointer-events: none; opacity: 0.6; }
.btn-secondary.copied {
  background: var(--success); border-color: var(--success); color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   Screen 2: Items
   ══════════════════════════════════════════════ */

.items-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: none;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.btn-back:active { background: var(--border); }

.header-center {
  flex: 1;
  min-width: 0;
}
.header-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selection-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.selection-pill.pulse { animation: pill-pulse 0.3s ease; }
@keyframes pill-pulse {
  50% { transform: scale(1.08); }
}

.items-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  padding-bottom: 120px; /* room for sticky footer */
}

/* Receipt card */
.receipt-card {
  max-width: 480px;
  margin: 0 auto;
}
.receipt-edge {
  height: 14px;
  position: relative;
  overflow: hidden;
}
.receipt-edge.top {
  background:
    linear-gradient(135deg, var(--bg) 33.33%, transparent 33.33%) 0 0 / 14px 100%,
    linear-gradient(225deg, var(--bg) 33.33%, transparent 33.33%) 0 0 / 14px 100%;
  background-color: var(--surface);
  background-repeat: repeat-x;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.receipt-edge.bottom {
  background:
    linear-gradient(315deg, var(--bg) 33.33%, transparent 33.33%) 0 0 / 14px 100%,
    linear-gradient(45deg, var(--bg) 33.33%, transparent 33.33%) 0 0 / 14px 100%;
  background-color: var(--surface);
  background-repeat: repeat-x;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.receipt-body {
  background: var(--surface);
  padding: 0 20px;
  box-shadow: var(--shadow-card);
}
.receipt-header-area {
  padding: 16px 0 0;
  text-align: center;
}
.receipt-restaurant {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.receipt-divider {
  border: none;
  border-top: 1.5px dashed var(--border);
  margin: 16px 0;
}

/* Item rows */
.receipt-items { list-style: none; }

.item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}
.item-row:last-child { border-bottom: none; }
.item-row:active:not(.mine-claimed) { transform: scale(0.985); }

.item-row.selected {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}
.item-row.others-claimed {
  background: var(--accent-subtle);
  border-left: 3px dashed var(--text-tertiary);
  padding-left: 17px;
}
.item-row.mine-claimed {
  opacity: 0.5;
  cursor: default;
  background: var(--accent-subtle);
  border-left: 3px solid var(--accent);
  padding-left: 17px;
}

.item-checkbox {
  width: 24px; height: 24px;
  border-radius: var(--radius-check);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.item-row.selected .item-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}
.item-row.selected .item-checkbox svg { opacity: 1; }
.item-checkbox svg { opacity: 0; transition: opacity 0.15s; }

.item-details { flex: 1; min-width: 0; }
.item-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-claimed-by {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.split-hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}
.split-note {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}
.item-split-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 2px;
}
.item-price-area {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.item-share-price {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.item-full-price {
  font-size: 11px;
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.item-row.fully-claimed {
  opacity: 0.4;
  cursor: default;
}

/* Split option row */
.split-option-row {
  margin-top: 6px;
}
.split-toggle-btn {
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font: 600 12px/1 var(--font);
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.split-toggle-btn:active { background: var(--accent-light); }

/* Split picker */
.split-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}
.split-picker-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.split-picker-options {
  display: flex;
  gap: 6px;
}
.split-count-btn {
  width: 36px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.split-count-btn:active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.item-price {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  color: var(--text);
}
.item-row.mine-claimed .item-name { color: var(--text-secondary); }
.item-row.mine-claimed .item-price { color: var(--text-secondary); }

/* Stagger animation */
.item-row { opacity: 0; animation: item-fade-in 0.3s ease forwards; }
@keyframes item-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.item-row.mine-claimed { animation-name: item-fade-in-claimed; }
@keyframes item-fade-in-claimed {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.5; transform: translateY(0); }
}

/* Sticky claim footer */
.claim-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 20;
}
@media (prefers-color-scheme: dark) {
  .claim-footer { background: rgba(10, 10, 11, 0.85); }
}

.claim-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
}
.claim-amount {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
  transition: transform 0.15s;
}
.claim-amount.updating { transform: scale(1.05); }

.claim-footer .btn-primary { flex: 1; }

/* ══════════════════════════════════════════════
   Screen 3: Summary
   ══════════════════════════════════════════════ */

.success-badge {
  text-align: center;
  padding: 32px 0 24px;
}
.success-ring {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
}
.success-check {
  width: 72px; height: 72px;
}
.success-circle {
  stroke: var(--success);
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: circle-draw 0.5s ease forwards;
  transform-origin: center;
}
.success-path {
  stroke: var(--success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: check-draw 0.3s ease forwards 0.4s;
}
@keyframes circle-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

.success-badge .display-text { margin-bottom: 4px; }

.summary-card {
  margin-bottom: 20px;
}
.summary-section { padding: 4px 0; }
.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.summary-item .item-name-text { color: var(--text); font-weight: 500; }
.summary-item .item-price-text { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 15px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px;
}
.total-label { font-size: 18px; font-weight: 700; }
.total-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent);
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-venmo {
  background: #008CFF;
}
.btn-zelle {
  background: #6D1ED4;
}
.btn-cashapp {
  background: #00D632;
  color: #000;
}
.btn-cashapp span {
  color: #000;
}

/* Zelle info card */
.zelle-info-card {
  text-align: center;
  padding: 20px;
  background: var(--surface-elevated);
  border: 1.5px solid #6D1ED4;
  border-radius: var(--radius-card);
}
.zelle-info-card p {
  margin-bottom: 8px;
}
.zelle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 16px/1.4 var(--font);
  color: #6D1ED4;
  margin-bottom: 12px;
}
.zelle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #6D1ED4;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.zelle-contact-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.zelle-copy-btn {
  flex: 1;
  padding: 10px 16px;
  background: var(--accent-subtle);
  border: 1px dashed #6D1ED4;
  border-radius: var(--radius-btn);
  color: #6D1ED4;
  font: 600 15px/1.4 var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.zelle-copy-btn:active {
  background: var(--accent-light);
}
.zelle-copy-amount {
  padding: 10px 16px;
  background: #6D1ED4;
  border: none;
  border-radius: var(--radius-btn);
  color: #fff;
  font: 600 14px/1.4 var(--font);
  cursor: pointer;
  white-space: nowrap;
}
.zelle-copy-amount:active { opacity: 0.8; }

/* ── Loading / Spinner ── */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 24px;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utilities ── */
@keyframes fade-slide-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Status message in item list ── */
.status-message {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Session age warning banner ── */
.session-age-banner {
  list-style: none;
  text-align: center;
  padding: 10px 16px;
  margin-bottom: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  font-size: 13px;
  color: #B45309;
}
@media (prefers-color-scheme: dark) {
  .session-age-banner { color: #FCD34D; background: rgba(245, 158, 11, 0.08); }
}

/* ── Inline retry button (shown inside status-message on failure) ── */
.btn-retry-inline {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.btn-retry-inline:hover { background: var(--accent-hover); }

/* ── Change selections button ── */
.btn-change-selections {
  background: none;
  border: none;
  color: var(--accent);
  font: 600 15px/1.4 var(--font);
  cursor: pointer;
  padding: 12px 24px;
  transition: opacity 0.15s;
}
.btn-change-selections:hover { text-decoration: underline; }
.btn-change-selections:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Closed session banner ── */
.closed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  margin-bottom: 12px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}
@media (prefers-color-scheme: dark) {
  .closed-banner { background: #451A03; color: #FBBF24; }
  .zelle-header { color: #A78BFA; }
  .zelle-info-card { border-color: #A78BFA; }
  .zelle-copy-btn { border-color: #A78BFA; color: #A78BFA; }
}

/* ── Avatar picker ── */
.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.avatar-circle-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.avatar-circle-btn:active { transform: scale(0.94); }
@media (hover: hover) {
  .avatar-circle-btn:hover { box-shadow: 0 0 0 4px var(--accent-subtle); }
}
.avatar-selected-emoji {
  font-size: 42px;
  line-height: 1;
  display: block;
}
.avatar-edit-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 16px;
  line-height: 1;
  background: var(--surface);
  border-radius: 50%;
  padding: 2px;
}
.input-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 4px;
  border-radius: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
}
.avatar-btn {
  width: 44px;
  height: 44px;
  font-size: 26px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.avatar-btn:active { transform: scale(0.92); }
.avatar-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.1);
}

/* ── Split stepper (web) ── */
.split-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.split-stepper-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-right: 6px;
}
.split-stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
  font: 700 16px/1 var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.split-stepper-btn:active { background: var(--accent-light); }
.split-stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.split-stepper-value {
  font: 600 16px/1 var(--font);
  min-width: 24px;
  text-align: center;
  color: var(--text);
}
.split-stepper-price {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 8px;
}

/* ── Celebration confetti ── */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall 2.5s ease-out forwards;
}
@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
