/* ════════════════════════════════════════════════════════════════
   YOKI · Auth + Cabinet — стили
   © 2026 chudo_boy
   ════════════════════════════════════════════════════════════════ */

.hidden { display: none !important; }


/* ═══════════════ AUTH (login + register) ═══════════════ */

.auth-body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
}

.auth-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 32px;
	max-width: 1180px;
	margin: 0 auto;
	width: 100%;
}
.auth-back {
	font-size: 14px;
	color: var(--ink-3);
	font-weight: 500;
	transition: color 0.15s;
}
.auth-back:hover { color: var(--ink); }

.auth-main {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 32px 80px;
	align-items: center;
	width: 100%;
}

.auth-card {
	max-width: 440px;
	width: 100%;
}

.auth-plan-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px;
	color: var(--muted);
	margin-bottom: 20px;
}
.auth-plan-tag b {
	color: var(--ink);
	font-weight: 600;
}

.auth-title {
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin-bottom: 12px;
}
.auth-sub {
	font-size: 16px;
	color: var(--ink-3);
	margin-bottom: 36px;
	line-height: 1.5;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 24px;
}
.auth-field {
	display: flex;
	flex-direction: column;
}
.auth-field label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	margin-bottom: 8px;
}
.auth-field-link {
	font-size: 12px;
	color: var(--muted);
	transition: color 0.15s;
}
.auth-field-link:hover { color: var(--ink); }

.auth-field input {
	padding: 13px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-size: 15px;
	font-family: inherit;
	color: var(--ink);
	background: white;
	transition: all 0.15s;
}
.auth-field input:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}
.auth-field input::placeholder {
	color: var(--faint);
}

.auth-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--ink-3);
	line-height: 1.5;
	cursor: pointer;
}
.auth-check input[type="checkbox"] {
	margin-top: 2px;
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: var(--ink);
}
.auth-check a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--faint);
	text-underline-offset: 2px;
}
.auth-check a:hover {
	text-decoration-color: var(--ink);
}

.auth-error {
	padding: 12px 14px;
	background: rgba(196, 56, 56, 0.08);
	border: 1px solid rgba(196, 56, 56, 0.25);
	border-radius: 10px;
	font-size: 13px;
	color: #c43838;
	line-height: 1.45;
}

.auth-foot {
	font-size: 14px;
	color: var(--ink-3);
	text-align: center;
}
.auth-foot a {
	color: var(--ink);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--faint);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s;
}
.auth-foot a:hover {
	text-decoration-color: var(--ink);
}

.auth-aside {
	padding: 48px;
	background: var(--bg-ink);
	color: white;
	border-radius: 24px;
	min-height: 480px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	position: relative;
	overflow: hidden;
}
.auth-aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,0.10), transparent 65%);
	pointer-events: none;
}
.auth-aside-quote {
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	margin-bottom: 18px;
	position: relative;
	z-index: 1;
}
.auth-aside-by {
	font-size: 13px;
	color: rgba(255,255,255,0.55);
	letter-spacing: 0.04em;
	position: relative;
	z-index: 1;
}


/* ═══════════════════════════════════════════════════════════════
   CABINET — Личный кабинет (полированная версия)
   ═══════════════════════════════════════════════════════════════ */

.cabinet-body {
	background: var(--bg-soft);
	min-height: 100vh;
}

/* ─── Шапка ─── */
.cabinet-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1180px;
	margin: 14px auto 0;
	padding: 13px 22px;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: saturate(180%) blur(24px);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 14px 44px -18px rgba(0, 0, 0, 0.18);
	position: sticky;
	top: 14px;
	z-index: 50;
}
.cabinet-user {
	display: flex;
	align-items: center;
	gap: 10px;
}
.cabinet-user-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 6px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--ink-2);
	font-weight: 500;
	max-width: 280px;
}
.cabinet-user-pill > span:last-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cabinet-logout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 13px;
	color: var(--ink-3);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
}
.cabinet-logout svg {
	opacity: 0.7;
	transition: opacity 0.15s;
}
.cabinet-logout:hover {
	background: var(--ink);
	color: white;
	border-color: var(--ink);
}
.cabinet-logout:hover svg {
	opacity: 1;
}

/* ─── Основной контейнер ─── */
.cabinet-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 48px 32px 80px;
}

