/* ==========================================================================
   Vale — app styles. Mobile-first. Logical properties so RTL is native.
   ========================================================================== */

:root {
	--bg: #0A0A0A;
	--surface: #141414;
	--surface-2: #1C1C1C;
	--line: #262626;
	--gold: #C9A84C;
	--gold-2: #E2C878;
	--gold-soft: rgba(201, 168, 76, 0.12);
	--text: #F3F1EC;
	--muted: #9C9A94;
	--ok: #3FB37F;
	--warn: #E0A63B;
	--bad: #E05A4F;
	--radius: 16px;
	--radius-sm: 10px;
	--top-h: 60px;
	--nav-h: 68px;
	--font-display: 'Bebas Neue', 'Montserrat', sans-serif;
	--font-body: 'Montserrat', system-ui, sans-serif;
}

/* Arabic: Cairo for everything. Never Arabic in a Latin display font. */
html[lang="ar"] {
	--font-display: 'Cairo', sans-serif;
	--font-body: 'Cairo', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

/* Normal block flow on body — no flex centring (it broke scrolling before). */
body.vale {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
body.vale.has-nav {
	padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
}

a { color: var(--gold); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.vi { width: 22px; height: 22px; flex: none; }

/* ---------- Top bar ---------- */
.v-top {
	position: sticky;
	top: 0;
	z-index: 20;
	height: var(--top-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-inline: 16px;
	padding-top: env(safe-area-inset-top);
	background: rgba(10, 10, 10, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
}
.v-brand {
	font-family: 'Bebas Neue', sans-serif; /* Latin logo stays Bebas */
	font-size: 28px;
	letter-spacing: 4px;
	color: var(--gold);
	line-height: 1;
}
.v-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
}
.v-lang[lang="ar"] span { font-family: 'Cairo', sans-serif; }
.v-lang[lang="en"] span { font-family: 'Montserrat', sans-serif; }
.v-lang .vi { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Main ---------- */
.v-main {
	max-width: 720px;
	margin-inline: auto;
	padding: 20px 16px;
}

.v-hero { padding-block: 8px 20px; }
.v-eyebrow {
	margin: 0 0 4px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}
html[lang="ar"] .v-eyebrow { letter-spacing: 0; }

.v-h1 {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 400;
	letter-spacing: 1px;
	line-height: 1.05;
}
html[lang="ar"] .v-h1 { font-size: 30px; font-weight: 700; letter-spacing: 0; line-height: 1.35; }

.v-muted { color: var(--muted); margin: 0; }

/* ---------- Cards & rows ---------- */
.v-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 6px 16px 16px;
	margin-bottom: 16px;
}
.v-center-card { text-align: center; padding: 32px 20px; margin-top: 40px; }

.v-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-block: 13px;
	border-bottom: 1px solid var(--line);
}
.v-row:last-of-type { border-bottom: 0; }
.v-row-label { color: var(--muted); font-size: 14px; }
.v-row-value { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-align: end; }

.v-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; }
.v-dot.is-ok { background: var(--ok); box-shadow: 0 0 0 4px rgba(63, 179, 127, 0.15); }
.v-dot.is-bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(224, 90, 79, 0.15); }

.v-alert {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	font-size: 13px;
	background: var(--gold-soft);
}
.v-alert.is-bad { background: rgba(224, 90, 79, 0.12); color: #F2A49C; }

/* ---------- Buttons ---------- */
.v-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	background: var(--gold);
	color: #0A0A0A;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: transform .12s ease, background .2s ease;
}
.v-btn:active { transform: scale(0.98); }
.v-btn:disabled { opacity: .55; cursor: default; }
.v-btn-block { width: 100%; margin-top: 14px; }
.v-btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* ---------- Bottom nav (all devices) ---------- */
.v-nav {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 30;
	display: flex;
	justify-content: space-around;
	height: calc(var(--nav-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: rgba(14, 14, 14, 0.94);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-top: 1px solid var(--line);
}
.v-nav a {
	flex: 1;
	max-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
}
.v-nav a.is-active { color: var(--gold); }
.v-nav a.is-active .vi { filter: drop-shadow(0 0 6px rgba(201, 168, 76, .45)); }

/* ---------- Toast ---------- */
.v-toast {
	position: fixed;
	inset-inline: 16px;
	bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);
	z-index: 40;
	max-width: 480px;
	margin-inline: auto;
	padding: 13px 16px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.v-toast.is-show { opacity: 1; transform: none; }
.v-toast.is-ok { border-color: rgba(63, 179, 127, .5); }
.v-toast.is-bad { border-color: rgba(224, 90, 79, .6); }

/* ---------- Header extras ---------- */
.v-top-end { display: flex; align-items: center; gap: 10px; }
.v-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--gold-soft);
	border: 1px solid rgba(201, 168, 76, .45);
	color: var(--gold);
	font-weight: 700;
	font-size: 15px;
}

.v-small { font-size: 13px; }
.v-card-pad { padding: 18px 16px; }
.v-alert.is-ok { background: rgba(63, 179, 127, .12); color: #9FDDBF; }
.v-alert-link { display: block; margin-bottom: 16px; }

/* ---------- Auth pages ---------- */
.v-auth { max-width: 440px; margin-inline: auto; padding-top: 8px; }
.v-auth-head { margin-bottom: 18px; }
.v-auth-center { text-align: center; padding-top: 36px; }
.v-auth-center .v-muted { margin-bottom: 22px; }
.v-auth-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
	font-size: 14px;
	color: var(--muted);
}
.v-auth-links a { font-weight: 600; }
.v-badge-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gold-soft);
	color: var(--gold);
}
.v-badge-icon .vi { width: 36px; height: 36px; }
.v-badge-icon.is-warn { background: rgba(224, 166, 59, .12); color: var(--warn); }

