/* VVV Bookings - front end. Everything is scoped under .vvv-app / .vvv-drawer. */
.vvv-app, .vvv-drawer, .vvv-scrim {
	--vvv-bg: #000000;
	--vvv-bg2: #000000;
	--vvv-card: #124012;
	--vvv-line: #1e5c1e;
	--vvv-text: #eaf3ea;
	--vvv-muted: #9fbf9f;
	--vvv-gold: #1e5c1e;   /* accent fill (buttons, selected seats); set in VVV Bookings > Settings */
	--vvv-deep: #124012;   /* surfaces */
	--vvv-hi: #67d46e;     /* bright tint for text, outlines and glow on black */
	--vvv-ok: #5fcf8a;
	--vvv-warn: #f0b24a;
	--vvv-bad: #ef6a6a;
	--vvv-radius: 14px;
	--vvv-serif: "Cinzel", "Cormorant Garamond", Georgia, serif;
	--vvv-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.vvv-app {
	position: relative;
	color: var(--vvv-text);
	font-family: var(--vvv-sans);
	font-size: 15px;
	line-height: 1.45;
	border-radius: 20px;
	padding: clamp(14px, 3vw, 28px);
	background:
		radial-gradient(1000px 400px at 80% -10%, rgba(30, 92, 30, .45), transparent 60%),
		radial-gradient(700px 400px at -10% 110%, rgba(18, 64, 18, .55), transparent 60%),
		var(--vvv-bg);
	border: 1px solid var(--vvv-line);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
	overflow: hidden;
	isolation: isolate;
}
/* subtle grain */
.vvv-app::before {
	content: "";
	position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.vvv-app *, .vvv-drawer * { box-sizing: border-box; }
.vvv-app button, .vvv-drawer button { font-family: inherit; cursor: pointer; }
.vvv-app :focus-visible, .vvv-drawer :focus-visible { outline: 2px solid var(--vvv-hi); outline-offset: 2px; }

/* ---------- header ---------- */
.vvv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; justify-content: space-between; margin-bottom: 14px; }
.vvv-title { font-family: var(--vvv-serif); font-weight: 700; font-size: clamp(22px, 4vw, 32px); letter-spacing: .04em; margin: 0; color: #fff; }
.vvv-title span { color: var(--vvv-hi); }
.vvv-nav { display: flex; align-items: center; gap: 8px; }
.vvv-btn {
	appearance: none; border: 1px solid var(--vvv-line); background: rgba(255, 255, 255, .04); color: var(--vvv-text);
	border-radius: 999px; padding: 8px 14px; font-weight: 500; transition: .2s;
}
.vvv-btn:hover { border-color: var(--vvv-hi); box-shadow: 0 0 0 3px rgba(103, 212, 110, .16), 0 0 18px rgba(103, 212, 110, .25); }
.vvv-btn.icon { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; font-size: 18px; }

.vvv-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 16px; }
.vvv-chip {
	appearance: none; border: 1px solid var(--vvv-line); background: transparent; color: var(--vvv-muted);
	border-radius: 999px; padding: 6px 12px; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; transition: .2s;
}
.vvv-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--vvv-hi)); box-shadow: 0 0 8px var(--c, var(--vvv-hi)); }
.vvv-chip[aria-pressed="true"] { color: #fff; border-color: var(--c, var(--vvv-hi)); background: rgba(255, 255, 255, .06); }
.vvv-toggle { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; color: var(--vvv-muted); font-size: 13px; cursor: pointer; }
.vvv-toggle input { accent-color: var(--vvv-hi); }

/* ---------- month grid ---------- */
.vvv-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.vvv-dow { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--vvv-muted); padding: 4px 0 8px; }
.vvv-day {
	position: relative; min-height: 108px; text-align: left; padding: 8px; color: inherit;
	background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
	border: 1px solid var(--vvv-line); border-radius: 12px; display: flex; flex-direction: column; gap: 4px;
	transition: transform .18s, border-color .18s, box-shadow .18s;
}
.vvv-day:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(103, 212, 110, .55); box-shadow: 0 8px 26px rgba(0, 0, 0, .4), 0 0 22px rgba(103, 212, 110, .14); }
.vvv-day:disabled { opacity: .35; cursor: default; }
.vvv-day.out { opacity: .35; }
.vvv-day.empty { cursor: default; }
.vvv-day.today { border-color: var(--vvv-hi); box-shadow: inset 0 0 0 1px rgba(103, 212, 110, .5); }
.vvv-num { font-family: var(--vvv-serif); font-size: 15px; color: var(--vvv-muted); }
.vvv-day.today .vvv-num { color: var(--vvv-hi); font-weight: 700; }
.vvv-pill {
	display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.2; padding: 3px 6px 3px 8px; border-radius: 7px;
	background: color-mix(in srgb, var(--c) 16%, transparent); border-left: 3px solid var(--c); overflow: hidden;
}
.vvv-pill b { font-weight: 600; white-space: nowrap; }
.vvv-pill em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.vvv-pill.full { opacity: .5; }
.vvv-pill.closed { border-left-style: dashed; }
.vvv-badge { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; white-space: nowrap; background: rgba(95, 207, 138, .16); color: var(--vvv-ok); }
.vvv-badge.low { background: rgba(240, 178, 74, .16); color: var(--vvv-warn); }
.vvv-badge.none { background: rgba(239, 106, 106, .16); color: var(--vvv-bad); }
.vvv-badge.lock { background: rgba(255, 255, 255, .08); color: var(--vvv-muted); }
.vvv-more { font-size: 11px; color: var(--vvv-muted); }

