/* ==========================================================================
   Vakil Hooshmand — Auth widget, auth page & user panel
   Depends on tokens + shared components in main.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Auth widget
   -------------------------------------------------------------------------- */
.vh-auth {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin-inline: auto;
	font-family: var(--vh-font);
	color: var(--vh-text);
}

.vh-auth__head {
	text-align: center;
	margin-bottom: 24px;
}

.vh-auth__icon {
	display: inline-grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 14px;
	border-radius: 18px;
	color: var(--vh-maroon);
	background: var(--vh-maroon-50);
	box-shadow: inset 0 0 0 1px rgba(110, 26, 44, .08);
}

.vh-auth__icon .vh-icon {
	width: 30px;
	height: 30px;
}

.vh-auth__title {
	margin: 0 0 6px;
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.5;
	color: var(--vh-text);
}

.vh-auth__desc {
	margin: 0;
	color: var(--vh-muted);
	font-size: .93rem;
	line-height: 1.9;
}

.vh-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: var(--vh-cream);
	border: 1px solid var(--vh-border);
}

.vh-auth__tabs[hidden] {
	display: none;
}

.vh-auth__tab {
	appearance: none;
	border: 0;
	padding: 10px 8px;
	border-radius: 10px;
	background: transparent;
	color: var(--vh-muted);
	font: inherit;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, color .2s, box-shadow .2s;
}

.vh-auth__tab:hover {
	color: var(--vh-text);
}

.vh-auth__tab.is-active {
	background: var(--vh-surface);
	color: var(--vh-maroon);
	box-shadow: var(--vh-shadow-sm);
}

.vh-auth__msg:empty {
	display: none;
}

.vh-auth__msg {
	margin-bottom: 16px;
	font-size: .88rem;
}

.vh-auth__step {
	display: none;
}

.vh-auth__step.is-active {
	display: block;
	animation: vh-auth-in .35s ease both;
}

@keyframes vh-auth-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

.vh-auth__step .vh-field {
	margin-bottom: 16px;
}

.vh-auth__step .vh-btn {
	margin-top: 4px;
}

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

.vh-auth__phone,
.vh-auth__password {
	position: relative;
}

/* The input is dir="ltr" inside an RTL wrapper, so use physical sides for the icon gap. */
.vh-auth__phone .vh-input {
	padding-left: 46px;
	padding-right: 16px;
	font-size: 1.1rem;
	letter-spacing: .06em;
	text-align: left;
	height: 54px;
}

.vh-auth__phone-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--vh-muted);
	pointer-events: none;
	display: flex;
}

.vh-auth__phone-icon .vh-icon {
	width: 20px;
	height: 20px;
}

.vh-auth__password .vh-input {
	padding-inline-start: 46px;
}

.vh-auth__eye {
	position: absolute;
	inset-inline-start: 6px;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--vh-muted);
	cursor: pointer;
}

.vh-auth__eye:hover,
.vh-auth__eye.is-on {
	color: var(--vh-maroon);
	background: var(--vh-maroon-50);
}

.vh-auth__eye .vh-icon {
	width: 18px;
	height: 18px;
}

.vh-auth__note {
	margin: 14px 0 0;
	font-size: .78rem;
	line-height: 1.9;
	text-align: center;
	color: var(--vh-muted);
}

.vh-auth__note a {
	color: var(--vh-maroon);
}

.vh-auth__sent {
	margin: 0 0 18px;
	text-align: center;
	font-size: .92rem;
	line-height: 2;
	color: var(--vh-muted);
}

.vh-auth__sent strong {
	color: var(--vh-text);
	font-weight: 700;
	unicode-bidi: isolate;
}

.vh-auth__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--vh-maroon);
	font: inherit;
	font-size: .85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.vh-auth__link:hover {
	background: var(--vh-maroon-50);
}

.vh-auth__link[hidden] {
	display: none;
}

.vh-auth__link .vh-icon {
	width: 15px;
	height: 15px;
}

/* OTP boxes */
.vh-otp {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 14px;
}

