/* beticket.be – front-end stijl (kleuren uit het logo) */
.bt {
	--bt-navy: #0f172a;
	--bt-navy-2: #1e293b;
	--bt-blue: #3b82f6;
	--bt-blue-d: #2563eb;
	--bt-gold: #f59e0b;
	--bt-gold-d: #d97706;
	--bt-text: #0f172a;
	--bt-muted: #64748b;
	--bt-line: #e2e8f0;
	--bt-bg: #f8fafc;
	--bt-ok: #16a34a;
	--bt-err: #dc2626;
	--bt-radius: 14px;
	color: var(--bt-text);
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}
.bt *, .bt *::before, .bt *::after { box-sizing: inherit; }
.bt h1, .bt h2, .bt h3 { line-height: 1.2; margin: 0 0 .6em; }
.bt p { margin: 0 0 .8em; }
.bt-muted { color: var(--bt-muted); }
.bt-small { font-size: .875rem; }
.bt-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Knoppen */
.bt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	padding: .65em 1.15em; border-radius: 10px; border: 1px solid var(--bt-line);
	background: #fff; color: var(--bt-navy); font-weight: 600; font-size: .95rem;
	text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, transform .05s;
}
.bt-btn:hover { background: var(--bt-bg); }
.bt-btn:active { transform: translateY(1px); }
.bt-btn--primary { background: var(--bt-blue); border-color: var(--bt-blue); color: #fff; }
.bt-btn--primary:hover { background: var(--bt-blue-d); }
.bt-btn--ghost { background: transparent; }
.bt-btn--danger { color: var(--bt-err); border-color: #fecaca; }
.bt-btn--small { padding: .4em .75em; font-size: .85rem; }
.bt-btn--block { width: 100%; }
.bt-inline { display: inline; margin: 0; }
.bt-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.bt-row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }

/* Meldingen & badges */
.bt-alert { padding: .85rem 1rem; border-radius: 10px; margin: 0 0 1rem; border: 1px solid; }
.bt-alert ul { margin: 0; padding-left: 1.2em; }
.bt-alert--ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.bt-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.bt-alert--warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.bt-alert--error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.bt-alert--test { background: repeating-linear-gradient(45deg, #fffbeb, #fffbeb 12px, #fef3c7 12px, #fef3c7 24px); border-color: var(--bt-gold); color: #78350f; }
.bt-badge { display: inline-block; padding: .15em .55em; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--bt-bg); color: var(--bt-muted); }
.bt-badge--ok { background: #dcfce7; color: #166534; }
.bt-badge--info { background: #dbeafe; color: #1e40af; }
.bt-badge--test { background: var(--bt-gold); color: #fff; }

/* Formulieren */
.bt-form { display: grid; gap: 1rem; }
.bt-field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; min-width: 0; }
.bt-field input, .bt-field select, .bt-field textarea, .bt-search, .bt-manual input {
	width: 100%; padding: .65em .8em; border: 1px solid #cbd5e1; border-radius: 10px;
	font: inherit; font-weight: 400; background: #fff; color: var(--bt-text);
}
.bt-field input:focus, .bt-field select:focus, .bt-field textarea:focus, .bt-search:focus { outline: 2px solid var(--bt-blue); outline-offset: 1px; border-color: var(--bt-blue); }
.bt-field--narrow { max-width: 320px; }
.bt-field--xs { max-width: 140px; }
.bt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.bt-check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.bt-check input { margin-top: .3em; }
.bt-card-box { background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); padding: 1.25rem; margin: 0 0 1rem; }
fieldset.bt-card-box { display: grid; gap: 1rem; }
fieldset.bt-card-box legend { font-weight: 800; padding: 0 .4rem; }
.bt-repeat { display: grid; gap: .75rem; }
.bt-repeat__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; padding: .75rem; background: var(--bt-bg); border-radius: 10px; }
.bt-repeat__row .bt-field { flex: 1 1 160px; }
.bt-repeat__row .bt-field--xs { flex: 0 1 120px; }
.bt-thumb { max-width: 220px; border-radius: 10px; display: block; margin: .3rem 0; }

/* Taalkeuze */
.bt-lang { display: flex; gap: .25rem; justify-content: flex-end; margin: 0 0 .75rem; }
.bt-lang a { padding: .2em .55em; border-radius: 6px; text-decoration: none; color: var(--bt-muted); font-weight: 700; font-size: .8rem; }
.bt-lang a[aria-current] { background: var(--bt-navy); color: #fff; }

/* Eventpagina */
.bt-event__hero { position: relative; border-radius: var(--bt-radius); overflow: hidden; background: linear-gradient(135deg, var(--bt-navy), var(--bt-navy-2)); color: #fff; margin: 0 0 1.5rem; }
.bt-event__img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.bt-event__hero.has-image .bt-event__head { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(15, 23, 42, .92)); }
.bt-event__head { padding: 2rem 1.5rem 1.5rem; }
.bt-event__org { color: var(--bt-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; margin: 0 0 .3rem; }
.bt-event__title { color: #fff; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 .6rem; }
.bt-event__meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.bt-event__meta a { color: #93c5fd; }
.bt-event__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 2rem; align-items: start; }
.bt-event__tickets { background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); padding: 1.25rem; position: sticky; top: 1rem; box-shadow: 0 10px 30px -15px rgba(15, 23, 42, .25); }
.bt-dates { padding-left: 1.2em; }
.bt-radio { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--bt-line); border-radius: 10px; margin: 0 0 .4rem; font-weight: 400; cursor: pointer; }
.bt-radio:has(input:checked) { border-color: var(--bt-blue); background: #eff6ff; }
.bt-radio em { margin-left: auto; font-size: .8rem; color: var(--bt-gold-d); font-style: normal; font-weight: 700; }
.bt-radio.is-soldout { opacity: .5; cursor: not-allowed; }
.bt-types { display: grid; gap: .5rem; }
.bt-type { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--bt-line); }
.bt-type__info { display: flex; flex-direction: column; }
.bt-type__name { font-weight: 700; }
.bt-type__price { color: var(--bt-blue-d); font-weight: 700; }
.bt-type__left { font-size: .8rem; color: var(--bt-gold-d); }
.bt-type select { width: 76px; padding: .45em; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.bt-type.is-soldout select { display: none; }
.bt-total { font-size: 1.15rem; text-align: right; margin: .5rem 0; }
.bt-pay-methods { text-align: center; color: var(--bt-muted); font-size: .8rem; margin: .5rem 0 0; }

/* Eventkaarten */
.bt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.bt-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bt-line); border-radius: var(--bt-radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.bt-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .45); }
.bt-card img, .bt-card__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bt-card__ph { display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--bt-navy), var(--bt-blue-d)); }
.bt-card__body { padding: 1rem; }
.bt-card__org { color: var(--bt-gold-d); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.bt-card h3 { margin: .25rem 0 .4rem; font-size: 1.15rem; }

/* Tickets (bestelpagina) */
.bt-tickets-list { display: grid; gap: 1rem; }
.bt-ticket { display: flex; gap: 1.25rem; align-items: center; border: 2px dashed var(--bt-blue); border-radius: var(--bt-radius); padding: 1rem; background: #fff; page-break-inside: avoid; }
.bt-ticket .bt-qr { width: 170px; height: 170px; flex: none; }
.bt-ticket.is-used { opacity: .55; }
.bt-ticket__type { font-weight: 800; font-size: 1.1rem; margin: 0; }
.bt-ticket__code { font-family: ui-monospace, monospace; letter-spacing: .08em; }

/* Dashboard */
.bt-dash__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 1rem; }
.bt-dash__head h2 { margin: 0; }
.bt-tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--bt-line); margin: 0 0 1.25rem; overflow-x: auto; }
.bt-tabs a, .bt-tabs button { padding: .7em 1em; text-decoration: none; color: var(--bt-muted); font-weight: 700; border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; font: inherit; white-space: nowrap; }
.bt-tabs [aria-current], .bt-tabs [aria-selected="true"] { color: var(--bt-navy); border-bottom-color: var(--bt-blue); }
.bt-table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.bt-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.bt-table th, .bt-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--bt-line); vertical-align: middle; }
.bt-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bt-muted); }
.bt-table tr.is-used { background: #f0fdf4; }
.bt-table--compact td, .bt-table--compact th { padding: .4rem .6rem; }
.bt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: 0 0 .75rem; }
.bt-stats div { background: var(--bt-navy); color: #fff; padding: 1rem; border-radius: 12px; }
.bt-stats span { display: block; font-size: .8rem; color: #94a3b8; }
.bt-stats strong { font-size: 1.5rem; }
.bt-stats div:nth-child(2) strong { color: var(--bt-gold); }
.bt-scanbox { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.bt-qr--small { width: 150px; height: 150px; }
.bt-list-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .5rem; }
.bt-search { margin: 0 0 .75rem; }
.bt-caps { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.bt-login, .bt-register .bt-card-box { max-width: 640px; margin: 0 auto; }
.bt-login input[type=text], .bt-login input[type=password] { width: 100%; padding: .65em .8em; border: 1px solid #cbd5e1; border-radius: 10px; }
.bt-login .button-primary { background: var(--bt-blue); color: #fff; border: 0; border-radius: 10px; padding: .7em 1.4em; font-weight: 700; cursor: pointer; }

/* Scanner */
.bt-scanner { max-width: 560px; margin: 0 auto; }
.bt-scanner__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 .75rem; }
.bt-scanner__head h2 { margin: .2rem 0 0; font-size: 1.25rem; }
.bt-scanner__count { text-align: right; background: var(--bt-navy); color: #fff; padding: .5rem .85rem; border-radius: 12px; white-space: nowrap; }
.bt-scanner__count strong { font-size: 1.6rem; color: var(--bt-gold); }
.bt-scanner__count small { display: block; font-size: .7rem; color: #94a3b8; }
.bt-reader { width: 100%; border-radius: var(--bt-radius); overflow: hidden; background: #000; margin: 0 0 .75rem; }
.bt-reader:empty { display: none; }
.bt-result { margin: .75rem 0; padding: 1.25rem; border-radius: var(--bt-radius); color: #fff; text-align: center; font-size: 1.15rem; font-weight: 800; }
.bt-result small { display: block; font-weight: 500; font-size: .95rem; margin-top: .3rem; }
.bt-result--ok { background: var(--bt-ok); }
.bt-result--used, .bt-result--wrong_date { background: var(--bt-gold-d); }
.bt-result--invalid, .bt-result--error { background: var(--bt-err); }
.bt-result--undone { background: var(--bt-muted); }
.bt-manual { display: flex; gap: .5rem; margin: .75rem 0; }
.bt-attendees { list-style: none; padding: 0; margin: 0; }
.bt-attendees li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .7rem .25rem; border-bottom: 1px solid var(--bt-line); }
.bt-attendees li.is-used { background: #f0fdf4; }
.bt-attendees .bt-att__name { font-weight: 700; }
.bt-attendees .bt-att__meta { font-size: .8rem; color: var(--bt-muted); }

@media (max-width: 800px) {
	.bt-event__grid { grid-template-columns: 1fr; }
	.bt-event__tickets { position: static; }
	.bt-event__hero.has-image .bt-event__head { position: static; background: var(--bt-navy); }
	.bt-ticket { flex-direction: column; text-align: center; }
	.bt-field--xs { max-width: none; }
}

@media print {
	.bt-noprint, .bt-tabs, .bt-actions, .bt-lang, .bt-search, .bt-btn, .bt-scanbox, .bt-stats, .bt-alert:not(.bt-alert--test) { display: none !important; }
	.bt-table { font-size: 11px; }
	.bt-ticket { border-color: #000; }
}

/* ---------- Tickety (chatassistent) ---------- */
.bt-tickety { position: fixed; right: 20px; bottom: 20px; z-index: 9990; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #0f172a; }
.bt-tickety *, .bt-tickety *::before, .bt-tickety *::after { box-sizing: border-box; }
.bt-tickety__launcher { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 10px; border: 0; border-radius: 999px; background: #0f172a; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 16px 40px -12px rgba(7, 11, 22, .6); transition: transform .2s ease, background-color .2s ease; }
.bt-tickety__launcher:hover { transform: translateY(-2px); background: #1e293b; }
.bt-tickety__launcher svg { width: 40px; height: 40px; flex: none; }
.bt-tickety[data-state="open"] .bt-tickety__launcher { display: none; }
.bt-tickety__panel { position: absolute; right: 0; bottom: 0; width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(7, 11, 22, .55); border: 1px solid #e2e8f0; }
.bt-tickety__panel[hidden] { display: none; }
.bt-tickety__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, #0b1120, #1e293b); color: #fff; }
.bt-tickety__avatar svg { width: 38px; height: 38px; display: block; }
.bt-tickety__titles { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.bt-tickety__titles strong { font-size: 16px; color: #fff; }
.bt-tickety__titles small { font-size: 12px; color: #94a3b8; }
.bt-tickety__close, .bt-tickety__reset { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #fff; font-size: 15px; cursor: pointer; }
.bt-tickety__close:hover, .bt-tickety__reset:hover { background: rgba(255, 255, 255, .1); }
.bt-tickety__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.bt-tickety__msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.bt-tickety__msg p { margin: 0 0 6px; }
.bt-tickety__msg p:last-child { margin-bottom: 0; }
.bt-tickety__msg ul { margin: 4px 0 6px; padding-left: 18px; }
.bt-tickety__msg a { color: #2563eb; font-weight: 600; }
.bt-tickety__msg--assistant { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 6px; }
.bt-tickety__msg--user { align-self: flex-end; background: #3b82f6; color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.bt-tickety__msg.is-typing { color: #64748b; font-style: italic; }
.bt-tickety__msg.is-error { border-color: #fecaca; background: #fef2f2; color: #7f1d1d; }
.bt-tickety__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; background: #f8fafc; }
.bt-tickety__chips[hidden] { display: none; }
.bt-tickety__chip { padding: 7px 12px; border-radius: 999px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.bt-tickety__chip:hover { background: #dbeafe; }
.bt-tickety__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid #e2e8f0; background: #fff; }
.bt-tickety__form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; font-size: 14.5px; line-height: 1.4; color: #0f172a; }
.bt-tickety__form textarea:focus { outline: 2px solid #3b82f6; outline-offset: 1px; border-color: #3b82f6; }
.bt-tickety__form button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: #3b82f6; color: #fff; cursor: pointer; display: grid; place-items: center; }
.bt-tickety__form button:disabled { opacity: .5; cursor: wait; }
.bt-tickety__form button svg { width: 20px; height: 20px; }
.bt-tickety__note { margin: 0; padding: 0 14px 10px; font-size: 11px; line-height: 1.4; color: #94a3b8; background: #fff; }
@media (max-width: 479px) {
	.bt-tickety { right: 12px; bottom: 12px; }
	.bt-tickety__label { display: none; }
	.bt-tickety__launcher { padding: 0 8px; width: 56px; justify-content: center; }
	.bt-tickety__panel { position: fixed; inset: auto 8px 8px 8px; width: auto; max-width: none; height: calc(100vh - 16px); max-height: none; }
}
@media print { .bt-tickety { display: none !important; } }