/* ─── Приветственный баннер ─── */
.cabinet-welcome {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	background: var(--ink);
	color: white;
	border-radius: 14px;
	margin-bottom: 36px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
	animation: welcomeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes welcomeIn {
	from { transform: translateY(-12px); opacity: 0; }
	to   { transform: translateY(0);     opacity: 1; }
}
.cabinet-welcome.ok {
	background: linear-gradient(135deg, #16a85b, #1d8f5e);
}
.cab-welcome-icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
}
.cab-welcome-body { flex: 1; min-width: 0; }
.cabinet-welcome-title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin-bottom: 3px;
}
.cabinet-welcome-sub {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.45;
}
.cabinet-welcome-close {
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.10);
	color: white;
	border: none;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
.cabinet-welcome-close:hover {
	background: rgba(255, 255, 255, 0.22);
}

/* ─── Заголовок страницы ─── */
.cab-header {
	margin-bottom: 36px;
}
.cabinet-title {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1;
	margin-bottom: 10px;
}
.cab-subtitle {
	font-size: 15px;
	color: var(--ink-3);
	line-height: 1.5;
}


/* ═══════════════ ХИРО: ТАРИФ ═══════════════ */
.cab-hero {
	background: white;
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 36px;
	margin-bottom: 20px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 12px 40px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
}
.cab-hero::before {
	content: "";
	position: absolute;
	top: 0; right: 0;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle at top right, rgba(0, 0, 0, 0.03), transparent 70%);
	pointer-events: none;
}
.cab-hero-grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: center;
	position: relative;
}
.cab-hero-left {
	min-width: 0;
}
.cab-hero-label {
	font-size: 11.5px;
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 10px;
}
.cab-hero-name {
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.05;
	margin-bottom: 6px;
}
.cab-hero-meta {
	font-size: 14.5px;
	color: var(--ink-3);
	font-variant-numeric: tabular-nums;
	margin-bottom: 22px;
}
.cab-hero-progress {
	margin-top: 22px;
	max-width: 460px;
}
.cab-hero-progress-track {
	height: 8px;
	background: var(--bg-soft);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
	border: 1px solid var(--line);
}
.cab-hero-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--ink) 0%, #2a2a2a 100%);
	border-radius: 999px;
	transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cab-hero-progress-meta {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}
.cab-hero-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 18px;
	flex-shrink: 0;
}
.cab-hero-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 10px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
}
.cab-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}
.cab-hero-status.ok {
	background: rgba(22, 168, 91, 0.08);
	border-color: rgba(22, 168, 91, 0.28);
	color: var(--ok);
}
.cab-hero-status.ok .cab-status-dot {
	box-shadow: 0 0 0 4px rgba(22, 168, 91, 0.18);
	animation: statusPulse 2.4s ease-in-out infinite;
}
@keyframes statusPulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(22, 168, 91, 0.18); }
	50%      { box-shadow: 0 0 0 8px rgba(22, 168, 91, 0.08); }
}
.cab-hero-status.warn {
	background: rgba(196, 120, 0, 0.08);
	border-color: rgba(196, 120, 0, 0.28);
	color: var(--warn);
}
.cab-hero-status.bad {
	background: rgba(196, 56, 56, 0.08);
	border-color: rgba(196, 56, 56, 0.28);
	color: #c43838;
}
.cab-hero-status.mute {
	color: var(--muted);
}
.cab-hero-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}


/* ═══════════════ СЕТКА КАРТОЧЕК ═══════════════ */
.cab-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 20px;
}
.cab-grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.cab-card {
	background: white;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px -16px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
}
.cab-card:hover {
	border-color: var(--faint);
	transform: translateY(-2px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -22px rgba(0, 0, 0, 0.22);
}

/* ─── Шапка карточки ─── */
.cab-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 22px;
}
.cab-card-head-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.cab-card-icon {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
}
.cab-card-title-stack { min-width: 0; }
.cab-card-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.cab-card-sub {
	font-size: 12px;
	color: var(--muted);
	margin-top: 2px;
}
.cab-card-tag {
	flex-shrink: 0;
	font-size: 11.5px;
	padding: 4px 10px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-weight: 600;
	letter-spacing: 0.01em;
}
.cab-card-tag.ok {
	background: rgba(22, 168, 91, 0.10);
	border-color: rgba(22, 168, 91, 0.30);
	color: var(--ok);
}
.cab-card-tag.warn {
	background: rgba(196, 120, 0, 0.10);
	border-color: rgba(196, 120, 0, 0.30);
	color: var(--warn);
}

/* Внутренние подсказки */
.cab-card-hint {
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.5;
}
.cab-card-hint-block {
	margin-bottom: 12px;
}


