/* =====================================================================
 * KQV Core — front-end design system
 * Styles every customer-facing component: accounts, events, tickets,
 * shop, cart, videos, membership. Scoped under .kqv-* classes so it
 * won't fight the theme.
 * ================================================================== */

:root {
	--kqv-accent: #e11d48;
	--kqv-accent-dark: #b3123a;
	--kqv-ink: #15161a;
	--kqv-text: #23242a;
	--kqv-muted: #6b7280;
	--kqv-line: #e7e7ea;
	--kqv-surface: #ffffff;
	--kqv-soft: #f6f6f7;
	--kqv-radius: 14px;
	--kqv-radius-sm: 9px;
	--kqv-shadow: 0 1px 3px rgba(16, 17, 26, .06), 0 8px 24px rgba(16, 17, 26, .06);
}

.kqv-account,
.kqv-events,
.kqv-shop,
.kqv-videos,
.kqv-plans {
	color: var(--kqv-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	box-sizing: border-box;
}

.kqv-account *,
.kqv-events *,
.kqv-shop *,
.kqv-videos *,
.kqv-plans * { box-sizing: border-box; }

.kqv-account { max-width: 760px; margin: 1.5rem auto; }

/* Account forms (login, register, reset, edit profile, change password) read
   as a centred card rather than bare fields floating on the page. Cart, gate
   and other functional .kqv-account blocks are excluded. */
.kqv-account:not(.kqv-cart):not(.kqv-gate):not(.kqv-shop):not(.kqv-event) > .kqv-form {
	max-width: 480px;
	margin: 0 auto;
	background: var(--kqv-surface);
	border: 1px solid var(--kqv-line);
	border-radius: var(--kqv-radius);
	box-shadow: var(--kqv-shadow);
	padding: 1.85rem 1.7rem;
}
/* The logged-in / message panel (non-form account content) matches the card. */
.kqv-account.kqv-panel {
	max-width: 480px;
	background: var(--kqv-surface);
	border: 1px solid var(--kqv-line);
	border-radius: var(--kqv-radius);
	box-shadow: var(--kqv-shadow);
	padding: 1.85rem 1.7rem;
	text-align: center;
}

.kqv-account h1,
.kqv-account h2 {
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.15;
	color: var(--kqv-ink);
	margin: 0 0 .5rem;
}
.kqv-account h2 { font-size: 1.8rem; }
.kqv-account h3 { font-weight: 700; color: var(--kqv-ink); }
.kqv-muted { color: var(--kqv-muted); }

/* ---- Buttons ---- */
.kqv-btn {
	display: inline-block;
	padding: .8rem 1.5rem;
	background: var(--kqv-accent);
	color: #fff;
	border: 0;
	border-radius: var(--kqv-btn-radius, 999px);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
	box-shadow: 0 2px 8px rgba(225, 29, 72, .25);
}
.kqv-btn:hover { background: var(--kqv-accent-dark); color: #fff; transform: translateY(-1px); }
.kqv-btn:active { transform: translateY(0); }
.kqv-btn--ghost { background: transparent; color: var(--kqv-ink); border: 1.5px solid var(--kqv-line); box-shadow: none; }
.kqv-btn--ghost:hover { background: var(--kqv-soft); color: var(--kqv-ink); border-color: #d7d7da; }
.kqv-btn--block { display: block; width: 100%; text-align: center; }

/* ---- Cards & grids ---- */
.kqv-card {
	background: var(--kqv-surface);
	border: 1px solid var(--kqv-line);
	border-radius: var(--kqv-radius);
	box-shadow: var(--kqv-shadow);
	overflow: hidden;
}
.kqv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }

/* ---- Forms ---- */
.kqv-form p { margin: 0 0 1.1rem; }
.kqv-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--kqv-ink); }
.kqv-form input[type="text"],
.kqv-form input[type="email"],
.kqv-form input[type="password"],
.kqv-form input[type="number"],
.kqv-form textarea,
.kqv-form select {
	display: block;
	width: 100%;
	margin-top: .4rem;
	padding: .7rem .85rem;
	border: 1.5px solid var(--kqv-line);
	border-radius: var(--kqv-radius-sm);
	font-size: 1rem;
	background: #fff;
	color: var(--kqv-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.kqv-form input:focus,
.kqv-form textarea:focus,
.kqv-form select:focus {
	outline: none;
	border-color: var(--kqv-accent);
	box-shadow: 0 0 0 3px rgba(225, 29, 72, .15);
}
.kqv-form .kqv-two { display: flex; gap: 1rem; }
.kqv-form .kqv-two label { flex: 1; }
.kqv-form .kqv-check { font-weight: 400; }
.kqv-form .kqv-inline label { display: inline-block; }
.kqv-form .description { color: var(--kqv-muted); font-size: .85rem; margin-top: .3rem; }

/* ---- Messages ---- */
.kqv-error, .kqv-success {
	padding: .8rem 1rem;
	border-radius: var(--kqv-radius-sm);
	margin: 0 0 1.1rem;
	font-size: .95rem;
}
.kqv-error { background: #fdecea; color: #8a1c12; border: 1px solid #f5c6c1; }
.kqv-success { background: #e7f6ec; color: #1b5e2a; border: 1px solid #b7e0c1; }

/* ---- Pills / badges ---- */
.kqv-pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--kqv-soft); color: var(--kqv-muted); vertical-align: middle; }
.kqv-pill--danger { background: #fdecea; color: #b3123a; }
.kqv-pill--ok { background: #e7f6ec; color: #1b5e2a; }

/* ---- Events ---- */
.kqv-events { display: flex; flex-direction: column; gap: 1rem; }

.kqv-ic { width: 15px; height: 15px; flex: 0 0 auto; opacity: .85; }

a.kqv-event-card {
	display: flex;
	align-items: center;
	gap: 1.35rem;
	text-decoration: none;
	color: inherit;
	background: var(--kqv-surface);
	border: 1px solid var(--kqv-line);
	border-radius: var(--kqv-radius);
	box-shadow: var(--kqv-shadow);
	padding: 1.15rem 1.35rem;
	transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
a.kqv-event-card:hover {
	color: inherit;
	transform: translateY(-2px);
	border-color: transparent;
	box-shadow: 0 6px 16px rgba(16,17,26,.10), 0 18px 40px rgba(16,17,26,.10);
}

.kqv-event-card__date {
	flex: 0 0 auto;
	width: 62px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: .55rem 0;
	border-radius: var(--kqv-radius-sm);
	background: var(--kqv-soft);
	border: 1px solid var(--kqv-line);
	line-height: 1;
}
.kqv-event-card__date .kqv-d { font-size: 1.55rem; font-weight: 800; color: var(--kqv-ink); }
.kqv-event-card__date .kqv-m { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--kqv-accent); margin-top: .25rem; }

.kqv-event-card__main { flex: 1 1 auto; min-width: 0; }
.kqv-event-card__main h3 { margin: 0 0 .45rem; font-size: 1.2rem; line-height: 1.2; }
.kqv-event-card__meta { display: flex; align-items: center; gap: .45rem; color: var(--kqv-muted); font-size: .92rem; margin: .18rem 0; }

.kqv-event-card__cta { flex: 0 0 auto; }
.kqv-event-card .kqv-btn { pointer-events: none; }

.kqv-back { display: inline-flex; align-items: center; gap: .35rem; margin: 0 0 1.1rem; color: var(--kqv-muted); text-decoration: none; font-size: .92rem; font-weight: 600; }
.kqv-back:hover { color: var(--kqv-accent); }

/* Series group */
.kqv-series {
	background: var(--kqv-surface);
	border: 1px solid var(--kqv-line);
	border-radius: var(--kqv-radius);
	box-shadow: var(--kqv-shadow);
	padding: 1.35rem 1.4rem;
}
.kqv-series__title { margin: 0 0 1rem; font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; }
.kqv-series .kqv-event-card { box-shadow: none; }

@media (max-width: 560px) {
	a.kqv-event-card { flex-wrap: wrap; gap: .9rem 1rem; }
	.kqv-event-card__date { width: 54px; }
	.kqv-event-card__cta { flex-basis: 100%; }
	.kqv-event-card__cta .kqv-btn { display: block; text-align: center; }
}

/* ---- Single event ---- */
.kqv-event h2 { font-size: 2rem; }
.kqv-event__meta { color: var(--kqv-muted); margin: 0 0 1.25rem; font-size: 1rem; }
.kqv-tickets { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; border: 1px solid var(--kqv-line); border-radius: var(--kqv-radius); overflow: hidden; }
.kqv-tickets th { text-align: left; padding: .8rem 1rem; background: var(--kqv-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--kqv-muted); }
.kqv-tickets td { padding: .85rem 1rem; border-top: 1px solid var(--kqv-line); vertical-align: middle; }
.kqv-tickets .kqv-price { font-weight: 700; color: var(--kqv-ink); white-space: nowrap; }
.kqv-tickets input[type="number"] { width: 72px; padding: .5rem; border: 1.5px solid var(--kqv-line); border-radius: 8px; }

.kqv-upsell { border: 1px dashed #d3d3d8; border-radius: var(--kqv-radius); padding: 1rem 1.2rem; margin: 0 0 1.25rem; background: var(--kqv-soft); }
.kqv-upsell strong { color: var(--kqv-ink); }
.kqv-upsell__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: .35rem 0; padding: .35rem 0; }
.kqv-upsell__name { flex: 1 1 200px; min-width: 0; }
.kqv-upsell__controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto; margin-left: auto; }
/* [hidden] must beat the display rules on .kqv-stepper / .kqv-btn / select. */
[data-add-row] [hidden] { display: none !important; }
.kqv-upsell__controls .kqv-upsell__size { width: auto !important; margin-top: 0 !important; }
.kqv-upsell__stepper { flex: 0 0 auto; }
.kqv-upsell__remove,
.kqv-row-remove { background: none; border: 0; color: var(--kqv-muted); font-size: .85rem; cursor: pointer; text-decoration: underline; padding: .35rem .2rem; }
.kqv-upsell__remove:hover,
.kqv-row-remove:hover { color: var(--kqv-accent); }
.kqv-btn--sm { padding: .55rem 1.2rem; font-size: .9rem; }

/* Ticket quantity cell: Add button ⇄ stepper + Remove, right-aligned */
.kqv-ticket-qty { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }

/* Quantity stepper: − [n] + (replaces fiddly native number spinners) */
.kqv-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1.5px solid var(--kqv-line);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	vertical-align: middle;
}
.kqv-stepper__btn {
	width: 38px;
	flex: 0 0 38px;
	border: 0;
	background: var(--kqv-soft);
	color: var(--kqv-ink);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-user-select: none;
	user-select: none;
	transition: background .12s ease, color .12s ease;
}
.kqv-stepper__btn:hover:not(:disabled) { background: #ececee; color: var(--kqv-accent); }
.kqv-stepper__btn:active:not(:disabled) { background: #e2e2e5; }
.kqv-stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.kqv-stepper input[type="number"] {
	width: 52px !important;
	text-align: center;
	border: 0 !important;
	border-radius: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	padding: .55rem 0 !important;
	-moz-appearance: textfield;
	appearance: textfield;
	font-weight: 700;
}
.kqv-stepper input[type="number"]:focus { box-shadow: none !important; }
.kqv-stepper input[type="number"]::-webkit-outer-spin-button,
.kqv-stepper input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Live order total on the event buy form */
.kqv-order-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1rem 1.25rem;
	margin: 1.25rem 0 .35rem;
	background: var(--kqv-soft);
	border: 1px solid var(--kqv-line);
	border-radius: var(--kqv-radius);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--kqv-ink);
}
.kqv-order-total strong { font-size: 1.5rem; font-weight: 800; color: var(--kqv-ink); }
.kqv-total-note { margin: 0 0 1.1rem; }

/* ---- Placeholder thumbnails (when no poster / product image is set) ---- */
.kqv-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: linear-gradient(135deg, #0f2740 0%, #123b47 55%, var(--kqv-accent) 140%);
	color: rgba(255, 255, 255, .9);
	text-decoration: none;
}
.kqv-thumb svg { width: 34%; max-width: 60px; height: auto; opacity: .92; filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.kqv-thumb--video { aspect-ratio: 16 / 9; }
.kqv-thumb--product { aspect-ratio: 1 / 1; }
.kqv-thumb:hover { color: #fff; }

/* ---- Shop / products ---- */
.kqv-product-card { display: flex; flex-direction: column; }
.kqv-product-card__media { display: block; line-height: 0; position: relative; }
.kqv-gallery-badge {
	position: absolute; bottom: 8px; right: 8px;
	display: inline-flex; align-items: center;
	font-size: .72rem; font-weight: 700; line-height: 1;
	padding: .3rem .5rem; border-radius: 999px;
	background: rgba(15, 39, 64, .8); color: #fff;
	-webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.kqv-product__media .kqv-thumb { border-radius: var(--kqv-radius); }

/* Small stepper variant for cart rows */
.kqv-stepper--sm .kqv-stepper__btn { width: 32px; flex-basis: 32px; font-size: 1.1rem; }
.kqv-stepper--sm input[type="number"] { width: 44px !important; padding: .4rem 0 !important; }

/* Cart remove (×) button */
.kqv-cart__remove { width: 32px; height: 32px; border: 0; background: transparent; color: var(--kqv-muted); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.kqv-cart__remove:hover { background: #fdecea; color: #b3123a; }
.kqv-cart td { vertical-align: middle; }
.kqv-qty-label { margin-bottom: 0; }

.kqv-product-card img { width: 100%; height: auto; display: block; aspect-ratio: 1/1; object-fit: cover; }
.kqv-product-card__body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.kqv-product-card__body h3 { margin: 0; font-size: 1.05rem; }
.kqv-product-card__price { font-weight: 700; color: var(--kqv-accent); }
.kqv-product-card .kqv-btn { margin-top: auto; }

.kqv-product { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: flex-start; }
.kqv-product__media { flex: 1 1 300px; }
.kqv-product__media img { width: 100%; height: auto; border-radius: var(--kqv-radius); }
.kqv-product__cover { aspect-ratio: 1 / 1; object-fit: cover; }

/* Gallery thumbnails */
.kqv-product__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.kqv-product__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--kqv-radius-sm); background: none; cursor: pointer; line-height: 0; overflow: hidden; }
.kqv-product__thumb img { width: 60px; height: 60px; object-fit: cover; border-radius: calc(var(--kqv-radius-sm) - 2px); display: block; }
.kqv-product__thumb:hover { border-color: var(--kqv-line); }
.kqv-product__thumb.is-active { border-color: var(--kqv-accent); }
.kqv-product__info { flex: 1 1 280px; }
.kqv-product__price { font-size: 1.5rem; font-weight: 800; color: var(--kqv-ink); margin: .25rem 0 .75rem; }

/* ---- Cart ---- */
.kqv-cart table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.kqv-cart thead th { text-align: left; padding: .6rem 0; border-bottom: 2px solid var(--kqv-line); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--kqv-muted); }
.kqv-cart tbody td { padding: .8rem 0; border-bottom: 1px solid var(--kqv-line); }
.kqv-cart__totals { width: 100%; max-width: 320px; margin: 1.25rem 0; }
.kqv-cart__totals td { padding: .35rem 0; }
.kqv-cart__totals .kqv-grand td { font-weight: 800; font-size: 1.15rem; color: var(--kqv-ink); border-top: 2px solid var(--kqv-line); padding-top: .6rem; }

/* ---- Videos ---- */
.kqv-video-card { display: flex; flex-direction: column; }
.kqv-video-card__media { position: relative; display: block; overflow: hidden; line-height: 0; }
.kqv-video-card__media img,
.kqv-video-card__media .kqv-thumb { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; }

/* Play overlay — signals these are watchable videos */
.kqv-video-card__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 54px; height: 54px; border-radius: 50%;
	background: rgba(15, 39, 64, .55); color: #fff;
	display: flex; align-items: center; justify-content: center;
	pointer-events: none; transition: background .15s ease, transform .15s ease;
}
.kqv-video-card__play svg { width: 22px; height: 22px; margin-left: 3px; }
.kqv-video-card:hover .kqv-video-card__play { background: var(--kqv-accent); transform: translate(-50%, -50%) scale(1.07); }

/* Access badge (Free / Members / Paid) on the thumbnail */
.kqv-badge {
	position: absolute; top: 10px; left: 10px;
	display: inline-flex; align-items: center; gap: 4px;
	font-size: .72rem; font-weight: 700; letter-spacing: .02em;
	padding: .3rem .6rem; border-radius: 999px;
	color: #fff; background: rgba(0, 0, 0, .6);
	line-height: 1;
}
.kqv-badge__lock { width: 11px; height: 11px; }
.kqv-badge--free { background: #1b7a3d; }
.kqv-badge--members { background: var(--kqv-accent); }
.kqv-badge--paid { background: #b07a12; }

.kqv-video-card__body { padding: .9rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.kqv-video-card__body h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.kqv-video-card__desc { color: var(--kqv-muted); font-size: .9rem; margin: 0 0 .9rem; }
.kqv-video-card__body .kqv-btn { margin-top: auto; }

/* "More to watch" recommendations under the player. */
.kqv-recs { max-width: 900px; margin: 2.5rem auto 0; text-align: left; }
.kqv-recs__title { font-size: 1.05rem; margin: 0 0 1rem; color: var(--kqv-ink); }
.kqv-recs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.kqv-rec { display: block; text-decoration: none; color: var(--kqv-ink); }
.kqv-rec__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: calc(var(--kqv-radius) - 4px); overflow: hidden; background: var(--kqv-soft); box-shadow: var(--kqv-shadow); }
.kqv-rec__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.kqv-rec:hover .kqv-rec__media img { transform: scale(1.05); }
.kqv-rec__media .kqv-badge { position: absolute; top: .5rem; left: .5rem; }
.kqv-rec__media .kqv-thumb--video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.kqv-rec__name { display: block; margin-top: .5rem; font-size: .88rem; font-weight: 600; line-height: 1.35; }
.kqv-rec:hover .kqv-rec__name { color: var(--kqv-accent); }
@media (prefers-reduced-motion: reduce) { .kqv-rec__media img { transition: none; } .kqv-rec:hover .kqv-rec__media img { transform: none; } }

.kqv-videos-back { max-width: 900px; margin: 0 auto 1rem; text-align: left; }
.kqv-videos-back a { color: var(--kqv-muted); text-decoration: none; font-weight: 600; }
.kqv-videos-back a:hover { color: var(--kqv-ink); }
.kqv-player { position: relative; padding-top: 56.25%; border-radius: var(--kqv-radius); overflow: hidden; box-shadow: var(--kqv-shadow); }
.kqv-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Locked-video gate panel */
/* Modal / popup (locked-video gate) */
.kqv-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.kqv-modal[hidden] { display: none; }
.kqv-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 15, 25, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.kqv-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	background: var(--kqv-surface);
	border-radius: var(--kqv-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	padding: 2.4rem 2rem 2rem;
	text-align: center;
	animation: kqv-modal-pop .18s ease;
}
@keyframes kqv-modal-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.kqv-modal__close {
	position: absolute; top: .55rem; right: .65rem;
	width: 36px; height: 36px;
	border: 0; background: transparent;
	font-size: 1.6rem; line-height: 1; color: var(--kqv-muted);
	cursor: pointer; border-radius: 8px;
}
.kqv-modal__close:hover { background: var(--kqv-soft); color: var(--kqv-ink); }
.kqv-modal__box h2 { margin: 0 0 .5rem; }
.kqv-modal__box p { color: var(--kqv-muted); }
.kqv-modal__box .kqv-btn { margin-top: .5rem; }

.kqv-videogate__icon {
	width: 66px; height: 66px; margin: 0 auto 1rem;
	border-radius: 50%; background: var(--kqv-soft); color: var(--kqv-accent);
	display: flex; align-items: center; justify-content: center;
}
.kqv-videogate__icon svg { width: 30px; height: 30px; }
.kqv-videogate h2 { margin: 0 0 .5rem; }
.kqv-videogate p { color: var(--kqv-muted); }
.kqv-videogate .kqv-btn { margin-top: .5rem; }

/* ---- Membership plans ---- */
.kqv-plans { max-width: 920px; margin: 1.5rem auto; }
.kqv-plans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.kqv-plan { background: var(--kqv-surface); border: 1px solid var(--kqv-line); border-radius: var(--kqv-radius); box-shadow: var(--kqv-shadow); padding: 1.75rem 1.5rem; text-align: center; position: relative; display: flex; flex-direction: column; }
.kqv-plan--featured { border: 2px solid var(--kqv-accent); }
.kqv-plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--kqv-accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; }
.kqv-plan h3 { margin: 0 0 .25rem; font-size: 1.3rem; }
.kqv-plan__price { font-size: 2rem; font-weight: 800; color: var(--kqv-ink); margin: .25rem 0; }
.kqv-plan__period { color: var(--kqv-muted); margin: 0 0 1rem; }
.kqv-plan ul { list-style: none; padding: 0; margin: .5rem 0 1.25rem; text-align: left; }
.kqv-plan li { margin: .45rem 0; padding-left: 1.5rem; position: relative; }
.kqv-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--kqv-accent); font-weight: 800; }
.kqv-plan .kqv-btn { margin-top: auto; }

/* ---- Account dashboard ---- */
.kqv-dash { max-width: 760px; }
.kqv-dash__tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--kqv-line); margin: 0 0 1.5rem; }
.kqv-dash__tab {
	border: 0; background: transparent; cursor: pointer;
	padding: .7rem 1rem; font-size: .95rem; font-weight: 600; color: var(--kqv-muted);
	border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0;
}
.kqv-dash__tab:hover { color: var(--kqv-ink); background: var(--kqv-soft); }
.kqv-dash__tab.is-active { color: var(--kqv-accent); border-bottom-color: var(--kqv-accent); }
.kqv-dash__panel { display: none; }
.kqv-dash__panel.is-active { display: block; animation: kqv-fade .2s ease; }
@keyframes kqv-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kqv-dash__hi { font-size: 1.5rem; margin: 0 0 1.2rem; }

