/* Public-facing site */

.public-nav {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  position: sticky; top: 0; z-index: 30;
}
.public-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.public-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--color-text); }
.public-brand img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.public-brand .brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient-brand);
  box-shadow: var(--shadow-glow-primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.public-brand .brand-mark .icon { width: 17px; height: 17px; }
.public-nav-links { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.public-nav-links a { display: inline-block; padding: 10px 4px; color: var(--color-slate-dark); }
.public-nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.lang-switch { display: flex; gap: 4px; font-size: 13px; }
.lang-switch a {
  display: inline-block; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--color-text-muted); font-weight: 700;
}
.lang-switch a.is-active { background: var(--color-primary-light); color: var(--color-primary); }

/* Nav "ดาวน์โหลด" dropdown — toggled by JS (click, not hover-only, so it works on
   touch), positioned relative to the toggle button so it never depends on where
   the button happens to sit in the flex row. */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 4px; border: none; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--color-slate-dark);
}
.nav-dropdown-toggle:hover { color: var(--color-primary); }
.nav-dropdown-caret { font-size: 10px; transition: transform .15s ease; }
.nav-dropdown.is-open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0; margin-top: 6px;
  min-width: 200px; max-width: 280px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--color-slate-dark); white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--color-primary-light); color: var(--color-primary); text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 640px) {
  .public-nav .nav-inner { flex-wrap: wrap; padding: 6px 0; row-gap: 0; align-items: center; }
  .public-brand { flex: 1 1 auto; min-width: 0; font-size: 15px; padding: 6px 0; }
  .public-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* One row with a hamburger; the links open as a panel below it. Without JS the links stay visible (see <noscript> in the layout). */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    background: var(--glass-bg); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--color-text); transition: transform .2s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .public-nav-links {
    flex: 1 1 100%; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 0 10px; font-size: 15px; border-top: 1px solid var(--glass-border);
  }
  .public-nav-links.is-open { display: flex; }
  .public-nav-links > a, .public-nav-links .nav-dropdown-toggle { padding: 12px 4px; }
  .public-nav-links .lang-switch { padding: 8px 4px; }
}

/* Sticky "book a stall" bar for phones: appears once the page's own call-to-action has scrolled out of view. */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border); box-shadow: 0 -6px 18px rgba(40, 24, 8, .12);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta[hidden] { display: none; }
  .mobile-cta.is-visible { transform: translateY(0); }
  body.has-mobile-cta .site-footer { padding-bottom: 96px; }
}

.hero-band {
  position: relative;
  background: var(--gradient-mesh), var(--color-bg);
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--color-border-light);
  overflow: hidden;
}
.hero-band::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(20, 21, 43, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%);
  pointer-events: none;
}
.hero-band .container { position: relative; z-index: 1; }
.hero-band h1 { font-size: 34px; margin-bottom: 8px; }
.hero-band p { color: var(--color-text-muted); font-size: 16px; margin: 0; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-primary); background: var(--color-primary-light);
  padding: 5px 12px; border-radius: var(--radius-full); margin-bottom: 14px;
}

/* Uploaded temple photo/banner — shown as its own full, uncropped image above the
   .hero-band text (not as a background the text overlays), so a portrait or
   oddly-cropped banner never fights with the heading for legibility. Same
   blurred-backdrop technique as .event-hero-media. */
.hero-banner-media {
  position: relative;
  width: 100%; aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--color-slate-light);
  background-size: cover;
  background-position: center;
}
.hero-banner-media::before {
  content: '';
  position: absolute; inset: -12px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.85);
}
.hero-banner-media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }

