/* ==========================================================================
   Quack VIP Tables — premium frontend
   Scoped under .qvt-app so it never fights the active theme.
   ========================================================================== */

.qvt-app {
	--qvt-navy-900: #0a0e27;
	--qvt-navy-800: #11152e;
	--qvt-navy-700: #1a1f3d;
	--qvt-navy-600: #232a4d;
	--qvt-gold: #caa04a;
	--qvt-gold-soft: #e6c878;
	--qvt-ink: #eef1fb;
	--qvt-muted: #9aa3c7;
	--qvt-line: rgba(255, 255, 255, 0.08);
	--qvt-green: #36d399;
	--qvt-amber: #fbbd23;
	--qvt-gray: #9aa3b2;
	--qvt-purple: #c084fc;
	--qvt-radius: 16px;
	--qvt-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65);

	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px 80px;
	color: var(--qvt-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.qvt-app *,
.qvt-app *::before,
.qvt-app *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */
.qvt-hero {
	position: relative;
	margin: 0 -20px 36px;
	padding: 72px 20px 56px;
	text-align: center;
	background:
		radial-gradient(1200px 380px at 50% -120px, rgba(202, 160, 74, 0.22), transparent 60%),
		linear-gradient(180deg, var(--qvt-navy-900), var(--qvt-navy-800));
	overflow: hidden;
}
.qvt-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.6), transparent),
		radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 255, 255, 0.45), transparent),
		radial-gradient(1.5px 1.5px at 85% 60%, rgba(255, 255, 255, 0.4), transparent),
		radial-gradient(1.5px 1.5px at 35% 75%, rgba(255, 255, 255, 0.4), transparent);
	opacity: 0.5;
	pointer-events: none;
}
.qvt-hero--slim { padding: 48px 20px 36px; }
.qvt-hero__inner { position: relative; z-index: 1; }
.qvt-hero__eyebrow {
	margin: 0 0 10px;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 700;
	color: var(--qvt-gold-soft);
}
.qvt-hero__title {
	margin: 0;
	font-size: clamp(30px, 5vw, 54px);
	line-height: 1.05;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.qvt-hero__meta { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.qvt-hero__chip {
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 600;
	background: rgba(202, 160, 74, 0.16);
	border: 1px solid rgba(202, 160, 74, 0.4);
	color: var(--qvt-gold-soft);
}
.qvt-hero__chip--muted {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--qvt-line);
	color: var(--qvt-muted);
}

/* ---------- Banners ---------- */
.qvt-banner {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 12px;
	font-size: 15px;
	border: 1px solid var(--qvt-line);
}
.qvt-banner strong { display: block; margin-bottom: 2px; font-size: 16px; }
.qvt-banner--success { background: rgba(54, 211, 153, 0.12); border-color: rgba(54, 211, 153, 0.4); color: #b6f4da; }
.qvt-banner--cancel { background: rgba(251, 189, 35, 0.1); border-color: rgba(251, 189, 35, 0.35); color: #ffe3a3; }

/* ---------- Editorial content ---------- */
.qvt-content { margin: 0 auto 36px; max-width: 860px; line-height: 1.7; color: var(--qvt-muted); font-size: 16.5px; }
.qvt-content h1, .qvt-content h2, .qvt-content h3 { color: #fff; }
.qvt-content img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---------- Stage + tiers layout ---------- */
.qvt-stage-wrap {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.qvt-stage {
	position: relative;
	border-radius: var(--qvt-radius);
	overflow: hidden;
	background:
		linear-gradient(180deg, var(--qvt-navy-700), var(--qvt-navy-800));
	border: 1px solid var(--qvt-line);
	box-shadow: var(--qvt-shadow);
	line-height: 0;
}
.qvt-stage__img { display: block; width: 100%; height: auto; }
.qvt-stage__placeholder {
	display: flex; align-items: center; justify-content: center;
	min-height: 420px; line-height: 1.4; color: var(--qvt-muted); font-size: 15px;
}
.qvt-markers { position: absolute; inset: 0; }

/* ---------- Table markers ---------- */
.qvt-marker {
	position: absolute;
	display: flex; align-items: center; justify-content: center;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
	overflow: hidden;
}
/* Labels are shown only inside the admin editor; the public floor plan stays see-through. */
.qvt-marker__label { display: none; }
.qvt-marker.is-open:hover,
.qvt-marker.is-open:focus-visible {
	transform: translateZ(0) scale(1.04);
	border-color: var(--qvt-marker-color, var(--qvt-green));
	background: color-mix(in srgb, var(--qvt-marker-color, var(--qvt-green)) 22%, transparent);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 10px 26px -8px rgba(0, 0, 0, 0.7);
	outline: none;
	z-index: 5;
}
.qvt-marker.is-open::after {
	content: "";
	position: absolute; inset: -2px;
	border-radius: 8px;
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--qvt-marker-color, var(--qvt-green)) 70%, transparent);
	animation: qvt-pulse 2.4s ease-out infinite;
}
@keyframes qvt-pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--qvt-marker-color, var(--qvt-green)) 55%, transparent); }
	70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}