.vh-otp__box {
	width: 54px;
	height: 60px;
	padding: 0;
	border: 1.5px solid var(--vh-border);
	border-radius: 14px;
	background: var(--vh-surface);
	color: var(--vh-text);
	font: inherit;
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	caret-color: var(--vh-maroon);
	transition: border-color .2s, box-shadow .2s, transform .15s;
}

.vh-otp__box:focus {
	outline: none;
	border-color: var(--vh-maroon);
	box-shadow: 0 0 0 4px rgba(110, 26, 44, .12);
	transform: translateY(-1px);
}

.vh-otp__box.is-filled {
	border-color: var(--vh-green);
	background: var(--vh-green-50);
}

.vh-otp.is-error {
	animation: vh-shake .4s ease;
}

.vh-otp.is-error .vh-otp__box {
	border-color: var(--vh-danger);
}

@keyframes vh-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

.vh-auth__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 30px;
	margin-bottom: 14px;
	font-size: .85rem;
	color: var(--vh-muted);
}

.vh-auth__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.vh-auth__types {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.vh-auth__types legend {
	grid-column: 1 / -1;
	margin-bottom: 8px;
	padding: 0;
}

.vh-auth__type {
	position: relative;
	cursor: pointer;
}

.vh-auth__type input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.vh-auth__type-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
	padding: 16px 10px;
	border: 1.5px solid var(--vh-border);
	border-radius: 14px;
	background: var(--vh-surface);
	text-align: center;
	transition: border-color .2s, background .2s, box-shadow .2s;
}

.vh-auth__type-card .vh-icon {
	width: 26px;
	height: 26px;
	margin-bottom: 4px;
	color: var(--vh-muted);
}

.vh-auth__type-card strong {
	font-size: .9rem;
	font-weight: 700;
}

.vh-auth__type-card small {
	font-size: .76rem;
	color: var(--vh-muted);
}

.vh-auth__type:hover .vh-auth__type-card {
	border-color: rgba(110, 26, 44, .35);
}

.vh-auth__type input:checked + .vh-auth__type-card {
	border-color: var(--vh-maroon);
	background: var(--vh-maroon-50);
	box-shadow: 0 0 0 3px rgba(110, 26, 44, .08);
}

.vh-auth__type input:checked + .vh-auth__type-card .vh-icon {
	color: var(--vh-maroon);
}

.vh-auth__type input:focus-visible + .vh-auth__type-card {
	outline: 2px solid var(--vh-maroon);
	outline-offset: 2px;
}

.vh-input.has-error,
.vh-otp__box.has-error {
	border-color: var(--vh-danger) !important;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, .1);
}

/* Loading state for buttons */
.vh-btn.is-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.vh-btn.is-loading > * {
	visibility: hidden;
}

.vh-btn.is-loading::after {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vh-spin .7s linear infinite;
}

.vh-btn--outline.is-loading::after,
.vh-btn--ghost.is-loading::after,
.vh-btn--white.is-loading::after {
	border-color: rgba(110, 26, 44, .25);
	border-top-color: var(--vh-maroon);
}

@keyframes vh-spin {
	to { transform: rotate(360deg); }
}

.vh-auth--compact {
	max-width: 100%;
}

.vh-auth--compact .vh-auth__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	text-align: start;
}

.vh-auth--compact .vh-auth__icon {
	width: 44px;
	height: 44px;
	margin: 0;
	border-radius: 12px;
}

.vh-auth--compact .vh-auth__icon .vh-icon {
	width: 22px;
	height: 22px;
}

.vh-auth--compact .vh-auth__title {
	font-size: 1.1rem;
	margin: 0;
}

.vh-auth--compact .vh-auth__desc {
	flex-basis: 100%;
}

/* --------------------------------------------------------------------------
   Auth page (split layout)
   -------------------------------------------------------------------------- */
.vh-auth-page {
	position: relative;
	padding: clamp(28px, 5vw, 64px) 0;
	min-height: calc(100vh - var(--vh-header-h));
	background:
		radial-gradient(900px 420px at 100% 0%, rgba(184, 148, 90, .12), transparent 60%),
		radial-gradient(700px 380px at 0% 100%, rgba(62, 74, 42, .08), transparent 60%),
		var(--vh-cream);
}

