/* ==========================================================================
   Consumer shop (S4) — layout, pages and components
   --------------------------------------------------------------------------
   Chrome        .shop .shop-header .shop-brand .shop-mark .shop-main .shop-footer .lang-switch
                 .shop-container (max 1120) .shop-narrow (max 640) .shop.is-embed .shop.is-bare
   Shared        .poster(.is-placeholder|.poster-sm|md|lg) .date-chip .price-from .method-mark
                 .status-screen .section-head .link-btn
   Home          .home-hero .home-title .home-perks .ev-grid .ev-card .home-org
   Event         .ev-layout .ev-main .ev-aside .ev-poster .ev-title .ev-chips .ev-chip .ev-desc
   Checkout      .co-card .co-steps .co-type .co-form .co-pay .co-methods .co-method .co-foot
                 .co-summary .sum-lines .sum-line .sum-total .co-bar (mobile sticky bar)
   Shop          .shop-hero .shop-list .shop-ev
   Order         .order-page .order-hero .success-mark .tk (ticket card) .order-event .order-details
                 .countdown-chip .order-state-wrap
   Mock PSP      .psp .psp-card .psp-btn
   ========================================================================== */

/* Shop tokens --------------------------------------------------------------------
   --accent-strong  state cues: selected borders, check marks, step badges, the stepper of a chosen
                    ticket. Always ≥ 3:1 on white and on --bg (layout.js accentVars() sets it for a
                    shop accent; a light accent such as amber keeps its colour for fills only).
   --focus-color / --shadow-focus  a two-tone focus ring (white gap + strong colour) that is visible
                    on every surface. Redeclared here and not only in tokens.css because var() inside
                    a custom property is resolved where it is declared: tokens.css's ring would
                    never pick up a shop's own accent.
   --link           links are AA (≥ 4.5:1) on the #F5F7FA page background, not just on white. */
:root, .shop {
  --accent-strong: var(--accent);
  --focus-color: var(--accent-strong);
  --shadow-focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus-color);
}
:root { --link: var(--accent-text); }
.shop :focus-visible { outline-color: var(--focus-color); }

body { background: var(--bg); }
.shop { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.shop-main { flex: 1; min-width: 0; }
/* The router wraps every page in div.page with a rise-in animation that uses `transform`; a
   transformed ancestor turns position:fixed into "fixed to that wrapper", which pinned the mobile
   checkout bar to the end of the page instead of the screen. In the shop the page only fades in. */
.shop .page { animation-name: shop-page-in; }
@keyframes shop-page-in { from { opacity: 0; } to { opacity: 1; } }

/* Header ---------------------------------------------------------------------- */
.shop-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle); padding-top: var(--safe-top);
}
/* Keyboard focus and in-page jumps (#tickets) never end up under the sticky header. */
html:has(.shop-header) { scroll-padding-top: 72px; }
.shop-header-inner { max-width: 1120px; margin: 0 auto; height: 64px; padding: 0 20px; display: flex; align-items: center; gap: 16px; }
.shop-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none !important; color: var(--text); min-width: 0; border-radius: 8px; }
.shop-brand:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 4px; }
.shop-brand-logo { height: 25px; width: auto; max-width: 180px; object-fit: contain; }
.shop-brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.shop-brand-name { font-weight: 680; font-size: 15.5px; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-brand-sub { font-size: 11px; color: var(--text-muted); }
.shop-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.shop-mark {
  --mark-size: 30px;
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: var(--mark-size); height: var(--mark-size); border-radius: calc(var(--mark-size) * .3);
  background: var(--mark-bg, var(--brand-gradient)); color: var(--mark-fg, #fff);
  font-weight: 740; font-size: calc(var(--mark-size) * .46); letter-spacing: -0.02em; line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(16, 24, 40, .14);
}

.shop-container { max-width: 1120px; margin: 0 auto; padding: 32px 20px 72px; }
.shop-narrow { max-width: 640px; }
.shop.is-wide .shop-container { max-width: 1280px; }
.shop-page-loader { min-height: 60vh; }

/* Footer ---------------------------------------------------------------------- */
.shop-footer { border-top: 1px solid var(--border-subtle); background: var(--surface); }
.shop-footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 20px 20px calc(20px + var(--safe-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap;
}
.shop-made { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: var(--text-muted); text-decoration: none !important; }
.shop-made img { height: 16px; width: auto; opacity: .9; transition: opacity var(--dur-fast) ease; }
.shop-made:hover img { opacity: 1; }
.shop-trust { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-muted); }
.shop-trust span { display: inline-flex; align-items: center; gap: 6px; }
.shop-trust .icon { color: var(--accent-text); }

.lang-switch { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--surface-3); gap: 2px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04); }
.lang-opt {
  height: 26px; padding: 0 10px; border-radius: 6px; font-size: var(--text-xs); font-weight: 620; letter-spacing: .03em;
  color: var(--text-muted); transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.lang-opt:hover { color: var(--text); }
.lang-opt.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 1px rgba(16,24,40,.04); }
.lang-opt:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 1px; }
.lang-switch.is-compact .lang-opt { height: 26px; padding: 0 9px; }

/* Embed mode (?embed=1): no chrome, transparent page, tight padding */
html.is-embed, html.is-embed body { background: transparent; min-height: 0; }
.shop.is-embed { min-height: 0; }
.shop.is-embed .shop-container { padding: 12px 12px 8px; }
.shop-embed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 12px 12px; font-size: var(--text-2xs); }
.shop-embed-foot a { color: var(--text-muted); }

/* Shared bits ------------------------------------------------------------------ */
.link-btn { color: var(--link); font-weight: 560; text-underline-offset: 3px; border-radius: 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 18px; }
.section-title { font-size: 22px; font-weight: 700; letter-spacing: -0.022em; }
.section-count { color: var(--text-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }

/* Poster: reserved 2:1 box, fade-in, gradient placeholder */
.poster {
  position: relative; aspect-ratio: 2 / 1; width: 100%; overflow: hidden; background: var(--surface-3);
  container-type: inline-size; isolation: isolate;
}
.poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.poster.is-loaded > img { opacity: 1; }
.poster > .skeleton { position: absolute; inset: 0; }
.poster.is-placeholder {
  display: flex; align-items: flex-end; padding: 6% 7%;
  background: linear-gradient(135deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
}
.poster-glow {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 82% 8%, rgba(255,255,255,.38), transparent 42%),
              radial-gradient(circle at 6% 120%, rgba(0,0,0,.28), transparent 55%);
}
.poster-name {
  position: relative; color: #fff; font-weight: 780; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(15px, 7cqi, 54px); text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 92%;
}
.poster-lg { border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(16, 24, 40, .35), 0 2px 6px rgba(16, 24, 40, .06); }
.poster-sm { border-radius: 10px; }
.poster-sm .poster-name { font-size: clamp(9px, 9cqi, 18px); }
@container (max-width: 140px) { .poster-name { display: none; } }

.date-chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 52px; padding: 7px 8px 8px; line-height: 1;
  background: rgba(255, 255, 255, .96); border-radius: 12px; color: var(--text);
  box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .35), 0 0 0 1px rgba(16, 24, 40, .04);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.date-chip-month { font-size: 10.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); }