.kqv-dash__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.kqv-stat { background: var(--kqv-soft); border: 1px solid var(--kqv-line); border-radius: var(--kqv-radius); padding: 1.1rem 1.2rem; }
.kqv-stat__num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--kqv-ink); line-height: 1.1; }
.kqv-stat__label { display: block; color: var(--kqv-muted); font-size: .85rem; margin-top: .25rem; }
.kqv-dash__links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Order / ticket cards inside the dashboard */
.kqv-order { border: 1px solid var(--kqv-line); border-radius: var(--kqv-radius); padding: 1rem 1.2rem; margin: 0 0 1rem; background: var(--kqv-surface); box-shadow: var(--kqv-shadow); }
.kqv-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.kqv-order__head > div:first-child { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.kqv-order__meta { color: var(--kqv-muted); font-size: .9rem; white-space: nowrap; }
.kqv-order__items { list-style: none; margin: .8rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--kqv-line); }
.kqv-order__items li { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; font-size: .93rem; }
.kqv-order__actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .9rem; }
.kqv-order__note { font-size: .88rem; }
.kqv-watched li a { color: var(--kqv-ink); text-decoration: none; font-weight: 600; }
.kqv-watched li a:hover { color: var(--kqv-accent); }

/* Pill colour variants used by the dashboard */
.kqv-pill--muted { background: var(--kqv-soft); color: var(--kqv-muted); }

