.vlm-card-wrap {
	width: min(100%, 900px);
	margin: 1rem 0;
	container-type: inline-size;
}

.vlm-card {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 37 / 24;
	border-radius: 4.2cqw;
	background: #041638 url("../images/vllaznia-card-artwork.jpg") center / cover no-repeat;
	box-shadow: 0 2.2cqw 5.5cqw rgba(3, 9, 24, .25);
	color: #07183c;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.42cqw;
	line-height: 1.15;
	isolation: isolate;
}

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

.vlm-card__season {
	position: absolute;
	z-index: 2;
	left: 8.1%;
	top: 43.1%;
	min-width: 29.5%;
	padding: .38em .3em .45em 0;
	background: linear-gradient(90deg, rgba(4, 22, 57, .98) 0%, rgba(4, 22, 57, .98) 82%, rgba(4, 22, 57, 0) 100%);
	color: #caa568;
	font-size: 1.62em;
	font-weight: 700;
	letter-spacing: .22em;
	white-space: nowrap;
}

.vlm-card__season span { margin-right: .45em; }

.vlm-card__season-line {
	position: absolute;
	z-index: 3;
	left: 8.1%;
	top: 49.05%;
	display: flex;
	width: 29.5%;
	height: .45%;
}

.vlm-card__season-line i:first-child { width: 42%; background: #ef1a34; }
.vlm-card__season-line i:last-child { flex: 1; background: #063b83; }

.vlm-card__identity {
	position: absolute;
	z-index: 3;
	left: 4.45%;
	top: 52.55%;
	width: 90.55%;
	height: 42.25%;
	padding: 2.8% 25.8% 1.4% 3.4%;
	border: 1px solid rgba(171, 163, 143, .28);
	border-radius: 3.2em;
	background:
		radial-gradient(circle at 18% 30%, rgba(189, 181, 158, .14) 0 1px, transparent 1.5px) 0 0 / 2.1em 2.1em,
		linear-gradient(105deg, #f4f4f1 0%, #f1f2f0 55%, #e8eae8 100%);
	box-shadow: 0 .8em 1.8em rgba(0, 6, 22, .32);
}

.vlm-card__row {
	display: grid;
	grid-template-columns: 5.8em minmax(0, 1fr);
	align-items: center;
	min-width: 0;
}

.vlm-card__row--member {
	height: 39%;
	border-bottom: .12em solid #af955a;
}

.vlm-card__row--number {
	height: 30%;
	border-bottom: .12em solid #af955a;
}

.vlm-card__field {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
}

.vlm-card__label {
	display: block;
	margin: 0 0 .36em;
	color: #07183c;
	font-size: 1.18em;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1;
}

.vlm-card__member,
.vlm-card__number,
.vlm-card__date strong {
	display: block;
	margin: 0;
	color: #07183c;
	font-weight: 800;
	line-height: .98;
}

.vlm-card__member {
	overflow: hidden;
	font-size: 2.7em;
	letter-spacing: .16em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vlm-card__member--medium { font-size: 2.25em; letter-spacing: .12em; }
.vlm-card__member--long { font-size: 1.85em; letter-spacing: .08em; }

.vlm-card__number {
	font-size: 2.15em;
	letter-spacing: .22em;
	white-space: nowrap;
}

.vlm-card__icon {
	display: grid;
	width: 4.4em;
	height: 4.4em;
	place-items: center;
	color: #ad8d4e;
}

.vlm-card__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.7;
}

.vlm-card__dates {
	display: grid;
	height: 31%;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	column-gap: 2em;
}

.vlm-card__date {
	display: grid;
	grid-template-columns: 5.8em minmax(0, 1fr);
	align-items: center;
	min-width: 0;
}

.vlm-card__date + .vlm-card__date {
	padding-left: 2.1em;
	border-left: .12em solid #ad8d4e;
}

.vlm-card__date .vlm-card__label { font-size: 1em; white-space: nowrap; }
.vlm-card__date strong { font-size: 1.85em; letter-spacing: .08em; white-space: nowrap; }

.vlm-card__qr {
	position: absolute;
	z-index: 4;
	right: 7.9%;
	top: 58.25%;
	width: 19.8%;
	padding: 1.05%;
	border: 1px solid rgba(7, 24, 60, .06);
	background: #fff;
	box-shadow: 0 .2em .8em rgba(7, 24, 60, .08);
}

.vlm-card__qr:empty::before {
	display: block;
	padding-bottom: 100%;
	content: "";
}

.vlm-card__qr svg { display: block; width: 100%; height: auto; }

.vlm-card__inactive-label {
	position: absolute;
	z-index: 7;
	left: 50%;
	top: 72%;
	padding: .45em 1em;
	border: .18em solid #9e1428;
	background: rgba(255, 255, 255, .92);
	color: #9e1428;
	font-size: 1.7em;
	font-weight: 900;
	letter-spacing: .14em;
	transform: translate(-50%, -50%) rotate(-7deg);
}

.vlm-card.is-inactive::after {
	position: absolute;
	z-index: 6;
	inset: 0;
	background: rgba(15, 18, 27, .18);
	content: "";
}

.vlm-table-scroll { overflow-x: auto; }

.vlm-portal-shell,
.vlm-portal-login {
	--vlm-red: #b3162b;
	--vlm-red-dark: #7e0e20;
	--vlm-ink: #17171b;
	--vlm-muted: #6d6f78;
	--vlm-line: #e7e7eb;
	--vlm-soft: #f6f6f8;
	--vlm-white: #fff;
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--vlm-ink);
}

.vlm-portal-shell *,
.vlm-portal-login * { box-sizing: border-box; }

.vlm-portal-shell {
	width: min(1180px, calc(100% - 32px));
	margin: 32px auto;
	border: 1px solid var(--vlm-line);
	border-radius: 24px;
	background: var(--vlm-white);
	box-shadow: 0 24px 70px rgba(25, 25, 30, .09);
	overflow: hidden;
}

.vlm-portal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 30px;
	background: linear-gradient(125deg, #951127, #c51c35);
	color: #fff;
}

.vlm-portal-brand,
.vlm-portal-login__brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none !important;
}

.vlm-portal-brand > span,
.vlm-portal-login__brand > span {
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 13px;
	background: rgba(255, 255, 255, .14);
	font: 800 24px/1 Georgia, serif;
}

.vlm-portal-brand div,
.vlm-portal-login__brand div,
.vlm-portal-partner { display: flex; flex-direction: column; }
.vlm-portal-brand strong,
.vlm-portal-login__brand strong { font-size: 14px; letter-spacing: .13em; }
.vlm-portal-brand small,
.vlm-portal-login__brand small,
.vlm-portal-partner small { margin-top: 2px; font-size: 12px; opacity: .75; }
.vlm-portal-partner { align-items: flex-end; text-align: right; }
.vlm-portal-partner span { font-weight: 750; }

.vlm-portal-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-bottom: 1px solid var(--vlm-line);
	background: #fff;
	overflow-x: auto;
}