.date-chip-day { font-size: 22px; font-weight: 760; letter-spacing: -0.03em; margin-top: 3px; font-variant-numeric: tabular-nums; }

.price-from { font-size: 13.5px; color: var(--text-muted); white-space: nowrap; }
.price-from strong { color: var(--text); font-weight: 680; font-size: 15px; letter-spacing: -0.01em; margin-left: 4px; }
.price-from > strong:first-child, .price-from-to strong { margin-left: 0; }
.price-from-to { color: var(--text-muted); }

.method-mark {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 28px; border-radius: 6px;
  color: #fff; font-weight: 820; font-size: 12px; letter-spacing: -0.02em; line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.method-mark-sm { width: 34px; height: 22px; font-size: 10px; border-radius: 5px; }
.method-mark.is-generic { background: var(--surface-3); color: var(--text-muted); }
.method-mark.has-ring { box-shadow: inset 0 0 0 1px var(--border-strong); }
.method-mark.is-image { background: #fff; box-shadow: inset 0 0 0 1px var(--border); padding: 3px; }
.method-mark.is-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Status screen (not found, order states) */
.status-screen {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 28px 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm);
}
.status-icon {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: var(--surface-3); color: var(--text-muted);
}
.status-screen.is-success .status-icon { background: var(--success-soft); color: var(--success); }
.status-screen.is-info .status-icon { background: var(--info-soft); color: var(--info); }
.status-screen.is-warning .status-icon { background: var(--warning-soft); color: var(--warning); }
.status-screen.is-danger .status-icon { background: var(--danger-soft); color: var(--danger); }
.status-title { font-size: 24px; font-weight: 720; letter-spacing: -0.025em; line-height: 1.2; margin-top: 18px; max-width: 22em; }
.status-desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-top: 8px; max-width: 32em; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.status-screen .alert { margin-top: 18px; text-align: left; width: 100%; max-width: 420px; }
.status-screen.is-checking .status-icon svg { animation: dts-spin 1.1s linear infinite; }
.status-screen.is-checking .status-icon::after {
  content: ''; position: absolute; inset: -6px; border-radius: 22px; border: 2px solid var(--info-ring);
  animation: dts-pulse 1.6s ease-in-out infinite;
}
.shop-narrow > .status-screen { margin-top: 24px; }

/* Home: a real event and its complete, uncropped artwork ----------------------- */
.home { background: #f8f9f7; }
.home-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; color: #477269; }
.home-intro.shop-container { padding-top: 55px; padding-bottom: 36px; }
.home-intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-top: 18px; }
.home-headline { font-size: clamp(34px, 4.5vw, 54px); font-weight: 740; line-height: 1.08; letter-spacing: -.045em; color: #142a28; }
.home-headline > span { color: #517d73; }
.home-intro-lead { max-width: 305px; color: #66726f; font-size: 15px; line-height: 1.75; margin-bottom: 4px; }
.home-agenda.shop-container { padding-top: 0; padding-bottom: 0; }
.home-feature { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); overflow: hidden; background: #fff; border: 1px solid #e0e6e1; border-radius: 24px; box-shadow: 0 16px 45px -25px rgba(24, 50, 40, .2); }
.home-feature-art { min-width: 0; display: flex; align-items: center; justify-content: center; background: #0b0c16; color: #fff; text-decoration: none; }
.home-feature-art:focus-visible { outline: 3px solid #77d9c6; outline-offset: -4px; }
.home-feature-poster.poster { width: 100%; aspect-ratio: auto; border-radius: 0; background: transparent; }
.home-feature-poster.poster img { position: static; display: block; width: 100%; height: auto; object-fit: contain; }
.home-feature-poster.is-placeholder { min-height: 450px; }
.home-feature-copy { display: flex; flex-direction: column; min-width: 0; padding: clamp(28px, 4vw, 48px); }
.home-feature-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-feature-dot { width: 6px; height: 6px; background: #4b9b81; border-radius: 50%; }
.home-feature-series { color: #657268; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.home-feature-title { margin: 28px 0 0; font-size: clamp(27px, 3.6vw, 43px); line-height: 1.1; letter-spacing: -.035em; font-weight: 760; color: #152923; overflow-wrap: anywhere; }
.home-feature-summary { margin-top: 15px; color: #6c7671; font-size: 14px; line-height: 1.75; }
.home-feature-details { display: grid; gap: 20px; margin: 28px 0; padding: 0; }
.home-feature-details > div { display: flex; align-items: center; gap: 15px; }
.home-feature-details dt { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: #f0f5f1; color: #557a6c; }
.home-feature-details dd { margin: 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; }
.home-feature-details strong { font-weight: 640; color: #283b31; }
.home-feature-details dd > span { font-size: 13px; color: #657268; }
.home-feature-booking { margin-top: auto; padding-top: 25px; border-top: 1px solid #e8ece8; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.home-feature-price { display: flex; flex-direction: column; gap: 4px; }
.home-feature-price strong { font-size: 30px; font-weight: 730; letter-spacing: -.04em; color: #1c3528; }
.home-feature-price > span { color: #657268; font-size: 10px; }
.home-feature-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.home-feature-actions .btn-primary { background: #1a4d3b; color: #fff; border-color: #1a4d3b; min-height: 50px; padding-inline: 24px; }
.home-feature-actions .btn-primary:hover { background: #103a2b; border-color: #103a2b; }
.home-booking-note { display: inline-flex; align-items: center; gap: 5px; color: #657268; font-size: 10px; }
.home-feature-bottom { display: flex; align-items: center; gap: 8px; color: #657268; font-size: 11px; padding-top: 25px; }
.home-feature-loading .home-feature-art { min-height: 530px; background: #e8ede8; }
.home-feature-loading .home-feature-copy { gap: 30px; }
.home-more { margin-top: 48px; }
.home-empty { padding: 48px 18px; border-radius: 24px; }
.shop-site-nav { display: flex; gap: 24px; margin-right: 24px; align-items: center; }
.shop-site-nav a { color: var(--text-secondary); font-size: 13px; text-decoration: none; font-weight: 550; }
.shop-site-nav a:hover { color: var(--accent-text); }
.shop-footer-links { display: flex; gap: 20px; font-size: 12px; }
.shop-footer-links a { color: var(--text-muted); text-decoration: none; }
.shop-footer-links a:hover { color: var(--accent-text); }

.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ev-grid.is-few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ev-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: inherit; text-decoration: none !important;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease-out), box-shadow .22s ease, border-color .22s ease;
}
.ev-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.ev-card:focus-visible { outline: none; box-shadow: var(--shadow-focus), var(--shadow-md); }
.ev-card-media { position: relative; }
.ev-card .poster { border-radius: 0; }
.ev-card-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; min-width: 0; }
.ev-card-head { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.ev-card-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  width: 50px; height: 56px; border-radius: 12px; background: var(--accent-soft); line-height: 1;
}
.ev-card-month { font-size: 10.5px; font-weight: 740; text-transform: uppercase; letter-spacing: .09em; color: var(--accent-text); }
.ev-card-day { font-size: 22px; font-weight: 780; letter-spacing: -0.03em; color: var(--text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.ev-card-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-card-title { font-size: 17px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.28; }
.ev-card-meta { display: flex; flex-direction: column; gap: 5px; color: var(--text-muted); font-size: 13.5px; }
.ev-card-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ev-card-line .icon { color: var(--text-subtle); }
.ev-card-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; }
.ev-card-go {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-3); color: var(--text-secondary);
  transition: background-color .2s ease, color .2s ease, transform .22s var(--ease-out);
}
.ev-card:hover .ev-card-go { background: var(--accent); color: var(--accent-contrast); transform: translateX(2px); }
.ev-card.is-sold-out .poster > img { filter: grayscale(.35); }
.ev-card.is-skeleton { pointer-events: none; }
.ev-card.is-skeleton .ev-card-body { gap: 12px; }

.home-how.shop-container { padding-top: 65px; padding-bottom: 60px; }
.home-section-heading h2, .home-help h2 { margin-top: 10px; font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; color: #1e352c; }
.home-steps { margin: 30px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.home-steps li { padding: 0 25px 0 0; }
.home-steps li + li { padding-left: 30px; border-left: 1px solid #dfe6df; }
.home-step-top { display: flex; justify-content: space-between; align-items: center; color: #6c9380; margin-bottom: 18px; }
.home-step-top > span { color: #657268; font-size: 12px; letter-spacing: .08em; }
.home-steps h3 { font-size: 16px; font-weight: 650; letter-spacing: -.015em; color: #2c4235; }
.home-steps p { font-size: 13px; line-height: 1.75; margin-top: 9px; color: #657268; }
.home-help.shop-container { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 70px; padding-top: 46px; padding-bottom: 70px; border-top: 1px solid #e1e7e1; }
.home-help-intro p { margin-top: 15px; max-width: 320px; color: #657268; font-size: 13px; line-height: 1.8; }
.home-contact { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; font-size: 13px; color: #28654a; font-weight: 600; text-decoration: none; }
.home-contact:hover { text-decoration: underline; }
.home-faq { border-top: 1px solid #dfe6df; }
.home-faq details { border-bottom: 1px solid #dfe6df; }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; font-size: 13px; font-weight: 600; color: #304336; cursor: pointer; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary .icon { flex-shrink: 0; color: #70927d; }
.home-faq details[open] summary .icon { transform: rotate(45deg); }
.home-faq details p { margin: -3px 28px 20px 0; font-size: 13px; line-height: 1.85; color: #657268; }
@media (max-width: 900px) {
  .home-intro-row { gap: 24px; }
  .home-intro-lead { max-width: 250px; font-size: 14px; }
  .home-feature-copy { padding: 26px; }
  .home-feature-title { font-size: 29px; margin-top: 20px; }
  .home-feature-details { gap: 15px; margin: 22px 0; }
  .home-feature-booking { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-feature-actions { width: 100%; }
  .home-feature-actions .btn { width: 100%; }
  .home-feature-bottom { font-size: 10px; padding-top: 18px; }
  .home-help.shop-container { gap: 35px; }
}
@media (max-width: 640px) {
  .home-intro.shop-container { padding-top: 24px; padding-bottom: 22px; }
  .home-intro-row { display: block; margin-top: 13px; }
  .home-headline { font-size: clamp(29px, 8vw, 37px); }
  .home-intro-lead { max-width: 34em; margin-top: 12px; font-size: 13px; line-height: 1.6; }
  .home-kicker { font-size: 9px; letter-spacing: .09em; }
  .home-feature { display: flex; flex-direction: column; border-radius: 18px; }
  .home-feature-art { padding: 0; }
  .home-feature-poster.poster { max-width: 360px; }
  .home-feature-copy { order: -1; padding: 22px; }
  .home-feature-title { font-size: 30px; margin-top: 20px; }
  .home-feature-series { font-size: 9px; }
  .home-feature-summary { font-size: 13px; margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .home-feature-booking { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 18px; }
  .home-feature-price strong { font-size: 29px; }
  .home-feature-actions { width: auto; flex: 1; min-width: 150px; }
  .home-feature-actions .btn-primary { padding-inline: 16px; }
  .home-feature-details { margin-block: 20px; }
  .home-feature-bottom { padding-top: 18px; font-size: 11px; }
  .home-feature-loading .home-feature-art { min-height: 350px; }
  .home-more { margin-top: 32px; }
  .home-how.shop-container { padding-top: 42px; padding-bottom: 38px; }
  .home-section-heading h2, .home-help h2 { font-size: 25px; }
  .home-steps { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
  .home-steps li, .home-steps li + li { padding: 0 0 20px; border-left: 0; border-bottom: 1px solid #e1e7e1; }
  .home-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
  .home-step-top { margin-bottom: 11px; }
  .home-help.shop-container { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 35px; padding-bottom: 44px; }
  .shop-site-nav { gap: 0; margin-right: 4px; }
  .shop-site-nav a { font-size: 12px; }
  .shop-site-nav .shop-help-link { display: none; }
  .shop-footer-links { gap: 18px; }
}

/* Event page ---------------------------------------------------------------------- */
.ev-page { padding-top: 22px; }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.ev-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.ev-aside { position: sticky; top: 88px; min-width: 0; }
.ev-info { display: flex; flex-direction: column; min-width: 0; }
.ev-back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px;
  color: var(--text-muted); font-size: 14px; font-weight: 540; text-decoration: none !important; border-radius: 6px;
}
.ev-back:hover { color: var(--text); }
.ev-back .icon { transition: transform .2s var(--ease-out); }
.ev-back:hover .icon { transform: translateX(-2px); }
.ev-head { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.ev-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.08; overflow-wrap: anywhere; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  font-size: 13.5px; font-weight: 540; color: var(--text-secondary); text-decoration: none !important; min-width: 0;
}
.ev-chip > .icon:first-child { color: var(--accent-text); }
.ev-chip.is-link { transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.ev-chip.is-link:hover { border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.ev-chip-ext { color: var(--text-subtle); margin-left: -2px; }
.ev-about { margin-top: 32px; }
.ev-section-title { font-size: 17px; font-weight: 680; letter-spacing: -0.015em; margin-bottom: 10px; }
.ev-desc { position: relative; white-space: pre-line; color: var(--text-secondary); font-size: 15px; line-height: 1.72; overflow-wrap: anywhere; }
.ev-desc.is-clamped { max-height: calc(1.72em * 5); overflow: hidden; }
.ev-desc.has-fade { -webkit-mask-image: linear-gradient(#000 45%, transparent 100%); mask-image: linear-gradient(#000 45%, transparent 100%); }
.ev-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 14px; }

/* Checkout card */
.co-card { border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 12px; }
.co-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  padding: 20px 24px 18px; border-bottom: 1px solid var(--border-subtle);
}
.co-title { font-size: 19px; font-weight: 720; letter-spacing: -0.022em; }

.co-steps ol { display: flex; gap: 8px; list-style: none; }
.co-step { display: flex; flex-direction: column; gap: 7px; min-width: 96px; }
.co-step-btn {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 580; color: var(--text-muted);
  padding: 1px 2px 1px 0; border-radius: 6px; white-space: nowrap; text-align: left;
}
.co-step-btn:disabled { cursor: default; }
.co-step-btn:not(:disabled):hover .co-step-label { text-decoration: underline; text-underline-offset: 3px; }
.co-step-btn:focus-visible { outline: 2px solid var(--focus-color); outline-offset: 2px; }
.co-step-num {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--border-strong); font-size: 11px; font-weight: 720; font-variant-numeric: tabular-nums;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.co-step.is-active .co-step-btn { color: var(--text); }
.co-step.is-active .co-step-num { border-color: var(--accent-strong); color: var(--accent-text); background: var(--accent-soft); }
.co-step.is-done .co-step-btn { color: var(--text-secondary); }
.co-step.is-done .co-step-num { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }
.co-step-bar { position: relative; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.co-step-bar::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.shop.has-accent .co-step-bar::after { background: var(--accent); }
.co-step.is-done .co-step-bar::after { transform: scaleX(1); }
.co-step.is-active .co-step-bar::after { transform: scaleX(.5); }

.co-body { animation: dts-rise-in .26s var(--ease-out) both; }
.co-notice { padding: 16px 24px 0; }
.co-notice + .co-body .co-types { padding-top: 6px; }
.co-closed { padding: 18px 24px 4px; }
.co-soon-when { font-variant-numeric: tabular-nums; }
.co-soon-auto { display: block; margin-top: 4px; }
.co-closed-cta { padding: 14px 24px 22px; }

/* ticket types */
.co-types { display: flex; flex-direction: column; }
.co-type {
  position: relative; display: flex; align-items: center; gap: 20px; padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle); transition: background-color .2s ease;
}
.co-type:last-child { border-bottom: 0; }
.co-type::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent-strong); transform: scaleY(0); transition: transform .22s var(--ease-out);
}
.co-type.is-selected { background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0) 75%); }
.co-type.is-selected::before { transform: scaleY(1); }
.co-type-info { flex: 1; min-width: 0; }
.co-type-name { font-weight: 640; font-size: 15.5px; letter-spacing: -0.012em; }
.co-type-desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.5; margin-top: 3px; }
.co-type-meta { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px; }
.co-type-state { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 580; }
.co-type-state.is-warning { color: var(--warning-text); }
.co-type-state.is-info { color: var(--info-text); }
.co-type-state.is-muted { color: var(--text-muted); }
.co-type.is-unavailable .co-type-name { color: var(--text-secondary); }
.co-type.is-unavailable .co-type-amount { color: var(--text-muted); }
.co-type-side { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.co-type-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 1px; }
.co-type-amount { font-weight: 700; font-size: 16.5px; letter-spacing: -0.015em; }
.co-type-fee { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.co-stepper.stepper { height: 40px; border-radius: 10px; }
.co-stepper .stepper-btn { width: 40px; }
.co-stepper .stepper-value { width: 44px; font-size: 15px; }
.co-type.is-selected .co-stepper { border-color: var(--accent-strong); }
/* Focus inside the stepper: a strong border for the group, a ring inside the focused −/+ button
   (an outline outside it would be clipped by the stepper's rounded overflow). */
.shop .stepper:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong); }
.shop .stepper-btn:focus-visible { outline: 2px solid var(--focus-color); outline-offset: -4px; border-radius: 8px; }
.shop .input:focus-within { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong), 0 0 0 4px var(--accent-ring); }
.shop .input.is-invalid:focus-within { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger), 0 0 0 4px var(--danger-ring); }
.co-slot {
  display: inline-flex; align-items: center; justify-content: center; width: 126px; height: 40px; border-radius: 10px;
  border: 1px dashed var(--border-strong); background: var(--surface-2); color: var(--text-muted); font-size: 13px; font-weight: 580;
}
.co-slot.is-sold-out { color: var(--danger-text); border-color: rgba(220, 38, 38, .28); background: var(--danger-soft); border-style: solid; }
.co-limit { display: flex; align-items: center; gap: 7px; padding: 12px 24px; font-size: 13px; color: var(--text-muted); background: var(--surface-2); border-top: 1px solid var(--border-subtle); }

/* details form */
.co-form { display: flex; flex-direction: column; gap: 18px; padding: 24px; }
.co-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co-named { padding: 16px 16px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-subtle); }
.co-holders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); animation: dts-rise-in .24s var(--ease-out) both; }
.co-terms { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.co-terms .checkbox-label { font-size: 14px; color: var(--text-secondary); }
.co-terms.is-invalid .checkbox-box { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-ring); }

/* payment step */
.co-pay { display: flex; flex-direction: column; gap: 24px; padding: 24px; }
.co-review { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; background: var(--surface-2); }
.co-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.co-review-title { font-weight: 660; letter-spacing: -0.01em; }
/* "Tickets wijzigen" (accessible name on every size); phones show just "Wijzigen" to keep room for the title. */
.co-edit-short { display: none; }
.co-review-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.co-review-mail {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px 10px;
  font-size: 13.5px; line-height: 1.45; color: var(--text-muted);
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-strong);
}
.co-review-mail > .icon { margin-top: 2px; color: var(--text-subtle); }
.co-review-mail strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.co-review-mail .link-btn { font-size: 13px; }
.co-sub { font-weight: 660; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 12px; }
.co-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.co-method {
  position: relative; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 36px 0 14px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); text-align: left;
  font-weight: 580; font-size: 14px; color: var(--text); box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.co-method:hover { border-color: var(--ink-300); background: var(--surface-2); }
.co-method:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.co-method.is-selected { border-color: var(--accent-strong); background: var(--surface); box-shadow: 0 0 0 1px var(--accent-strong), var(--shadow-sm); }
.co-method.is-selected:focus-visible { box-shadow: 0 0 0 1px var(--accent-strong), 0 0 0 3px var(--surface), 0 0 0 5px var(--focus-color); }
.co-method-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-method-check {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%) scale(.6); opacity: 0;
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-strong); color: #fff; transition: opacity .15s ease, transform .2s var(--ease-spring);
}
.co-method.is-selected .co-method-check { opacity: 1; transform: translateY(-50%) scale(1); }
.co-method.is-skeleton { gap: 12px; pointer-events: none; box-shadow: none; }
.co-hint { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); margin-top: 12px; line-height: 1.45; }
.co-hint .icon { color: var(--text-subtle); }

/* card footer (Back; CTA only in embed mode) */
.co-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; border-top: 1px solid var(--border-subtle); background: var(--surface-2);
}
.co-foot.is-first { display: none; }
.co-foot-cta { display: none; align-items: center; gap: 16px; margin-left: auto; }
.co-foot-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.co-foot-total span { font-size: 12px; color: var(--text-muted); }
.co-foot-total strong { font-size: 17px; font-weight: 720; }
.shop.is-embed .co-foot, .shop.is-embed .co-foot.is-first { display: flex; }
.shop.is-embed .co-foot-cta { display: flex; }

/* summary (desktop) */
.co-summary { border-radius: 18px; box-shadow: var(--shadow-md); overflow: hidden; }
.co-summary-event { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border-subtle); }
.co-summary-poster { width: 76px; flex-shrink: 0; border-radius: 8px; }
.co-summary-meta { min-width: 0; }
.co-summary-name { font-weight: 640; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-summary-when { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.co-summary-body { padding: 16px 18px 2px; }
.co-summary-title { font-size: 12px; font-weight: 680; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 12px; }
.co-summary-empty {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px;
  border: 1px dashed var(--border-strong); color: var(--text-subtle);
}
.co-summary-empty > div { display: flex; flex-direction: column; gap: 2px; }
.co-summary-empty strong { color: var(--text); font-weight: 600; font-size: 14px; }
.co-summary-empty span { font-size: 13px; color: var(--text-muted); }
.co-summary-empty > .icon { flex-shrink: 0; margin-top: 1px; }
.co-summary-empty.is-danger > .icon { color: var(--danger); }
.co-summary-empty.is-info > .icon { color: var(--info); }
.co-summary-empty.is-warning > .icon { color: var(--warning); }
.co-summary-cta { padding: 16px 18px 18px; }
.co-trust { list-style: none; display: flex; flex-direction: column; gap: 7px; padding: 13px 18px 15px; border-top: 1px solid var(--border-subtle); background: var(--surface-2); }
.co-trust li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.co-trust .icon { color: var(--accent-text); }

.sum-lines { display: flex; flex-direction: column; gap: 9px; }
.sum-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.sum-line-name { color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }
.sum-qty { display: inline-block; min-width: 22px; color: var(--text-muted); font-weight: 600; margin-right: 4px; }
.sum-line-amount { font-weight: 560; white-space: nowrap; }
.sum-line.is-fee .sum-line-name { color: var(--text-muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--border); font-weight: 640; }
.sum-total-amount { font-size: 24px; font-weight: 740; letter-spacing: -0.025em; }
.sum-note { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: -4px; }
.sum-lines.is-compact .sum-total-amount { font-size: 19px; }

/* mobile sticky bar */
.co-bar { display: none; }

.terms-body { color: var(--text-secondary); line-height: 1.65; font-size: 14.5px; }
.terms-body p + p { margin-top: 12px; }

/* Shop page ------------------------------------------------------------------------ */
.shop-hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border-subtle); }
.shop-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-gradient); }
.shop-hero.has-accent::before { background: var(--shop-accent, var(--accent)); }
.shop-hero::after {
  content: ''; position: absolute; right: -8%; top: -80%; width: 50%; height: 240%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); opacity: .9;
}
.shop-hero-inner { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 22px; padding-top: 48px; padding-bottom: 44px; }
.shop-hero-copy { min-width: 0; }
.shop-hero-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.06; }
.shop-hero-intro { color: var(--text-muted); font-size: 16.5px; line-height: 1.6; margin-top: 12px; max-width: 40em; }
.shop-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }
.shop-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.shop-hero-meta .icon { color: var(--accent-text); }
.shop-list { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; }
.shop-ev {
  display: grid; grid-template-columns: 72px 208px minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 14px 22px 14px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  color: inherit; text-decoration: none !important; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease-out), box-shadow .22s ease, border-color .22s ease;
}
.shop-ev:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.shop-ev:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.shop-ev.is-skeleton { grid-template-columns: 64px 208px minmax(0, 1fr); pointer-events: none; }
.shop-ev-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 92px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-text); line-height: 1;
}
.shop-ev-weekday { font-size: 11px; font-weight: 680; text-transform: uppercase; letter-spacing: .08em; }
.shop-ev-day { font-size: 30px; font-weight: 780; letter-spacing: -0.035em; margin: 5px 0 4px; color: var(--text); font-variant-numeric: tabular-nums; }
.shop-ev-month { font-size: 12px; font-weight: 680; text-transform: uppercase; letter-spacing: .07em; }
.shop-ev-media .poster { border-radius: 12px; }
.shop-ev-body { min-width: 0; }
.shop-ev-title { font-size: 18.5px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.25; }
.shop-ev-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 7px; color: var(--text-muted); font-size: 13.5px; }
.shop-ev-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.shop-ev-meta .icon { color: var(--text-subtle); }
.shop-ev-summary {
  margin-top: 8px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.shop-ev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.shop-ev-btn { pointer-events: none; }
.shop-ev-btn .icon { margin-right: -2px; transition: transform .22s var(--ease-out); }
.shop-ev:hover .shop-ev-btn .icon { transform: translateX(2px); }
.shop-ev.is-muted .shop-ev-date { background: var(--surface-3); color: var(--text-muted); }

/* Order page ----------------------------------------------------------------------- */
.order-page { padding-top: 44px; }
.order-hero { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 660px; margin: 0 auto 44px; }
.order-title { font-size: clamp(32px, 4.4vw, 46px); font-weight: 790; letter-spacing: -0.04em; line-height: 1.05; margin-top: 20px; }
.order-lead { font-size: 16.5px; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }
.order-lead strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.order-lead .mono { font-size: .95em; }
.order-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.order-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; line-height: 1.5; text-wrap: balance; }
.order-note .icon { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.order-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.order-hint { display: flex; align-items: flex-start; gap: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: -8px 0 18px; }
.order-hint .icon { margin-top: 2px; }
.order-hint .icon { color: var(--accent-text); }
.order-alert { margin-top: 16px; }

.success-mark { position: relative; width: 72px; height: 72px; }
.success-mark svg { overflow: visible; }
.sm-bg { fill: var(--accent-soft); }
.sm-ring { fill: none; stroke-width: 3.5; }
.sm-check { fill: none; stroke: var(--accent-strong); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.success-mark.is-animated { animation: sm-pop .55s var(--ease-spring) both; }
.success-mark.is-animated .sm-ring { stroke-dasharray: 208; stroke-dashoffset: 208; animation: sm-draw .8s .05s var(--ease-out) forwards; transform: rotate(-90deg); transform-origin: 36px 36px; }
.success-mark.is-animated .sm-check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: sm-draw .45s .55s var(--ease-out) forwards; }
.sm-burst { position: absolute; inset: 0; pointer-events: none; }
.sm-burst i {
  position: absolute; left: calc(50% - 3.5px); top: calc(50% - 3.5px); width: 7px; height: 7px; border-radius: 2px; opacity: 0;
  background: #22B5A6; animation: sm-burst .95s calc(.5s + var(--d)) cubic-bezier(.2, .7, .3, 1) both;
}
.sm-burst i:nth-child(5n+1) { background: #1A9BCB; }
.sm-burst i:nth-child(5n+2) { background: #36D48B; border-radius: 50%; }
.sm-burst i:nth-child(5n+3) { background: #F59E0B; }
.sm-burst i:nth-child(5n+4) { background: #EC4899; border-radius: 50%; }
@keyframes sm-draw { to { stroke-dashoffset: 0; } }
@keyframes sm-pop { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sm-burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(-10px) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-70px) scale(1) rotate(90deg); }
}

/* ticket card */
.tk-list { display: flex; flex-direction: column; gap: 18px; }
.tk {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 212px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.tk::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); z-index: 1; }
.shop.has-accent .tk::before { background: var(--accent); }
.tk-main { display: flex; flex-direction: column; min-width: 0; padding: 24px 26px 20px; }
.tk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-type {
  font-size: 11px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
  background: var(--accent-soft); padding: 5px 9px; border-radius: 7px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tk-count { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-event { font-size: 20px; font-weight: 740; letter-spacing: -0.025em; line-height: 1.22; margin-top: 14px; overflow-wrap: anywhere; }
.tk-when { font-size: 13.5px; color: var(--text-secondary); margin-top: 6px; }
.tk-where { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.tk-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.tk-fields dt { font-size: 12px; font-weight: 680; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.tk-fields dd { margin-top: 4px; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.tk-fields dd.code { font-size: 14px; letter-spacing: .04em; }
.tk-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; min-height: 24px; }
.tk-pdf { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 580; }
.tk-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 18px 20px; border-left: 2px dashed var(--border-strong); background: var(--surface-2);
}
.tk-stub::before, .tk-stub::after {
  content: ''; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border); z-index: 2;
}
.tk-stub::before { top: -12px; }
.tk-stub::after { bottom: -12px; }
.tk-qr { background: #fff; padding: 10px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.tk-qr img { display: block; width: 148px; height: 148px; image-rendering: pixelated; }
.tk.is-void .tk-qr img { opacity: .18; filter: grayscale(1); }
.tk.is-void .tk-event, .tk.is-void .tk-fields dd { text-decoration: line-through; text-decoration-color: var(--text-subtle); }
.tk.is-skeleton { pointer-events: none; }

.order-event { display: flex; flex-direction: column; overflow: hidden; }
.order-event-poster.poster-sm { border-radius: 0; }
.order-event-body { min-width: 0; padding: 14px 18px 16px; }
.order-event-name { font-weight: 680; letter-spacing: -0.012em; line-height: 1.3; }
.order-event-line { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--text-muted); margin-top: 5px; line-height: 1.4; text-decoration: none !important; }
.order-event-line .icon { margin-top: 1px; color: var(--text-subtle); }
.order-event-line.is-link:hover { color: var(--text); }
.order-event-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.order-details { padding: 16px 18px 18px; }
.order-details-title { font-weight: 680; letter-spacing: -0.01em; margin-bottom: 6px; }
.order-details .dl-row { grid-template-columns: minmax(96px, 40%) minmax(0, 1fr); }
.order-lines { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 9px; }
.order-details-title + .order-lines { margin-top: 6px; border-top: 0; padding-top: 6px; }
.order-method { display: inline-flex; align-items: center; gap: 8px; }
.order-buyer-mail { color: var(--text-muted); overflow-wrap: anywhere; }

.order-state-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.order-state-side { display: flex; flex-direction: column; gap: 16px; }
.order-state-wrap .status-screen { padding-top: 56px; padding-bottom: 52px; }
.countdown-chip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 8px 15px; border-radius: 14px; text-align: left;
  background: var(--warning-soft); color: var(--warning-text); font-size: 13.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--warning-ring);
}
.pending-spinner { display: none; }

/* Mock payment provider (neutral, clearly a test) ----------------------------------- */
.shop.is-bare { background: #EDF0F4; }
.psp { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; padding: 48px 16px 40px; background: #EDF0F4; color: #0F172A; }
.psp-wrap { width: 100%; max-width: 460px; }
.psp-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #1E293B; }
.psp-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #1E293B; color: #fff; }
.psp-brand-name { font-weight: 760; letter-spacing: -0.02em; font-size: 17px; }
.psp-test {
  margin-left: auto; font-size: 11px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase;
  color: #92400E; background: #FEF3C7; border: 1px solid #FCD34D; padding: 4px 9px; border-radius: 6px;
}
.psp-card {
  background: #fff; border-radius: 16px; border: 1px solid #E2E8F0; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 16px 36px -14px rgba(15, 23, 42, .2);
}
.psp-card > .status-screen { border: 0; box-shadow: none; border-radius: 0; }
.psp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; }
.psp-label { display: block; font-size: 11.5px; font-weight: 650; color: #64748B; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 5px; }
.psp-merchant-name { font-weight: 660; font-size: 16px; }
.psp-amount { text-align: right; margin-left: auto; }
.psp-amount-value { display: block; font-size: 32px; font-weight: 760; letter-spacing: -0.035em; line-height: 1; }
.psp-body { display: flex; flex-direction: column; gap: 22px; padding: 22px 24px 24px; }
.psp-desc-text { display: block; font-weight: 580; }
.psp-desc-sub { display: block; font-size: 13px; color: #64748B; margin-top: 2px; }
.psp-items { list-style: none; margin-top: 12px; padding-top: 10px; border-top: 1px solid #F1F5F9; }
.psp-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #475569; padding: 3px 0; }
.psp-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.psp-method {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 10px;
  font-weight: 580; font-size: 14px; background: #fff; color: #0F172A; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.psp-method:hover { border-color: #94A3B8; }
.psp-method.is-selected { border-color: #2563EB; box-shadow: 0 0 0 1px #2563EB; background: #EFF6FF; }
.psp-method:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); }
.psp-method.is-fixed { border-color: #E2E8F0; background: #F8FAFC; }
.psp-method-check { margin-left: auto; color: #16A34A; }
.psp-explain { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #64748B; line-height: 1.5; }
.psp-explain .icon { margin-top: 2px; flex-shrink: 0; }
.psp-actions { display: flex; flex-direction: column; gap: 10px; }
.psp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 10px;
  font-weight: 620; font-size: 14px; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
}
.psp-btn:active:not(:disabled) { transform: translateY(1px); }
.psp-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); }
.psp-btn:disabled { opacity: .6; cursor: progress; }
.psp-btn-success { height: 52px; font-size: 15.5px; background: #15803D; border-color: #166534; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .16); }
.psp-btn-success:hover:not(:disabled) { background: #166534; }
.psp-alt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.psp-btn-alt { background: #fff; border-color: #CBD5E1; color: #334155; }
.psp-btn-alt:hover:not(:disabled) { background: #F8FAFC; border-color: #94A3B8; }
.psp-btn-alt.is-danger { color: #B91C1C; }
.psp-btn-alt.is-danger:hover:not(:disabled) { background: #FEF2F2; border-color: #FCA5A5; }
.psp-footer { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 18px; text-align: center; }
.psp-banner {
  display: flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 13px; color: #92400E;
  background: #FFFBEB; border-bottom: 1px solid #FDE68A;
}
.psp-banner .icon { color: #D97706; flex-shrink: 0; }
.psp-banner strong { font-weight: 680; }
.psp-sub { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 560; color: #92400E; margin-top: 14px; }
.spinner-inline { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: dts-spin .7s linear infinite; }

/* Responsive ----------------------------------------------------------------------- */
@media (max-width: 999px) {
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .home-visual { display: none; }
  .ev-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ev-aside { display: none; }
  .co-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 12px 20px calc(12px + var(--safe-bottom));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border); box-shadow: 0 -10px 30px -16px rgba(16, 24, 40, .25);
    animation: co-bar-in .3s var(--ease-out) both;
  }
  /* Same edges as the page content (container 1120 − 2 × 20 padding), so total and CTA line up. */
  .co-bar-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
  /* Focused fields (Tab, or the browser scrolling a field into view) stay clear of the bar. */
  html:has(.co-bar) { scroll-padding-bottom: 96px; }
  .co-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .co-bar-label { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .co-bar-total { font-size: 18px; font-weight: 740; letter-spacing: -0.02em; white-space: nowrap; }
  .co-bar .co-cta { flex-shrink: 0; }
  .shop:has(.co-bar) .shop-footer-inner { padding-bottom: calc(96px + var(--safe-bottom)); }
  .shop.is-embed .ev-page { padding-bottom: 8px; }
}
@keyframes co-bar-in { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 980px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .home-org { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
  .order-grid, .order-state-wrap { grid-template-columns: minmax(0, 1fr); }
  .order-side { position: static; }
}

@media (max-width: 820px) {
  .shop-ev { grid-template-columns: 64px minmax(0, 1fr); gap: 14px 16px; padding: 12px 14px 14px; align-items: start; }
  .shop-ev-media { grid-column: 1 / -1; order: -1; margin: 0 0 2px; }
  .shop-ev-media .poster { border-radius: 12px; }
  .shop-ev-date { height: 78px; }
  .shop-ev-day { font-size: 26px; }
  .shop-ev-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
  .shop-ev.is-skeleton { grid-template-columns: 64px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .shop-header-inner { height: 56px; padding: 0 16px; }
  .shop-brand-logo { height: 22px; }
  .shop-container { padding: 20px 16px 56px; }
  .shop-footer-inner { padding-left: 16px; padding-right: 16px; }
  .shop-trust { display: none; }

  .home-hero-inner { padding-top: 40px; padding-bottom: 40px; }
  .home-title { margin-top: 18px; }
  .home-lead { font-size: 16px; margin-top: 14px; }
  .home-perks { flex-direction: column; gap: 10px; margin-top: 24px; }
  .home-events { padding-top: 28px; }
  .section-title { font-size: 19px; }
  .section-count { font-size: 13px; }
  .ev-grid, .ev-grid.is-few { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-org { padding: 26px 20px; border-radius: 20px; }
  .home-org-wrap { padding-bottom: 56px; }

  .ev-page { padding-top: 12px; }
  .ev-back { margin-bottom: 12px; }
  .poster-lg { border-radius: 16px; }
  .ev-head { margin-top: 20px; gap: 14px; }
  /* meta chips become one tidy details card on phones instead of three stacked pills */
  .ev-chips {
    flex-direction: column; gap: 0; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-xs);
  }
  .ev-chip { min-height: 48px; padding: 12px 14px; gap: 12px; border: 0; border-radius: 0; box-shadow: none; font-size: 14px; }
  .ev-chip + .ev-chip { border-top: 1px solid var(--border-subtle); }
  .ev-chip.is-link:hover { box-shadow: none; background: var(--surface-2); }
  .ev-chip .ev-chip-ext { margin-left: auto; flex-shrink: 0; }
  .ev-main { gap: 26px; }
  .ev-about { margin-top: 26px; }
  .co-card { border-radius: 16px; }
  .co-card-head { flex-direction: column; align-items: stretch; padding: 16px 16px 14px; gap: 12px; }
  .co-steps ol { width: 100%; }
  .co-step { flex: 1; min-width: 0; }
  .co-step-btn { font-size: 12.5px; }
  .co-type { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .co-type-side { justify-content: space-between; }
  .co-type-price { align-items: flex-start; text-align: left; }
  .co-notice, .co-closed, .co-closed-cta { padding-left: 16px; padding-right: 16px; }
  .co-form, .co-pay { padding: 18px 16px; }
  .co-edit-long { display: none; }
  .co-edit-short { display: inline; }
  .co-form-row, .co-holders { grid-template-columns: minmax(0, 1fr); }
  .co-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .co-method { height: 56px; padding: 0 30px 0 10px; gap: 10px; font-size: 13.5px; }
  .co-method-check { right: 8px; }
  .co-foot { padding: 12px 16px; }
  .co-limit { padding: 12px 16px; }
  .co-bar { padding-left: 16px; padding-right: 16px; }
  .co-bar .co-cta { min-width: 0; padding: 0 16px; }

  .shop-hero-inner { flex-direction: column; gap: 14px; padding-top: 30px; padding-bottom: 28px; }
  .shop-hero-inner .shop-mark { --mark-size: 44px !important; }
  .shop-hero-intro { font-size: 15px; }
  .shop-list { padding-top: 20px; }

  .order-page { padding-top: 28px; }
  .order-hero { margin-bottom: 32px; }
  .order-lead { font-size: 15.5px; }
  .order-actions { flex-direction: column; align-self: stretch; }
  .order-actions .btn { width: 100%; }
  .tk { grid-template-columns: minmax(0, 1fr); }
  .tk-main { padding: 22px 20px 18px; }
  .tk-stub { border-left: 0; border-top: 2px dashed var(--border-strong); padding: 22px 16px 20px; }
  .tk-stub::before { top: -12px; left: -12px; }
  .tk-stub::after { top: -12px; bottom: auto; left: auto; right: -12px; }
  .tk-qr img { width: 196px; height: 196px; }
  .status-screen { padding: 36px 20px 32px; border-radius: 18px; }
  .status-title { font-size: 22px; }
  .status-actions { flex-direction: column; align-self: stretch; }
  .status-actions .btn { width: 100%; }

  .psp { padding: 20px 12px 28px; }
  .psp-head, .psp-body { padding-left: 18px; padding-right: 18px; }
  .psp-amount-value { font-size: 28px; }
}

@media (max-width: 420px) {
  .psp-alt { grid-template-columns: minmax(0, 1fr); }
  .co-methods { grid-template-columns: minmax(0, 1fr); }
}

/* Embed tweaks */
.shop.is-embed .ev-layout { grid-template-columns: minmax(0, 1fr); }
.shop.is-embed .ev-aside { display: none; }
.shop.is-embed .ev-page { padding-top: 8px; }
.shop.is-embed .shop-hero-inner { padding-top: 24px; padding-bottom: 20px; }
.shop.is-embed .shop-hero::after { display: none; }
.shop.is-embed .shop-hero { margin: 12px 12px 0; border: 1px solid var(--border); border-radius: 18px; }
.shop.is-embed .shop-hero-inner { padding-left: 20px; padding-right: 20px; }
.shop.is-embed .shop-list { padding-top: 12px; }
.shop.is-embed .home-hero { display: none; }

/* Phones in landscape (≈ 390px tall): a sticky header plus the fixed checkout bar left only ~250px
   for the form. The header scrolls away, and while a text field has focus the bar steps aside (it
   slides back in when the field loses focus; Enter still submits the step). */
@media (max-height: 500px) {
  .shop-header { position: static; }
  html:has(.shop-header) { scroll-padding-top: 12px; }
  .shop:has(.co-form .input:focus-within) .co-bar { display: none; }
}

/* Touch screens: every buy-flow control gets a hit area of at least 44 × 44px. Text links and small
   buttons keep their look — the extra padding is cancelled by an equal negative margin, or the hit
   area is widened with an invisible ::after. */
@media (pointer: coarse) {
  .lang-opt, .lang-switch.is-compact .lang-opt { height: 40px; min-width: 44px; }
  .co-stepper.stepper { height: 44px; }
  .co-stepper .stepper-btn { width: 44px; }
  .co-step-btn { padding-block: 12px; margin-block: -11px; }
  .link-btn, .tk-pdf { padding-block: 13px; margin-block: -13px; }
  .ev-more { margin-top: -5px; }
  .order-event-link { padding-block: 12px; margin-top: -2px; margin-bottom: -12px; }
  .ev-back { padding-block: 12px; margin-top: -12px; margin-bottom: 4px; }
  .shop .btn::after { content: ''; position: absolute; inset: min(0px, calc((var(--btn-h) - 44px) / 2)) 0; }
}
@media (pointer: coarse) and (max-width: 640px) {
  .ev-back { margin-bottom: 0; }
}