/* Home hero: value proposition on the left, the next bookable event on the right. */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-grid.has-event { grid-template-columns: 1.1fr .9fr; gap: 44px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 18px 0 0; font-size: 13.5px; font-weight: 600; color: var(--color-text-muted); }
.hero-trust li { white-space: nowrap; }
.hero-event-card {
  display: block; overflow: hidden; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  transition: box-shadow .2s ease, transform .2s ease;
}
.hero-event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); text-decoration: none; }
@media (max-width: 860px) { .hero-grid.has-event { grid-template-columns: 1fr; gap: 28px; } .hero-trust li { white-space: normal; } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 22px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .hero-stat-value { font-size: 26px; font-weight: 800; color: var(--color-primary); letter-spacing: -.02em; }
.hero-stat .hero-stat-label { font-size: 12.5px; color: var(--color-text-muted); font-weight: 600; }

.section-title { font-size: 20px; margin: 0 0 18px; }

/* How it works */
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.how-it-works-step {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 26px 20px; box-shadow: var(--shadow-sm); position: relative;
}
.how-it-works-step .step-number {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.how-it-works-step .step-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-top: 6px;
  border-radius: 16px; background: var(--gradient-brand-soft); color: var(--color-primary);
}
.how-it-works-step .step-icon-badge .icon { width: 24px; height: 24px; }
.how-it-works-step h4 { margin: 4px 0 0; font-size: 15.5px; }
.how-it-works-step p { margin: 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
.how-it-works-arrow { display: none; }
@media (min-width: 769px) {
  .how-it-works-step:not(:last-child)::after {
    content: '→'; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
    font-size: 20px; color: var(--color-text-faint); font-weight: 700;
  }
}

.scroll-anchor { scroll-margin-top: 80px; }
.past-events { margin: -8px 0 28px; font-size: 14px; }
.past-events summary { cursor: pointer; font-weight: 700; color: var(--color-text-muted); padding: 6px 0; }
.past-events ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.past-events li { padding: 2px 0; }

/* Slim strip under the hero for visitors/merit-makers (the hero itself speaks to stall vendors). */
.visitor-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 14px 20px; margin-bottom: 36px; border-radius: var(--radius-md);
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}
.visitor-strip strong { font-size: 15px; }
.visitor-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 700; }

/* Featured (closing-soon) event — shown as the card in the home hero */
.featured-event-body { flex: 1; padding: 20px 22px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-danger-light); color: var(--color-danger-dark);
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full);
  animation: pulseBadge 1.8s ease-in-out infinite;
}
@keyframes pulseBadge { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.featured-event-body h3 { margin: 0; font-size: 22px; }
.featured-event-body .featured-meta { font-size: 13.5px; color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: 14px; }
.featured-event-body .featured-closing { font-weight: 700; color: var(--color-danger-dark); font-size: 14px; }

/* Follow-us banner */
.follow-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--color-slate-light); border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 40px;
}
.follow-banner h3 { margin: 0 0 4px; font-size: 16.5px; }
.follow-banner p { margin: 0; font-size: 13.5px; color: var(--color-text-muted); }
.follow-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Event photo gallery */
.event-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.event-gallery-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-slate-light); box-shadow: var(--shadow-sm);
}
.event-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.event-gallery-item:hover img { transform: scale(1.08); }
.event-gallery-item .gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 18px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 12.5px; font-weight: 700;
}
@media (max-width: 768px) { .event-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Home page "our event atmosphere" carousel — one slide at a time, dot navigation,
   auto-advances, click a slide to open the lightbox. Same blurred-backdrop +
   object-fit:contain trick as the hero banner so portrait/landscape photos both
   show in full without an awkward crop. */
.gallery-carousel { margin-bottom: 40px; }
.gallery-carousel-viewport {
  overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
}
.gallery-carousel-track { display: flex; transition: transform .5s ease; }
.gallery-carousel-slide { position: relative; flex: 0 0 100%; }
.gallery-carousel-media {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  background: var(--color-slate-light); background-size: cover; background-position: center;
  overflow: hidden;
}
.gallery-carousel-media::before {
  content: ''; position: absolute; inset: -12px;
  background: inherit; background-size: cover; background-position: center;
  filter: blur(24px) brightness(.85);
}
.gallery-carousel-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.gallery-carousel-slide .gallery-caption {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.65));
  color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.gallery-carousel-slide .gallery-caption:hover { text-decoration: underline; }
.gallery-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.gallery-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  border: none; background: var(--color-border); cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.gallery-carousel-dot.is-active { background: var(--color-primary); transform: scale(1.25); }
@media (max-width: 640px) { .gallery-carousel-media { aspect-ratio: 4/3; } }

/* Featured shops / advertisements — same blurred-backdrop + object-fit:contain trick as
   the event hero banner, so portrait and landscape ad images both display in full. */