/* ---------- agenda (mobile + list view) ---------- */
.vvv-agenda { display: none; flex-direction: column; gap: 10px; }
.vvv-agenda h3 { font-family: var(--vvv-serif); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--vvv-hi); margin: 14px 0 2px; }
.vvv-agenda h3:first-child { margin-top: 0; }
.vvv-card {
	display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; color: inherit;
	background: var(--vvv-card); border: 1px solid var(--vvv-line); border-radius: var(--vvv-radius); padding: 12px 14px 12px 0; overflow: hidden; transition: .2s;
}
.vvv-card::before { content: ""; align-self: stretch; background: var(--c); box-shadow: 0 0 14px var(--c); border-radius: 0 3px 3px 0; }
.vvv-card:hover { border-color: rgba(103, 212, 110, .55); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.vvv-card .t { font-weight: 600; color: #fff; }
.vvv-card .m { font-size: 13px; color: var(--vvv-muted); }
.vvv-empty { text-align: center; color: var(--vvv-muted); padding: 30px 10px; }
.vvv-loading { text-align: center; color: var(--vvv-muted); padding: 40px 0; }
.vvv-loading::after { content: ""; display: block; width: 26px; height: 26px; margin: 12px auto 0; border-radius: 50%; border: 2px solid var(--vvv-line); border-top-color: var(--vvv-hi); animation: vvv-spin .9s linear infinite; }
@keyframes vvv-spin { to { transform: rotate(360deg); } }

.vvv-app[data-view="list"] .vvv-grid, .vvv-app[data-view="list"] .vvv-dows { display: none; }
.vvv-app[data-view="list"] .vvv-agenda { display: flex; }
@media (max-width: 760px) {
	.vvv-grid, .vvv-dows { display: none; }
	.vvv-agenda { display: flex; }
}

/* credit (hide with .vvv-credit { display: none; } if ever needed) */
.vvv-credit { margin: 18px 0 0; text-align: center; font-size: 12px; color: var(--vvv-muted); letter-spacing: .04em; }
.vvv-credit a { color: var(--vvv-hi); text-decoration: none; }
.vvv-credit a:hover { text-decoration: underline; }

/* ---------- drawer ---------- */
.vvv-scrim { position: fixed; inset: 0; z-index: 99998; background: rgba(4, 5, 9, .72); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.vvv-scrim.open { opacity: 1; pointer-events: auto; }
/* Centred pop-up on tablet/desktop, bottom sheet on phones. */
.vvv-drawer {
	position: fixed; z-index: 99999; top: 50%; left: 50%; width: min(540px, calc(100vw - 32px)); max-height: min(92vh, 780px); max-height: min(92dvh, 780px);
	color: var(--vvv-text); font-family: var(--vvv-sans);
	background: linear-gradient(180deg, #124012, #000000 70%); border: 1px solid var(--vvv-line); border-radius: 22px; box-shadow: 0 30px 90px rgba(0, 0, 0, .65), 0 0 40px rgba(103, 212, 110, .08);
	display: flex; flex-direction: column; overflow: hidden;
	opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -46%) scale(.96);
	transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s linear .28s;
}
.vvv-drawer.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }
@media (max-width: 640px) {
	.vvv-drawer {
		top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; max-height: 92dvh; border-width: 1px 0 0; border-radius: 22px 22px 0 0;
		opacity: 1; transform: translateY(105%);
	}
	.vvv-drawer.open { transform: none; }
	.vvv-dbody { padding: 14px; }
	.vvv-dtitle { font-size: 21px; }
	.vvv-hero { height: 120px; }
	.vvv-table { width: min(290px, 86vw); }
	.vvv-seg button { padding: 12px 8px; }
	.vvv-btn.icon { width: 44px; height: 44px; }
	.vvv-input { font-size: 16px; } /* stops iOS zooming into the field */
}
.vvv-dhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--vvv-line); }
.vvv-dhead h2 { font-family: var(--vvv-serif); font-size: 18px; margin: 0; letter-spacing: .05em; color: #fff; }
.vvv-dbody { padding: 18px; overflow: auto; flex: 1; }
.vvv-hero { height: 150px; border-radius: 12px; background-size: cover; background-position: center; margin-bottom: 14px; border: 1px solid var(--vvv-line); }
.vvv-dtitle { font-family: var(--vvv-serif); font-size: 24px; margin: 0 0 4px; color: #fff; letter-spacing: .03em; }
.vvv-when { color: var(--vvv-hi); font-weight: 500; margin-bottom: 10px; }
.vvv-desc { color: #d3e6d3; font-size: 14px; margin-bottom: 14px; }
.vvv-desc p { margin: 0 0 8px; }
.vvv-avail { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-weight: 600; }
.vvv-meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 14px; }
.vvv-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--vvv-ok), var(--vvv-warn), var(--vvv-bad)); background-size: 600% 100%; transition: width .4s; }