/* ---------- Forms ---------- */
.v-form { padding: 18px 16px; }
.v-form-section {
	margin: 4px 0 14px;
	color: var(--gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
html[lang="ar"] .v-form-section { letter-spacing: 0; font-size: 13px; }
.v-form-section:not(:first-child) { margin-top: 22px; }

.v-field { display: block; margin-bottom: 14px; }
.v-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.v-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

.v-input {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--text);
	font-size: 16px; /* 16px stops iOS/Android zoom on focus */
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.v-input::placeholder { color: #5E5C57; }
.v-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.v-input.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(224, 90, 79, .15); }
html[dir="rtl"] .v-input[dir="ltr"] { text-align: right; }
html[dir="rtl"] .v-input[dir="ltr"]::placeholder { text-align: right; }

/* Password with eye button */
.v-pw { position: relative; display: block; }
.v-pw .v-input { padding-inline-end: 52px; }
.v-pw-toggle {
	position: absolute;
	inset-inline-end: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.v-pw-toggle.is-on { color: var(--gold); }

/* Segmented radio */
.v-seg {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: 12px;
}
.v-seg-item { flex: 1 1 auto; position: relative; }
.v-seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.v-seg-item span {
	display: block;
	padding: 10px 12px;
	border-radius: 9px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
	white-space: nowrap;
}
.v-seg-item input:checked + span { background: var(--gold); color: #0A0A0A; }
.v-seg-item span[lang="ar"] { font-family: 'Cairo', sans-serif; }
.v-seg-item span[lang="en"] { font-family: 'Montserrat', sans-serif; }

/* Checkbox */
.v-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0 14px;
	font-size: 14px;
	cursor: pointer;
}
.v-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.v-check.is-invalid span { color: var(--bad); }

/* Toggle switch row */
.v-switch {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-block: 12px;
	border-bottom: 1px solid var(--line);
	cursor: pointer;
	font-size: 14px;
}
.v-switch input { position: absolute; opacity: 0; pointer-events: none; }
.v-switch i {
	position: relative;
	flex: none;
	width: 46px;
	height: 28px;
	border-radius: 999px;
	background: var(--line);
	transition: background .2s ease;
}
.v-switch i::after {
	content: '';
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s ease;
}
.v-switch input:checked + i { background: var(--gold); }
.v-switch input:checked + i::after { transform: translateX(18px); }
html[dir="rtl"] .v-switch input:checked + i::after { transform: translateX(-18px); }

/* Form message */
.v-form-msg { display: none; margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.v-form-msg.is-show { display: block; }
.v-form-msg.is-ok { background: rgba(63, 179, 127, .12); color: #9FDDBF; }
.v-form-msg.is-bad { background: rgba(224, 90, 79, .12); color: #F2A49C; }

/* Loading button */
.v-btn.is-loading { position: relative; color: transparent; }
.v-btn.is-loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(10, 10, 10, .25);
	border-top-color: #0A0A0A;
	animation: v-spin .7s linear infinite;
}
.v-btn-ghost.is-loading::after { border-color: rgba(255, 255, 255, .2); border-top-color: var(--gold); }
@keyframes v-spin { to { transform: rotate(360deg); } }
.v-btn-danger { color: #F2A49C; margin-top: 4px; }

/* Honeypot */
.v-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; inset-inline-start: 0; opacity: 0; pointer-events: none; }

/* ---------- Stats + link rows ---------- */
.v-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.v-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.v-stat-num { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: 1; color: var(--gold); }
.v-stat-label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.v-row-link { color: var(--text); }
.v-row-link .v-row-label { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.v-row-link .vi { color: var(--gold); }
.v-chev { width: 8px; height: 8px; border-top: 2px solid var(--muted); border-inline-end: 2px solid var(--muted); transform: rotate(45deg); }
html[dir="rtl"] .v-chev { transform: rotate(-45deg); }

/* ---------- Status chips ---------- */
.v-chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	background: var(--surface-2);
	color: var(--muted);
	border: 1px solid var(--line);
}
.v-chip.is-pending   { background: rgba(224, 166, 59, .12); color: #F0C77A; border-color: rgba(224, 166, 59, .35); }
.v-chip.is-active    { background: rgba(63, 179, 127, .12); color: #9FDDBF; border-color: rgba(63, 179, 127, .35); }
.v-chip.is-warning   { background: rgba(224, 166, 59, .18); color: #F5B54A; border-color: rgba(224, 166, 59, .5); }
.v-chip.is-suspended { background: rgba(224, 90, 79, .14); color: #F2A49C; border-color: rgba(224, 90, 79, .45); }
.v-chip.is-rejected  { background: var(--surface-2); color: var(--muted); }

/* ---------- Search, tabs, lists ---------- */
.v-search { position: relative; margin-bottom: 12px; }
.v-search .vi { position: absolute; top: 50%; inset-inline-start: 14px; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.v-search .v-input { padding-inline-start: 42px; }

.v-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 0 -16px 14px;
	padding: 2px 16px 4px;
	scrollbar-width: none;
}
.v-tabs::-webkit-scrollbar { display: none; }
.v-tabs a {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
}
.v-tabs a b { font-weight: 700; color: var(--text); opacity: .7; }
.v-tabs a.is-active { background: var(--gold); border-color: var(--gold); color: #0A0A0A; }
.v-tabs a.is-active b { color: #0A0A0A; }

.v-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.v-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
	color: var(--text);
}
.v-list-item:last-child { border-bottom: 0; }
.v-list-item:active { background: var(--surface-2); }
.v-list-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v-list-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-list-sub { font-size: 13px; color: var(--muted); }

.v-empty { text-align: center; }
.v-empty .vi { width: 36px; height: 36px; color: var(--muted); margin-bottom: 8px; }

.v-section-title { margin: 22px 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }

.v-stat { color: var(--text); display: block; }
.v-stat.is-hot { border-color: rgba(201, 168, 76, .6); box-shadow: 0 0 0 3px var(--gold-soft); }

/* ---------- Detail pages ---------- */
.v-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.v-chev-back { transform: rotate(-135deg); border-color: var(--gold); }
html[dir="rtl"] .v-chev-back { transform: rotate(135deg); }
.v-chev-back { border-top-color: var(--gold); border-inline-end-color: var(--gold); }

.v-card-accent { border-color: rgba(201, 168, 76, .55); }
.v-card-title { margin-top: 12px; }
.v-actions { display: flex; gap: 10px; padding-top: 12px; }
.v-actions .v-btn { flex: 1; min-height: 44px; padding: 0 12px; font-size: 14px; }

.v-disclosure { padding: 0; }
.v-disclosure > summary {
	list-style: none;
	padding: 16px;
	font-weight: 700;
	color: #F2A49C;
	cursor: pointer;
}
.v-disclosure > summary::-webkit-details-marker { display: none; }
.v-disclosure[open] > summary { border-bottom: 1px solid var(--line); }

textarea.v-input { min-height: 90px; resize: vertical; line-height: 1.5; }

.v-timeline-item { padding-block: 12px; border-bottom: 1px solid var(--line); }
.v-timeline-item:last-child { border-bottom: 0; }
.v-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.v-timeline-item p { margin: 2px 0 0; }

/* ---------- Expandable items (locations, team) ---------- */
.v-add > summary { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.v-add > summary .vi { width: 20px; height: 20px; }
.v-item > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
	font-weight: 400;
}
.v-item > summary .v-list-main { flex: 1; }
.v-item[open] > summary { background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.v-item-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 16px 16px; }
.v-item-actions form { flex: 1 1 140px; }
.v-item-actions .v-btn { width: 100%; }
.v-item-actions .v-form-msg { margin-top: 8px; }
.v-locked-note { padding: 0 16px 16px; margin: 0; }
.v-muted-summary { color: var(--muted) !important; font-weight: 600 !important; }

.v-btn-sm { min-height: 42px; padding: 0 14px; font-size: 13px; }
.v-hint-box { padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); color: var(--text); margin: 0 0 12px; }

.v-avatar-sm { width: 34px; height: 34px; font-size: 14px; flex: none; }

.v-chip.is-role-owner   { background: var(--gold-soft); color: var(--gold); border-color: rgba(201, 168, 76, .45); }
.v-chip.is-role-manager { background: rgba(120, 150, 255, .12); color: #AFC0FF; border-color: rgba(120, 150, 255, .35); }
.v-chip.is-role-staff   { background: var(--surface-2); color: var(--text); }

/* Rows with buttons (archived / removed lists) */
.v-row-actions { flex-wrap: wrap; padding-inline: 16px; }
.v-row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.v-row-btns form { display: inline-block; }
.v-row-btns .v-form-msg { margin-top: 6px; }
.v-disclosure > .v-row:last-child { border-bottom: 0; }
.v-item-note { margin: 12px 16px 0; }
.v-item.is-paused > summary .v-list-title { color: var(--muted); }

/* Checkbox chips (pick locations) */
.v-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.v-check-chip { position: relative; }
.v-check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.v-check-chip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface-2);
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	cursor: pointer;
}
.v-check-chip input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.v-check-chip input:checked + span::before { content: '✓'; }
.v-field.is-invalid .v-check-chip span { border-color: rgba(224, 90, 79, .6); }

/* Setup steps */
.v-step {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	color: var(--muted);
	font-weight: 700;
}
.v-step.is-done { background: rgba(63, 179, 127, .15); border-color: rgba(63, 179, 127, .5); color: var(--ok); }
.v-step .vi { width: 18px; height: 18px; }

/* ---------- Bottom sheet (credentials) ---------- */
body.has-sheet { overflow: hidden; }
.v-sheet-wrap {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0, 0, 0, .65);
	animation: v-fade .2s ease;
}
.v-sheet {
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	overflow-y: auto;
	padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px 20px 0 0;
	animation: v-up .25s ease;
}
@media (min-width: 768px) {
	.v-sheet-wrap { align-items: center; }
	.v-sheet { border-radius: 20px; }
}
.v-h2 { margin: 0 0 16px; font-size: 22px; line-height: 1.3; }
.v-cred { padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2); }
.v-cred .v-label { margin-bottom: 2px; }
.v-cred b { display: block; font-size: 17px; word-break: break-all; text-align: start; }
.v-cred-pass { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22px !important; letter-spacing: 1px; color: var(--gold); }
.v-alert.is-warn { background: rgba(224, 166, 59, .12); color: #F0C77A; }
.v-sheet-actions { display: flex; gap: 10px; margin-top: 12px; }
.v-sheet-actions .v-btn { flex: 1; }
@keyframes v-fade { from { opacity: 0; } }
@keyframes v-up { from { transform: translateY(40px); opacity: 0; } }

/* ==========================================================================
   Valet portal
   ========================================================================== */
.v-hero-tight { padding-bottom: 12px; }
.v-portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.v-portal-head .v-h1 { margin: 0; }
.v-loc-pick {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	min-height: 40px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-size: 14px;
	font-weight: 600;
}
.v-loc-pick .vi { width: 16px; height: 16px; color: var(--gold); }
.v-loc-pick select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	padding-inline-end: 4px;
	max-width: 52vw;
	outline: none;
}
.v-loc-pick select option { background: var(--surface); color: var(--text); }

.v-btn-xl { min-height: 58px; font-size: 17px; border-radius: 14px; }
.v-btn-xl .vi { width: 22px; height: 22px; }
#v-checkin-open { margin: 0 0 14px; box-shadow: 0 8px 24px rgba(201, 168, 76, .18); }
.v-tabs-tight { margin-bottom: 10px; }
.v-search-tight { margin-bottom: 14px; }

/* Alert bar for waiting requests */
.v-alertbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(224, 90, 79, .14);
	border: 1px solid rgba(224, 90, 79, .55);
	color: #FFD3CE;
	cursor: pointer;
}
.v-alertbar[hidden] { display: none; }
.v-alertbar.is-flash { animation: v-flash 1.2s ease 3; }
@keyframes v-flash { 50% { background: rgba(224, 90, 79, .45); } }
.v-plate-sm {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	background: rgba(0, 0, 0, .35);
	font-family: 'Bebas Neue', sans-serif;
	font-size: 18px;
	letter-spacing: 1px;
	color: #fff;
}

/* Car cards */
.v-cars { display: grid; gap: 12px; }
@media (min-width: 900px) { .v-cars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px) { .v-cars { grid-template-columns: repeat(3, 1fr); } }

.v-car {
	position: relative;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
	outline: none;
	transition: border-color .2s ease, transform .1s ease;
}
.v-car:active { transform: scale(.995); }
.v-car::before {
	content: '';
	position: absolute;
	inset-block: 12px;
	inset-inline-start: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--line);
}
.v-car.is-requested { border-color: rgba(224, 90, 79, .65); box-shadow: 0 0 0 3px rgba(224, 90, 79, .12); }
.v-car.is-requested::before { background: var(--bad); }
.v-car.is-accepted::before { background: #7F9CFF; }
.v-car.is-ready { border-color: rgba(201, 168, 76, .6); }
.v-car.is-ready::before { background: var(--gold); }
.v-car.is-parked::before { background: var(--ok); }
.v-car.is-delivered, .v-car.is-cancelled { opacity: .62; }

.v-car-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v-plate {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 30px;
	line-height: 1;
	letter-spacing: 2px;
	color: var(--text);
}
.v-plate-lg { font-size: 42px; }
.v-car-desc { margin-top: 4px; font-size: 14px; color: var(--muted); }
.v-car-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.v-car-meta b { color: var(--text); font-weight: 700; }
.v-car-live { margin-top: 10px; font-size: 14px; }
.v-car-live-lg { margin: 6px 0 14px; font-size: 16px; }
.v-live b { font-weight: 700; }
.v-live.is-hot { color: #FFB4AC; font-weight: 600; }
.v-live.is-ready { color: var(--gold); font-weight: 600; }
.v-live.is-muted { color: var(--muted); }
.v-count { font-family: 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; vertical-align: -3px; margin-inline-start: 4px; color: var(--gold-2); }
.v-count.is-urgent { color: var(--bad); animation: v-pulse 1s ease infinite; }
@keyframes v-pulse { 50% { opacity: .45; } }

.v-car-actions { display: flex; gap: 8px; margin-top: 12px; }
.v-car-actions .v-btn { flex: 1; }
.v-car-actions-lg { flex-wrap: wrap; margin-bottom: 16px; }
.v-car-actions-lg .v-btn { flex: 1 1 45%; min-height: 50px; font-size: 15px; }

.v-chip.is-car-parked    { background: rgba(63, 179, 127, .12); color: #9FDDBF; border-color: rgba(63, 179, 127, .35); }
.v-chip.is-car-requested { background: rgba(224, 90, 79, .16); color: #FFB4AC; border-color: rgba(224, 90, 79, .5); }
.v-chip.is-car-accepted  { background: rgba(127, 156, 255, .14); color: #B9C8FF; border-color: rgba(127, 156, 255, .45); }
.v-chip.is-car-ready     { background: var(--gold-soft); color: var(--gold-2); border-color: rgba(201, 168, 76, .5); }
.v-chip.is-car-delivered { background: var(--surface-2); color: var(--muted); }
.v-chip.is-car-cancelled { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }

/* Check-in form + sheets */
.v-form-flat { padding: 0; }
.v-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.v-input-plate {
	font-family: 'Bebas Neue', sans-serif;
	font-size: 30px;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-align: center !important;
	min-height: 60px;
}
select.v-input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 36px; }
html[dir="rtl"] select.v-input { background-position: 20px 50%, 14px 50%; }

.v-sheet { position: relative; }
.v-sheet-x {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.v-card-flat { background: var(--surface-2); margin-bottom: 12px; }
.v-card-flat .v-row:last-of-type { border-bottom: 0; }

.v-ticket { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 10px 0 16px; padding: 18px; border-radius: 14px; border: 1px dashed rgba(201, 168, 76, .5); text-align: center; }
.v-btn-wa { background: #25D366; color: #06290F; margin-bottom: 12px; }

/* Timeline */
.v-tl { list-style: none; margin: 0 0 16px; padding: 0; }
.v-tl li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	padding: 8px 0;
	padding-inline-start: 24px;
	color: var(--muted);
	font-size: 14px;
}
.v-tl li::before {
	content: '';
	position: absolute;
	inset-inline-start: 4px;
	top: 14px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--line);
	background: var(--bg);
}
.v-tl li::after {
	content: '';
	position: absolute;
	inset-inline-start: 9px;
	top: 26px;
	bottom: -8px;
	width: 2px;
	background: var(--line);
}
.v-tl li:last-child::after { display: none; }
.v-tl li.is-done { color: var(--text); }
.v-tl li.is-done::before { border-color: var(--gold); background: var(--gold); }
.v-tl li b { margin-inline-start: auto; font-weight: 700; }
.v-tl li em { flex-basis: 100%; font-style: normal; font-size: 12px; color: var(--muted); }

/* Start-of-shift overlay */
.v-shift {
	position: fixed;
	inset: 0;
	z-index: 70;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(10, 10, 10, .94);
	backdrop-filter: blur(6px);
}
.v-shift-box { max-width: 380px; text-align: center; }
.v-shift-box .v-muted { margin-bottom: 22px; }

body.is-offline .v-top { box-shadow: inset 0 -3px 0 var(--bad); }

/* ==========================================================================
   Guest page
   ========================================================================== */
body.is-guest .v-main { max-width: 520px; }
.v-guest { padding-top: 4px; }
.g-head { text-align: center; padding: 6px 0 18px; }
.g-head .v-eyebrow { margin-bottom: 10px; }
.g-plate {
	display: inline-block;
	padding: 8px 22px 4px;
	border: 2px solid rgba(201, 168, 76, .55);
	border-radius: 12px;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 54px;
	line-height: 1;
	letter-spacing: 4px;
	color: var(--text);
	background: linear-gradient(180deg, rgba(201, 168, 76, .08), transparent);
}
.g-head .v-muted { margin-top: 10px; }

.g-panel {
	padding: 24px 18px;
	margin-bottom: 8px;
	text-align: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 20px;
}
.g-state { margin: 0 0 6px; font-family: var(--font-display); font-size: 30px; line-height: 1.15; letter-spacing: .5px; }
html[lang="ar"] .g-state { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.g-hint { margin-top: 16px; }

/* The big button */
.g-bring {
	position: relative;
	width: 210px;
	height: 210px;
	margin: 22px auto 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #E9CF83, var(--gold) 55%, #A88A35);
	color: #0A0A0A;
	font-family: var(--font-display);
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: 1px;
	cursor: pointer;
	box-shadow: 0 18px 50px rgba(201, 168, 76, .35);
	-webkit-tap-highlight-color: transparent;
}
html[lang="ar"] .g-bring { font-size: 24px; font-weight: 700; letter-spacing: 0; }
.g-bring span { max-width: 150px; }
.g-bring::before, .g-bring::after {
	content: '';
	position: absolute;
	inset: -10px;
	border-radius: 50%;
	border: 2px solid rgba(201, 168, 76, .45);
	animation: g-ring 2.4s ease-out infinite;
}
.g-bring::after { animation-delay: 1.2s; }
.g-bring:active { transform: scale(.97); }
.g-bring.is-loading { color: transparent; }
@keyframes g-ring { from { transform: scale(.95); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

/* Progress */
.g-bar {
	position: relative;
	height: 10px;
	margin: 20px 0 18px;
	border-radius: 999px;
	background: var(--surface-2);
	overflow: hidden;
}
.g-bar i {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	border-radius: 999px;
	background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, var(--gold-2) 12px 24px);
	background-size: 34px 34px;
	animation: g-stripes 1s linear infinite;
	transition: width 1s ease;
}
@keyframes g-stripes { to { background-position: 34px 0; } }
.g-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-figures > div { padding: 12px; border-radius: 14px; background: var(--surface-2); }
.g-big { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 34px; line-height: 1.1; color: var(--text); }
html[lang="ar"] .g-big[data-eta] { font-family: 'Cairo', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.6; }
.g-link { margin-top: 16px; border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 14px; cursor: pointer; }

/* Ready */
.g-panel-ready { border-color: rgba(201, 168, 76, .7); box-shadow: 0 0 0 4px var(--gold-soft), 0 20px 50px rgba(201, 168, 76, .15); }
.g-ready-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: var(--gold);
	position: relative;
	animation: g-pop .5s ease;
}
.g-ready-icon::after {
	content: '';
	position: absolute;
	left: 22px;
	top: 16px;
	width: 14px;
	height: 26px;
	border-right: 5px solid #0A0A0A;
	border-bottom: 5px solid #0A0A0A;
	transform: rotate(45deg);
}
@keyframes g-pop { from { transform: scale(.3); opacity: 0; } }
.g-count {
	margin: 16px 0 8px;
	font-family: 'Bebas Neue', sans-serif;
	font-size: 76px;
	line-height: 1;
	color: var(--gold-2);
}
.g-count.is-urgent { color: var(--bad); animation: v-pulse 1s ease infinite; }
.g-warn { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(224, 166, 59, .12); color: #F0C77A; font-size: 14px; }

/* Delivered + rating */
.g-rate { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.g-rate-q { margin: 0 0 10px; font-weight: 700; }
.g-stars { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; direction: ltr; }
.g-stars button { border: 0; background: none; font-size: 40px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; transition: transform .1s ease, color .15s ease; }
.g-stars button.is-on { color: var(--gold); }
.g-stars button:active { transform: scale(1.2); }
.g-rate textarea { margin-bottom: 12px; }
.g-thanks { margin: 16px 0 0; color: var(--text); font-weight: 600; }
.g-thanks span { display: block; margin-bottom: 6px; color: var(--gold); font-size: 30px; letter-spacing: 6px; }

.g-tl li.is-next { color: var(--gold); }
.g-tl li.is-next::before { border-color: var(--gold); animation: v-pulse 1.2s ease infinite; }

/* ==========================================================================
   Dashboard & reports
   ========================================================================== */
.v-dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.v-dash-bar .v-tabs { margin: 0; padding: 2px 0 4px; flex: 1 1 auto; }
.v-mb { margin-bottom: 14px; }
.v-date-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 16px; }
.v-date-range label { flex: 1 1 140px; }
.v-date-range .v-btn { flex: 0 0 auto; }
input[type="date"].v-input { color-scheme: dark; }

.v-stats-4 { grid-template-columns: repeat(2, 1fr); }
.v-stats-3 { grid-template-columns: repeat(3, 1fr); }
.v-stats-6 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .v-stats-6 { grid-template-columns: repeat(3, 1fr); } }
.v-bars-days .v-bar span { white-space: nowrap; }
.v-bar { justify-content: center; }
.v-bar i { max-width: 56px; }
@media (min-width: 900px) { .v-stats-4 { grid-template-columns: repeat(4, 1fr); } }
.v-stat-num small { font-size: 22px; margin-inline-start: 4px; }
.v-stat-num-sm { font-family: var(--font-body); font-size: 22px; font-weight: 700; line-height: 1.3; }
.v-stat-action { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; color: var(--gold); text-align: center; }
.v-stat-action .v-stat-label { color: var(--gold); margin: 0; }

.v-dash-grid { display: grid; gap: 16px; margin-bottom: 4px; }
.v-dash-grid > .v-card { margin-bottom: 0; }
@media (min-width: 900px) { .v-dash-grid { grid-template-columns: 1.6fr 1fr; } }

/* Hourly bars */
.v-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-bottom: 20px; position: relative; direction: ltr; }
.v-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.v-bar i { display: block; width: 100%; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); min-height: 0; transition: height .4s ease; }
.v-bar span { position: absolute; bottom: -20px; inset-inline-start: 0; font-size: 10px; color: var(--muted); }

/* Live status stack */
.v-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 6px 0 14px; background: var(--surface-2); }
.v-stack i, .v-legend i { display: block; }
.v-stack .is-requested, .v-legend .is-requested { background: var(--bad); }
.v-stack .is-accepted, .v-legend .is-accepted { background: #7F9CFF; }
.v-stack .is-ready, .v-legend .is-ready { background: var(--gold); }
.v-stack .is-parked, .v-legend .is-parked { background: var(--ok); }
.v-stack .is-empty { background: var(--surface-2); }
.v-legend { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 14px; }
.v-legend li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.v-legend li b { margin-inline-start: auto; color: var(--text); }
.v-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.v-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.v-section-head .v-section-title { margin-bottom: 10px; }
.v-link-sm { font-size: 13px; font-weight: 600; }
.v-live-dot { display: inline-block; width: 8px; height: 8px; margin-inline-start: 6px; border-radius: 50%; background: var(--ok); animation: v-pulse 1.6s ease infinite; vertical-align: 1px; }

/* Tables */
.v-table-card { padding: 0; overflow: hidden; }
.v-table-wrap { overflow-x: auto; }
.v-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.v-table th { padding: 12px 14px; text-align: start; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.v-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.v-table tbody tr:last-child td { border-bottom: 0; }
.v-table tbody tr[data-href] { cursor: pointer; }
.v-table tbody tr[data-href]:hover { background: var(--surface-2); }
.v-table .v-count { font-size: 20px; }
.v-plate-xs { font-family: 'Bebas Neue', sans-serif; font-size: 20px; letter-spacing: 1px; font-weight: 400; color: var(--text); }
.v-show-sm { display: none; }
@media (max-width: 767px) {
	.v-hide-sm { display: none !important; }
	.v-show-sm { display: block; }
}

/* Reviews */
.v-review .v-list-main { gap: 4px; }
.v-review-stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.v-review-stars em { font-style: normal; color: var(--line); }
.v-review-text { color: var(--text); white-space: normal; }

/* Filters + pager */
.v-filters > summary { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.v-filters > summary .vi { width: 18px; height: 18px; color: var(--gold); }
.v-filter-form .v-actions .v-btn { flex: 1; }
.v-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 6px 0 18px; }
.v-hist-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-hist-times { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.v-hist-times bdi { color: var(--text); font-weight: 600; margin-inline-end: 4px; }
.v-hist-times span { color: var(--text); }

/* Guests */
.v-guest-row { align-items: center; }
.v-visits { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.v-visits b { font-family: 'Bebas Neue', sans-serif; font-size: 26px; line-height: 1; color: var(--gold); font-weight: 400; }
.v-visits small { font-size: 11px; color: var(--muted); }
.v-icon-btn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); color: #25D366; }
.v-icon-btn .vi { width: 18px; height: 18px; }

/* Ratings page */
.v-rating-sum { display: grid; gap: 18px; align-items: center; }
@media (min-width: 600px) { .v-rating-sum { grid-template-columns: 180px 1fr; } }
.v-rating-big { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.v-rating-big b { font-family: 'Bebas Neue', sans-serif; font-size: 64px; line-height: 1; font-weight: 400; color: var(--gold); }
.v-dist-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 14px; }
.v-dist-row span { width: 28px; color: var(--muted); }
.v-dist-row i { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.v-dist-row em { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.v-dist-row b { width: 34px; text-align: end; }

/* Totals row */
.v-row-total .v-row-label, .v-row-total .v-row-value { color: var(--gold); font-weight: 700; }

/* Event log */
.v-event .v-row-label { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.v-event small { color: var(--muted); font-size: 12px; }
.v-more-icon { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--gold-soft); color: var(--gold); }

/* ==========================================================================
   Billing & invoices
   ========================================================================== */
.v-chip.is-inv-draft     { background: var(--surface-2); color: var(--muted); }
.v-chip.is-inv-issued    { background: rgba(127, 156, 255, .14); color: #B9C8FF; border-color: rgba(127, 156, 255, .45); }
.v-chip.is-inv-overdue   { background: rgba(224, 90, 79, .16); color: #FFB4AC; border-color: rgba(224, 90, 79, .5); }
.v-chip.is-inv-paid      { background: rgba(63, 179, 127, .12); color: #9FDDBF; border-color: rgba(63, 179, 127, .35); }
.v-chip.is-inv-cancelled { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.v-inv-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 700; white-space: nowrap; }
.v-inv-line { padding: 12px 0 4px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.v-inv-new { margin: 10px 0 4px; }
.v-inv-new > summary { cursor: pointer; color: var(--gold); font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; list-style: none; }
.v-inv-new > summary::-webkit-details-marker { display: none; }
.v-item-actions-flat { padding: 0; margin-bottom: 16px; }

/* Printable invoice */
body.is-invoice .v-main { max-width: 860px; }
.inv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.inv-bar-status { margin-inline-start: auto; }
.inv-hint { margin: 0 0 16px; }
.inv-pages { display: grid; gap: 24px; }
.inv-sheet {
	position: relative;
	background: #fff;
	color: #1A1A1A;
	border-radius: 12px;
	padding: 36px 34px;
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 13px;
	line-height: 1.55;
	overflow: hidden;
}
.inv-sheet[lang="ar"] { font-family: 'Cairo', Tahoma, Arial, sans-serif; font-size: 14px; }
.inv-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 3px solid #C9A84C; }
.inv-brand { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 5px; color: #0A0A0A; line-height: 1; margin-bottom: 8px; }
.inv-co { color: #555; font-size: 12px; }
.inv-co b { color: #111; font-size: 14px; }
.inv-title h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: 1px; color: #0A0A0A; text-align: end; }
.inv-sheet[lang="en"] .inv-title h1 { font-family: 'Bebas Neue', sans-serif; font-size: 40px; font-weight: 400; letter-spacing: 3px; }
.inv-meta { border-collapse: collapse; margin-inline-start: auto; }
.inv-meta th { text-align: start; color: #777; font-weight: 600; padding: 2px 0; padding-inline-end: 14px; white-space: nowrap; }
.inv-meta td { text-align: end; font-weight: 700; padding: 2px 0; }
.inv-to { margin: 22px 0; padding: 14px 16px; background: #F7F5F0; border-radius: 8px; }
.inv-to span { display: block; font-size: 11px; font-weight: 700; color: #A88A35; text-transform: uppercase; letter-spacing: 1px; }
.inv-sheet[lang="ar"] .inv-to span { letter-spacing: 0; }
.inv-to b { display: block; font-size: 16px; color: #111; margin: 2px 0; }
.inv-to div { color: #555; font-size: 12px; }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines th { text-align: start; font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: .5px; padding: 8px 6px; border-bottom: 1px solid #DDD; }
.inv-sheet[lang="ar"] .inv-lines th { letter-spacing: 0; font-size: 12px; }
.inv-lines td { padding: 10px 6px; border-bottom: 1px solid #EEE; vertical-align: top; }
.inv-lines .num, .inv-totals td { text-align: end; white-space: nowrap; }
.inv-totals { margin-top: 12px; margin-inline-start: auto; border-collapse: collapse; min-width: 260px; }
.inv-totals th { text-align: start; font-weight: 600; color: #555; padding: 5px 0; padding-inline-end: 24px; }
.inv-totals td { padding: 5px 0; font-weight: 600; }
.inv-totals .inv-total th, .inv-totals .inv-total td { font-size: 17px; font-weight: 800; color: #0A0A0A; border-top: 2px solid #0A0A0A; padding-top: 10px; }
.inv-pay { margin-top: 26px; padding: 14px 16px; border: 1px solid #E8DDBB; border-radius: 8px; background: #FCFAF3; }
.inv-pay table { border-collapse: collapse; margin-top: 6px; }
.inv-pay th { text-align: start; color: #777; font-weight: 600; padding: 2px 0; padding-inline-end: 16px; }
.inv-pay td { font-weight: 700; padding: 2px 0; }
.inv-stamp {
	position: absolute;
	top: 46%;
	inset-inline-end: 40px;
	transform: rotate(-14deg);
	padding: 6px 18px;
	border: 4px solid;
	border-radius: 10px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: 3px;
	opacity: .5;
	pointer-events: none;
}
.inv-stamp.is-paid { color: #1F9D63; }
.inv-stamp.is-cancelled { color: #C0392B; }
.inv-stamp.is-draft { color: #888; }
.inv-paidline { margin-top: 20px; color: #1F7A50; font-weight: 600; }
.inv-notes { margin-top: 24px; padding-top: 12px; border-top: 1px solid #EEE; color: #666; font-size: 12px; }
.inv-notes p { margin: 0 0 6px; }

@media print {
	@page { size: A4; margin: 12mm; }
	body.vale { background: #fff !important; padding: 0 !important; }
	.v-top, .v-nav, .v-toast, .no-print { display: none !important; }
	.v-main { max-width: none !important; padding: 0 !important; margin: 0 !important; }
	.inv-pages { display: block; }
	.inv-sheet { border-radius: 0; padding: 0; page-break-after: always; break-after: page; }
	.inv-sheet:last-child { page-break-after: auto; break-after: auto; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 768px) {
	.v-main { padding-top: 32px; padding-inline: 24px; }
	.v-h1 { font-size: 48px; }
	.v-top { padding-inline: 24px; }
}

/* Laptop / desktop: use ~85% of the screen width. */
@media (min-width: 1024px) {
	.v-main { max-width: min(85vw, 1320px); }
	.v-auth { max-width: 520px; }
}

/* ==========================================================================
 * Step 10 — payments
 * ========================================================================== */
.v-mt { margin-top: 12px; }
.v-pad-x { padding: 0 16px 16px; }
.v-file { padding: 10px; font-size: 13px; }
.v-file::file-selector-button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-inline-end: 10px; font: inherit; }

.v-pay-head { text-align: center; padding: 18px 0 8px; }
.v-pay-head .v-eyebrow { margin-bottom: 4px; }
.v-pay-amount { font-family: 'Bebas Neue', sans-serif; font-size: 56px; line-height: 1; color: var(--gold); letter-spacing: 1px; margin: 10px 0; }
.v-pay-head p { margin: 4px 0; }

.v-pay-methods { display: grid; gap: 8px; margin-bottom: 14px; }
@media (min-width: 700px) { .v-pay-methods { grid-template-columns: repeat(3, 1fr); } }
.v-pay-method { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.v-pay-method input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.v-pay-method span { display: flex; flex-direction: column; gap: 2px; }
.v-pay-method small { color: var(--muted); font-size: 12px; }
.v-pay-method:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }

.v-pay-panel[hidden] { display: none; }
.v-pay-instr { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.v-pay-details .v-row-value { display: inline-flex; align-items: center; gap: 8px; }
.v-copy { background: var(--surface-2); border: 1px solid var(--line); color: var(--gold); border-radius: 8px; width: 32px; height: 32px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.v-copy svg { width: 16px; height: 16px; }
.v-copy:active { transform: scale(.94); }
.v-pay-qr { background: #fff; border-radius: 14px; padding: 12px; width: 220px; max-width: 100%; margin: 4px auto 14px; }
.v-pay-qr img { display: block; width: 100%; height: auto; }
.v-pay-qr-sm { width: 120px; margin: 0 0 8px; }
.v-pay-proof { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line); }

.v-pay-item-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.v-pay-item-amt { color: var(--gold); font-size: 18px; white-space: nowrap; }
.v-pay-item .v-item-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.v-pay-item .v-item-actions form { flex: 1 1 160px; }
.v-pay-item .v-item-actions form .v-btn { width: 100%; }
.v-reject { flex: 1 1 160px; }
.v-reject > summary { list-style: none; width: 100%; }
.v-reject > summary::-webkit-details-marker { display: none; }
.v-reject[open] > summary { margin-bottom: 8px; }

.v-pay-due { display: flex; align-items: center; gap: 12px; border-color: rgba(201, 168, 76, .45); background: var(--gold-soft); margin-bottom: 10px; }
.v-pay-due > div { flex: 1; min-width: 0; }
.v-pay-due-amt { font-weight: 700; color: var(--gold); white-space: nowrap; }
.v-pay-link { margin-bottom: 14px; }
.v-pay-link > svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.v-pay-link.has-pending { border-color: rgba(224, 166, 59, .55); }
.v-pay-link.has-pending .v-list-sub { color: #F5B54A; }

.v-chip.is-pay-initiated { background: var(--surface-2); color: var(--muted); }
.v-chip.is-pay-pending   { background: rgba(224, 166, 59, .12); color: #F0C77A; border-color: rgba(224, 166, 59, .35); }
.v-chip.is-pay-confirmed { background: rgba(63, 179, 127, .12); color: #9FDDBF; border-color: rgba(63, 179, 127, .35); }
.v-chip.is-pay-rejected  { background: rgba(224, 90, 79, .14); color: #F2A49C; border-color: rgba(224, 90, 79, .45); }
.v-chip.is-pay-failed    { background: var(--surface-2); color: #F2A49C; }

/* ==========================================================================
 * Step 11 — reminders / on hold
 * ========================================================================== */
.v-duebar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0 0 14px; border-radius: 14px; background: rgba(224, 166, 59, .12); border: 1px solid rgba(224, 166, 59, .4); color: #F5D08A; text-decoration: none; font-size: 14px; line-height: 1.4; }
.v-duebar svg { width: 20px; height: 20px; flex: none; }
.v-duebar span { flex: 1; }
.v-duebar b { white-space: nowrap; color: var(--gold); }
.v-duebar.is-late { background: rgba(224, 90, 79, .14); border-color: rgba(224, 90, 79, .5); color: #FFC2BB; }

.v-hold-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.v-hold-total b { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: var(--gold); letter-spacing: .5px; }
.v-hold-note { text-align: center; margin: 10px 0 0; }
.v-auth-foot { display: grid; gap: 10px; padding-top: 18px; }
.v-hold-portal { display: flex; gap: 10px; align-items: flex-start; }
.v-hold-portal svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.v-list-item > svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

.v-status-card { margin-bottom: 14px; }
.v-status-card.is-warning { border-color: rgba(224, 166, 59, .5); }
.v-status-card.is-suspended { border-color: rgba(224, 90, 79, .55); }
.v-status-card > .v-status-act { margin: 0 16px 12px; }
.v-status-card > .v-status-act:last-child { margin-bottom: 16px; }
.v-status-act > form { margin-top: 10px; }

.v-codecopy { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 12px; margin: 8px 0; }
.v-codecopy code { flex: 1; font-size: 12px; word-break: break-all; color: var(--text); font-family: ui-monospace, Menlo, monospace; text-align: left; }

/* ==========================================================================
 * Step 12 — installable app
 * ========================================================================== */
.v-install-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.v-install-head img { border-radius: 12px; flex: none; }
.v-install-head .v-form-section { margin: 0 0 2px; }
.v-install-head .v-muted { margin: 0; }
.v-inst { display: none; }
.v-install[data-mode="prompt"] .v-inst-prompt,
.v-install[data-mode="ios"] .v-inst-ios,
.v-install[data-mode="manual"] .v-inst-manual,
.v-install[data-mode="done"] .v-inst-done { display: block; }
.v-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; font-size: 14px; }
.v-steps li::marker { color: var(--gold); font-weight: 700; }
.v-ios-share { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); color: #4D9BFF; vertical-align: middle; margin-inline-start: 4px; }
.v-ios-share svg { width: 16px; height: 16px; }

.v-installbar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.v-installbar[hidden] { display: none; }
.v-installbar img { border-radius: 8px; flex: none; }
.v-installbar span { flex: 1; line-height: 1.35; }
.v-installbar-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; }
.is-standalone .v-installbar { display: none !important; }

/* Step 13 — push alerts */
.v-pm { display: none; }
.v-pushcard[data-mode="off"] .v-pm-off,
.v-pushcard[data-mode="on"] .v-pm-on,
.v-pushcard[data-mode="blocked"] .v-pm-blocked,
.v-pushcard[data-mode="ios-install"] .v-pm-ios-install,
.v-pushcard[data-mode="unsupported"] .v-pm-unsupported { display: block; }
.v-pushcard[data-mode="none"] { display: none; }
.v-pushcard-ic, .v-pushbar-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); flex: none; }
.v-pushbar-ic { width: 32px; height: 32px; border-radius: 8px; }
.v-pushcard-ic svg { width: 24px; height: 24px; }
.v-pushbar-ic svg { width: 18px; height: 18px; }
.v-pushbar { border-color: rgba(201, 168, 76, .45); }
.v-pm-on .v-alert { margin-bottom: 10px; }
.v-installbar .v-pushbar-ic { flex: 0 0 32px; }

/* Step 13 — launch check */
.v-launch-score { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.v-launch-num b { font-family: 'Bebas Neue', sans-serif; font-size: 56px; line-height: 1; color: var(--gold); font-weight: 400; }
.v-launch-num span { color: var(--muted); font-size: 18px; margin-inline-start: 4px; }
.v-launch-score.is-ok { border-color: rgba(63, 179, 127, .5); }
.v-launch-score.is-warn { border-color: rgba(224, 166, 59, .5); }
.v-launch-score.is-bad { border-color: rgba(224, 90, 79, .55); }
.v-launch-verdict { font-weight: 700; margin: 0 0 4px; }
.v-launch-row .v-row-label { display: flex; gap: 10px; align-items: flex-start; }
.v-launch-row .v-row-label .v-dot { margin-top: 7px; flex: none; }
.v-launch-row .v-row-value { max-width: 55%; overflow-wrap: anywhere; text-align: end; }
.v-launch-tip { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; line-height: 1.4; }
.v-dot.is-warn { background: #E0A63B; }
.v-launch-speed:empty { display: none; }
.v-launch-speed { font-size: 14px; }

/* Fixes after 1.0 — partner grid, settings tabs, danger buttons */
.v-pgrid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .v-pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .v-pgrid { grid-template-columns: repeat(3, 1fr); } }
.v-pcard { display: flex; flex-direction: column; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.v-pcard:hover { border-color: rgba(201, 168, 76, .5); }
.v-pcard:active { transform: scale(.99); }
.v-pcard.is-pending { border-color: rgba(224, 166, 59, .45); }
.v-pcard.is-warning { border-color: rgba(224, 166, 59, .45); }
.v-pcard.is-suspended { border-color: rgba(224, 90, 79, .5); }
.v-pcard-top { display: flex; align-items: center; gap: 12px; }
.v-pcard-av { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: 'Bebas Neue', 'Cairo', sans-serif; font-size: 24px; }
.v-pcard-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v-pcard-name b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-pcard-name small { color: var(--muted); font-size: 12px; }
.v-pcard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v-pcard-stats > span { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; }
.v-pcard-stats b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--gold); }
.v-pcard-stats small { color: var(--muted); font-size: 11px; }
.v-pcard-due { font-size: 13px; color: #F5B54A; background: rgba(224, 166, 59, .1); border-radius: 10px; padding: 6px 10px; }
.v-pcard-contact { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

.v-set-tabs { margin-bottom: 16px; }

/* Danger buttons: clearly red, never blending into the dark background */
.v-btn.v-btn-danger,
.v-btn-ghost.v-btn-danger,
summary.v-btn-danger { background: rgba(224, 90, 79, .12) !important; border: 1px solid rgba(224, 90, 79, .65) !important; color: #FF9C92 !important; }
.v-btn.v-btn-danger:hover, summary.v-btn-danger:hover { background: rgba(224, 90, 79, .2) !important; }
form .v-btn-danger[type="submit"]:not(.v-btn-ghost) { background: #E05A4F !important; border-color: #E05A4F !important; color: #fff !important; }
.v-lt-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 12px 0 6px; }
.v-lt-bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.v-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; }
.v-pager .v-muted { flex: 1; text-align: center; }

/* Legal pages */
.v-legal { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.v-legal-brand { display: inline-block; font-family: 'Bebas Neue', sans-serif; color: var(--gold); letter-spacing: .25em; font-size: 22px; text-decoration: none; margin-bottom: 18px; }
.v-legal h2 { font-size: 18px; margin: 30px 0 10px; color: var(--text); }
.v-legal p { color: #CFCBC2; line-height: 1.75; margin: 0 0 12px; }
.v-legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.v-legal-toc a { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; text-decoration: none; }
.v-legal-toc a:hover { color: var(--gold); border-color: rgba(201, 168, 76, .5); }
.v-legal section { scroll-margin-top: 80px; }
.v-legal-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.v-legal-links { display: flex; justify-content: center; gap: 10px; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.v-legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.v-legal-guest { margin: 22px 0 8px; }
.v-check a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
@media print {
	.is-legal .v-top, .is-legal .v-legal-toc, .is-legal .v-legal-foot, .is-legal .v-nav { display: none !important; }
	.is-legal, .is-legal .v-main { background: #fff !important; color: #000 !important; }
	.v-legal p, .v-legal h2, .v-legal h1 { color: #000 !important; }
}

/* ---------- Scan plate (1.4.0) ---------- */
.v-scan { display: grid; gap: 8px; margin-bottom: 4px; }
.v-scan-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.v-scan-btn svg { width: 20px; height: 20px; }
.v-scan-shot { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.v-scan-shot[hidden] { display: none; }
.v-scan-shot img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }
.v-scan-info { display: grid; gap: 2px; min-width: 0; }
.v-scan-status { font-size: 14px; overflow-wrap: anywhere; }
.v-scan-status.is-ok { color: var(--ok); }
.v-scan-status.is-warn { color: var(--warn); }
.v-link-btn { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; justify-self: start; }
.v-input.is-suggested { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.v-car-photo { display: block; margin: 12px 0; border-radius: 12px; overflow: hidden; max-width: 100%; }
.v-car-photo img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.v-car-photo-page { max-width: 520px; }
