:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --tint: #eef5f3;
  --ink: #1f2a33;
  --ink-soft: #4a5560;
  --line: #e6ddd0;
  --accent: #0b6e69;
  --accent-hover: #095955;
  --accent-soft: #d9ece9;
  --radius-lg: 20px;
  --radius: 12px;
  --shadow: 0 10px 30px -12px rgba(60, 45, 25, .22);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #f2a33a;
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -.015em; }
h3 { font-size: 1.45rem; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }

/* Mock banner (not part of the design) */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 18px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(11, 110, 105, .55); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-quiet { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.btn-quiet:hover { border-color: var(--ink-soft); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.topbar { background: var(--ink); color: #f3ede4; font-size: 16px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 241, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pinwheel-strip { height: 4px; background: linear-gradient(90deg, #e2413b 0 11.1%, #f39b2d 0 22.2%, #f6cd2f 0 33.3%, #6cbf4a 0 44.4%, #20b3a6 0 55.5%, #2f84c9 0 66.6%, #7d5bb8 0 77.7%, #c8479b 0 88.8%, #ef7ba0 0); }
.nav-row { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.logo img { height: 58px; width: auto; }
nav.main { display: flex; gap: 6px; margin-left: auto; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 10px; transition: background-color .2s; }
nav.main a:hover { background: var(--accent-soft); }
nav.main a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.account { display: flex; align-items: center; gap: 14px; }
.account .login { color: var(--ink); font-weight: 600; text-decoration: none; padding: 10px 6px; }
.account .btn { min-height: 48px; padding: 0 22px; }
details.menu { display: none; margin-left: auto; }
details.menu summary {
  list-style: none; cursor: pointer; font-weight: 700; padding: 10px 18px;
  border: 2px solid var(--ink); border-radius: 999px; min-height: 48px; display: flex; align-items: center;
}
details.menu summary::-webkit-details-marker { display: none; }
details.menu[open] summary { background: var(--ink); color: #fff; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 24px 24px; }
.menu-panel a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 600; }
.menu-panel .btn { display: flex; margin-top: 18px; width: 100%; border-bottom: 0; color: #fff; }

/* Hero */
.hero { padding: 64px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: 22px; color: var(--ink-soft); max-width: 34ch; margin: 22px 0 34px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .reassure { margin-top: 22px; font-size: 17px; color: var(--ink-soft); }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 28px; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow); }
.hero-photo .badge {
  position: absolute; left: -28px; bottom: 28px; background: var(--surface); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 300px;
}
.hero-photo .badge img { width: 44px; height: 44px; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
.hero-photo .badge p { font-size: 16px; line-height: 1.4; }
.hero-photo .badge strong { display: block; font-size: 17px; }

/* Section shared */
section.block { padding: 88px 0 96px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; max-width: 52ch; }

/* Four areas */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.area {
  display: grid; grid-template-columns: 200px 1fr; background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .25s, transform .25s;
}
.area:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.area img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.area .body { padding: 28px 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.area p { color: var(--ink-soft); }
.area .link-arrow { margin-top: auto; padding-top: 6px; }

/* What's on */
.whats-on { background: var(--tint); }
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event { background: var(--surface); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.event .when { display: flex; gap: 14px; align-items: center; }
.date-chip { width: 64px; text-align: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); padding: 8px 0; line-height: 1.1; }
.date-chip b { display: block; font-size: 26px; font-family: var(--serif); }
.date-chip span { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.event .meta { font-size: 16px; color: var(--ink-soft); }
.event h3 { font-size: 1.3rem; }
.tag { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 6px; background: #fdecd5; color: #8a4b00; }
.event .tag { align-self: flex-start; }
.event .link-arrow { margin-top: auto; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.topic { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 18px; line-height: 1.3; background: var(--surface); border-radius: var(--radius-lg); padding: 26px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s, transform .25s; }
.topic:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.topic .ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--t-bg); color: var(--t-fg); }
.topic svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* App band */
.app-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; background: var(--surface); border-radius: 28px; padding: 56px; box-shadow: 0 1px 0 var(--line); }
.app-band p { color: var(--ink-soft); margin-top: 14px; }
.stores { display: flex; flex-direction: column; gap: 14px; }
.store {
  display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none; transition: background-color .2s;
}
.store:hover { background: #33424f; }
.store svg { width: 30px; height: 30px; flex: none; fill: #fff; }
.store small { display: block; font-size: 14px; opacity: .8; }
.store b { font-size: 20px; }

/* New here */
.newhere { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.newhere .card { border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.newhere .card p { color: var(--ink-soft); }
.newhere .btn { margin-top: 8px; }

/* Footer */
footer.site { background: #f1e9dd; padding: 72px 0 0; margin-top: 40px; font-size: 17px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
footer.site h4 { font: 700 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer.site address { font-style: normal; line-height: 1.7; margin-top: 18px; }
.footer-stores { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.footer-stores a { border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 16px; }
.copyright { border-top: 1px solid var(--line); margin-top: 56px; padding: 22px 0 28px; font-size: 15px; color: var(--ink-soft); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 10px;
  background: #1f9d55; color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px 12px 14px;
  border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(20, 90, 50, .6); transition: background-color .2s;
}
.wa-float:hover { background: #18834a; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Responsive */
@media (max-width: 1080px) {
  nav.main, .account { display: none; }
  details.menu { display: block; }
  .topics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap, .app-band .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo .badge { left: 16px; bottom: -24px; }
  .areas, .events, .newhere { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  section.block { padding: 64px 0 72px; }
  .section-head { flex-direction: column; align-items: start; }
  .app-band .wrap { padding: 36px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .topbar .hide-sm { display: none; }
  .area { grid-template-columns: 1fr; }
  .area img { min-height: 0; aspect-ratio: 16 / 9; }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .hero .actions .btn { width: 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Inner pages ---------- */
.page-head { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }
.page-head .lede { font-size: 21px; color: var(--ink-soft); margin-top: 14px; max-width: 48ch; }

.search-bar { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 12px; margin-top: 32px; background: var(--surface); padding: 14px; border-radius: 18px; box-shadow: 0 1px 0 var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 700; color: var(--ink-soft); padding-left: 4px; }
.field input, .field select {
  font: 400 19px var(--sans); color: var(--ink); min-height: 54px; padding: 0 16px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--bg); width: 100%;
}
.field input:focus, .field select:focus { outline: 3px solid #f2a33a; outline-offset: 1px; border-color: var(--ink-soft); }
.search-bar .btn { align-self: end; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.chip { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 17px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); transition: border-color .2s; }
.chip:hover { border-color: var(--accent); }

.cat-block { padding: 56px 0 8px; }
.cat-block + .cat-block { border-top: 1px solid var(--line); margin-top: 40px; }

.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.deal { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); transition: box-shadow .25s, transform .25s; }
.deal:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.deal img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; }
.deal .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deal .merchant { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.deal h3 { font-size: 1.25rem; }
.deal p { color: var(--ink-soft); font-size: 17px; }
.deal .foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.deal .btn { min-height: 48px; padding: 0 20px; font-size: 17px; }
.price { font-weight: 700; font-size: 18px; }
.price.free { color: #1f7a3d; }
.price.coupon { color: #8a4b00; }

.help-card { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--tint); border-radius: var(--radius-lg); padding: 28px 32px; margin-top: 72px; }
.help-card p { color: var(--ink-soft); margin-top: 6px; }
.to-top { display: inline-block; margin-top: 28px; }

/* Deal popup */
dialog.deal-pop { border: 0; padding: 0; border-radius: 24px; width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog.deal-pop::backdrop { background: rgba(31, 42, 51, .55); }
.pop-close { position: absolute; top: 14px; right: 14px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); font: 700 17px var(--sans); color: var(--ink); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.pop-img { aspect-ratio: 2 / 1; width: 100%; object-fit: cover; }
.pop-body { padding: 28px 32px 32px; display: grid; gap: 20px; }
.pop-body .merchant { font-weight: 700; color: var(--ink-soft); font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact { background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.fact small { display: block; font-size: 14px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.fact b { font-size: 19px; }
.fact .ends { color: #b3261e; }
.panel { background: var(--surface); border-radius: 14px; padding: 18px 20px; }
.panel h4 { margin: 0 0 8px; font: 700 17px var(--sans); }
.panel ol { margin: 0; padding-left: 22px; }
.locked { color: var(--ink-soft); }
.pop-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.notice { font-size: 17px; padding: 12px 16px; border-radius: 12px; }
.notice.ok { background: #e3f3e8; color: #1c5f32; }
.notice.info { background: #fdecd5; color: #6e3c00; }

/* Mock-only state switch */

@media (max-width: 1080px) { .deals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr; }
  .search-bar .btn { width: 100%; }
  .help-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .deals { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-padding-left: 24px; }
  .deal { scroll-snap-align: start; }
  .facts { grid-template-columns: 1fr; }
  .pop-body { padding: 22px 20px 24px; }
  .pop-actions .btn { width: 100%; }
}

[hidden] { display: none !important; }
details.member { position: relative; }
details.member summary { list-style: none; cursor: pointer; font-weight: 600; padding: 10px 18px; border: 2px solid var(--line); border-radius: 999px; min-height: 48px; display: flex; align-items: center; gap: 8px; background: var(--surface); }
details.member summary::-webkit-details-marker { display: none; }
details.member .drop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; }
details.member .drop a { display: block; padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
details.member .drop a:hover { background: var(--accent-soft); }

/* Events page */
.ev-meta { display: flex; gap: 14px; align-items: center; font-size: 16px; color: var(--ink-soft); line-height: 1.4; }
.ev-meta .date-chip { flex: none; }
.joined { font-size: 15px; font-weight: 700; color: #1c5f32; background: #e3f3e8; padding: 4px 10px; border-radius: 6px; align-self: flex-start; }
.search-bar.with-extra { grid-template-columns: 1.6fr 1fr auto auto; }
@media (max-width: 900px) { .search-bar.with-extra { grid-template-columns: 1fr; } }

/* Event detail */
.detail { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; padding-top: 40px; }
.article > * + * { margin-top: 22px; }
.article .hero-img { border-radius: var(--radius-lg); width: 100%; }
.article h2 { font-size: 1.9rem; margin-top: 40px; }
.article h3 { margin-top: 32px; }
.article p { max-width: 65ch; }
.article figure { margin: 28px 0 0; }
.article figure img { border-radius: 16px; width: 100%; }
.article figcaption { font-size: 16px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.video-box { aspect-ratio: 16 / 9; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; }
.side { position: sticky; top: 112px; background: var(--surface); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.side h2 { font-size: 1.4rem; }
.side dl { margin: 0; display: grid; gap: 14px; }
.side dt { font-size: 14px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.side dd { margin: 2px 0 0; font-weight: 600; }
.side .big-price { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.side .btn { width: 100%; }
.side .small { font-size: 16px; color: var(--ink-soft); text-align: center; }

/* Forms */
.form-page { max-width: 720px; margin: 0 auto; padding: 40px 24px 0; }
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; margin-top: 28px; display: grid; gap: 20px; box-shadow: 0 1px 0 var(--line); }
.form-card textarea { font: 400 19px var(--sans); color: var(--ink); padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); width: 100%; min-height: 110px; }
.dob { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 10px; }
.summary { display: flex; gap: 18px; align-items: center; background: var(--tint); border-radius: 16px; padding: 16px; margin-top: 24px; }
.summary img { width: 150px; border-radius: 10px; }
.hint { font-size: 16px; color: var(--ink-soft); }
.field .req { color: #b3261e; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
  .side { position: static; order: -1; }
  .form-card { padding: 22px 18px; }
  .summary { flex-direction: column; align-items: flex-start; }
}

/* Info Hub */
.deal .date { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.article.solo { max-width: 780px; margin: 0 auto; padding: 40px 24px 0; }
.article .byline { color: var(--ink-soft); font-size: 17px; }
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 48px; min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--surface); border: 2px solid var(--line); }
.pager [aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .off { color: #9aa3ab; }

/* Login and register */
.form-page.narrow { max-width: 560px; }
.form-card .btn { width: 100%; }
.pin-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.pin-row button { min-height: 54px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); font: 600 17px var(--sans); color: var(--ink); cursor: pointer; }
.or { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-social { background: var(--surface); color: var(--ink); border: 2px solid var(--line); }
.btn-social:hover { border-color: var(--ink-soft); }
.btn-social b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; }
.form-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 18px; }
.form-links a { display: inline-block; padding: 8px 0; }
.notice.bad { background: #fde4e2; color: #8c1d18; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
dialog.confirm { border: 0; border-radius: 24px; padding: 30px; width: min(520px, calc(100% - 24px)); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog.confirm::backdrop { background: rgba(31, 42, 51, .55); }
dialog.confirm dl { margin: 18px 0 22px; display: grid; gap: 10px; }
dialog.confirm dt { font-size: 14px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
dialog.confirm dd { margin: 0; font-weight: 600; font-size: 20px; }
dialog.confirm .pop-actions .btn { flex: 1 1 200px; }
.code-input { font: 600 30px var(--sans) !important; letter-spacing: .4em; text-align: center; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* Member pages */
.member-page { max-width: 960px; margin: 0 auto; padding: 40px 24px 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 32px; border-bottom: 2px solid var(--line); }
.tabs a { padding: 14px 20px; font-weight: 600; text-decoration: none; color: var(--ink-soft); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.badge-ok { font-size: 14px; font-weight: 700; color: #1c5f32; background: #e3f3e8; padding: 3px 10px; border-radius: 6px; margin-left: 8px; }
.field input[readonly] { background: #efe9df; color: var(--ink-soft); }
.rows { display: grid; gap: 16px; }
.row-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center; box-shadow: 0 1px 0 var(--line); }
.row-card img { width: 170px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; }
.row-card h3 { font-size: 1.25rem; }
.row-card .meta { color: var(--ink-soft); font-size: 17px; margin-top: 4px; }
.row-card .acts { display: grid; gap: 10px; justify-items: stretch; }
.row-card .btn { min-height: 48px; padding: 0 20px; font-size: 17px; }
.merchant-head { font: 700 15px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 28px 0 12px; }
.qty { font: 400 18px var(--sans); min-height: 48px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); }
.total-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--surface); border-radius: var(--radius-lg); padding: 24px 28px; margin-top: 28px; box-shadow: var(--shadow); flex-wrap: wrap; }
.total-bar .sum { font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.ticket { text-align: center; }
.ticket .qr { width: 190px; height: 190px; margin: 6px auto 0; border-radius: 12px; background: #fff; padding: 12px; }
.ticket .code { font: 700 26px var(--sans); letter-spacing: .12em; }
.empty { text-align: center; padding: 48px 24px; background: var(--surface); border-radius: var(--radius-lg); }
@media (max-width: 720px) {
  .row-card { grid-template-columns: 1fr; }
  .row-card img { width: 100%; }
  .total-bar .btn { width: 100%; }
}

/* Checkout and order */
.steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; padding: 0; list-style: none; font-weight: 600; font-size: 17px; }
.steps li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 2px solid var(--line); color: var(--ink-soft); }
.steps li[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.done { color: #1c5f32; border-color: #bfe0c9; background: #e3f3e8; }
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.checkout .form-card { margin-top: 0; }
.sum-card { background: var(--surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; position: sticky; top: 112px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; }
.sum-line.total { border-top: 2px solid var(--line); padding-top: 12px; font-weight: 700; font-size: 22px; }
.sum-card .btn { width: 100%; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .sum-card { position: static; } }

/* Static pages */
.article blockquote { margin: 40px 0 0; padding: 28px 32px; background: var(--tint); border-radius: var(--radius-lg); font-family: var(--serif); font-size: 1.6rem; line-height: 1.35; }
.article blockquote footer { font: 400 17px var(--sans); color: var(--ink-soft); margin-top: 10px; }
.article ul { margin: 14px 0 0; padding-left: 24px; display: grid; gap: 10px; max-width: 65ch; }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 28px; }
.partners div { background: #fff; border-radius: 14px; padding: 14px; display: grid; place-items: center; height: 120px; box-shadow: 0 1px 0 var(--line); }
.partners img { max-height: 92px; max-width: 100%; object-fit: contain; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 800px) { .videos { grid-template-columns: 1fr; } }

/* List pages and misc */
.deals.stack { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
@media (max-width: 640px) { .deals.stack { grid-template-columns: 1fr; } }
.search-bar.wide { grid-template-columns: repeat(3, 1fr); }
.search-bar.wide .span2 { grid-column: span 2; }
@media (max-width: 900px) { .search-bar.wide { grid-template-columns: 1fr; } .search-bar.wide .span2 { grid-column: auto; } }
.job-list { display: grid; gap: 12px; margin-top: 20px; }
.job { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: var(--surface); border-radius: 16px; padding: 18px 22px; box-shadow: 0 1px 0 var(--line); flex-wrap: wrap; }
.job p { color: var(--ink-soft); font-size: 17px; }
.poster { width: 100%; border-radius: var(--radius-lg); }
.article.solo h4 { font: 700 19px var(--sans); margin: 28px 0 0; }

.checkout.halves { grid-template-columns: 1fr 1fr; margin-top: 32px; }
@media (max-width: 900px) { .checkout.halves { grid-template-columns: 1fr; } }

/* Dropdowns: own arrow with proper spacing from the edge */
.field select, select.qty {
  appearance: none; -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2a33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
select.qty { padding-left: 16px; min-width: 96px; }
.deal .btn, .row-card .btn { white-space: nowrap; }
.detail-head { padding-top: 40px; }
.detail-head + .detail { padding-top: 24px; }

/* Deal popup: picture slider */
.pop-slides { position: relative; }
.pop-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.95); font: 700 28px/1 var(--sans); color: var(--ink); cursor: pointer; }
.pop-nav.prev { left: 14px; }
.pop-nav.next { right: 14px; }
.panel p + p { margin-top: 6px; }
.deal .stock { font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.deal .stock.ends { color: #b3261e; }
.deal img[src$="square-logo.png"], .pop-img[src$="square-logo.png"] { object-fit: contain; background: #fff; }
.pop-close { z-index: 2; }

/* Events */
.article .pre, .side .pre { white-space: pre-line; }
.article .caption { font-size: 16px; color: var(--ink-soft); margin-top: 8px; }
.article .small-head { font-size: 1.2rem; }
.article iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.detail.one { grid-template-columns: minmax(0, 780px); justify-content: center; }
.deal .clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hint.err { color: #b3261e; font-weight: 700; display: block; }
/* Date of birth on a phone: tighter boxes so day, month and year are not cut off */
@media (max-width: 520px) {
  .dob { gap: 8px; }
  .field .dob select { padding: 0 30px 0 10px; background-position: right 8px center; background-size: 18px; }
}