.vh-auth-page__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	max-width: 1080px;
	margin-inline: auto;
	border-radius: var(--vh-radius-xl);
	overflow: hidden;
	background: var(--vh-surface);
	box-shadow: var(--vh-shadow-lg);
}

.vh-auth-page__brand {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 18px;
	padding: clamp(32px, 4vw, 56px);
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(500px 300px at 110% -10%, rgba(184, 148, 90, .45), transparent 60%),
		radial-gradient(420px 320px at -10% 110%, rgba(62, 74, 42, .9), transparent 65%),
		linear-gradient(150deg, var(--vh-maroon) 0%, var(--vh-maroon-700) 55%, var(--vh-green-800) 100%);
	isolation: isolate;
}

.vh-auth-page__brand::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: .08;
	background-image:
		linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
	background-size: 36px 36px;
	mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 75%);
}

.vh-auth-page__art {
	position: absolute;
	inset-inline-start: -30px;
	bottom: -40px;
	z-index: -1;
	color: rgba(255, 255, 255, .08);
	display: flex;
}

.vh-auth-page__art .vh-icon {
	width: 280px;
	height: 280px;
	stroke-width: 1;
}

.vh-auth-page__logo {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.vh-auth-page__logo strong {
	font-size: 1.35rem;
	font-weight: 800;
}

.vh-auth-page__logo span {
	font-size: .8rem;
	letter-spacing: .12em;
	color: rgba(255, 255, 255, .7);
	direction: ltr;
	text-align: right;
}

.vh-auth-page__headline {
	margin: 12px 0 0;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 800;
	line-height: 1.6;
	color: #fff;
}

.vh-auth-page__lead {
	margin: 0;
	color: rgba(255, 255, 255, .82);
	line-height: 2;
}

.vh-auth-page__points {
	display: grid;
	gap: 14px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.vh-auth-page__points li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: .92rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, .92);
}

.vh-auth-page__point-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
	color: #f3dfb8;
}

.vh-auth-page__point-icon .vh-icon {
	width: 20px;
	height: 20px;
}

.vh-auth-page__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(28px, 4vw, 56px);
}

.vh-auth-page__content {
	max-width: 440px;
	margin: 24px auto 0;
	font-size: .85rem;
	color: var(--vh-muted);
}

/* --------------------------------------------------------------------------
   Panel layout
   -------------------------------------------------------------------------- */
.vh-panel-page .vh-prefooter,
.vh-panel-page .vh-cta-section {
	display: none;
}

.vh-panel-wrap {
	padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 5vw, 72px);
	background: var(--vh-cream);
	min-height: calc(100vh - var(--vh-header-h));
}

.vh-panel {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	font-family: var(--vh-font);
}

.vh-panel__sidebar {
	position: sticky;
	top: calc(var(--vh-header-h) + 20px);
	padding: 20px 14px;
	border-radius: var(--vh-radius-lg);
	background: var(--vh-surface);
	border: 1px solid var(--vh-border);
	box-shadow: var(--vh-shadow-sm);
}

.admin-bar .vh-panel__sidebar {
	top: calc(var(--vh-header-h) + 52px);
}

.vh-panel__user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 8px 18px;
	margin-bottom: 12px;
	border-bottom: 1px dashed var(--vh-border);
}

.vh-panel__avatar img,
.vh-avatar-upload__img img {
	display: block;
	border-radius: 50%;
	object-fit: cover;
}

.vh-panel__avatar img {
	width: 52px;
	height: 52px;
	box-shadow: 0 0 0 3px var(--vh-surface), 0 0 0 5px var(--vh-gold-50);
}

.vh-panel__user-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.vh-panel__user-name {
	font-weight: 800;
	font-size: .98rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vh-panel__nav ul {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-panel__nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 12px;
	color: var(--vh-text);
	font-size: .93rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s, transform .2s;
}

.vh-panel__nav-link .vh-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--vh-muted);
	transition: color .2s;
}

.vh-panel__nav-link:hover {
	background: var(--vh-maroon-50);
	color: var(--vh-maroon);
}