.vlm-portal-nav a {
	position: relative;
	padding: 11px 13px;
	border-radius: 10px;
	color: #575963;
	font-size: 14px;
	font-weight: 650;
	text-decoration: none !important;
	white-space: nowrap;
}

.vlm-portal-nav a:hover,
.vlm-portal-nav a.is-active { background: #f8e9ec; color: var(--vlm-red); }
.vlm-portal-nav .vlm-portal-nav__logout { margin-left: auto; }

.vlm-portal-main { padding: 32px; background: #fafafd; }
.vlm-portal-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.vlm-portal-heading h2 { margin: 4px 0 0; color: var(--vlm-ink); font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.vlm-portal-heading p { max-width: 680px; margin: 9px 0 0; color: var(--vlm-muted); font-size: 15px; }
.vlm-portal-kicker { color: var(--vlm-red); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.vlm-portal-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 20px;
}

.vlm-portal-stats > div {
	display: flex;
	min-height: 126px;
	flex-direction: column;
	justify-content: space-between;
	padding: 19px;
	border: 1px solid var(--vlm-line);
	border-radius: 17px;
	background: #fff;
}

.vlm-portal-stats > div:first-child { background: var(--vlm-red); color: #fff; border-color: var(--vlm-red); }
.vlm-portal-stats span { font-size: 13px; font-weight: 650; opacity: .78; }
.vlm-portal-stats strong { font-size: 28px; line-height: 1.1; }

.vlm-portal-panel,
.vlm-portal-offer {
	padding: 22px;
	border: 1px solid var(--vlm-line);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 5px 18px rgba(30, 30, 35, .035);
}

.vlm-portal-panel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vlm-portal-panel h3,
.vlm-portal-offer h3 { margin: 0; color: var(--vlm-ink); font-size: 18px; }
.vlm-portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }

.vlm-portal-button {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 17px;
	border: 1px solid #d7d7dd;
	border-radius: 11px;
	background: #fff;
	color: #292a30;
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none !important;
	cursor: pointer;
}

.vlm-portal-button:hover { border-color: #b8b9c0; background: #f6f6f8; color: #151519; }
.vlm-portal-button--primary { border-color: var(--vlm-red); background: var(--vlm-red); color: #fff; }
.vlm-portal-button--primary:hover { border-color: var(--vlm-red-dark); background: var(--vlm-red-dark); color: #fff; }
.vlm-portal-button:disabled { cursor: wait; opacity: .6; }

.vlm-history { width: 100%; border-collapse: collapse; font-size: 14px; }
.vlm-history th,
.vlm-history td { padding: 14px 12px; border-bottom: 1px solid #ececf0; text-align: left; white-space: nowrap; }
.vlm-history th { color: #777983; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.vlm-history tbody tr:last-child td { border-bottom: 0; }
.vlm-portal-empty { padding: 38px !important; color: var(--vlm-muted); text-align: center !important; }

.vlm-scanner { max-width: 720px; }
.vlm-scanner label,
.vlm-portal-form label,
.vlm-portal-login label { display: block; margin: 0 0 16px; }
.vlm-scanner label > span,
.vlm-portal-form label > span,
.vlm-portal-login label > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.vlm-scanner input,
.vlm-scanner select,
.vlm-portal-form input,
.vlm-portal-login input[type="text"],
.vlm-portal-login input[type="password"] {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #d7d8de;
	border-radius: 10px;
	background: #fff;
	color: var(--vlm-ink);
	font: inherit;
}

.vlm-scanner input:focus,
.vlm-scanner select:focus,
.vlm-portal-form input:focus,
.vlm-portal-login input:focus { border-color: var(--vlm-red); outline: 3px solid rgba(179, 22, 43, .12); }

.vlm-scanner__viewport {
	position: relative;
	overflow: hidden;
	margin: 0 0 16px;
	border-radius: 16px;
	background: #111;
	aspect-ratio: 4 / 3;
}

.vlm-scanner__viewport video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vlm-scanner__guide { position: absolute; inset: 50% auto auto 50%; width: min(55%, 280px); aspect-ratio: 1; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; transform: translate(-50%, -50%); box-shadow: 0 0 0 999px rgba(0,0,0,.26); pointer-events: none; }
.vlm-scanner__actions { display: flex; gap: 10px; }
.vlm-manual { margin: 18px 0; padding: 14px 0 0; border-top: 1px solid var(--vlm-line); }
.vlm-manual summary { color: var(--vlm-red); font-weight: 700; cursor: pointer; }
.vlm-manual[open] summary { margin-bottom: 14px; }
.vlm-scan-status { min-height: 1.5em; margin: 14px 0; color: var(--vlm-muted); font-weight: 650; }
.vlm-result { padding: 18px; border: 1px solid; border-radius: 13px; }
.vlm-result h3 { margin: 0 0 8px; }
.vlm-result--good { border-color: #70c58c; background: #effaf2; }
.vlm-result--bad,
.vlm-notice--error { border-color: #e1a0a8; background: #fff1f3; }

.vlm-portal-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vlm-portal-offer { position: relative; }
.vlm-portal-offer > strong { position: absolute; top: 20px; right: 20px; color: var(--vlm-red); font-size: 30px; }
.vlm-portal-offer h3 { max-width: calc(100% - 75px); margin-top: 12px; }
.vlm-portal-offer p { min-height: 24px; color: var(--vlm-muted); }
.vlm-portal-offer ul { margin: 17px 0 0; padding: 15px 0 0 19px; border-top: 1px solid var(--vlm-line); color: #555760; font-size: 13px; }
.vlm-portal-status { display: inline-flex; padding: 5px 9px; border-radius: 99px; background: #e8f7ed; color: #19743a; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.vlm-portal-status--inactive { background: #f0f0f2; color: #666872; }

.vlm-portal-profile-grid { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); gap: 16px; }
.vlm-portal-profile-grid dl { margin: 18px 0 0; }
.vlm-portal-profile-grid dt { margin-top: 14px; color: var(--vlm-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vlm-portal-profile-grid dd { margin: 3px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.vlm-portal-form h3 { margin-bottom: 7px; }
.vlm-portal-form p { margin-top: 0; color: var(--vlm-muted); }
.vlm-portal-form hr { margin: 24px 0; border: 0; border-top: 1px solid var(--vlm-line); }
.vlm-portal-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }

.vlm-portal-notice { margin-bottom: 18px; padding: 13px 15px; border: 1px solid; border-radius: 11px; font-size: 14px; font-weight: 650; }
.vlm-portal-notice--success { border-color: #9bd2ad; background: #effaf2; color: #176735; }
.vlm-portal-notice--error { border-color: #e5abb3; background: #fff1f3; color: #8b1728; }

.vlm-portal-login {
	min-height: 680px;
	padding: 52px 22px;
	background: radial-gradient(circle at 80% 0, rgba(204, 28, 53, .14), transparent 38%), #f7f7f9;
}

.vlm-portal-login__brand { display: flex; width: min(440px, 100%); margin: 0 auto 20px; color: var(--vlm-red); }
.vlm-portal-login__brand > span { border-color: rgba(179, 22, 43, .25); background: #fff; }
.vlm-portal-login__card { width: min(440px, 100%); margin: auto; padding: 34px; border: 1px solid var(--vlm-line); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(25, 25, 30, .1); }
.vlm-portal-login__card h2 { margin: 6px 0 8px; font-size: 30px; }
.vlm-portal-login__card > p { margin: 0 0 24px; color: var(--vlm-muted); }
.vlm-portal-login__card .vlm-portal-button { width: 100%; }
.vlm-portal-check { display: flex !important; align-items: center; gap: 8px; }
.vlm-portal-check input { width: auto; min-height: 0; }
.vlm-portal-check span { margin: 0 !important; font-weight: 600 !important; }
.vlm-portal-help { display: block; margin-top: 18px; color: var(--vlm-red); font-size: 13px; font-weight: 700; text-align: center; }
.vlm-portal-admin-preview { max-width: 860px; }

@media (max-width: 820px) {
	.vlm-portal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vlm-portal-offers,
	.vlm-portal-profile-grid { grid-template-columns: 1fr; }
	.vlm-portal-main { padding: 24px; }
}

@media (max-width: 560px) {
	.vlm-portal-shell { width: 100%; margin: 0; border-width: 0; border-radius: 0; box-shadow: none; }
	.vlm-portal-header { align-items: flex-start; padding: 18px; }
	.vlm-portal-partner { max-width: 45%; }
	.vlm-portal-nav { padding: 8px 10px; }
	.vlm-portal-nav .vlm-portal-nav__logout { margin-left: 0; }
	.vlm-portal-main { padding: 20px 15px 34px; }
	.vlm-portal-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
	.vlm-portal-stats > div { min-height: 105px; padding: 15px; }
	.vlm-portal-stats strong { font-size: 23px; }
	.vlm-portal-panel { padding: 16px; }
	.vlm-portal-form__row { grid-template-columns: 1fr; gap: 0; }
	.vlm-portal-login { min-height: 100vh; padding: 28px 15px; }
	.vlm-portal-login__card { padding: 25px 20px; }
}

@media print {
	#adminmenumain,
	#wpadminbar,
	#wpfooter,
	.wrap > h1,
	.wrap > form,
	.wrap > hr,
	.wrap > table,
	.wrap > .search-box { display: none !important; }
	.vlm-card-wrap { width: 85.6mm !important; max-width: 85.6mm !important; margin: 0 !important; }
	.vlm-card { width: 85.6mm !important; height: 53.98mm !important; border-radius: 3mm; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