.qvt-marker.is-closed { cursor: not-allowed; background: rgba(10, 12, 28, 0.45); }
.qvt-marker.is-request { border-style: dashed; }
.qvt-marker.is-selected {
	transform: scale(1.1);
	box-shadow: 0 0 0 3px var(--qvt-gold), 0 12px 30px -8px rgba(0, 0, 0, 0.8);
	z-index: 6;
}

/* ---------- Tooltip ---------- */
.qvt-tooltip {
	position: fixed;
	z-index: 50;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(10, 14, 39, 0.96);
	border: 1px solid var(--qvt-line);
	box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.8);
	pointer-events: none;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.14s ease, transform 0.14s ease;
	max-width: 240px;
}
.qvt-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.qvt-tooltip__code { font-weight: 800; font-size: 14px; color: #fff; }
.qvt-tooltip__section { font-size: 12px; color: var(--qvt-muted); margin: 1px 0 6px; }
.qvt-tooltip__price { font-weight: 800; color: var(--qvt-gold-soft); font-size: 15px; }
.qvt-tooltip__status { font-size: 11.5px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Tiers / pricing ---------- */
.qvt-tiers {
	padding: 22px;
	border-radius: var(--qvt-radius);
	background: linear-gradient(180deg, var(--qvt-navy-700), var(--qvt-navy-800));
	border: 1px solid var(--qvt-line);
	box-shadow: var(--qvt-shadow);
}
.qvt-tiers__title { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--qvt-gold-soft); }
.qvt-legend { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--qvt-line); }
.qvt-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--qvt-muted); }
.qvt-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.qvt-dot--available { background: var(--qvt-green); }
.qvt-dot--reserved { background: var(--qvt-amber); }
.qvt-dot--booked { background: var(--qvt-gray); }
.qvt-dot--request { background: var(--qvt-purple); }

.qvt-tiers__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}
.qvt-tier {
	display: flex; align-items: center; gap: 14px;
	padding: 13px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--qvt-line);
	cursor: pointer;
	transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.qvt-tier:hover { transform: translateY(-2px); border-color: rgba(202, 160, 74, 0.5); background: rgba(202, 160, 74, 0.07); }
.qvt-tier.is-active { border-color: var(--qvt-gold); background: rgba(202, 160, 74, 0.12); }
.qvt-tier__swatch { width: 14px; height: 30px; border-radius: 5px; flex: none; }
.qvt-tier__body { flex: 1; min-width: 0; }
.qvt-tier__name { font-weight: 700; font-size: 15px; color: #fff; }
.qvt-tier__sub { font-size: 12px; color: var(--qvt-muted); margin-top: 2px; }
.qvt-tier__price { font-weight: 800; color: var(--qvt-gold-soft); font-size: 17px; white-space: nowrap; }
.qvt-tier__avail { font-size: 11px; color: var(--qvt-muted); margin-top: 2px; text-align: right; }
.qvt-tier__avail.is-soldout { color: #ff7a85; }

/* ---------- Rules ---------- */
.qvt-rules { margin: 40px auto 0; max-width: 860px; padding: 24px 26px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--qvt-line); }
.qvt-rules__title { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--qvt-gold-soft); }
.qvt-rules__body { color: var(--qvt-muted); line-height: 1.7; }