/* ═══════════════ ЛИЦЕНЗИЯ ═══════════════ */
.cab-license {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 14px 14px 18px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 12px;
	margin-bottom: 14px;
}
.cab-license-key {
	flex: 1;
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 14.5px;
	color: var(--ink);
	letter-spacing: 0.06em;
	background: none;
	padding: 0;
	font-weight: 600;
}
.cab-copy {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 12.5px;
	color: var(--ink-2);
	cursor: pointer;
	font-family: inherit;
	font-weight: 500;
	transition: all 0.15s;
}
.cab-copy svg { opacity: 0.7; }
.cab-copy:hover {
	background: var(--ink);
	color: white;
	border-color: var(--ink);
}
.cab-copy:hover svg { opacity: 1; }
.cab-copy.ok {
	background: var(--ok);
	color: white;
	border-color: var(--ok);
}
.cab-copy.ok svg { opacity: 1; }


/* ═══════════════ ПРИЛОЖЕНИЕ (ЗАГРУЗКА) ═══════════════ */
.cab-download-info {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 14px;
	margin-bottom: 18px;
	padding: 14px 16px;
	background: var(--bg-soft);
	border-radius: 12px;
	border: 1px solid var(--line);
}
.cab-download-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.cab-download-item span {
	font-size: 10.5px;
	color: var(--muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}
.cab-download-item b {
	font-size: 13.5px;
	color: var(--ink);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cab-download-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: auto;
}
.cab-download-meta {
	font-size: 12.5px;
	color: var(--muted);
}
.cab-disabled {
	opacity: 0.45;
	pointer-events: none;
	cursor: not-allowed;
}


/* ═══════════════ ПРОФИЛЬ ═══════════════ */
.cab-profile-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line-2);
	margin-bottom: 4px;
}
.cab-profile-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ink);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	flex-shrink: 0;
	letter-spacing: -0.02em;
}
.cab-profile-name-block { min-width: 0; flex: 1; }
.cab-profile-name {
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cab-profile-email {
	font-size: 13px;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Строки профиля */
.cab-rows {
	display: flex;
	flex-direction: column;
}
.cab-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-2);
	font-size: 14px;
}
.cab-row:last-child { border-bottom: none; }
.cab-row span {
	color: var(--muted);
	font-size: 13px;
}
.cab-row b {
	font-weight: 500;
	color: var(--ink);
	text-align: right;
	font-variant-numeric: tabular-nums;
}


/* ═══════════════ ПОДДЕРЖКА ═══════════════ */
.cab-support-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cab-support-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--bg-soft);
	border: 1px solid transparent;
	border-radius: 12px;
	transition: all 0.15s;
}
.cab-support-item:hover {
	background: white;
	border-color: var(--ink);
	transform: translateX(2px);
}
.cab-support-item-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink-2);
	transition: all 0.15s;
}
.cab-support-item:hover .cab-support-item-icon {
	background: var(--ink);
	color: white;
	border-color: var(--ink);
}
.cab-support-item-body { flex: 1; min-width: 0; }
.cab-support-item-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 2px;
}
.cab-support-item-sub {
	font-size: 12px;
	color: var(--muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cab-support-arrow {
	flex-shrink: 0;
	color: var(--faint);
	font-size: 16px;
	transition: all 0.15s;
}
.cab-support-item:hover .cab-support-arrow {
	color: var(--ink);
	transform: translateX(3px);
}


/* ─── Футер ─── */
.cabinet-foot {
	text-align: center;
	padding-top: 40px;
	margin-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
	letter-spacing: 0.02em;
}


/* ═══════════════ CHECKOUT (оплата) ═══════════════ */

.checkout-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 32px 80px;
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 48px;
	align-items: start;
}

/* ── Левая колонка: итог заказа ── */
.checkout-summary {
	background: var(--bg-soft);
	border-radius: 20px;
	padding: 32px;
	position: sticky;
	top: 32px;
}
.checkout-summary-label {
	font-size: 11.5px;
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 20px;
}

.checkout-plan {
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 24px;
}
.checkout-plan-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
}
.checkout-plan-name {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}
.checkout-plan-period {
	font-size: 13px;
	color: var(--muted);
}
.checkout-plan-price {
	display: flex;
	align-items: baseline;
	gap: 3px;
	font-variant-numeric: tabular-nums;
}
.checkout-plan-currency {
	font-size: 16px;
	color: var(--muted);
	font-weight: 600;
}
.checkout-plan-num {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
}

.checkout-includes {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
}
.checkout-includes-title {
	font-size: 11.5px;
	color: var(--muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 12px;
}
.checkout-includes ul {
	list-style: none;
}
.checkout-includes li {
	padding: 6px 0 6px 22px;
	font-size: 13.5px;
	color: var(--ink-2);
	position: relative;
}
.checkout-includes li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--ok);
	font-weight: 700;
	font-size: 13px;
}