.vh-panel__nav-link:hover .vh-icon {
	color: var(--vh-maroon);
}

.vh-panel__nav-link.is-active {
	background: linear-gradient(135deg, var(--vh-maroon), var(--vh-maroon-700));
	color: #fff;
	box-shadow: 0 8px 18px rgba(110, 26, 44, .22);
}

.vh-panel__nav-link.is-active .vh-icon {
	color: #fff;
}

.vh-panel__nav-link--logout {
	margin-top: 8px;
	color: var(--vh-danger);
}

.vh-panel__nav-link--logout .vh-icon {
	color: var(--vh-danger);
}

.vh-panel__nav-link--logout:hover {
	background: rgba(180, 35, 24, .08);
	color: var(--vh-danger);
}

.vh-panel__badge {
	margin-inline-start: auto;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: var(--vh-gold);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
}

.vh-panel__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.vh-panel__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	border-radius: var(--vh-radius-lg);
	background: var(--vh-surface);
	border: 1px solid var(--vh-border);
	box-shadow: var(--vh-shadow-sm);
}

.vh-panel__heading {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vh-panel__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.6;
}

.vh-panel__date {
	font-size: .8rem;
	color: var(--vh-muted);
}

.vh-panel__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vh-panel__icon-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--vh-border);
	border-radius: 12px;
	background: var(--vh-surface);
	color: var(--vh-text);
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}

.vh-panel__icon-btn:hover {
	background: var(--vh-maroon-50);
	border-color: transparent;
	color: var(--vh-maroon);
}

.vh-panel__icon-btn .vh-icon {
	width: 20px;
	height: 20px;
}

.vh-panel__dot {
	position: absolute;
	top: -6px;
	inset-inline-end: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: var(--vh-maroon);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	box-shadow: 0 0 0 2px var(--vh-surface);
}

.vh-panel__notif {
	position: relative;
}

.vh-panel__notif-menu {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline-end: 0;
	z-index: 50;
	width: min(340px, 86vw);
	max-height: 380px;
	overflow: auto;
	border-radius: var(--vh-radius);
	background: var(--vh-surface);
	border: 1px solid var(--vh-border);
	box-shadow: var(--vh-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s, transform .2s, visibility .2s;
}

.vh-panel__notif.is-open .vh-panel__notif-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.vh-panel__notif-head {
	padding: 14px 16px;
	font-weight: 800;
	border-bottom: 1px solid var(--vh-border);
}

.vh-panel__notif-menu ul {
	margin: 0;
	padding: 6px;
	list-style: none;
}

.vh-panel__notif-menu li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	border-radius: 10px;
	font-size: .86rem;
	line-height: 1.8;
}

.vh-panel__notif-menu li:hover {
	background: var(--vh-cream);
}

.vh-panel__notif-menu li a {
	color: var(--vh-text);
	text-decoration: none;
}

.vh-panel__notif-menu time {
	font-size: .74rem;
	color: var(--vh-muted);
}

.vh-panel__notif-empty {
	margin: 0;
	padding: 24px 16px;
	text-align: center;
	color: var(--vh-muted);
	font-size: .86rem;
}

.vh-panel__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.vh-panel__content > .vh-alert {
	margin: 0;
}

/* Generic panel card */
.vh-panel-card {
	padding: clamp(18px, 2.4vw, 28px);
	border-radius: var(--vh-radius-lg);
	background: var(--vh-surface);
	border: 1px solid var(--vh-border);
	box-shadow: var(--vh-shadow-sm);
}

.vh-panel-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 1.05rem;
	font-weight: 800;
}

.vh-panel-card__title::before {
	content: "";
	width: 6px;
	height: 20px;
	border-radius: 4px;
	background: linear-gradient(var(--vh-maroon), var(--vh-gold));
}

/* Welcome banner */
.vh-panel-welcome {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(22px, 3vw, 34px);
	border-radius: var(--vh-radius-lg);
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(420px 220px at 0% 0%, rgba(184, 148, 90, .35), transparent 60%),
		linear-gradient(135deg, var(--vh-green) 0%, var(--vh-green-800) 60%, var(--vh-maroon-700) 130%);
	isolation: isolate;
}

