/* ClubMaster public pages: homepage, club page, event page, checkout, tickets. */
:root {
    --bg: #0b0b10; --surface: #15151d; --raised: #1d1d28; --line: #2a2a38;
    --ink: #f4f4f7; --mute: #a1a1b2; --acc: #8b6cff; --acc-ink: #ffffff;
    --ok: #22c55e; --bad: #ef4444; --warn: #f59e0b; --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acc); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(11,11,16,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav a { color: var(--mute); text-decoration: none; margin-left: 18px; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 14px; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -.02em; margin: 0 0 12px; }
h3 { margin: 0 0 8px; font-size: 1.1rem; }
.lead { color: var(--mute); font-size: 1.15rem; max-width: 40rem; }
.muted { color: var(--mute); }
.small { font-size: .875rem; }
.hero { padding: 64px 0 40px; }
.section { padding: 32px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 0;
       background: var(--acc); color: var(--acc-ink); font-family: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-block { width: 100%; }
label { display: block; font-size: .875rem; color: var(--mute); margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--mute); }
.check input { width: auto; margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; margin: 16px 0; border: 1px solid var(--line); background: var(--raised); }
.alert-error { border-color: var(--bad); }
.alert-success { border-color: var(--ok); }
.ev-card { text-decoration: none; color: inherit; display: block; overflow: hidden; padding: 0; }
.ev-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2b1d63, #0f0f16 70%); object-fit: cover; width: 100%; }
.ev-body { padding: 16px 18px 18px; }
.ev-date { color: var(--acc); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-size: .78rem; color: var(--mute); margin: 2px 4px 2px 0; }
.pill-bad { color: #fff; background: var(--bad); border-color: var(--bad); }
.tt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tt:last-child { border-bottom: 0; }
.tt .qty { width: 84px; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; }
.sum-total { font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--warn); }
.ticket { background: #fff; color: #111; border-radius: 20px; padding: 22px; max-width: 420px; margin: 0 auto 18px; }
.ticket .qr { width: 240px; height: 240px; margin: 14px auto; image-rendering: pixelated; }
.ticket h3 { color: #111; }
.ticket .meta { color: #555; font-size: .9rem; }
.ticket .code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; text-align: center; }
.floor { position: relative; width: 100%; aspect-ratio: 16 / 10; background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.floor .tbl { position: absolute; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center;
              border-radius: 12px; border: 2px solid var(--acc); background: rgba(139,108,255,.15); color: var(--ink); font-size: .75rem; cursor: pointer; padding: 2px; line-height: 1.15; }
.floor .tbl.round { border-radius: 50%; }
.floor .tbl.taken { border-color: var(--line); background: rgba(255,255,255,.04); color: var(--mute); cursor: not-allowed; }
.floor .tbl.sel { background: var(--acc); color: #fff; }
.floor .stage { position: absolute; left: 30%; top: 2%; width: 40%; height: 8%; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--mute); display: flex; align-items: center; justify-content: center; font-size: .75rem; }
footer.foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; color: var(--mute); font-size: .875rem; }
footer.foot a { color: var(--mute); margin-right: 14px; }
@media print { .top, footer.foot, .no-print { display: none !important; } body { background: #fff; } }

.seats { margin: 8px 0 14px; overflow-x: auto; }
.seat-row { display: flex; gap: 4px; align-items: center; margin-bottom: 4px; white-space: nowrap; }
.seat-row > span { width: 22px; }
.seat input { display: none; }
.seat span { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--acc); font-size: .7rem; cursor: pointer; }
.seat input:checked + span { background: var(--acc); color: #fff; }
.seat.taken span { border-color: var(--line); color: var(--line); cursor: not-allowed; }

/* ── Polish ─────────────────────────────────────────── */
a:focus-visible, button:focus-visible, .btn:focus-visible, select:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.hero h1 { margin-bottom: 10px; }
.venue-line { margin: 18px 0 0; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
        background: var(--surface); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--acc); background: var(--raised); }
.ev-card { transition: transform .18s cubic-bezier(.16,1,.3,1), border-color .18s; }
.ev-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc) 55%, var(--line)); }
.ev-card h3 { font-size: 1.15rem; }
/* No poster uploaded: a typographic date poster, one hue per event */
.ev-cover-auto { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 18px 20px;
    background: radial-gradient(120% 120% at 100% 0%, hsl(var(--h) 85% 55% / .55), transparent 60%), linear-gradient(160deg, hsl(calc(var(--h) + 40) 60% 22%), #0f0f16 75%); }
.ev-cover-day { font-size: 4.25rem; font-weight: 800; line-height: .9; letter-spacing: -.05em; color: #fff; }
.ev-cover-mon { font-size: .95rem; font-weight: 700; letter-spacing: .18em; color: rgba(255,255,255,.78); margin-top: 6px; }
/* Checkboxes: bigger box, whole label is the tap target */
.check { min-height: 44px; align-items: center; cursor: pointer; line-height: 1.4; }
.check input { width: 22px; height: 22px; margin: 0; flex: 0 0 22px; accent-color: var(--acc); }
.check a { white-space: nowrap; }
.tt .qty { width: 92px; flex: 0 0 92px; min-height: 48px; font-size: 1.05rem; }
footer.foot .wrap a { margin-right: 0; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot .wrap > span { margin-left: auto; }
@media (max-width: 600px) { .foot .wrap > span { margin-left: 0; width: 100%; } .hero { padding: 40px 0 24px; } }
@media (prefers-reduced-motion: reduce) { .ev-card, .chip { transition: none; } .ev-card:hover { transform: none; } }
/* Event page: jump to tickets on phones, where the form sits below description and lineup */
.ev-jump { display: none; margin: 18px 0 0; }
@media (max-width: 700px) { .ev-jump { display: block; } .ev-jump .btn { width: 100%; min-height: 50px; } .ev-cover { aspect-ratio: 2 / 1; } }
#ulaznice { scroll-margin-top: 80px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Header nav never wraps onto two lines on phones */
.nav { display: flex; align-items: center; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; }
@media (max-width: 600px) {
    .nav a { margin-left: 14px; font-size: .9rem; }
    .brand { flex-shrink: 0; }
    /* Event search: search field full width, filters two by two */
    .ev-search { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ev-search > input[name=q] { grid-column: 1 / -1; }
}
/* Ticket order: table upsell */
.upsell { margin-top: 14px; border-color: color-mix(in srgb, var(--acc) 55%, var(--line));
          background: radial-gradient(120% 140% at 100% 0%, rgba(139,108,255,.18), transparent 60%), var(--surface); }
.upsell-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.upsell-head h3 { margin: 0; font-size: 1.15rem; }
.upsell-badge { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--acc); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.upsell .btn-ghost { border-color: var(--acc); }

/* ── Guest polish (round 1) ─────────────────────────── */
/* Native controls (checkboxes, date pickers, selects, file inputs, scrollbars) render dark */
:root { color-scheme: dark; }
.ticket, .ticket * { color-scheme: light; }
/* Header / footer links: 44px tap targets without changing the look */
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.brand { min-height: 44px; }
footer.foot a { display: inline-flex; align-items: center; min-height: 44px; }
/* Radios and checkboxes never stretch like text inputs */
input[type=radio], input[type=checkbox] { width: auto; padding: 0; accent-color: var(--acc); }
/* Stacked form fields: one rhythm (grid gap + .field margin doubled it) */
.grid-2:has(> .field) { row-gap: 0; }
.field > label { font-weight: 600; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--mute) 70%, transparent); }
input, select, textarea { min-height: 48px; transition: border-color .15s; }
textarea { min-height: 96px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--acc) 35%, var(--line)); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-size: .875rem; font-weight: 600; color: var(--mute); margin-bottom: 8px; }
/* Radio chips (amount pickers): the whole chip is the control */
label.chip { position: relative; cursor: pointer; margin: 0; color: var(--ink); min-height: 48px; }
label.chip input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.chip:has(input:checked) { background: var(--acc); border-color: var(--acc); color: #fff; }
label.chip:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 3px; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.amounts .chip { justify-content: center; white-space: nowrap; }
/* File inputs: a real button instead of the browser's grey one */
input[type=file] { padding: 8px; min-height: 52px; cursor: pointer; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
/* Buttons: full 48px touch height, hover and press feedback */
.btn { min-height: 48px; transition: filter .15s, transform .1s, background .15s; }
.btn:not(:disabled):hover { filter: brightness(1.1); }
.btn:not(:disabled):active { transform: scale(.98); }
.btn-ghost:not(:disabled):hover { background: var(--raised); filter: none; }
.btn:disabled { background: var(--raised); color: var(--mute); opacity: 1; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cm-spin .7s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .btn-row > .btn { flex: 1 1 100%; } }
/* Order status badge */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700;
    border: 1px solid var(--line); background: var(--raised); color: var(--ink); vertical-align: middle; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mute); }
.status-paid::before, .status-ok::before { background: var(--ok); }
.status-paid, .status-ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.status-pending::before { background: var(--warn); }
.status-pending { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.status-bad::before { background: var(--bad); }
.status-bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
/* Summary card: first row needs no divider */
.card > .sum-total:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
/* Ticket (white card): links and disclosure readable on white */
.ticket a { color: #5b3fd6; }
.ticket summary { min-height: 44px; display: flex; align-items: center; gap: 6px; color: #444; font-weight: 600; }
.ticket .btn-ghost { color: #111; border-color: #ccc; }
.ticket input { background: #f3f3f5; color: #111; border-color: #ddd; }
.ticket label { color: #555; }
/* Selectable option cards (membership plans) */
.opt-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--raised); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.opt-card input { margin-top: 3px; width: 20px; height: 20px; flex: 0 0 20px; }
.opt-card:has(input:checked) { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, var(--raised)); }
.opt-card:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.opt-card .opt-main { flex: 1; min-width: 0; }
.opt-card .opt-title { font-weight: 700; font-size: 1.05rem; display: block; }
.opt-card .opt-price { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Star rating (survey): five big tap targets */
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { margin: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; line-height: 1;
    color: var(--line); cursor: pointer; transition: color .12s, transform .12s; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--warn); }
.rate input:focus-visible + label { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 10px; }
.rate-field { margin-bottom: 16px; }
.rate-field legend { margin-bottom: 2px; }
/* Empty states */
.empty { text-align: center; padding: 32px 20px; }
.empty-icon { font-size: 2rem; line-height: 1; margin-bottom: 10px; opacity: .9; }
.empty p { margin: 0 0 14px; }
/* Page head used on form pages */
.page-kicker { color: var(--acc); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
/* Club page: quick links */
.chip svg { width: 18px; height: 18px; margin-right: 8px; flex: 0 0 18px; opacity: .85; }
@media (max-width: 600px) {
    .hero-links.scroll-row { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 2px 20px 6px; scroll-snap-type: x proximity;
        scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
    .hero-links.scroll-row::-webkit-scrollbar { display: none; }
    .hero-links.scroll-row .chip { flex: 0 0 auto; scroll-snap-align: start; min-height: 44px; }
}
/* Event card CTA */
.ev-body { display: flex; flex-direction: column; gap: 4px; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ev-cta { color: var(--acc); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.ev-card:hover .ev-cta { text-decoration: underline; }
/* Section head with a side link */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head a { font-size: .9rem; color: var(--mute); }
.sec-head a:hover { color: var(--ink); }
/* Alerts with a leading icon colour bar */
.alert { border-left-width: 4px; }
.alert-info { border-color: var(--acc); }
input[type=radio], input[type=checkbox], input[type=range], input[type=color] { min-height: 0; }
.top .nav { margin-left: auto; }
.hero-links.scroll-row { scroll-padding-inline: 20px; }
.sec-head a { display: inline-flex; align-items: center; min-height: 44px; }
.foot .wrap { row-gap: 0; }
.ticket summary { list-style: none; cursor: pointer; }
.ticket summary::-webkit-details-marker { display: none; }
.ticket summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 6px 0 2px; transition: transform .15s; flex: 0 0 8px; }
.ticket details[open] > summary::before { transform: rotate(45deg); }
.order-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 0; }
.amounts { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
.amounts .chip { padding: 0 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .amounts { grid-template-columns: repeat(2, 1fr); } }
.rate label { color: #4a4a5e; }
/* Club page on phones: the next event as a big poster card, later ones as compact rows */
@media (max-width: 600px) {
    .ev-list { gap: 12px; }
    .ev-list .ev-card:not(:first-child) { display: grid; grid-template-columns: 96px 1fr; }
    .ev-list .ev-card:not(:first-child) .ev-cover { aspect-ratio: auto; height: 100%; min-height: 112px; }
    .ev-list .ev-card:not(:first-child) .ev-cover-auto { padding: 12px; justify-content: center; align-items: center; }
    .ev-list .ev-card:not(:first-child) .ev-cover-day { font-size: 2.4rem; }
    .ev-list .ev-card:not(:first-child) .ev-cover-mon { font-size: .72rem; letter-spacing: .14em; margin-top: 4px; }
    .ev-list .ev-card:not(:first-child) .ev-body { padding: 12px 14px; justify-content: center; }
    .ev-list .ev-card:not(:first-child) h3 { font-size: 1.02rem; margin-bottom: 2px; }
    .ev-list .ev-card:not(:first-child) .ev-foot { margin-top: 2px; }
}
/* Two side-by-side figures (auction: top bid / time left) */
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.stat { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.stat > div:nth-child(2) { font-variant-numeric: tabular-nums; line-height: 1.25; margin: 2px 0; }
@media (max-width: 380px) { .stat > div:nth-child(2) { font-size: 1.3rem !important; } }
.status-live::before { animation: cm-pulse 1.6s ease-in-out infinite; }
@keyframes cm-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .status-live::before, .btn.is-busy::after { animation: none; } }
/* Tappable list rows (my tickets): whole card is the link, chevron on the right */
.list-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; margin-bottom: 12px; }
.list-link .list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.list-link h3 { margin: 0; }
.list-link .status { margin-top: 4px; }
.list-chev { color: var(--mute); flex: 0 0 20px; }
/* Short pages: footer sits at the bottom of the screen, not mid-page */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
/* Donation choice on the ticket form */
.donation { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 4px; margin: 6px 0 12px; }
.donation legend { padding: 0 6px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.donation-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 6px 0; }
.gift-amount { position: relative; margin: 0; }
.gift-amount input { position: absolute; opacity: 0; }
.gift-amount span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); font-weight: 700; cursor: pointer; }
.gift-amount input:checked + span { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; background: color-mix(in srgb, var(--acc) 18%, var(--raised)); }
.gift-amount input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Language picker (templates/club/partials/lang_picker.php). Layouts that load this file set
   $GLOBALS['cmLangPickerStyled'] so the partial does not repeat these rules inline in every page. */
.cm-lang { position: relative; display: inline-block; font-size: .9rem; z-index: 40; }
.cm-lang > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); cursor: pointer; color: inherit; font-weight: 600; user-select: none; }
.cm-lang > summary::-webkit-details-marker { display: none; }
.cm-lang > summary:focus-visible, .cm-lang a:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }
.cm-lang[open] > summary { border-color: rgba(255,255,255,.4); }
.cm-lang ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 170px; background: #15151f; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.cm-lang li a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: #f3f3f8; text-decoration: none; }
.cm-lang li a:hover { background: rgba(255,255,255,.08); }
.cm-lang li a[aria-current] { background: rgba(139,108,255,.22); font-weight: 700; }
.cm-lang-code { display: inline-block; min-width: 2.2em; font-size: .75rem; letter-spacing: .06em; opacity: .7; }
.top .wrap > .nav { margin-left: auto; }
.top .wrap > .cm-lang { flex-shrink: 0; }
.cm-lang.cm-lang-float { position: absolute; top: 12px; right: 12px; }

/* Ticket page (templates/club/ticket.php) */
.ticket .qr-box { background: #fff; padding: 12px; border-radius: 14px; margin: 14px auto; max-width: 284px; cursor: zoom-in; }
.ticket .tk-ok { text-align: center; color: #166534; margin: 4px 0 12px; }
.ticket .tk-void { text-align: center; font-weight: 800; color: #b91c1c; font-size: 1.3rem; margin: 40px 0; }
.tk-c { text-align: center; }
.ticket .tk-who { margin-top: 8px; }

/* Guest drinks menu and order status (templates/club/drinks): was inline in drinks/_layout.php */
.dr-top { display: flex; align-items: center; gap: 10px; }
.dr-top img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.dr-main { padding-bottom: 120px; }
.dr-main > .section { padding-top: 20px; }
.dr-chips { position: sticky; top: 60px; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; background: var(--bg); scrollbar-width: none; }
.dr-chips::-webkit-scrollbar { display: none; }
.dr-chips a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.dr-cat { scroll-margin-top: 120px; margin: 18px 0 8px; font-size: 1.15rem; }
.dr-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dr-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.dr-info { flex: 1; min-width: 0; }
.dr-name { font-weight: 700; }
.dr-desc { color: var(--mute); font-size: .85rem; }
.dr-price { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; font-size: .95rem; }
.dr-step { display: flex; align-items: center; gap: 6px; flex: none; }
.dr-step button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dr-step button.add { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.dr-step output { min-width: 1.6em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.dr-step [data-dec], .dr-step output { visibility: hidden; }
.dr-item.in .dr-step [data-dec], .dr-item.in .dr-step output { visibility: visible; }
.dr-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #3b2a00; color: var(--warn); margin-left: 6px; vertical-align: 2px; }
.dr-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(11,11,16,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.dr-bar .btn { width: 100%; justify-content: space-between; }
.dr-hint { padding: 10px 14px; border-radius: 12px; background: rgba(139,108,255,.12); border: 1px solid rgba(139,108,255,.35); margin: 8px 0; font-size: .92rem; }
.dr-hint.ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.35); }
.dr-box { padding: 12px 16px; margin: 10px 0; }
.dr-box ul { margin: 6px 0 0; padding-left: 18px; }
.dr-box .sum-row { gap: 8px; padding-top: 6px; }
.dr-pay { display: grid; gap: 8px; margin-bottom: 14px; }
.dr-pay label { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); color: var(--ink); margin: 0; cursor: pointer; font-size: 1rem; }
.dr-pay input { width: auto; margin-top: 4px; }
.dr-pay label:has(input:checked) { border-color: var(--acc); }
.dr-pay small { display: block; color: var(--mute); font-size: .82rem; }
.dr-save { color: var(--ok); font-weight: 700; }
.dr-sum .sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.dr-sum .sum-total { font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.dr-off { color: var(--ok); }
.dr-num { font-size: 2.6rem; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.dr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.dr-steps span { height: 6px; border-radius: 99px; background: var(--line); }
.dr-steps span.on { background: var(--acc); }
.dr-sheet[hidden] { display: none; }
#checkout { scroll-margin-top: 130px; margin-top: 24px; }
.dr-sheet .dr-h { margin-top: 18px; }
.dr-sheet .check { margin-bottom: 14px; }
.dr-sheet .check strong { color: var(--ink); }
.dr-sheet [data-order-msg] { margin-top: 12px; }
.dr-sheet [data-submit] { margin-top: 14px; }
.dr-sheet .dr-foot { text-align: center; margin: 10px 0 0; }

/* Tip picker (templates/club/partials/tip_picker.php): the drinks menu drops the partial's inline copy of these rules. */
.tp { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.tp legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.tp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; }
.tp-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.tp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tp-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 8px 6px;
    border-radius: 12px; border: 1px solid var(--line, var(--vb-border, #2a2a38)); background: var(--raised, transparent);
    color: var(--ink, inherit); font-weight: 700; text-align: center; line-height: 1.2; }
.tp-opt small { font-weight: 500; font-size: .78rem; color: var(--mute, var(--vb-text-secondary, #a1a1b2)); margin-top: 2px; }
.tp-opt input:checked + span { border-color: var(--acc, var(--vb-accent, #8b6cff)); background: var(--acc, var(--vb-accent, #8b6cff)); color: #fff; }
.tp-opt input:checked + span small { color: rgba(255,255,255,.85); }
.tp-opt input:focus-visible + span { outline: 2px solid var(--acc, var(--vb-accent, #8b6cff)); outline-offset: 2px; }
.tp-custom { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.tp-custom[hidden] { display: none; }
.tp-custom input { max-width: 160px; }
.tp-total { margin-top: 8px; font-size: .9rem; color: var(--mute, var(--vb-text-secondary, #a1a1b2)); }

/* ── Guest polish (sve) ─────────────────────────────── */
/* Touch targets: chips, language picker and drink steppers reach 44px */
.chip { min-height: 44px; }
.cm-lang > summary { min-height: 44px; }
.cm-lang li a { min-height: 44px; }
.dr-step button { width: 44px; height: 44px; }
.dr-chips a { display: inline-flex; align-items: center; min-height: 44px; }
/* Link pills (category filters, artists): look tappable, not like underlined text */
a.pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; margin: 0; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600;
    transition: border-color .15s, background .15s; }
a.pill:hover { border-color: var(--acc); }
a.pill[aria-current] { background: var(--acc); border-color: var(--acc); color: #fff; }
@media (pointer: coarse) { a.pill { min-height: 44px; } }
.card > a.pill { margin: 4px 6px 0 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
@media (max-width: 600px) {
    .filter-row { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 2px 20px 4px; scrollbar-width: none; scroll-padding-inline: 20px; }
    .filter-row::-webkit-scrollbar { display: none; }
    .filter-row .pill { flex: 0 0 auto; }
}
/* Event page poster: the whole poster is visible (any aspect ratio), a blurred copy fills the sides */
.ev-poster { position: relative; overflow: hidden; border-radius: 20px; background: var(--surface); isolation: isolate; }
.ev-poster::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--poster) center / cover no-repeat; filter: blur(36px) brightness(.45) saturate(1.2); }
.ev-poster img { margin: 0 auto; width: auto; max-width: 100%; max-height: 460px; object-fit: contain; }
@media (max-width: 700px) { .ev-poster { border-radius: 16px; } .ev-poster img { max-height: 70vh; } }
/* Uploaded posters keep their 16:9 frame on phones; only the generated date poster is wider */
@media (max-width: 700px) { .ev-cover { aspect-ratio: 16 / 9; } .ev-cover-auto { aspect-ratio: 2 / 1; } }
/* Club page on phones: compact rows show the whole poster as a 16:9 thumbnail instead of a cropped strip */
@media (max-width: 600px) {
    .ev-list .ev-card:not(:first-child) { grid-template-columns: 128px 1fr; align-items: center; }
    .ev-list .ev-card:not(:first-child) img.ev-cover { aspect-ratio: 16 / 9; height: auto; min-height: 0; margin: 12px 0 12px 12px; border-radius: 10px; width: calc(100% - 12px); }
    .ev-list .ev-card:not(:first-child) .ev-cover-auto { align-self: stretch; }
}
/* Disclosure rows (cancel reservation etc.) are full-height tap targets */
details:not(.cm-lang) > summary { padding-block: 10px; cursor: pointer; }
.ticket details > summary { padding-block: 0; }
/* Homepage header on phones: the hero already links to events, keep the nav to what fits */
@media (max-width: 480px) { .nav a.nav-wide { display: none; } }
.pick-hint { text-align: center; margin: 8px 0 0; }
/* Event page: details | tickets. Tickets get the wider column; one column on phones */
.ev-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .ev-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
@media (min-width: 1024px) { .ev-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
/* Homepage event search: one row on wide screens (search grows, button at the end) */
@media (min-width: 601px) and (max-width: 999px) { .ev-search { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } .ev-search > input[name=q] { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .ev-search { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 10px; } .ev-search .btn { padding-inline: 28px; } }
/* Option cards: price sits next to the title, the description uses the full width below */
.opt-card { position: relative; }
.opt-card .opt-title { padding-right: 104px; margin-bottom: 2px; }
.opt-card .opt-price { position: absolute; top: 14px; right: 16px; }
.opt-card .opt-main > .small { display: block; line-height: 1.45; }
/* Back links above a page title: real tap targets, separated by a dot */
.back-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin: 0 0 6px; font-size: .9rem; }
.back-links a { display: inline-flex; align-items: center; min-height: 44px; }
/* Layered consent: short label, full text one tap away */
.consent-more { margin: -6px 0 10px 32px; font-size: .85rem; }
.consent-more summary { cursor: pointer; color: var(--mute); min-height: 28px; display: flex; align-items: center; }
.consent-more p { margin: 4px 0 0; }
.consent-more summary { list-style: none; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.consent-more summary::-webkit-details-marker { display: none; }
.consent-more summary::before { content: '▸'; text-decoration: none; display: inline-block; transition: transform .15s; }
.consent-more[open] summary::before { transform: rotate(90deg); }

/* ── Zajedničko zaglavlje: Prijava, račun gosta, Admin (templates/club/home/_header.php) ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.top .nav { overflow: visible; }
.nav .btn-login, .nav .btn-admin { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
    font-weight: 700; text-decoration: none; white-space: nowrap; margin-left: 12px; }
.nav .btn-login { background: var(--acc); color: var(--acc-ink); }
.nav .btn-admin { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.nav .btn-login:hover, .nav .btn-admin:hover { color: var(--acc-ink); filter: brightness(1.08); }
.nav .btn-admin:hover { color: var(--ink); border-color: var(--acc); }
.acct { position: relative; margin-left: 12px; }
.acct > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; }
.acct > summary::-webkit-details-marker { display: none; }
.acct-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--acc), #ec4899); }
.acct[open] .acct-av { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 220px; padding: 8px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border-radius: 10px; border: 0; background: none;
    color: var(--ink); font: inherit; text-decoration: none; text-align: left; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--raised); }
.acct-who { padding: 6px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-warn { color: #1a1200; background: var(--warn); border-color: var(--warn); font-weight: 700; }
.pill-ok { color: #04210f; background: var(--ok); border-color: var(--ok); font-weight: 700; }
@media (max-width: 600px) { .nav .nav-wide { display: none; } .nav .btn-login, .nav .btn-admin { margin-left: 8px; padding: 0 14px; } .acct { margin-left: 8px; } }
button { font-family: inherit; } /* buttons otherwise fall back to the system font */
