/* BibleSlide Events — public pages. Brand tokens of the BibleSlide dashboard (blue / royal / navy / gold). */
:root { --blue: #2552c4; --royal: #1e3a8a; --navy: #0b1638; --gold: #f4b400; --gold-ink: #2b1f00; --bg: #f4f6fb; --card: #fff; --line: #e3e8f3; --ink: #0f1a3d; --muted: #5b6785; --soft: #eef2fa; --ok: #0f7a52; --bad: #b42318; --warn: #7a5400; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bsev { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
.bsev-wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.bsev-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.bsev-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.bsev-logo img { display: block; height: 38px; width: auto; }
.bsev-nav { display: flex; align-items: center; gap: 14px; }
.bsev-nav > a { color: var(--royal); font-weight: 700; text-decoration: none; }
.bsev-lang { position: relative; }
.bsev-lang summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--royal); }
.bsev-lang summary::-webkit-details-marker { display: none; }
.bsev-lang div { position: absolute; right: 0; top: 42px; display: grid; min-width: 160px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px -16px rgba(30, 58, 138, .5); }
.bsev-lang div a { padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.bsev-lang div a[aria-current] { background: var(--soft); font-weight: 700; }
.bsev-main { min-height: 70vh; padding-bottom: 40px; }
.bsev-foot { padding: 22px 0; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .92rem; }
.bsev-foot a { color: var(--royal); text-decoration: none; font-weight: 600; }

.bsev-hero { padding: 36px 0 28px; background: linear-gradient(135deg, var(--navy), var(--royal)); color: #fff; }
.bsev-hero h1 { margin: 0 0 6px; font: 800 clamp(1.8rem, 4vw, 2.6rem)/1.15 Montserrat, Inter, sans-serif; }
.bsev-hero p { margin: 0 0 18px; color: #dbe4ff; max-width: 680px; }
.bsev-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bsev-filters input[type="search"], .bsev-filters input[type="text"], .bsev-filters select { flex: 1 1 160px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; font: inherit; color: var(--ink); }
.bsev-filters input[type="search"] { flex-basis: 240px; }
.bsev-filters .bsev-check { color: #fff; }
.bsev-h2 { margin: 26px 0 12px; font: 800 1.25rem/1.3 Montserrat, Inter, sans-serif; }
.bsev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.bsev-card { display: flex; flex-direction: column; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 18px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: transform .15s, box-shadow .15s; }
.bsev-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(30, 58, 138, .45); }
.bsev-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, var(--royal), var(--blue)); }
.bsev-card-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.bsev-card-body strong { font-size: 1.05rem; line-height: 1.3; }
.bsev-card-body small { color: var(--muted); }
.bsev-price { justify-self: start; margin-top: 4px; font-weight: 800; color: var(--royal); }
.bsev-chip { display: inline-flex; align-items: center; width: fit-content; padding: 2px 10px; border-radius: 99px; background: var(--soft); color: var(--royal); font-size: .78rem; font-weight: 700; margin: 0; }
.bsev-chip.is-gold { background: var(--gold); color: var(--gold-ink); }
.bsev-chip.is-ok { background: #e6f6ef; color: var(--ok); }
.bsev-chip.is-soft { background: #fff; border: 1px solid var(--line); }
.bsev-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.bsev-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 24px 0; }

.bsev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; background: var(--blue); color: #fff; font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; }
.bsev-btn.is-gold { background: var(--gold); color: var(--gold-ink); }
.bsev-btn.is-ghost { background: #fff; color: var(--royal); border-color: var(--line); }
.bsev-btn.is-sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.bsev-btn.is-wide { width: 100%; }
.bsev-btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(244, 180, 0, .8); outline-offset: 2px; }

.bsev-crumb { margin: 18px 0 10px; }
.bsev-crumb a { text-decoration: none; font-weight: 600; }
.bsev-banner { margin: 10px 0; padding: 12px 16px; border-radius: 14px; font-weight: 600; }
.bsev-banner.is-ok { background: #e6f6ef; color: var(--ok); }
.bsev-banner.is-bad { background: #fdecea; color: var(--bad); }
.bsev-banner.is-warn { background: #fff4d6; color: var(--warn); }
.bsev-event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.bsev-event-main { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.bsev-poster { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }
.bsev-title { margin: 8px 0; font: 800 clamp(1.6rem, 3.6vw, 2.3rem)/1.15 Montserrat, Inter, sans-serif; }
.bsev-lead { margin: 0 0 12px; font-size: 1.1rem; color: var(--muted); }
.bsev-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 16px 0; padding: 14px 16px; background: var(--soft); border-radius: 14px; }
.bsev-facts dt { color: var(--muted); font-weight: 700; }
.bsev-facts dd { margin: 0; }
.bsev-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.bsev-text p { margin: 0 0 12px; }
.bsev-details { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bsev-details summary { padding: 12px 14px; cursor: pointer; font-weight: 700; }
.bsev-details > div, .bsev-details > form { padding: 0 14px 14px; }
.bsev-org { display: flex; gap: 14px; margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--soft); }
.bsev-org img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; }
.bsev-org small { display: block; color: var(--muted); }
.bsev-org p { margin: 6px 0 0; }
.bsev-side { position: sticky; top: 76px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: 0 18px 40px -30px rgba(30, 58, 138, .6); }
.bsev-side .bsev-h2 { margin-top: 0; }
.bsev-form { display: grid; gap: 12px; }
.bsev-form label { display: grid; gap: 4px; font-weight: 600; font-size: .93rem; }
.bsev-form input, .bsev-form select, .bsev-form textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
.bsev-check { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.bsev-check input { width: 20px !important; min-height: 20px !important; margin-top: 2px; flex: none; }
.bsev-type { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.bsev-type small { display: block; color: var(--muted); }
.bsev-type .bsev-state { color: var(--warn); }
.bsev-type.is-off { opacity: .65; }
.bsev-type select { min-height: 40px; }
.bsev-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bsev-muted { color: var(--muted); font-size: .92rem; }
.bsev-report { margin-top: 28px; }

/* tickets */
.bsev-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 22px 0 8px; }
.bsev-head-row .bsev-title { margin: 0; }
.bsev-head-row > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; }
.bsev-ticket-list { display: grid; gap: 16px; margin-top: 14px; }
.bsev-ticket { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
.bsev-ticket-qr { display: grid; place-items: center; align-content: center; gap: 6px; padding: 16px; background: var(--soft); border-right: 2px dashed var(--line); }
.bsev-qr { width: 180px; height: 180px; background: #fff; border-radius: 12px; padding: 6px; }
.bsev-qr svg { display: block; width: 100%; height: 100%; }
.bsev-qr.is-void { display: grid; place-items: center; color: var(--bad); font-weight: 800; text-transform: uppercase; }
.bsev-code { margin: 0; font: 800 1.25rem/1 "Courier New", monospace; letter-spacing: .06em; color: var(--royal); }
.bsev-code small { display: block; font: 600 .75rem Inter, sans-serif; color: var(--muted); letter-spacing: 0; text-align: center; }
.bsev-ticket-info { padding: 16px 20px; }
.bsev-ticket-info h2 { margin: 6px 0; font-size: 1.25rem; }
.bsev-ticket-info p { margin: 4px 0; }
.bsev-ticket.is-cancelled, .bsev-ticket.is-refunded { opacity: .7; }
.bsev-scan { margin: 12px 0; padding: 16px; border-radius: 16px; font: 800 1.2rem/1.3 Inter, sans-serif; text-align: center; }
.bsev-scan.is-valid { background: #e6f6ef; color: var(--ok); }
.bsev-scan.is-already { background: #fff4d6; color: var(--warn); }
.bsev-scan:not(.is-valid):not(.is-already) { background: #fdecea; color: var(--bad); }

@media (max-width: 900px) {
	.bsev-event-grid { grid-template-columns: 1fr; }
	.bsev-side { position: static; }
}
@media (max-width: 560px) {
	.bsev-event-main { padding: 14px; border-radius: 18px; }
	.bsev-facts { grid-template-columns: 1fr; gap: 2px; }
	.bsev-facts dd { margin-bottom: 8px; }
	.bsev-type { grid-template-columns: minmax(0, 1fr) 76px; }
	.bsev-type .bsev-price { grid-column: 1; grid-row: 2; }
	.bsev-type select { grid-column: 2; grid-row: 1 / span 2; }
	.bsev-ticket { grid-template-columns: 1fr; }
	.bsev-ticket-qr { border-right: 0; border-bottom: 2px dashed var(--line); }
	.bsev-qr { width: 220px; height: 220px; }
	.bsev-nav > a { display: none; }
}
@media print {
	.bsev-top, .bsev-foot, .bsev-noprint { display: none !important; }
	body.bsev { background: #fff; }
	.bsev-ticket { border: 1px solid #999; margin-bottom: 12px; }
}

/* Manual payment (order page) */
.bsev-pay { margin: 8px 0 24px; }
.bsev-pay-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 8px; }
.bsev-pay-sum > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.bsev-pay-sum small { display: block; color: var(--muted); font-size: .85rem; }
.bsev-pay-sum strong { font-size: 1.25rem; color: var(--royal); overflow-wrap: anywhere; }
.bsev-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
.bsev-pre { white-space: pre-line; }
.bsev-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.bsev-method { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.bsev-method h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink); }
.bsev-method p { margin: 4px 0; }
.bsev-method small { color: var(--muted); }
.bsev-proof { max-width: 560px; }
.bsev-proof input[type="file"] { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--soft); font: inherit; }
.bsev-wa { max-width: 560px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #e9f8ef; }
.bsev-wa p { margin: 0 0 8px; }