.vh-panel-welcome__eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	font-size: .78rem;
	font-weight: 600;
}

.vh-panel-welcome h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	font-weight: 800;
	line-height: 1.7;
}

.vh-panel-welcome p {
	margin: 0;
	color: rgba(255, 255, 255, .82);
	font-size: .9rem;
	line-height: 1.9;
}

.vh-panel-welcome__art {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 28px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #f3dfb8;
}

.vh-panel-welcome__art .vh-icon {
	width: 52px;
	height: 52px;
	stroke-width: 1.4;
}

/* Stat cards */
.vh-panel-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
}

.vh-stat-card {
	--vh-c: var(--vh-maroon);
	--vh-c-bg: var(--vh-maroon-50);
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	border-radius: var(--vh-radius);
	background: var(--vh-surface);
	border: 1px solid var(--vh-border);
	color: var(--vh-text);
	text-decoration: none;
	box-shadow: var(--vh-shadow-sm);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}

a.vh-stat-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--vh-shadow);
	border-color: transparent;
}

.vh-stat-card--green {
	--vh-c: var(--vh-green);
	--vh-c-bg: var(--vh-green-50);
}

.vh-stat-card--gold {
	--vh-c: var(--vh-gold);
	--vh-c-bg: var(--vh-gold-50);
}

.vh-stat-card__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--vh-c-bg);
	color: var(--vh-c);
}

.vh-stat-card__icon .vh-icon {
	width: 24px;
	height: 24px;
}

.vh-stat-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vh-stat-card__value {
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.4;
	color: var(--vh-c);
}

.vh-stat-card__title {
	font-size: .85rem;
	color: var(--vh-muted);
}

/* Quick actions */
.vh-quick-actions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.vh-quick-action {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: var(--vh-radius);
	border: 1px solid var(--vh-border);
	background: var(--vh-cream);
	color: var(--vh-text);
	text-decoration: none;
	transition: background .2s, border-color .2s, transform .2s;
}

.vh-quick-action:hover {
	background: var(--vh-surface);
	border-color: rgba(110, 26, 44, .25);
	transform: translateY(-2px);
}

.vh-quick-action__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--vh-surface);
	color: var(--vh-maroon);
	box-shadow: var(--vh-shadow-sm);
}

.vh-quick-action__icon .vh-icon {
	width: 22px;
	height: 22px;
}

.vh-quick-action__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vh-quick-action__text strong {
	font-size: .92rem;
	font-weight: 700;
}

.vh-quick-action__text small {
	font-size: .78rem;
	color: var(--vh-muted);
}

.vh-quick-action__arrow {
	margin-inline-start: auto;
	width: 18px;
	height: 18px;
	color: var(--vh-muted);
}

/* Profile */
.vh-profile-head {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.vh-profile-head__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 240px;
	min-width: 0;
}

.vh-profile-head__info strong {
	font-size: 1.1rem;
	font-weight: 800;
}

.vh-profile-head__info > span {
	color: var(--vh-muted);
	font-size: .88rem;
	text-align: right;
}

.vh-profile-head__info small {
	color: var(--vh-muted);
	font-size: .78rem;
}

.vh-avatar-upload {
	position: relative;
	flex: 0 0 auto;
}

.vh-avatar-upload__img img {
	width: 96px;
	height: 96px;
	box-shadow: 0 0 0 4px var(--vh-surface), 0 0 0 6px var(--vh-maroon-50);
}

.vh-avatar-upload__btn {
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--vh-maroon);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 0 0 3px var(--vh-surface);
	transition: transform .2s, background .2s;
}

.vh-avatar-upload__btn:hover {
	transform: scale(1.08);
	background: var(--vh-maroon-700);
}

.vh-avatar-upload__btn .vh-icon {
	width: 16px;
	height: 16px;
}

.vh-avatar-upload.is-loading .vh-avatar-upload__img {
	opacity: .45;
}

.vh-avatar-upload.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border: 3px solid var(--vh-maroon-50);
	border-top-color: var(--vh-maroon);
	border-radius: 50%;
	animation: vh-spin .7s linear infinite;
}