.ads-section-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.ads-list-shop-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ads-wrap { position: relative; margin-bottom: 40px; }
.ads-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ad-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.ad-card:hover, .ad-card:focus-visible { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ad-card-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
/* One slide per photo, stacked; a card with several photos cross-fades through them (public.js). */
.ad-slide {
  position: absolute; inset: 0; display: block; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.ad-slide.is-active { opacity: 1; }
/* Default (logos, tall or very wide images): whole image on a blurred copy of itself. */
.ad-slide::before {
  content: ''; position: absolute; inset: -12px;
  background: inherit; background-size: cover; background-position: center;
  filter: blur(18px) brightness(.85);
}
.ad-slide img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
/* Photos shaped like the card fill it edge to edge. */
.ad-slide.is-cover::before { display: none; }
.ad-slide.is-cover img { object-fit: cover; }
.ad-card:hover .ad-slide.is-cover img { transform: scale(1.05); }
.ad-card-name { display: block; padding: 12px 14px 2px; font-size: 15px; font-weight: 700; }
.ad-card-desc-wrap { display: block; padding: 2px 14px 6px; }
/* Clamp on the inner text only (no padding on it), otherwise the next line peeks out under the ellipsis. */
.ad-card-desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12.5px; color: var(--color-text-muted); line-height: 1.5;
}
.ad-card-desc-wrap.is-open .ad-card-desc { display: block; overflow: visible; -webkit-line-clamp: unset; white-space: pre-line; }
.ad-more {
  margin-top: 2px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--color-primary);
}
/* Ribbon in the corner: new / popular / promo / featured */
.ad-badge {
  position: absolute; z-index: 3; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.ad-badge-new { background: #16a34a; }
.ad-badge-popular { background: #dc2626; }
.ad-badge-promo { background: #9333ea; }
.ad-badge-featured { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ad-card.is-featured { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,.45), var(--shadow-sm); }
.ad-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.ad-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.5); transition: background .3s, transform .3s; }
.ad-dots i.is-active { background: #fff; transform: scale(1.35); }
.ad-card-selling { display: block; margin: 2px 14px 4px; padding: 3px 8px; border-radius: 8px; background: rgba(34,197,94,.12); color: #166534; font-size: 12px; font-weight: 700; line-height: 1.4; }
/* One-tap buttons: call, directions, LINE, website */
.ad-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }
.ad-action {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--color-primary); color: var(--color-primary); background: #fff;
  font-size: 12.5px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s;
}
.ad-action:hover, .ad-action:focus-visible { background: var(--color-primary); color: #fff; text-decoration: none; }
.ad-action-call { background: var(--color-primary); color: #fff; }
.ad-action-call:hover { filter: brightness(1.08); }
.ad-card-cta { display: block; margin-top: auto; padding: 6px 14px 10px; font-size: 12.5px; font-weight: 700; color: var(--color-primary); }

/* More than four shops: one scrolling row with arrows, advanced automatically by public.js. */
.ads-wrap.is-carousel .ads-grid {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 2px 8px;
}
.ads-wrap.is-carousel .ads-grid::-webkit-scrollbar { display: none; }
.ads-wrap.is-carousel .ad-card { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
.ads-nav {
  position: absolute; top: 28%; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.92); color: var(--color-text);
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-md);
}
.ads-nav-prev { left: -10px; }
.ads-nav-next { right: -10px; }
@media (max-width: 768px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ads-wrap.is-carousel .ad-card { flex-basis: calc((100% - 12px) / 2); }
  .ads-nav { display: none; }
}

/* FAQ */
.faq-section { margin-bottom: 40px; }
.faq-item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 4px 18px; margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14.5px;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--color-primary); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 0 16px; font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; }
.faq-item .faq-answer ul { margin: 8px 0 0; padding-left: 20px; }

/* Contact CTA banner */
.contact-cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--gradient-brand); border-radius: var(--radius-lg); padding: 28px 32px;
  margin-top: 44px; box-shadow: var(--shadow-glow-primary);
}
.contact-cta-banner h3 { margin: 0 0 4px; color: #fff; font-size: 19px; }
.contact-cta-banner p { margin: 0; color: rgba(255,255,255,.88); font-size: 14px; }
.contact-cta-banner .btn { background: #fff; color: var(--color-primary); border: none; flex-shrink: 0; }
.contact-cta-banner .btn:hover { background: rgba(255,255,255,.92); }

.public-main { padding: 36px 0 60px; }

/* Event cards */
.event-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease, background-color .25s ease;
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); background: var(--glass-bg-strong); border-color: var(--color-primary-light); }
.event-card-media {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--color-slate-light);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.event-card-media.has-image::before {
  content: '';
  position: absolute; inset: -12px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(.92);
}
.event-card-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.event-card-media.is-cover::before { display: none; }
.event-card-media.is-cover img { object-fit: cover; }
.event-card:hover .event-card-media img { transform: scale(1.06); }
.event-card-media .status-overlay { position: absolute; top: 12px; right: 12px; z-index: 2; }
.event-card-media .lots-left-overlay { position: absolute; bottom: 12px; left: 12px; z-index: 2; }
.lots-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.lots-badge.is-available { background: rgba(22, 163, 74, .92); color: #fff; }
.lots-badge.is-low { background: rgba(224, 139, 29, .92); color: #fff; }
.lots-badge.is-full { background: rgba(20, 21, 43, .78); color: #fff; }
.event-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card-body h3 { margin: 0; font-size: 17px; }
.event-card-meta { font-size: 13px; color: var(--color-text-muted); display: flex; flex-direction: column; gap: 3px; }
.event-card-meta span, .featured-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card-meta .icon, .featured-meta .icon { width: 14px; height: 14px; color: var(--color-primary); }
.event-card-footer { margin-top: auto; padding-top: 12px; }

.media-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--color-text-faint);
  font-size: 13px;
  background: repeating-linear-gradient(135deg, #F1F5F9, #F1F5F9 10px, #F8FAFC 10px, #F8FAFC 20px);
}
.media-placeholder .icon { width: 18px; height: 18px; }

/* Event detail */
.event-hero-media {
  position: relative;
  width: 100%; aspect-ratio: 21/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  background: var(--color-slate-light);
  background-size: cover;
  background-position: center;
}
.event-hero-media::before {
  content: '';
  position: absolute; inset: -12px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.85);
}
.event-hero-media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }

