/* Tokens matched to Flutter event details / AppColors */
:root {
  color-scheme: light dark;
  /* Surfaces — AppColors light* */
  --bg: #f3f4f6;
  --header: #ffffff;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --ink: #1a1a1a;
  --ink-strong: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --chip: #e5e7eb;
  --chip-ink: #374151;
  /* Event CTA gold (event_details_screen _primaryButtonBackgroundColor) */
  --yellow: #e39b17;
  --yellow-dark: #c9860f;
  --yellow-soft: rgba(227, 155, 23, 0.12);
  --yellow-soft-border: rgba(227, 155, 23, 0.4);
  --cta-ink: #000000;
  /* Brand yellow chip / ticket accents (AppColors.primaryAppColor) */
  --brand-yellow: #ffc428;
  --ticket-bg: #fafafa;
  --ticket-selected: rgba(227, 155, 23, 0.1);
  --ticket-ended: #f3f4f6;
  --soldout-bg: #fef2f2;
  --soldout-border: #fecaca;
  --soldout-ink: #b91c1c;
  --ok-soft: #e7f8ed;
  --brand: #e39b17;
  --map: #1e90ff;
  --ok: #178a3c;
  --free: #099a20;
  --danger: #e53935;
  --navy: #15203a;
  --pending: #7a6f5a;
  --cat-pill-bg: #15203a;
  --cat-pill-ink: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-bar: 0 -6px 24px rgba(17, 24, 39, 0.08);
  --cover-nav-bg: rgba(255, 255, 255, 0.9);
  --overlay-ink: #ffffff;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Surfaces — AppColors dark* */
    --bg: #111214;
    --header: #1a1b1f;
    --card: #1b1d22;
    --surface: #1b1d22;
    --surface-2: #24262d;
    --ink: #ffffff;
    --ink-strong: #f8f8f8;
    --muted: #9a9aa1;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --chip: rgba(255, 255, 255, 0.12);
    --chip-ink: #e0e0e0;
    --yellow: #e39b17;
    --yellow-dark: #f0ad2a;
    --yellow-soft: rgba(227, 155, 23, 0.16);
    --yellow-soft-border: rgba(227, 155, 23, 0.35);
    --cta-ink: #000000;
    --brand-yellow: #ffc428;
    --ticket-bg: #191b1f;
    --ticket-selected: rgba(227, 155, 23, 0.14);
    --ticket-ended: #191b1f;
    --soldout-bg: rgba(229, 57, 53, 0.2);
    --soldout-border: rgba(254, 202, 202, 0.35);
    --soldout-ink: #ff8a80;
    --ok-soft: rgba(30, 158, 74, 0.22);
    --brand: #f0ad2a;
    --map: #60a5fa;
    --ok: #34d399;
    --free: #34d399;
    --danger: #f87171;
    --navy: #2a3144;
    --pending: #9a8f7a;
    --cat-pill-bg: #2a3144;
    --cat-pill-ink: #f8f8f8;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-bar: 0 -6px 24px rgba(0, 0, 0, 0.45);
    --cover-nav-bg: rgba(27, 29, 34, 0.92);
    --overlay-ink: #ffffff;
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}
body.on-checkout .details-bottom-bar { display: none; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px;
  object-fit: contain; display: block; flex-shrink: 0;
  background: transparent;
}
.brand-name { font-weight: 800; letter-spacing: -0.02em; }
.app-link {
  color: var(--brand); text-decoration: none; font-weight: 600; font-size: 0.9rem;
}

.page-state {
  max-width: 520px; margin: 80px auto; text-align: center;
  padding: 24px; color: var(--muted);
}
.landing-page h1 {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 900;
}
.landing-page p {
  margin: 0 auto 20px;
  max-width: 28rem;
  line-height: 1.5;
}
.landing-logo {
  width: 64px; height: 64px; border-radius: 16px;
  object-fit: contain;
}
.landing-cta {
  width: auto !important;
  display: inline-flex !important;
  min-width: 220px;
  margin-top: 0 !important;
}

.progress-bar {
  display: flex; align-items: center; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 18px 20px 8px;
}
.back-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px;
  width: 36px; height: 36px; cursor: pointer; font-size: 1rem; color: var(--ink);
}
.steps { display: flex; gap: 18px; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 600; font-size: 0.92rem;
}
.step span {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: var(--chip); color: var(--chip-ink); font-size: 0.8rem;
}
.step.on { color: var(--ink); }
.step.on span { background: var(--yellow); color: var(--cta-ink); }