.vh-progress {
	height: 8px;
	margin-top: 6px;
	border-radius: 999px;
	background: var(--vh-cream);
	overflow: hidden;
	max-width: 320px;
}

.vh-progress__bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--vh-gold), var(--vh-maroon));
	transition: width .6s ease;
}

.vh-pform-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
}

.vh-pform-grid .vh-field {
	margin: 0;
}

.vh-field--full {
	grid-column: 1 / -1;
}

.vh-inline-field {
	display: flex;
	gap: 8px;
}

.vh-inline-field .vh-input {
	flex: 1 1 auto;
	min-width: 0;
	background: var(--vh-cream);
}

.vh-panel-form__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed var(--vh-border);
}

.vh-input--code {
	font-size: 1.3rem;
	letter-spacing: .4em;
	text-align: center;
}

.vh-security-list {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.vh-security-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: .9rem;
	color: var(--vh-muted);
}

.vh-security-list .vh-icon {
	width: 20px;
	height: 20px;
	color: var(--vh-green);
}

/* Guest view */
.vh-panel-guest {
	display: flex;
	justify-content: center;
	padding: clamp(10px, 4vw, 40px) 0;
}

.vh-panel-guest__card {
	width: 100%;
	max-width: 500px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: var(--vh-radius-xl);
	background: var(--vh-surface);
	border: 1px solid var(--vh-border);
	box-shadow: var(--vh-shadow-lg);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.vh-auth-page__grid {
		grid-template-columns: 1fr;
		max-width: 560px;
	}

	.vh-auth-page__brand {
		gap: 12px;
	}

	.vh-auth-page__points {
		display: none;
	}

	.vh-auth-page__headline {
		margin-top: 4px;
	}

	.vh-panel {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vh-panel__sidebar {
		position: static;
		padding: 12px;
		border-radius: var(--vh-radius);
	}

	.vh-panel__user {
		padding: 2px 4px 12px;
		margin-bottom: 10px;
	}

	.vh-panel__avatar img {
		width: 42px;
		height: 42px;
	}

	.vh-panel__nav ul {
		flex-direction: row;
		gap: 6px;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		padding-bottom: 2px;
	}

	.vh-panel__nav ul::-webkit-scrollbar {
		display: none;
	}

	.vh-panel__nav li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.vh-panel__nav-link {
		padding: 9px 14px;
		white-space: nowrap;
		background: var(--vh-cream);
		font-size: .86rem;
	}

	.vh-panel__nav-link--logout {
		margin-top: 0;
	}

	.vh-panel__topbar {
		padding: 12px 16px;
		border-radius: var(--vh-radius);
	}

	.vh-panel__title {
		font-size: 1.08rem;
	}
}

@media (max-width: 640px) {
	.vh-auth__grid,
	.vh-pform-grid {
		grid-template-columns: 1fr;
	}

	.vh-otp {
		gap: 7px;
	}

	.vh-otp__box {
		width: 46px;
		height: 54px;
		font-size: 1.3rem;
	}

	.vh-auth-page {
		padding: 16px 0 32px;
	}

	.vh-auth-page__grid {
		border-radius: var(--vh-radius-lg);
	}

	.vh-auth-page__brand {
		padding: 24px 22px;
	}

	.vh-auth-page__lead {
		font-size: .88rem;
	}

	.vh-auth-page__card {
		padding: 24px 18px 28px;
	}

	.vh-panel-welcome__art {
		display: none;
	}

	.vh-panel-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.vh-stat-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		padding: 14px;
	}

	.vh-stat-card__icon {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.vh-stat-card__value {
		font-size: 1.15rem;
	}

	.vh-panel-form__actions .vh-btn {
		width: 100%;
	}

	.vh-profile-head {
		gap: 14px;
	}
}

@media (max-width: 380px) {
	.vh-otp__box {
		width: 40px;
		height: 50px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vh-auth__step.is-active,
	.vh-otp.is-error {
		animation: none;
	}

	.vh-stat-card,
	.vh-quick-action,
	.vh-panel__nav-link {
		transition: none;
	}
}