/* Receipt / invoice */
.kqv-receipt { max-width: 620px; }
.kqv-receipt__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.kqv-receipt__num { font-size: 1.3rem; font-weight: 800; color: var(--kqv-ink); }
.kqv-receipt__buyer { margin: 0 0 1.25rem; }
.kqv-receipt__actions { display: flex; gap: .6rem; margin-top: 1.5rem; }
@media print { .kqv-siteheader, .kqv-page__header, .kqv-page__footer, .kqv-receipt__actions, .kqv-ticket-actions { display: none !important; } }

/* Required "create an account" block on guest checkout forms. */
.kqv-acct-create { margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid var(--kqv-line); border-radius: var(--kqv-radius); background: var(--kqv-soft); }
.kqv-acct-create__lead { margin: 0 0 .7rem; }
.kqv-acct-create input[type="password"] { width: 100%; }
.kqv-acct-create__note { margin: .7rem 0 0; font-size: .85rem; color: var(--kqv-muted); }
.kqv-req { color: #d33; font-weight: 700; }

/* Long-form policy pages (Terms & Conditions, Privacy Policy). */
.kqv-prose { max-width: 820px; margin: 0 auto; padding: 2rem 2.25rem; text-align: left; background: #fff; border: 1px solid var(--kqv-line); border-radius: var(--kqv-radius); box-shadow: var(--kqv-shadow); }
.kqv-prose h2 { font-size: 1.1rem; margin: 1.75rem 0 .6rem; color: var(--kqv-ink); }
.kqv-prose p, .kqv-prose li { line-height: 1.65; color: var(--kqv-ink); }
.kqv-prose ul { list-style: disc; margin: 0 0 1rem 1.25rem; }
.kqv-prose li { margin-bottom: .45rem; }
.kqv-prose li::marker { color: var(--kqv-accent); }

/* Terms acceptance at checkout + note under Subscribe buttons. */
.kqv-terms { margin: 1rem 0; }
.kqv-terms a { text-decoration: underline; }
.kqv-terms-note { margin: .6rem 0 0; font-size: .8rem; color: var(--kqv-muted); text-align: center; }
.kqv-terms-note a { color: inherit; text-decoration: underline; }

/* Secondary links under a form (e.g. "Forgot your password?"). */
.kqv-form__links { margin: .25rem 0 0; font-size: .9rem; }
.kqv-form__links a { color: var(--kqv-muted); text-decoration: underline; }
.kqv-form__links a:hover { color: var(--kqv-ink); }

/* ---- Membership status card ---- */
.kqv-membership-status { margin: 1.75rem auto 0; }
.kqv-membership-status h3 { margin: .6rem 0 .4rem; font-size: 1.35rem; }
.kqv-membership-status__line { color: var(--kqv-muted); margin: 0 0 1rem; }
.kqv-membership-status form { margin-top: .5rem; }

/* ---- Floating cart ---- */
.kqv-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: flex; align-items: center; gap: 10px; background: var(--kqv-ink); color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); font-size: 15px; font-weight: 600; }
.kqv-fab:hover { color: #fff; transform: translateY(-2px); }
.kqv-fab__count { background: var(--kqv-accent); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

/* Bounce a few times to draw the eye (and after every add-to-cart reload). */
.kqv-fab { animation: kqv-fab-bounce .8s ease .3s 3; }
.kqv-fab:hover { animation: none; }
@keyframes kqv-fab-bounce {
	0%, 100% { transform: translateY(0); }
	25%      { transform: translateY(-14px); }
	45%      { transform: translateY(0); }
	65%      { transform: translateY(-7px); }
	85%      { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .kqv-fab { animation: none; } }

/* Post-add action buttons on the product page */
.kqv-added { margin: 0 0 1.5rem; }
.kqv-added__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .3rem 0 0; }
.kqv-added__remove { background: none; border: 0; color: var(--kqv-muted); font-size: .9rem; cursor: pointer; text-decoration: underline; padding: .55rem .5rem; }
.kqv-added__remove:hover { color: #b3123a; }

/* ---- Site header (branded top nav bar) ---- */
.kqv-siteheader {
	background: var(--kqv-header-bg, #0f2740);
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	position: relative;
	z-index: 100;
}
.kqv-siteheader--sticky { position: sticky; top: 0; }
.kqv-siteheader * { box-sizing: border-box; }
.kqv-siteheader__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .55rem 1.5rem;
}
.kqv-siteheader__brand { display: inline-flex; align-items: center; color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.kqv-siteheader__brand img { height: 42px; width: auto; display: block; }
.kqv-siteheader__nav { display: flex; margin-left: auto; }
.kqv-siteheader__actions { display: flex; align-items: center; gap: .35rem; }

/* Cart icon + count */
.kqv-siteheader__cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #fff; border-radius: 10px; }
.kqv-siteheader__cart:hover { background: rgba(255,255,255,.12); color: #fff; }
.kqv-siteheader__cart svg { width: 23px; height: 23px; }
.kqv-siteheader__cart-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--kqv-accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
ul.kqv-nav { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; align-items: center; }
ul.kqv-nav li { margin: 0; padding: 0; list-style: none; }
ul.kqv-nav a { display: block; color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .9rem; border-radius: 8px; transition: background .15s ease, color .15s ease; }
ul.kqv-nav a:hover,
ul.kqv-nav .current-menu-item > a { color: #fff; background: rgba(255,255,255,.12); }

.kqv-siteheader__toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 38px; padding: 0 9px; background: transparent; border: 0; cursor: pointer; }
.kqv-siteheader__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

@media (max-width: 860px) {
	.kqv-siteheader__inner { flex-wrap: wrap; }
	.kqv-siteheader__toggle { display: flex; }
	.kqv-siteheader__actions { margin-left: auto; order: 2; }
	.kqv-siteheader__nav { display: none; flex-basis: 100%; margin-left: 0; order: 3; }
	.kqv-siteheader.is-open .kqv-siteheader__nav { display: block; padding-bottom: .6rem; }
	ul.kqv-nav { flex-direction: column; align-items: stretch; gap: 0; }
	ul.kqv-nav a { padding: .7rem .6rem; border-radius: 0; border-top: 1px solid rgba(255,255,255,.08); }
}

/* ---- Page shell (branded header + footer around content) ---- */
.kqv-page {
	max-width: 860px;
	margin: 1.5rem auto;
	color: var(--kqv-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	box-sizing: border-box;
}
.kqv-page * { box-sizing: border-box; }
.kqv-page--center { text-align: center; }
.kqv-page--center .kqv-page__body { text-align: left; }

.kqv-page__header {
	padding: 2rem 1rem 1.5rem;
	border-bottom: 1px solid var(--kqv-line);
	margin-bottom: 1.75rem;
}
.kqv-page--center .kqv-page__header { display: flex; flex-direction: column; align-items: center; }
.kqv-page__logo img { max-height: 72px; width: auto; height: auto; display: block; margin-bottom: .9rem; }
.kqv-page__title {
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.1;
	font-size: 2.1rem;
	color: var(--kqv-ink);
	margin: 0;
}
.kqv-page__tagline { color: var(--kqv-muted); font-size: 1.05rem; margin: .4rem 0 0; }

/* Plain (non-hero) header: a short accent underline keeps it looking designed. */
.kqv-page__header:not(.kqv-page__header--hero) .kqv-page__title::after {
	content: "";
	display: block;
	width: 46px;
	height: 3px;
	border-radius: 3px;
	background: var(--kqv-accent);
	margin: .85rem 0 0;
}
.kqv-page--center .kqv-page__header:not(.kqv-page__header--hero) .kqv-page__title::after { margin-left: auto; margin-right: auto; }

/* Hero header: background image supplied inline; scrim baked into the image. */
.kqv-page__header--hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 300px;
	padding: 3.5rem 1.5rem;
	border-bottom: 0;
	border-radius: var(--kqv-radius);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}
.kqv-page__header--hero .kqv-page__title { color: #fff; font-size: 2.6rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.kqv-page__header--hero .kqv-page__tagline { color: rgba(255, 255, 255, .92); font-size: 1.15rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.kqv-page__header--hero .kqv-page__logo img { max-height: 84px; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .3)); }

/* Boxed shell: a solid page background gives the content a padded frame. */
.kqv-page--boxed { padding: 1.5rem; border-radius: var(--kqv-radius); box-shadow: var(--kqv-shadow); }
.kqv-page--boxed .kqv-page__header--hero { margin-top: -1.5rem; margin-left: -1.5rem; margin-right: -1.5rem; border-radius: var(--kqv-radius) var(--kqv-radius) 0 0; }

.kqv-page__body { margin: 0 auto; }
/* The shell already provides the outer frame, so an inner .kqv-account
   shouldn't add its own top margin / max-width on top of it. */
.kqv-page__body > .kqv-account,
.kqv-page__body > .kqv-events,
.kqv-page__body > .kqv-plans { margin-top: 0; margin-bottom: 0; max-width: none; }

.kqv-page__footer {
	margin-top: 2.5rem;
	padding: 1.75rem 1rem;
	border-top: 1px solid var(--kqv-line);
	text-align: center;
}
.kqv-page__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; margin-bottom: .9rem; }
.kqv-page__links a { color: var(--kqv-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.kqv-page__links a:hover { color: var(--kqv-accent); }
.kqv-page__copy { color: var(--kqv-muted); font-size: .85rem; margin: 0; }

@media (max-width: 560px) {
	.kqv-form .kqv-two { flex-direction: column; gap: 0; }
	.kqv-account h2 { font-size: 1.5rem; }
	.kqv-event h2 { font-size: 1.6rem; }
	.kqv-page__title { font-size: 1.6rem; }
}