.checkout-total {
	font-variant-numeric: tabular-nums;
}
.checkout-total-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	font-size: 14px;
	color: var(--ink-3);
}
.checkout-total-final {
	padding-top: 14px;
	margin-top: 6px;
	border-top: 1px solid var(--line);
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
}

/* ── Правая колонка: форма оплаты ── */
.checkout-pay {
	max-width: 480px;
}

.checkout-methods {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 28px;
}
.checkout-method {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 12px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink-2);
	cursor: pointer;
	transition: all 0.15s;
}
.checkout-method:hover {
	border-color: var(--ink-3);
}
.checkout-method.active {
	border-color: var(--ink);
	border-width: 2px;
	padding: 13px 15px;
}
.checkout-method-name {
	font-weight: 500;
}
.checkout-method-icons {
	display: flex;
	gap: 4px;
}
.cm-icon {
	padding: 2px 6px;
	background: var(--bg-soft);
	border-radius: 4px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--ink-2);
}
.cm-visa { color: #1a1f71; }
.cm-mc   { color: #eb001b; }
.cm-mir  { color: #4d8946; }
.cm-sbp  { color: #5d3fd3; }

.checkout-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.checkout-row-2 {
	display: grid;
	grid-template-columns: 1fr 100px;
	gap: 12px;
}

.checkout-secure {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--bg-soft);
	border-radius: 10px;
	font-size: 12.5px;
	color: var(--muted);
}
.checkout-secure-icon {
	font-size: 14px;
}

.checkout-foot {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.5;
	text-align: center;
}
.checkout-foot a {
	color: var(--ink-2);
	text-decoration: underline;
	text-decoration-color: var(--faint);
	text-underline-offset: 2px;
}

/* ── Оверлей успешной оплаты ── */
.checkout-success {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}
.checkout-success-card {
	background: white;
	border-radius: 20px;
	padding: 48px;
	text-align: center;
	max-width: 380px;
	box-shadow: 0 40px 80px rgba(0,0,0,0.30);
	animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.checkout-success-icon {
	width: 64px;
	height: 64px;
	background: var(--ok);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	margin: 0 auto 20px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(22, 168, 91, 0.35);
}
.checkout-success-title {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
}
.checkout-success-sub {
	font-size: 14px;
	color: var(--ink-3);
}
@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes scaleIn {
	from { transform: scale(0.85); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}


/* ─── Адаптив для checkout ─── */
@media (max-width: 900px) {
	.checkout-main {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 20px 20px 60px;
	}
	.checkout-summary {
		position: static;
		padding: 24px;
	}
	.checkout-success-card {
		padding: 32px 24px;
		margin: 0 20px;
	}
}


/* ═══════════════ CHECKOUT v2: связь с разработчиком ═══════════════ */

.checkout-h1 {
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	margin-bottom: 14px;
}
.checkout-lead {
	font-size: 14.5px;
	color: var(--ink-3);
	line-height: 1.55;
	margin-bottom: 28px;
}
.checkout-lead b { color: var(--ink); font-weight: 600; }

.contact-methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 32px;
}
.contact-method {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 14px;
	transition: all 0.15s;
}
.contact-method:hover {
	border-color: var(--ink);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.contact-method-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	flex-shrink: 0;
}
.contact-method-body {
	flex: 1;
	min-width: 0;
}
.contact-method-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 2px;
}
.contact-method-val {
	font-size: 13px;
	color: var(--muted);
}
.contact-method-arrow {
	font-size: 14px;
	color: var(--ink-3);
	transition: transform 0.2s;
}
.contact-method:hover .contact-method-arrow {
	transform: translateX(3px);
}

.checkout-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
}
.checkout-divider::before,
.checkout-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

/* ─── Поле «активировать по ключу» ─── */
.redeem-box {
	padding: 24px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 14px;
	margin-bottom: 20px;
}
.redeem-head {
	margin-bottom: 14px;
}
.redeem-title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 4px;
}
.redeem-sub {
	font-size: 12.5px;
	color: var(--muted);
}
.redeem-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
}
.redeem-form input {
	padding: 12px 14px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 14px;
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	letter-spacing: 0.04em;
	color: var(--ink);
	transition: all 0.15s;
}
.redeem-form input:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}
.redeem-form .btn {
	padding: 12px 22px;
	white-space: nowrap;
}


/* ═══════════════ ADMIN — внешне обычный кабинет, без слова Admin ═══════════════ */

.cabinet-subtitle {
	font-size: 14px;
	color: var(--muted);
	margin-top: 0;
	margin-bottom: 40px;
}