/* Poster/flyer card on the event page: shown whole, tap to enlarge or download. */
.poster-card { padding: 12px; }
.poster-thumb { position: relative; display: block; cursor: zoom-in; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.poster-thumb img { width: 100%; max-height: 560px; object-fit: contain; display: block; background: var(--color-slate-light); }
.poster-thumb .zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(15,23,42,.72); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--radius-full);
}

/* display:block matters here, not just cosmetic — this <a> wraps a block-level
   <img>, and an inline element containing a block child breaks the predictable
   single-fragment containing-block geometry that .zoom-hint's absolute
   positioning relies on (it was rendering off-screen to the left without this). */
.floorplan-thumb { position: relative; display: block; cursor: zoom-in; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--color-border); }
.floorplan-thumb img { width: 100%; display: block; }
.floorplan-thumb .zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(15,23,42,.72); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: var(--radius-full);
}


/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .82);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
}
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius-md); display: block; margin: 0 auto; }
.lightbox-figure { margin: 0; max-width: 92vw; }
.lightbox-stage { overflow: hidden; border-radius: var(--radius-md); touch-action: none; cursor: zoom-in; }
.lightbox-stage.is-zoomed { cursor: grab; }
.lightbox-stage img { transform-origin: center; transition: transform .12s ease-out; will-change: transform; user-select: none; -webkit-user-drag: none; }
.lightbox-share {
  position: absolute; top: 20px; left: 24px; height: 40px; padding: 0 16px; border-radius: 20px; border: none; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font-size: 14px; font-weight: 600;
}
.lightbox-share:hover { background: rgba(255,255,255,.3); }
.lightbox-thumbs {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumbs[hidden] { display: none; }
.lightbox-thumb { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; opacity: .65; cursor: pointer; background: #000; }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; max-width: none; max-height: none; }
.lightbox-thumb.is-active { opacity: 1; border-color: #fff; }
.lightbox-overlay img { max-height: 76vh; }
.lightbox-overlay.is-single img { max-height: 88vh; }
.lightbox-caption { margin-top: 10px; text-align: center; color: #fff; font-size: 14px; min-height: 1.2em; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 30px; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.32); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; border: none; font-size: 20px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* Rotating big mosaic tile: slides stacked, the active one fades in and drifts slowly (Ken Burns). */
.mosaic-tile.is-rotating { cursor: pointer; }
.mosaic-slide { position: absolute; inset: 0; display: block; opacity: 0; z-index: 0; transition: opacity 1s ease; }
.mosaic-slide.is-active { opacity: 1; z-index: 1; }
.mosaic-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .mosaic-slide.is-active img { animation: kenburns 9s ease-out both; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }

/* Fade-in for images and sections — only when JS is on (html.js), so nothing stays invisible without it. */
.js .fade-img { opacity: 0; transition: opacity .5s ease; }
.js .fade-img.is-loaded { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Home page photo mosaic: one big tile plus up to four small ones (fewer photos, simpler shapes). */
.photo-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px;
  gap: 10px; margin-bottom: 40px;
}
.mosaic-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-md);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); background: var(--color-slate-light);
}
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mosaic-tile:hover img { transform: scale(1.05); }
.mosaic-caption {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; color: #fff; font-size: 12.5px; font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
}
.mosaic-more {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, .55); color: #fff; font-size: 30px; font-weight: 800;
}
.mosaic-more small { font-size: 13px; font-weight: 600; }
.mosaic-n-1 .mosaic-tile { grid-column: span 4; grid-row: span 2; }
.mosaic-n-2 .mosaic-tile { grid-column: span 2; grid-row: span 2; }
.mosaic-n-3 .mosaic-tile:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic-n-3 .mosaic-tile:not(:first-child) { grid-column: span 2; }
.mosaic-n-4 .mosaic-tile { grid-column: span 2; }
.mosaic-n-5 .mosaic-tile:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) {
  .photo-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 8px; }
  .photo-mosaic .mosaic-tile { grid-column: span 1 !important; grid-row: span 1 !important; }
  .photo-mosaic .mosaic-tile:first-child { grid-column: span 2 !important; grid-row: span 2 !important; }
  .mosaic-n-2 .mosaic-tile { grid-row: span 2 !important; }
  .mosaic-n-2 .mosaic-tile:first-child { grid-column: span 1 !important; }
}