.vvv-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; background: rgba(255, 255, 255, .05); border-radius: 12px; margin-bottom: 12px; }
.vvv-seg button { border: 0; background: transparent; color: var(--vvv-muted); padding: 9px 8px; border-radius: 9px; font-weight: 600; transition: .2s; }
.vvv-seg button[aria-pressed="true"] { background: var(--vvv-gold); color: #fff; box-shadow: 0 0 18px rgba(103, 212, 110, .4); }
.vvv-seg button:disabled { opacity: .35; cursor: not-allowed; }
.vvv-save { font-size: 12.5px; color: var(--vvv-ok); margin: -4px 0 10px; }

.vvv-table { display: block; margin: 0 auto 6px; width: 250px; max-width: 100%; height: auto; }
.vvv-table .top { fill: #124012; stroke: var(--vvv-hi); stroke-width: 2; filter: drop-shadow(0 0 14px rgba(103, 212, 110, .35)); }
.vvv-table .lbl { fill: var(--vvv-hi); font: 700 13px var(--vvv-serif); text-anchor: middle; letter-spacing: .1em; }
.vvv-seat { cursor: pointer; outline: none; }
.vvv-seat circle { fill: #0a2a0a; stroke: #1e5c1e; stroke-width: 2; transition: .2s; }
.vvv-seat text { fill: var(--vvv-muted); font: 600 12px var(--vvv-sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.vvv-seat:hover circle { stroke: var(--vvv-hi); }
.vvv-seat.sel circle { fill: var(--vvv-gold); stroke: var(--vvv-hi); filter: drop-shadow(0 0 10px rgba(103, 212, 110, .85)); }
.vvv-seat.sel text { fill: #fff; }
.vvv-seat.taken { cursor: not-allowed; }
.vvv-seat.taken circle { fill: #020502; stroke: #0f240f; }
.vvv-seat.taken text { fill: #3a523a; }
.vvv-seat:focus-visible circle { stroke: #fff; stroke-width: 3; }
.vvv-hint { text-align: center; font-size: 12.5px; color: var(--vvv-muted); margin-bottom: 12px; }

.vvv-players { display: grid; gap: 8px; margin: 10px 0; }
.vvv-players label { font-size: 12.5px; color: var(--vvv-muted); }
.vvv-input { width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--vvv-line); color: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; }
.vvv-input:focus { border-color: var(--vvv-hi); outline: none; box-shadow: 0 0 0 3px rgba(103, 212, 110, .18); }

.vvv-dfoot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--vvv-line); background: rgba(0, 0, 0, .55); }
.vvv-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.vvv-total span { color: var(--vvv-muted); }
.vvv-total strong { font-family: var(--vvv-serif); font-size: 26px; color: #fff; }
.vvv-cta {
	width: 100%; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 16px; letter-spacing: .03em; color: #fff;
	background: linear-gradient(180deg, #2a7a2a, var(--vvv-gold)); border: 1px solid var(--vvv-hi) !important; box-shadow: 0 6px 24px rgba(103, 212, 110, .35); transition: .2s;
}
.vvv-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(103, 212, 110, .5); }
.vvv-cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.vvv-cta.ghost { background: transparent; color: var(--vvv-text); border: 1px solid var(--vvv-line); box-shadow: none; margin-top: 8px; }
.vvv-msg { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.vvv-msg.err { background: rgba(239, 106, 106, .12); border: 1px solid rgba(239, 106, 106, .4); color: #ffb4b4; }
.vvv-msg.ok { background: rgba(95, 207, 138, .1); border: 1px solid rgba(95, 207, 138, .4); color: #b8f0cd; }
.vvv-dayhead { color: var(--vvv-muted); margin: 0 0 12px; }

/* rune-glow on success */
.vvv-glow { animation: vvv-glow 1.4s ease-out 1; }
@keyframes vvv-glow { 0% { box-shadow: 0 0 0 0 rgba(103, 212, 110, .9); } 100% { box-shadow: 0 0 0 38px rgba(103, 212, 110, 0); } }

.vvv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.vvv-app *, .vvv-drawer, .vvv-scrim, .vvv-drawer * { transition: none !important; animation: none !important; }
}