/* ─── Статистика ─── */
.adm-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 48px;
}
.adm-stat {
	background: white;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 20px;
}
.adm-stat-label {
	font-size: 11.5px;
	color: var(--muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 8px;
}
.adm-stat-num {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

/* ─── Секции ─── */
.adm-section {
	background: white;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 28px;
	margin-bottom: 24px;
}
.adm-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line-2);
}
.adm-section-title {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.adm-section-sub {
	font-size: 12.5px;
	color: var(--muted);
}

/* ─── Генератор ключей ─── */
.adm-genkey {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}
.adm-genkey-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.adm-genkey-form label,
.adm-build-row label,
.adm-build-form > label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12.5px;
	color: var(--muted);
	font-weight: 500;
}
.adm-genkey-form select,
.adm-genkey-form input,
.adm-build-row select,
.adm-build-row input,
.adm-build-form textarea {
	padding: 11px 14px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	color: var(--ink);
	transition: all 0.15s;
}
.adm-genkey-form select:focus,
.adm-genkey-form input:focus,
.adm-build-row select:focus,
.adm-build-row input:focus,
.adm-build-form textarea:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}
.adm-genkey-form button {
	margin-top: 4px;
}

.adm-genkey-result {
	padding: 24px;
	background: white;
	border: 2px solid var(--ok);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(22, 168, 91, 0.10);
}
.adm-genkey-result.flash {
	animation: genkeyFlash 0.5s ease-out;
}
@keyframes genkeyFlash {
	0%   { transform: scale(0.96); opacity: 0; }
	60%  { transform: scale(1.01); opacity: 1; }
	100% { transform: scale(1);    opacity: 1; }
}

/* ── Большая подтверждающая плашка сверху ── */
.adm-genkey-status {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 18px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--line-2);
}
.adm-genkey-status-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	background: var(--ok);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(22, 168, 91, 0.30);
}
.adm-genkey-status-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--ok);
	letter-spacing: -0.01em;
	margin-bottom: 3px;
}
.adm-genkey-status-sub {
	font-size: 13px;
	color: var(--ink-3);
}

/* ── 3 пункта чек-листа ── */
.adm-genkey-checks {
	display: flex;
	gap: 18px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.adm-genkey-check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: var(--ink-2);
	font-weight: 500;
}
.adm-check-tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: rgba(22, 168, 91, 0.15);
	color: var(--ok);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
}

/* ── Сам ключ ── */
.adm-genkey-key {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 10px;
	margin-bottom: 16px;
}
.adm-genkey-key code {
	flex: 1;
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--ink);
}

/* ── Детали ── */
.adm-genkey-details {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 24px;
	padding: 14px 16px;
	background: var(--bg-soft);
	border-radius: 10px;
	margin-bottom: 14px;
}
.adm-genkey-details > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	padding: 4px 0;
}
.adm-genkey-details span {
	color: var(--muted);
	font-weight: 500;
}
.adm-genkey-details b {
	color: var(--ink);
	font-weight: 600;
	text-align: right;
}

/* ── Подсказка снизу ── */
.adm-genkey-hint {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: rgba(22, 168, 91, 0.08);
	border-radius: 10px;
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.45;
}
.adm-genkey-hint-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: var(--ok);
}

/* ─── Таблицы ─── */
.adm-table-wrap {
	overflow-x: auto;
}
.adm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}
.adm-table th {
	font-size: 10.5px;
	color: var(--muted);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	padding: 10px 14px 12px;
	border-bottom: 1px solid var(--line-2);
}
.adm-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--line-2);
	color: var(--ink-2);
	vertical-align: middle;
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: var(--bg-soft); }

.adm-key {
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 12.5px;
	color: var(--ink);
	letter-spacing: 0.03em;
}
.adm-muted { color: var(--muted) !important; font-size: 12.5px; }
.adm-empty {
	text-align: center;
	padding: 40px 16px !important;
	color: var(--muted);
	font-size: 13px;
}