/* ---------- Buttons ---------- */
.qvt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 20px;
	border-radius: 11px;
	font-size: 15px; font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, opacity 0.14s ease;
	width: 100%;
}
.qvt-btn:active { transform: translateY(1px); }
.qvt-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.qvt-btn--gold { background: linear-gradient(135deg, var(--qvt-gold-soft), var(--qvt-gold)); color: #1a1330; box-shadow: 0 12px 26px -10px rgba(202, 160, 74, 0.8); }
.qvt-btn--gold:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -10px rgba(202, 160, 74, 0.9); }
.qvt-btn--ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--qvt-line); color: var(--qvt-ink); }
.qvt-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.qvt-btn--purple { background: linear-gradient(135deg, #d8b4fe, var(--qvt-purple)); color: #2a0e45; }

/* ---------- Drawer ---------- */
.qvt-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.qvt-drawer.is-open { visibility: visible; }
.qvt-drawer__scrim {
	position: absolute; inset: 0;
	background: rgba(5, 7, 20, 0.66);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity 0.28s ease;
}
.qvt-drawer.is-open .qvt-drawer__scrim { opacity: 1; }
.qvt-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(440px, 100%);
	padding: 30px 28px 36px;
	background: linear-gradient(180deg, var(--qvt-navy-800), var(--qvt-navy-900));
	border-left: 1px solid var(--qvt-line);
	box-shadow: -30px 0 70px -20px rgba(0, 0, 0, 0.8);
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.qvt-drawer.is-open .qvt-drawer__panel { transform: translateX(0); }
.qvt-drawer__close {
	position: absolute; top: 16px; right: 18px;
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--qvt-line); background: rgba(255, 255, 255, 0.05);
	color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
	transition: background 0.15s ease;
}
.qvt-drawer__close:hover { background: rgba(255, 255, 255, 0.12); }
.qvt-drawer__head { padding: 6px 0 18px; border-bottom: 1px solid var(--qvt-line); margin-bottom: 18px; }
.qvt-drawer__badge {
	display: inline-block; padding: 5px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
	background: rgba(202, 160, 74, 0.16); border: 1px solid rgba(202, 160, 74, 0.4); color: var(--qvt-gold-soft);
}
.qvt-drawer__code { margin: 12px 0 4px; font-size: 38px; font-weight: 800; color: #fff; }
.qvt-drawer__price { margin: 0; font-size: 22px; font-weight: 800; color: var(--qvt-gold-soft); }
.qvt-drawer__rules { font-size: 14px; color: var(--qvt-muted); line-height: 1.6; margin-bottom: 18px; }
.qvt-drawer__rules:empty { display: none; }

/* ---------- Form ---------- */
.qvt-field { display: block; margin-bottom: 14px; }
.qvt-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--qvt-muted); margin-bottom: 6px; }
.qvt-field > span em { color: var(--qvt-gold-soft); font-style: normal; }
.qvt-field input {
	width: 100%; padding: 12px 14px;
	border-radius: 10px; border: 1px solid var(--qvt-line);
	background: rgba(255, 255, 255, 0.04); color: var(--qvt-ink);
	font-size: 15px; transition: border-color 0.15s ease, background 0.15s ease;
}
.qvt-field input:focus { outline: none; border-color: var(--qvt-gold); background: rgba(202, 160, 74, 0.08); }
.qvt-field input::placeholder { color: rgba(154, 163, 199, 0.6); }

.qvt-summary { margin: 6px 0 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--qvt-line); }
.qvt-summary__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--qvt-muted); padding: 3px 0; }
.qvt-summary__row--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--qvt-line); color: #fff; font-size: 17px; font-weight: 800; }
.qvt-summary__row--total span:last-child { color: var(--qvt-gold-soft); }

.qvt-actions { display: grid; gap: 10px; margin-top: 4px; }
.qvt-actions__hint { font-size: 12.5px; color: var(--qvt-muted); text-align: center; margin: 2px 0 0; }
.qvt-form__error { color: #ff8a94; font-size: 13.5px; min-height: 18px; margin: 12px 0 0; }

.qvt-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.25); border-top-color: rgba(0, 0, 0, 0.7); animation: qvt-spin 0.7s linear infinite; }
@keyframes qvt-spin { to { transform: rotate(360deg); } }

/* ---------- My bookings ---------- */
.qvt-mybookings__list { display: grid; gap: 18px; max-width: 720px; margin: 0 auto; }
.qvt-empty { text-align: center; color: var(--qvt-muted); padding: 40px 0; }
.qvt-empty .qvt-btn { width: auto; display: inline-flex; margin-top: 10px; }
.qvt-bcard { padding: 22px 24px; border-radius: 16px; background: linear-gradient(180deg, var(--qvt-navy-700), var(--qvt-navy-800)); border: 1px solid var(--qvt-line); box-shadow: var(--qvt-shadow); }
.qvt-bcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.qvt-bcard__venue { margin: 0; font-size: 20px; color: #fff; }
.qvt-bcard__date { margin: 2px 0 0; color: var(--qvt-muted); font-size: 14px; }
.qvt-bcard__tables { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.qvt-bcard__tables li { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.qvt-bcard__tables strong { font-size: 16px; color: var(--qvt-gold-soft); }
.qvt-bcard__tables span { color: var(--qvt-muted); font-size: 14px; }
.qvt-bcard__tables em { font-style: normal; font-weight: 700; color: #fff; }
.qvt-bcard__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--qvt-line); }
.qvt-bcard__foot strong { font-size: 19px; color: var(--qvt-gold-soft); }
.qvt-bcard__note { margin: 14px 0 0; font-size: 13.5px; color: var(--qvt-muted); }

.qvt-status { padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.qvt-status--booked { background: rgba(54, 211, 153, 0.16); color: #9af0ce; }
.qvt-status--reserved { background: rgba(251, 189, 35, 0.16); color: #ffe3a3; }
.qvt-status--requested { background: rgba(192, 132, 252, 0.16); color: #e7d2ff; }
.qvt-status--pending { background: rgba(154, 163, 199, 0.16); color: #cdd3ec; }
.qvt-status--cancelled { background: rgba(255, 122, 133, 0.16); color: #ffb3ba; }

@media (max-width: 600px) {
	.qvt-drawer__panel { width: 100%; }
	.qvt-tiers { position: static; }
}