/* Details screen (mobile-like: info first, CTA bar) */
.screen-details {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 108px;
}
.details-shell { width: 100%; }
.details-bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--header);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-bar);
}
.details-price { flex: 2; min-width: 0; }
.details-price-row {
  display: flex; align-items: baseline; gap: 6px;
  white-space: nowrap; overflow: hidden;
}
.details-price-main {
  font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em;
}
.details-price-main.is-free { color: var(--free); }
.details-price-sub { font-size: 0.9rem; font-weight: 500; }
.details-cta {
  flex: 3;
  width: auto !important;
  margin-top: 0 !important;
  border-radius: 22px;
  padding: 14px 12px;
  max-width: 100%;
}

/* Checkout screen */
.screen-checkout {
  padding-bottom: 24px;
}
.checkout-event-strip {
  max-width: 960px;
  margin: 0 auto 12px;
  padding: 12px 14px !important;
  display: flex;
  gap: 12px;
  align-items: center;
}
.checkout-thumb {
  width: 56px; height: 56px; border-radius: 12px;
  object-fit: cover; background: var(--chip); flex-shrink: 0;
}
.checkout-event-copy { min-width: 0; flex: 1; }
.checkout-title {
  font-weight: 800; font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.layout {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 8px 20px 32px;
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.layout.confirm-mode {
  grid-template-columns: 1fr;
  max-width: 560px;
}

@media (max-width: 860px) {
  .layout,
  .layout.confirm-mode { grid-template-columns: 1fr; }
  .sticky-summary { position: static; }
  .checkout-event-strip { margin-left: 16px; margin-right: 16px; }
}

.card, .event-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.event-card { padding: 0; overflow: hidden; }
.cover {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--chip);
  overflow: hidden;
}
.cover-track { width: 100%; height: 100%; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-count {
  position: absolute; right: 12px; bottom: 10px;
  background: rgba(0,0,0,0.55); color: var(--overlay-ink);
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.cover-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 999px;
  border: none; background: var(--cover-nav-bg);
  color: var(--ink); font-size: 1.25rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow);
}
.cover-nav.prev { left: 10px; }
.cover-nav.next { right: 10px; }
.event-body { padding: 14px 16px 18px; }
.event-card h1 {
  font-size: 1.35rem; margin: 0 0 6px;
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.2;
}
.category-sub {
  margin: 0 0 10px; font-size: 0.9rem; font-weight: 500;
}
.about-inline { margin-bottom: 16px; }
.about-title {
  margin: 4px 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.about-inline p { margin: 0; white-space: pre-wrap; line-height: 1.55; font-size: 0.92rem; }
.about-text.clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.organised-by {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 16px; padding: 12px;
  border-radius: 14px;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-soft-border);
}
.club-pic {
  width: 48px; height: 48px; border-radius: 999px;
  object-fit: cover; background: var(--chip); flex-shrink: 0;
}
.organised-copy { min-width: 0; flex: 1; }
.organised-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.club-badge {
  background: var(--brand-yellow); color: var(--cta-ink);
  font-size: 0.7rem; font-weight: 800;
  padding: 3px 10px; border-radius: 8px;
}
.club-name {
  font-weight: 800; font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.logistics { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.logistics-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.92rem; color: var(--ink); font-weight: 600;
}
.logistics-text {
  flex: 1; min-width: 0; line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 4;
}
.ico { flex-shrink: 0; line-height: 1.35; }
.cat-pill {
  flex-shrink: 0;
  background: var(--cat-pill-bg); color: var(--cat-pill-ink);
  font-size: 0.78rem; font-weight: 700;
  padding: 6px 12px; border-radius: 8px;
  max-width: 42%; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.map-link {
  flex-shrink: 0;
  color: var(--map); font-size: 0.82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}

.hosts, .availability, .terms-row {
  margin-top: 14px;
}
.hosts-label {
  margin: 0 0 4px; font-size: 0.78rem; color: var(--muted); font-weight: 700;
}
.availability h3 {
  margin: 0 0 10px; font-size: 1.05rem; color: var(--ink);
  font-weight: 800; letter-spacing: 0;
  text-transform: none;
}
.availability-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.availability-cal {
  flex-shrink: 0;
  color: var(--ink);
}
.availability-when {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.availability-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}
.availability-status .availability-dot,
.availability-status .availability-ticket,
.availability-status .availability-block {
  display: none;
  flex-shrink: 0;
}
.availability-status.is-available {
  background: #e8f8ef;
  color: #0f8a3c;
}
.availability-status.is-available .availability-dot { display: inline-block; }
.availability-status.is-limited {
  background: #fff0e0;
  color: #c45c12;
}
.availability-status.is-limited .availability-ticket { display: inline-block; }
.availability-status.is-soldout {
  background: #ffebee;
  color: #e53935;
}
.availability-status.is-soldout .availability-block { display: inline-block; }
@media (prefers-color-scheme: dark) {
  .availability-status.is-available {
    background: rgba(15, 138, 60, 0.22);
    color: #4ade80;
  }
  .availability-status.is-limited {
    background: rgba(196, 92, 18, 0.22);
    color: #ffb074;
  }
  .availability-status.is-soldout {
    background: rgba(229, 57, 53, 0.2);
    color: #ff8a80;
  }
}
.host-card {
  display: flex; gap: 12px; align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-sizing: border-box;
}
.host-copy { min-width: 0; flex: 1; }
.host-pic { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; background: var(--chip); flex-shrink: 0; }
.host-name-row {
  display: flex; align-items: center; gap: 6px; min-width: 0;
}
.host-name {
  font-weight: 800; font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.host-verified {
  flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.65rem; font-weight: 900; line-height: 1;
}
.host-verified.is-blue { background: #1da1f2; }
.host-verified.is-gold { background: #ffd700; color: #111; }
.host-verified::after { content: "✓"; }
.host-ig {
  margin-top: 4px; color: #e94277; font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px; min-width: 0;
}
.host-ig-ico { flex-shrink: 0; color: #e94277; }
#hostIgHandleText {
  min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ig-btn {
  flex-shrink: 1;
  max-width: 42%;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px 12px; background: var(--surface); color: var(--ink);
  font-size: 0.75rem; font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.ig-btn svg { flex-shrink: 0; }

.terms-row {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}
.terms-ico {
  display: inline-flex; flex-shrink: 0; color: var(--ink);
}
.terms-label {
  flex: 1; min-width: 0;
  font-size: 0.92rem; font-weight: 700;
}
.terms-chevron {
  flex-shrink: 0; color: var(--muted); font-size: 1.25rem; line-height: 1;
}

.availability-card {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; background: var(--surface);
}

.terms-sheet {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.terms-sheet-backdrop {
  position: absolute; inset: 0;
  border: 0; padding: 0; margin: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}
.terms-sheet-panel {
  position: relative; z-index: 1;
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-bar);
}
.terms-sheet-close {
  margin: 2px 8px 0;
  width: 40px; height: 40px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.terms-sheet-body { padding: 4px 20px 8px; }
.terms-sheet-body h2 {
  margin: 0 0 18px;
  font-size: 1.45rem; font-weight: 800; line-height: 1.2;
}
.terms-item {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 10px;
}
.terms-item p {
  margin: 0; flex: 1; min-width: 0;
  font-size: 0.95rem; font-weight: 600; line-height: 1.35;
}
.terms-item-ico {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ico-bg, #e5e7eb);
  color: #fff; font-weight: 800; font-size: 0.95rem;
}
.terms-warn { color: #ff4d6d; font-weight: 800; }
.terms-how {
  display: inline; margin: 0; padding: 0;
  color: #3b82f6; font-size: inherit; font-weight: 800;
}
.terms-how-hint { margin: 8px 0 0 52px; }
body.terms-open { overflow: hidden; }
.link-btn {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--yellow-dark);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.row-actions .btn-ghost { margin-top: 0; }
.row-actions .link-btn { margin-top: 0; }
.ticket-desc {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.ticket-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.ticket-toggle {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--yellow-dark);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.col-main > .panel { margin-top: 18px; }
.panel .card + .card { margin-top: 14px; }
.card h2 { margin: 0 0 14px; font-size: 1.05rem; }

label { display: block; font-size: 0.85rem; font-weight: 600; margin: 10px 0 6px; }
input[type="text"], input[type="email"], input:not([type]), input[type="tel"] {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); font-size: 0.95rem;
  background: var(--surface); color: var(--ink);
}
input::placeholder { color: var(--muted); }
input:focus { outline: 2px solid rgba(227, 155, 23, 0.45); border-color: var(--yellow); }

.ticket-list { display: flex; flex-direction: column; gap: 10px; }
.ticket {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  background: var(--ticket-bg);
}
.ticket.selected { border-color: var(--yellow); background: var(--ticket-selected); }
.ticket.ended {
  opacity: 0.72;
  background: var(--ticket-ended);
}
.ticket.ended .ticket-name,
.ticket.ended .ticket-price {
  text-decoration: line-through;
  color: var(--muted);
}
.ticket-name { font-weight: 700; }
.ticket-desc { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.ticket-desc.ticket-missed {
  color: var(--soldout-ink);
  font-weight: 700;
}
.ticket-price { font-weight: 700; white-space: nowrap; }
.ticket-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}
.ticket-status svg { flex-shrink: 0; }
.ticket-status.is-available {
  background: #e8f8ef;
  color: #0f8a3c;
}
.ticket-status.is-limited {
  background: #fff0e0;
  color: #c45c12;
}
.ticket-status.is-soldout {
  background: #ffebee;
  color: #e53935;
}
.qty.disabled { opacity: 0.45; }
@media (prefers-color-scheme: dark) {
  .ticket-status.is-available {
    background: rgba(15, 138, 60, 0.22);
    color: #4ade80;
  }
  .ticket-status.is-limited {
    background: rgba(196, 92, 18, 0.22);
    color: #ffb074;
  }
  .ticket-status.is-soldout {
    background: rgba(229, 57, 53, 0.2);
    color: #ff8a80;
  }
}
.qty {
  display: flex; align-items: center; gap: 8px;
}
.qty button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  border: none; font-weight: 800; font-size: 1rem; cursor: pointer;
}
.btn-primary, .btn-pay {
  background: var(--yellow);
  color: var(--cta-ink);
}
.btn-primary:hover, .btn-pay:hover { background: var(--yellow-dark); }
.btn-ghost {
  width: auto; margin-top: 8px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }
.btn-spinner {
  width: 1.05em;
  height: 1.05em;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--cta-ink);
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.sticky-summary { position: sticky; top: 76px; }
.summary-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.summary-line.muted-line { color: var(--muted); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; }
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 1.05rem;
}
.card-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 4px;
}
.card-head-row h2 { margin: 0; }
.guest-rows { display: flex; flex-direction: column; gap: 12px; }
.guest-row {
  display: flex; flex-direction: column; gap: 2px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.guest-row:last-child { padding-bottom: 0; border-bottom: none; }
.guest-row strong {
  font-size: 1rem; font-weight: 700; word-break: break-word;
}
.error-text { color: var(--danger); font-size: 0.88rem; margin: 8px 0 0; }
.pill.ok {
  display: inline-block; background: var(--ok-soft); color: var(--ok);
  padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 0.8rem;
}
.success-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 32px 22px 28px;
}
.success-card.play-success .success-check,
.success-card.play-success .success-burst span {
  animation-play-state: running;
}
.success-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}
.success-check svg { display: block; width: 72px; height: 72px; }
.success-check-circle {
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: success-draw 0.6s ease forwards paused;
}
.success-check-mark {
  stroke: var(--ok);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: success-draw 0.35s ease 0.45s forwards paused;
}
.success-burst {
  pointer-events: none;
  position: absolute;
  inset: 12% 10% auto;
  height: 120px;
}
.success-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow);
  opacity: 0;
  animation: success-burst 0.9s ease-out forwards paused;
}
.success-burst span:nth-child(1) { --dx: -52px; --dy: -28px; background: #34d399; animation-delay: 0.35s; }
.success-burst span:nth-child(2) { --dx: 48px; --dy: -32px; animation-delay: 0.4s; }
.success-burst span:nth-child(3) { --dx: -40px; --dy: 36px; background: #60a5fa; animation-delay: 0.45s; }
.success-burst span:nth-child(4) { --dx: 44px; --dy: 30px; background: #34d399; animation-delay: 0.5s; }
.success-burst span:nth-child(5) { --dx: 0; --dy: -48px; animation-delay: 0.38s; }
.success-burst span:nth-child(6) { --dx: 8px; --dy: 46px; background: #f59e0b; animation-delay: 0.48s; }
@keyframes success-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes success-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); }
}
.success-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
}
.success-card #confirmMsg {
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.45;
}
.success-card .link-btn {
  display: inline-block;
  margin-top: 16px;
  text-align: center;
}
.subtle-app-link {
  color: var(--muted) !important;
  font-weight: 600 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