.adm-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	background: var(--bg-soft);
	color: var(--muted);
	border: 1px solid var(--line);
}
.adm-pill-ok   { background: rgba(22, 168, 91, 0.10);   color: var(--ok);   border-color: rgba(22, 168, 91, 0.30); }
.adm-pill-warn { background: rgba(196, 120, 0, 0.10);   color: var(--warn); border-color: rgba(196, 120, 0, 0.30); }
.adm-pill-bad  { background: rgba(196, 56, 56, 0.10);   color: #c43838;     border-color: rgba(196, 56, 56, 0.30); }

.adm-tbl-actions { text-align: right; }
.adm-tbl-btn {
	padding: 5px 10px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 11.5px;
	font-family: inherit;
	font-weight: 500;
	cursor: pointer;
	color: var(--ink-2);
	transition: all 0.15s;
}
.adm-tbl-btn:hover { background: var(--ink); color: white; border-color: var(--ink); }
.adm-tbl-btn-danger { color: #c43838; }
.adm-tbl-btn-danger:hover {
	background: #c43838;
	border-color: #c43838;
	color: white;
}

/* ─── Сборки ─── */
.adm-builds {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
.adm-build-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.adm-build-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1.3fr;
	gap: 12px;
}
.adm-build-form textarea {
	min-height: 80px;
	resize: vertical;
	font-family: inherit;
}
.adm-build-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.adm-build-note {
	font-size: 12px;
	color: var(--muted);
}
.adm-builds-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.adm-builds-empty {
	padding: 40px;
	text-align: center;
	color: var(--muted);
	font-size: 13.5px;
	background: var(--bg-soft);
	border-radius: 12px;
	border: 1px dashed var(--line);
}
.adm-build {
	padding: 18px 20px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 12px;
}
.adm-build-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.adm-build-version {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-right: 10px;
}
.adm-build-plan {
	font-size: 11.5px;
	padding: 2px 8px;
	background: white;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
}
.adm-build-meta {
	display: flex;
	gap: 16px;
	font-size: 12.5px;
	color: var(--ink-3);
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.adm-build-notes {
	font-size: 13px;
	color: var(--ink-2);
	line-height: 1.55;
	white-space: pre-line;
	padding-top: 10px;
	border-top: 1px solid var(--line-2);
	margin-top: 6px;
}


/* ─── Адаптив админки ─── */
@media (max-width: 900px) {
	.adm-stats { grid-template-columns: 1fr 1fr; }
	.adm-section { padding: 20px; }
	.adm-genkey { grid-template-columns: 1fr; }
	.adm-build-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
	.adm-stats { grid-template-columns: 1fr; }
}


/* ═══════════════ АДАПТИВ ═══════════════ */
@media (max-width: 900px) {
	.auth-main {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 20px;
	}
	.auth-aside {
		min-height: 200px;
		order: 2;
		padding: 32px;
	}
	.auth-aside-quote {
		font-size: 20px;
	}
	.auth-title {
		font-size: 32px;
	}
	.cabinet-main {
		padding: 28px 20px 60px;
	}
	.cab-grid-2 {
		grid-template-columns: 1fr;
	}
	.cabinet-nav {
		padding: 14px 20px;
		gap: 12px;
	}
	.cabinet-user-pill {
		max-width: 180px;
	}
	.cabinet-user-pill span:last-child {
		display: none;
	}
	.cabinet-logout span {
		display: none;
	}
	.cab-hero {
		padding: 24px;
	}
	.cab-hero-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.cab-hero-right {
		align-items: flex-start;
	}
	.cab-hero-actions {
		justify-content: flex-start;
		width: 100%;
	}
	.cab-card {
		padding: 22px;
	}
	.cab-download-info {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

@media (max-width: 540px) {
	.cabinet-welcome {
		flex-wrap: wrap;
	}
	.cab-welcome-body {
		min-width: 0;
		width: calc(100% - 80px);
	}
	.cab-hero-actions {
		flex-direction: column;
		width: 100%;
	}
	.cab-hero-actions .btn {
		width: 100%;
		justify-content: center;
	}
	.cab-license {
		flex-direction: column;
		align-items: stretch;
	}
	.cab-license-key {
		text-align: center;
		padding: 6px 0;
	}
	.cab-copy {
		justify-content: center;
	}
}


/* ════════════════════════════════════════════════════════════════
   ПОЛИШ + РЕЖИМ «СМОТРЕТЬ КАК ПОЛЬЗОВАТЕЛЬ»
   ════════════════════════════════════════════════════════════════ */

/* мягкое появление карточек кабинета/админки */
@media (prefers-reduced-motion: no-preference) {
	.yoki-rise { animation: yokiRise .6s cubic-bezier(.22,.7,.3,1) both; }
	@keyframes yokiRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}

/* видимый фокус для клавиатуры */
.cabinet-main :where(button, a.btn, input, select, textarea):focus-visible {
	outline: 2px solid var(--accent, #0a0a0a);
	outline-offset: 2px;
}
/* лёгкий «press» у кнопок */
.btn:active { transform: translateY(0) scale(.985); }
/* плавность карточек */
.cab-card, .adm-stat, .adm-build, .adm-viewas { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .2s; }

/* ── Тест-панель в админке ── */
.adm-viewas {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	background: var(--bg-soft, #fafaf9);
	border: 1px solid var(--line, #ededed);
	border-radius: 18px;
	padding: 20px 24px;
	margin-bottom: 28px;
}
.adm-viewas:hover { border-color: var(--faint, #d4d4d4); }
.adm-viewas-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.adm-viewas-ic { font-size: 17px; line-height: 1; }
.adm-viewas-sub { font-size: 13px; color: var(--muted, #8a8a8a); margin-top: 5px; max-width: 52ch; line-height: 1.45; }
.adm-viewas-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-viewas-btn { font-size: 13px; padding: 9px 16px; }

/* ── Плашка «режим обычного пользователя» ── */
.has-viewbar { padding-bottom: 80px; }
.yoki-viewbar {
	position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
	z-index: 9999;
	display: flex; align-items: center; gap: 14px;
	padding: 10px 12px 10px 18px;
	background: rgba(10,10,10,.92);
	color: #fff;
	border-radius: 999px;
	box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	font-size: 13.5px;
	max-width: calc(100vw - 32px);
	animation: yokiBarIn .45s cubic-bezier(.34,1.4,.64,1) both;
}
@keyframes yokiBarIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.yoki-viewbar-dot {
	width: 8px; height: 8px; border-radius: 50%; background: #ffb020; flex-shrink: 0;
	animation: yokiBarDot 1.8s ease-in-out infinite;
}
@keyframes yokiBarDot { 0%,100% { box-shadow: 0 0 0 0 rgba(255,176,32,.55); } 50% { box-shadow: 0 0 0 6px rgba(255,176,32,0); } }
.yoki-viewbar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yoki-viewbar-text b { font-weight: 600; opacity: .85; }
.yoki-viewbar-btn {
	flex-shrink: 0; border: 0; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 13px;
	background: #fff; color: #0a0a0a; padding: 8px 16px; border-radius: 999px;
	transition: transform .15s, background .15s;
}
.yoki-viewbar-btn:hover { transform: translateY(-1px); background: #f0f0ee; }

@media (max-width: 600px) {
	.yoki-viewbar { width: calc(100vw - 24px); }
	.yoki-viewbar-text { font-size: 12.5px; }
	.adm-viewas-btns { width: 100%; }
	.adm-viewas-btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.yoki-viewbar, .yoki-viewbar-dot { animation: none; }
}


/* ════════════ КАСТОМНЫЕ ПОЛЯ ФОРМ АДМИНКИ ════════════ */

/* Селект: убираем нативную стрелку, ставим аккуратный шеврон */
.adm-genkey-form select,
.adm-build-row select,
.adm-build-form select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
}
.adm-genkey-form select::-ms-expand,
.adm-build-row select::-ms-expand { display: none; }
.adm-genkey-form select:focus,
.adm-build-row select:focus,
.adm-build-form select:focus {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* Поле файла: красивая кнопка вместо стандартной */
.adm-build-row input[type="file"],
.adm-build-form input[type="file"] {
	padding: 7px 8px;
	cursor: pointer;
	color: var(--muted);
	font-size: 13px;
}
.adm-build-row input[type="file"]::file-selector-button,
.adm-build-form input[type="file"]::file-selector-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--bg-soft);
	color: var(--ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .15s;
}
.adm-build-row input[type="file"]::file-selector-button:hover,
.adm-build-form input[type="file"]::file-selector-button:hover {
	background: #fff;
	border-color: var(--ink);
	transform: translateY(-1px);
}
/* запас для старого WebKit */
.adm-build-row input[type="file"]::-webkit-file-upload-button,
.adm-build-form input[type="file"]::-webkit-file-upload-button {
	margin-right: 12px;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--bg-soft);
	color: var(--ink);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}


/* ════════════ КАСТОМНАЯ ВЫПАДАШКА (admin) ════════════ */
.yoki-dd { position: relative; }
/* нативный select прячем, но оставляем для значения/формы */
.yoki-dd select {
	position: absolute; inset: 0; width: 100%; height: 100%;
	opacity: 0; pointer-events: none; margin: 0;
}
.yoki-dd-btn {
	width: 100%;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 11px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: inherit; font-size: 14px; color: var(--ink);
	text-align: left; cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.yoki-dd-btn:hover { border-color: var(--faint); }
.yoki-dd.open .yoki-dd-btn,
.yoki-dd-btn:focus-visible {
	outline: none; border-color: var(--ink);
	box-shadow: 0 0 0 4px rgba(0,0,0,.05);
}
.yoki-dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yoki-dd-chev { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform .2s ease; }
.yoki-dd.open .yoki-dd-chev { transform: rotate(180deg); }

.yoki-dd-list {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 14px 36px -10px rgba(0,0,0,.22);
	padding: 6px;
	max-height: 280px; overflow: auto;
	opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top;
	pointer-events: none;
	transition: opacity .16s ease, transform .16s cubic-bezier(.2,.8,.2,1);
}
.yoki-dd.open .yoki-dd-list { opacity: 1; transform: none; pointer-events: auto; }
.yoki-dd-opt {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 12px; border-radius: 8px;
	font-size: 14px; color: var(--ink-2); cursor: pointer;
	transition: background .12s;
}
.yoki-dd-opt:hover { background: var(--bg-soft); }
.yoki-dd-opt.sel { color: var(--ink); font-weight: 600; }
.yoki-dd-opt.sel::after { content: "✓"; font-size: 13px; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
	.yoki-dd-chev, .yoki-dd-list { transition: none; }
}


/* ════════════ КНОПКА СКАЧИВАНИЯ — зелёная, заметная (когда активна) ════════════ */
#downloadBtn:not(.cab-disabled) {
	background: rgba(22, 168, 91, 0.12);
	color: var(--ok);
	border: 1.5px solid rgba(22, 168, 91, 0.55);
	font-weight: 600;
	box-shadow: 0 6px 18px -8px rgba(22, 168, 91, 0.45);
}
#downloadBtn:not(.cab-disabled) svg { color: var(--ok); opacity: 1; }
#downloadBtn:not(.cab-disabled):hover {
	background: rgba(22, 168, 91, 0.2);
	border-color: var(--ok);
	color: var(--ok);
	transform: translateY(-1px);
	box-shadow: 0 12px 26px -10px rgba(22, 168, 91, 0.55);
}
/* лёгкая пульсация бордера — чтобы взгляд цеплялся «скачать здесь» */
@media (prefers-reduced-motion: no-preference) {
	#downloadBtn:not(.cab-disabled) { animation: dlGlow 2.6s ease-in-out infinite; }
	@keyframes dlGlow {
		0%, 100% { box-shadow: 0 6px 18px -8px rgba(22,168,91,.4), 0 0 0 0 rgba(22,168,91,.35); }
		50%      { box-shadow: 0 6px 18px -8px rgba(22,168,91,.4), 0 0 0 5px rgba(22,168,91,0); }
	}
}


/* ════════════ МОДАЛКА ВЫБОРА СИСТЕМЫ (скачивание) ════════════ */
.dl-overlay {
	position: fixed; inset: 0; z-index: 200;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	background: rgba(10,10,10,.45);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	animation: dlFade .2s ease;
}
.dl-overlay.hidden { display: none; }
@keyframes dlFade { from { opacity: 0; } to { opacity: 1; } }
.dl-modal {
	position: relative; width: 100%; max-width: 420px;
	background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px;
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.4);
	animation: dlPop .28s cubic-bezier(.34,1.4,.64,1);
}
@keyframes dlPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.dl-close {
	position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
	border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink-3);
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: background .15s, color .15s;
}
.dl-close:hover { background: var(--ink); color: #fff; }
.dl-head { margin-bottom: 20px; padding-right: 28px; }
.dl-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.dl-sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.dl-options { display: flex; flex-direction: column; gap: 10px; }
.dl-option {
	display: flex; align-items: center; gap: 14px; padding: 14px 16px;
	border: 1px solid var(--line); border-radius: 14px; color: var(--ink);
	transition: border-color .15s, background .15s, transform .15s;
}
.dl-option:hover { border-color: var(--ink); background: var(--bg-soft); transform: translateY(-1px); }
.dl-option-ic { font-size: 24px; line-height: 1; flex-shrink: 0; }
.dl-option-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dl-option-name { font-size: 15px; font-weight: 600; }
.dl-option-meta { font-size: 12px; color: var(--muted); }
.dl-option-arrow { flex-shrink: 0; color: var(--muted); font-size: 16px; }
.dl-foot { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .dl-overlay, .dl-modal { animation: none; } }


/* ════════════ Плашка «приложение без подписи» ════════════ */
.cab-dl-note {
	display: flex;
	gap: 11px;
	margin-top: 16px;
	padding: 13px 15px;
	background: rgba(196, 120, 0, 0.07);
	border: 1px solid rgba(196, 120, 0, 0.22);
	border-radius: 12px;
	font-size: 12.5px;
	color: var(--ink-2);
	line-height: 1.5;
}
.cab-dl-note-ic { flex-shrink: 0; color: var(--warn); margin-top: 1px; }
.cab-dl-note-body b { color: var(--ink); font-weight: 600; }
.cab-dl-note-os { display: block; margin-top: 5px; color: var(--ink-3); }
.cab-dl-note-os b { color: var(--ink-2); font-weight: 600; }