/* Album filter chips on /gallery */
.album-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.album-chips .chip {
  display: inline-block; padding: 6px 14px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600;
  border: 1px solid var(--glass-border); background: var(--glass-bg); color: var(--color-text); text-decoration: none;
}
.album-chips .chip:hover { text-decoration: none; background: #fff; }
.album-chips .chip.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.album-chips .chip small { opacity: .8; font-weight: 500; }

/* Full gallery page */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.photo-grid-item {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; border-radius: var(--radius-md);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); background: var(--color-slate-light);
}
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.photo-grid-item:hover img { transform: scale(1.05); }
.photo-grid-caption {
  position: absolute; inset: auto 0 0 0; padding: 20px 10px 8px; color: #fff; font-size: 12px; font-weight: 700;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
}
@media (max-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Lot grid */
.lot-zone-group { margin-bottom: 20px; }
.lot-zone-group h4 { font-size: 14px; color: var(--color-text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .03em; }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }

.lot-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-size: 13px;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color .15s ease, background .15s ease;
}
.lot-chip-photo {
  position: relative;
  display: block;
  width: 100%; aspect-ratio: 4/3;
  border-radius: 7px;
  margin-bottom: 2px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.lot-chip-photo::before {
  content: '';
  position: absolute; inset: -6px;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(.92);
}
.lot-chip-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.lot-chip .lot-code { font-weight: 800; font-size: 14px; }
.lot-chip .lot-price { font-size: 12px; color: var(--color-text-muted); }
.lot-chip .lot-booker { font-size: 11px; color: var(--color-text-faint); margin-top: 1px; }
.lot-chip.is-available { border-color: #BBF7D0; }
.lot-chip.is-available:hover { border-color: var(--color-success); background: var(--color-success-light); text-decoration: none; }
.lot-chip.is-pending { border-color: #EAB308; background: #FEF9C3; color: #854D0E; cursor: not-allowed; }
.lot-chip.is-booked { border-color: #2563EB; background: #DBEAFE; color: #1E3A8A; cursor: not-allowed; }
.lot-chip.is-disabled { border-color: #DC2626; background: #FEE2E2; color: #991B1B; cursor: not-allowed; opacity: .75; }

/* Interactive booth map ("book like cinema seats") */
.lot-legend-note {
  background: var(--color-slate-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.legend-note-title { font-size: 12px; font-weight: 700; color: var(--color-text); margin-bottom: 8px; }
.legend-note-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
@media (max-width: 480px) {
  .legend-note-items { grid-template-columns: 1fr; }
}
.legend-chip {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 11px;
  line-height: 1.35;
}
.legend-chip strong { font-weight: 800; font-size: 12px; }
.legend-chip.chip-available { background: #DCFCE7; color: #166534; border-color: #86EFAC; }
.legend-chip.chip-pending { background: #FEF9C3; color: #854D0E; border-color: #FDE047; }
.legend-chip.chip-booked { background: #DBEAFE; color: #1E3A8A; border-color: #93C5FD; }
.legend-chip.chip-disabled { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }

.map-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.map-toolbar #mapZoomLabel { font-size: 13px; font-weight: 700; color: var(--color-text-muted); min-width: 42px; text-align: center; }

.booth-map-viewport {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-slate-light);
  padding: 20px;
  max-height: 420px;
  margin-bottom: 20px;
}
.booth-map-canvas {
  display: inline-grid;
  grid-template-columns: repeat(var(--map-cols), 46px);
  grid-template-rows: repeat(var(--map-rows), 46px);
  gap: 7px;
  transform-origin: top left;
  transition: transform .15s ease;
}
.booth-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1.5px solid transparent;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 1px 2px rgba(20,21,43,.06);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.booth-cell.has-photo::after {
  content: '📷';
  position: absolute; top: -5px; right: -5px;
  font-size: 9px; line-height: 1;
  background: #fff; border-radius: 50%; width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(20,21,43,.25);
}
.booth-photo-preview {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid #fff;
  z-index: 25;
  pointer-events: none;
}
.booth-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.booth-cell:hover .booth-photo-preview { display: block; }
.booth-cell.status-available { background: #DCFCE7; border-color: #16A34A; color: #166534; cursor: pointer; }
.booth-cell.status-available:hover { background: #BBF7D0; text-decoration: none; transform: scale(1.08); box-shadow: 0 6px 14px rgba(22,163,74,.28); z-index: 1; }
.booth-cell.status-pending_payment { background: #FEF9C3; border-color: #EAB308; color: #854D0E; cursor: not-allowed; pointer-events: none; }
.booth-cell.status-booked, .booth-cell.status-reserved { background: #DBEAFE; border-color: #2563EB; color: #1E3A8A; cursor: not-allowed; pointer-events: none; }
.booth-cell.status-disabled { background: #FEE2E2; border-color: #DC2626; color: #991B1B; cursor: not-allowed; pointer-events: none; opacity: .75; }

/* Photo-coordinate lot map: lot numbers pinned by % position over the floorplan photo. */
.photo-map-viewport {
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-slate-light);
  padding: 20px;
  max-height: 560px;
  margin-bottom: 20px;
}
.photo-map-canvas {
  position: relative;
  display: inline-block;
  transform-origin: top left;
  transition: transform .15s ease, width .15s ease;
}
.photo-map-image { display: block; max-width: 100%; height: auto; }
.photo-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 34px; height: 34px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 17px;
  border: 1.5px solid transparent;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 2px 6px rgba(20,21,43,.28);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.photo-pin.status-available { background: #DCFCE7; border-color: #16A34A; color: #166534; cursor: pointer; }
.photo-pin.status-available:hover { background: #BBF7D0; text-decoration: none; transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 6px 14px rgba(22,163,74,.28); z-index: 1; }
.photo-pin.status-pending_payment { background: #FEF9C3; border-color: #EAB308; color: #854D0E; cursor: not-allowed; pointer-events: none; }
.photo-pin.status-booked, .photo-pin.status-reserved { background: #DBEAFE; border-color: #2563EB; color: #1E3A8A; cursor: not-allowed; pointer-events: none; }
.photo-pin.status-disabled { background: #FEE2E2; border-color: #DC2626; color: #991B1B; cursor: not-allowed; pointer-events: none; opacity: .75; }
.photo-pin.size-small { min-width: 24px; height: 24px; font-size: 9px; border-radius: 12px; }
.photo-pin.size-large { min-width: 46px; height: 46px; font-size: 13px; border-radius: 23px; }

/* Box shape — a tilted rectangle for lots whose real footprint sits at an angle
   (e.g. angled parking bays) that a round pin can't represent. */
.photo-pin.shape-box { width: 34px; min-width: 0; border-radius: 5px; }
.photo-pin.shape-box.size-small { width: 24px; height: 15px; }
.photo-pin.shape-box.size-medium { width: 34px; height: 21px; }
.photo-pin.shape-box.size-large { width: 46px; height: 29px; }

.legend-dot.dot-available { color: #16A34A; }
.legend-dot.dot-pending { color: #EAB308; }
.legend-dot.dot-booked { color: #2563EB; }
.legend-dot.dot-disabled { color: #DC2626; }

/* Booking flow */
.booking-lot-summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: var(--gradient-brand-soft); border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg); margin-bottom: 22px;
}
.booking-lot-summary .lot-summary-code { font-size: 20px; font-weight: 800; color: var(--color-primary); }
.booking-lot-summary .lot-summary-price { font-size: 18px; font-weight: 700; }

/* Event contact people (public event detail sidebar) */
.event-contact-row { padding: 12px 0; border-bottom: 1px solid var(--color-border-light); }
.event-contact-row:last-child { border-bottom: none; }
.event-contact-name { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.event-contact-phone { display: inline-block; padding: 7px 0; font-weight: 600; font-size: 13.5px; color: var(--color-primary); }
.event-contact-phone:hover { text-decoration: underline; }
.event-contact-channel { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }

/* Contact page */
.contact-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.contact-channel {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 22px 16px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.contact-channel:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.contact-channel-icon { font-size: 26px; margin-bottom: 4px; }
.contact-channel-label { font-weight: 700; font-size: 13px; color: var(--color-text-muted); }
.contact-channel-value { font-weight: 700; font-size: 14.5px; color: var(--color-text); word-break: break-word; }

.payment-options { display: grid; gap: 12px; }
.payment-option {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-md);
  padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.payment-option:hover { border-color: var(--color-primary); }
.payment-option.is-selected { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: 0 0 0 4px var(--color-primary-light); }
.payment-option input[type="radio"] { margin-top: 3px; }
.payment-option .option-title { font-weight: 700; font-size: 14px; }
.payment-option .option-desc { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

/* Confirmation page */
.confirmation-code-box {
  position: relative;
  text-align: center; padding: 32px 20px; background: var(--gradient-brand);
  border-radius: var(--radius-lg); margin: 20px 0;
  box-shadow: var(--shadow-glow-primary);
  overflow: hidden;
}
.confirmation-code-box .code-label { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 700; margin-bottom: 8px; letter-spacing: .03em; }
.confirmation-code-box .code-value { font-size: 34px; font-weight: 800; letter-spacing: .08em; color: #fff; font-family: 'SFMono-Regular', Consolas, monospace; }

.bank-details { background: var(--color-slate-light); border-radius: var(--radius-md); padding: 16px 18px; margin-top: 12px; }
.bank-details .info-row { border-bottom-color: var(--color-border); }

/* Printable booking receipt */
.receipt-toolbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-bottom: 1px solid var(--color-border);
  padding: 14px 20px; box-shadow: var(--shadow-xs);
}
.receipt-toolbar .back-link { font-weight: 600; color: var(--color-text-muted); font-size: 14px; }
.receipt-sheet { max-width: 640px; margin: 28px auto 60px; padding: 0 20px; }
.receipt-paper {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 36px 32px;
}
.receipt-org { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.receipt-org img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.receipt-org .receipt-org-mark {
  width: 52px; height: 52px; border-radius: 12px; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
}
.receipt-org-name { font-weight: 800; font-size: 17px; }
.receipt-org-meta { font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.receipt-title { text-align: center; font-size: 20px; font-weight: 800; margin: 4px 0 18px; }
.receipt-section-label {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--color-text-faint); margin: 22px 0 6px;
}
.receipt-section-label:first-of-type { margin-top: 0; }
.receipt-footer-note { text-align: center; font-size: 12px; color: var(--color-text-faint); margin-top: 26px; }

@media print {
  .receipt-toolbar { display: none !important; }
  body { background: #fff !important; }
  .receipt-sheet { margin: 0; padding: 0; max-width: none; }
  .receipt-paper { box-shadow: none; border: none; padding: 0; }
  @page { size: A4; margin: 16mm; }
}

footer.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
  color: var(--color-text-muted);
  font-size: 13px;
  text-align: center;
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--color-slate-dark); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--color-primary); }
