/* ═══════════════════════════════════════════════════════════
   ChefMate Billing Portal — Design System v2
   Pixel-perfect alignment with the ChefMate frontend app
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens (from app lightPalette.ts) ───────────── */

:root {
	/* Primary */
	--primary-main: #8BE3FA;
	--primary-dark: #007FB8;
	--primary-accent: #2EEBFF;
	--primary-bg: #E4F9FD;

	/* Secondary */
	--secondary-main: #FFD447;
	--secondary-accent: #FFB300;
	--secondary-deep: #FF8C00;

	/* Background (matches app background tokens) */
	--bg-primary: #FFFFFF;
	--bg-secondary: #F5F5F5;
	--bg-tertiary: #E9E9E9;
	--bg-inverse: #000000;
	--bg-brand: #E4F9FD;
	--bg-overlay: rgba(0,0,0,0.5);

	/* Text */
	--text-primary: #000000;
	--text-secondary: rgba(0,0,0,0.5);
	--text-muted: #A4A1A4;
	--text-inverse: #FFFFFF;
	--text-link: #007FB8;

	/* Border (matches app border tokens) */
	--border-light: #E9E9E9;
	--border-default: #D7D7D7;
	--border-dark: #A4A1A4;
	--border-focus: #8BE3FA;

	/* Status */
	--success-main: #22C55E;
	--success-light: rgba(99,183,127,0.5);
	--success-bg: #D1FAE5;
	--success-text: #065F46;
	--error-main: #D35F5F;
	--error-light: rgba(211,95,95,0.5);
	--error-bg: #FEE2E2;
	--error-text: #991B1B;
	--warning-main: #F29C4C;
	--warning-light: rgba(242,156,76,0.5);
	--warning-bg: #FEF3C7;
	--warning-text: #92400E;
	--info-main: #8BE3FA;
	--info-bg: #E4F9FD;
	--info-text: #007FB8;

	/* Gray scale (from app) */
	--gray-50: #F5F5F5;
	--gray-100: #E9E9E9;
	--gray-200: #D7D7D7;
	--gray-400: #A4A1A4;
	--gray-600: rgba(0,0,0,0.5);

	/* Extras */
	--purple: #A07DFF;
	--pink: #FF7F7F;
	--teal: #008080;

	/* Radius (from app RADIUS constants) */
	--radius-xs: 4px;
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-xxl: 24px;
	--radius-pill: 999px;

	/* Shadows (from app shadows.ts — web boxShadow values) */
	--shadow-subtle: 0 1px 2px rgba(0,0,0,0.05);
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.10);
	--shadow: 0 2px 8px rgba(0,0,0,0.08);
	--shadow-md: 0 4px 12px rgba(0,0,0,0.12);
	--shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
	--shadow-xl: 0 12px 40px rgba(0,0,0,0.18);

	/* Font (Inter — same as app) */
	--font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Timing (from app's Animated.timing durations) */
	--duration-fast: 150ms;
	--duration-normal: 200ms;
	--duration-medium: 300ms;
	--duration-slow: 400ms;
	--ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */

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

/* Ionicons base — inherit size & color like native app */
ion-icon {
	font-size: inherit;
	color: inherit;
	vertical-align: middle;
	pointer-events: none;
}

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ── Animations (app-matching entrance + micro-interactions) */

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes slideInRight {
	from { opacity: 0; transform: translateX(24px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
	from { opacity: 0; transform: scale(0.92); }
	to   { opacity: 1; transform: scale(1); }
}

@keyframes countPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

@keyframes toastIn {
	from { opacity: 0; transform: translateY(-12px) scale(0.95); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to   { opacity: 0; transform: translateY(-12px) scale(0.95); }
}

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

@keyframes floatUp {
	from { transform: translateY(0); }
	to   { transform: translateY(-6px); }
}

@keyframes successBounce {
	0%, 100% { transform: scale(1); }
	30% { transform: scale(1.15); }
	60% { transform: scale(0.95); }
}

@keyframes progressFill {
	from { width: 0; }
}

@keyframes statusPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .5; }
}

.animate-in {
	animation: fadeInUp .5s var(--ease-out) both;
}
.animate-in-delay-1 { animation-delay: .08s; }
.animate-in-delay-2 { animation-delay: .16s; }
.animate-in-delay-3 { animation-delay: .24s; }
.animate-in-delay-4 { animation-delay: .32s; }
.animate-in-delay-5 { animation-delay: .40s; }

.animate-scale {
	animation: scaleIn .4s var(--ease-spring) both;
}

a { color: var(--text-link); text-decoration: none; transition: color var(--duration-fast); }
a:hover { text-decoration: underline; }

/* ── Toast Notifications ────────────────────────────────── */

.toast-container {
	position: fixed;
	top: 72px;
	right: 24px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border-radius: var(--radius);
	font-size: 13px;
	font-weight: 600;
	font-family: var(--font);
	background: var(--bg-primary);
	color: var(--text-primary);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border-light);
	pointer-events: auto;
	animation: toastIn .3s var(--ease-spring) both;
	max-width: 380px;
	backdrop-filter: blur(12px);
}

.toast.toast-exit {
	animation: toastOut .2s ease-in forwards;
}

.toast-success { border-left: 3px solid var(--success-main); }
.toast-error   { border-left: 3px solid var(--error-main); }
.toast-warning { border-left: 3px solid var(--warning-main); }
.toast-info    { border-left: 3px solid var(--primary-dark); }

.toast-icon { font-size: 18px; flex-shrink: 0; display: flex; align-items: center; }
.toast-body { flex: 1; line-height: 1.4; }

.toast-close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	padding: 2px;
	color: var(--text-muted);
	opacity: .6;
	transition: opacity var(--duration-fast);
}
.toast-close:hover { opacity: 1; }

/* ── Navbar ─────────────────────────────────────────────── */

.navbar {
	border-bottom: 1px solid var(--border-light);
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	background: rgba(255,255,255,0.88);
	transition: box-shadow var(--duration-normal);
}

.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	text-decoration: none;
	letter-spacing: -0.5px;
	transition: opacity var(--duration-fast);
}

.nav-logo:hover { text-decoration: none; opacity: .8; }
.nav-logo svg { width: 34px; height: 34px; }

.nav-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nav-user {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nav-right .btn {
	height: 34px;
	padding: 0 14px;
	font-size: 13px;
	border-radius: 8px;
}

/* ── Container ──────────────────────────────────────────── */

.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 40px 32px;
	flex: 1;
}

/* ── Cards (matching app Card component: bg=white, padding=lg, borderRadius=md, shadow=sm) */

.card {
	background: var(--bg-primary);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
	overflow: hidden;
	transition: box-shadow var(--duration-normal), border-color var(--duration-normal), transform var(--duration-normal);
}

.card:hover { box-shadow: var(--shadow); }

.card-header {
	padding: 18px 20px;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.card-header h2, .card-header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.2px;
}

.card-body {
	padding: 20px;
}

.card-body p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.6;
}

.card-body p:last-child { margin-bottom: 0; }

.card-footer {
	padding: 14px 20px;
	border-top: 1px solid var(--border-light);
	background: var(--gray-50);
}

/* ── Badges ─────────────────────────────────────────────── */

.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 12px;
	border-radius: var(--radius-pill);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-error   { background: var(--error-bg); color: var(--error-text); }
.badge-info    { background: var(--info-bg); color: var(--info-text); }
.badge-neutral { background: var(--gray-50); color: var(--text-secondary); }
.badge-promo  { background: linear-gradient(135deg, #dcfce7, #d1fae5); color: #15803d; }

.badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.badge-success::before { background: var(--success-main); }
.badge-warning::before { background: var(--warning-main); }
.badge-error::before   { background: var(--error-main); }
.badge-info::before    { background: var(--info-main); }
.badge-neutral::before { background: var(--text-muted); }
.badge-promo::before  { background: #22c55e; }

/* ── Buttons (matching app button.style.tsx) ─────────────── */
/* App: bg=inverse(black), borderRadius=5, fontSize=16 Inter-Bold */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 20px;
	height: 44px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--font);
	border: none;
	cursor: pointer;
	transition: all var(--duration-normal) var(--ease-smooth);
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	user-select: none;
}

.btn:hover { text-decoration: none; }

.btn:disabled {
	opacity: .5;
	cursor: not-allowed;
	transform: none !important;
}

/* Primary — matches app background.inverse style */
.btn-primary {
	background: var(--bg-inverse);
	color: var(--text-inverse);
}
.btn-primary:hover:not(:disabled) {
	background: #1a1a1a;
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}
.btn-primary:active:not(:disabled) {
	transform: translateY(0) scale(0.98);
	box-shadow: var(--shadow-sm);
}

/* CTA — blue accent for subscribe actions */
.btn-cta {
	background: var(--primary-dark);
	color: var(--text-inverse);
	position: relative;
	overflow: hidden;
}
.btn-cta::before {
	content: '';
	position: absolute;
	top: 0; left: -75%;
	width: 50%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
	transform: skewX(-20deg);
	transition: left .6s ease;
}
.btn-cta:hover::before {
	left: 125%;
}
.btn-cta:hover:not(:disabled) {
	background: #006a9c;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(0,127,184,0.25);
}
.btn-cta:active:not(:disabled) {
	transform: translateY(0) scale(0.98);
}

/* Outline — matches app lightButton */
.btn-outline {
	background: transparent;
	border: 1.5px solid var(--border-default);
	color: var(--text-primary);
}
.btn-outline:hover:not(:disabled) {
	border-color: var(--bg-inverse);
	background: rgba(0,0,0,0.03);
}

/* Ghost */
.btn-ghost {
	background: transparent;
	color: var(--text-secondary);
	border: none;
}
.btn-ghost:hover:not(:disabled) {
	background: var(--bg-secondary);
	color: var(--text-primary);
}

/* Button sizes */
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 10px; }

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

.btn-loading::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin .6s linear infinite;
}

/* Login button spinner (dark text on cyan bg) */
.btn-login.btn-loading::after {
	border-color: rgba(0,0,0,0.15);
	border-top-color: var(--text-primary);
}

.btn-outline.btn-loading::after {
	border-color: rgba(0,0,0,0.15);
	border-top-color: var(--text-primary);
}

/* ── Forms (matching app input.style.tsx EXACTLY) ────────── */
/* App: height=44, border=1px gray100, borderRadius=8, bg=gray50,
   fontSize=15 Inter-Medium, padding=12px horizontal */

.form-group {
	margin-bottom: 16px;
	position: relative;
}

.form-group label {
	display: block;
	margin-bottom: 4px;
	margin-left: 2px;
	font-weight: 500;
	font-size: 11px;
	color: var(--gray-400);
	letter-spacing: 0.01em;
	transition: color var(--duration-fast);
}

.form-group:focus-within label {
	color: var(--primary-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--gray-100);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	font-family: var(--font);
	background: var(--bg-secondary);
	color: var(--text-primary);
	transition: border-color var(--duration-normal), box-shadow var(--duration-normal), background var(--duration-normal);
	appearance: none;
	-webkit-appearance: none;
}

.form-group textarea {
	height: auto;
	min-height: 88px;
	resize: vertical;
}

.form-group select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A4A1A4' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	background-color: var(--bg-secondary);
	cursor: pointer;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
	color: var(--text-muted);
	font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-main);
	background: var(--bg-primary);
	box-shadow: 0 0 0 3px rgba(139, 227, 250, 0.15);
}

/* Error state */
.form-group.has-error input,
.form-group.has-error select {
	border-color: var(--error-main);
}

.form-group.has-error input:focus,
.form-group.has-error select:focus {
	box-shadow: 0 0 0 3px rgba(211, 95, 95, 0.15);
}

.form-error {
	font-size: 11px;
	font-weight: 500;
	color: var(--error-main);
	margin-top: 4px;
	margin-left: 2px;
}

/* Tiny variant (matching app tinyInput) */
.form-group input.input-tiny {
	height: 32px;
	padding: 4px 10px;
	font-size: 14px;
	border-radius: 6px;
}

/* ── Account Type Selector ──────────────────────────────── */
/* Matches app login accountTypeOption: borderRadius 20, borderWidth 1.5 */

.account-type-row {
	display: flex;
	gap: 10px;
	margin-bottom: 8px;
}

.account-type-pill {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	border-radius: 20px;
	border: 1.5px solid var(--gray-100);
	background: var(--bg-primary);
	cursor: pointer;
	transition: all var(--duration-normal) var(--ease-smooth);
	text-align: center;
	position: relative;
}

.account-type-pill span {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
	transition: all var(--duration-normal);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.account-type-pill ion-icon { font-size: 16px; }

/* Active state — matches app:
   backgroundColor: primary.main + '10', borderColor: primary.main */
.account-type-pill.active {
	background: rgba(139, 227, 250, 0.06);
	border-color: var(--primary-main);
}

.account-type-pill.active span {
	color: var(--primary-dark);
	font-weight: 700;
}

.account-type-pill:hover:not(.active) {
	border-color: var(--gray-200);
	background: rgba(0,0,0,0.02);
}

.account-type-pill:active {
	transform: scale(0.97);
	transition-duration: 80ms;
}

/* Account type description (below pills) */
.account-type-desc {
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	color: var(--gray-400);
	margin-bottom: 20px;
	min-height: 18px;
	transition: opacity var(--duration-fast);
}

/* ═══════════════════════════════════════════════════════════
   LOGIN — Split-Screen Layout (exact app match)
   ═══════════════════════════════════════════════════════════ */

.login-split {
	display: flex;
	height: 100vh;
	max-height: 100vh;
	background: var(--bg-primary);
	overflow: hidden;
}

/* ── Form Panel (Left) ──────────────────────────────────── */
/* App: flex:1, maxWidth 520, minWidth 420 (desktop), padding 60 */

.login-form-panel {
	flex: 1;
	max-width: 520px;
	min-width: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px;
	background: var(--bg-primary);
	overflow-y: auto;
}

.login-form-inner {
	width: 100%;
	max-width: 420px;
	animation: fadeInUp .5s var(--ease-out) both;
}

/* ── Logo Section (matches app: toque 44×44 + "ChefMate" text) */

.login-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 32px;
}

.login-logo-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	overflow: hidden;
	flex-shrink: 0;
}

.login-logo-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.login-logo-text {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.5px;
}

/* ── Welcome Text ───────────────────────────────────────── */

.login-welcome h1 {
	margin: 0 0 4px;
	font-size: 25px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.login-welcome p {
	margin: 0 0 24px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gray-600);
	line-height: 1.5;
}

/* ── Forgot Password Link ───────────────────────────────── */

.forgot-link {
	display: block;
	text-align: right;
	margin: -8px 0 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--primary-dark);
	text-decoration: none;
	cursor: pointer;
	transition: opacity var(--duration-fast);
}

.forgot-link:hover {
	opacity: 0.7;
	text-decoration: none;
}

/* ── Login Primary Button (matches app: h52, r12, bg primary.main) */

.btn-login {
	height: 52px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	background: var(--primary-main);
	color: var(--text-primary);
	letter-spacing: -0.2px;
}

.btn-login:hover:not(:disabled) {
	background: #78d8f0;
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(139, 227, 250, 0.30);
}

.btn-login:active:not(:disabled) {
	transform: translateY(0) scale(0.98);
}

/* ── Legal Footer ───────────────────────────────────────── */

.login-legal {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 32px;
	flex-wrap: wrap;
}

.login-legal a {
	font-size: 11px;
	font-weight: 500;
	color: var(--gray-400);
	text-decoration: none;
	transition: color var(--duration-fast);
}

.login-legal a:hover {
	color: var(--text-link);
}

/* ═══════════════════════════════════════════════════════════
   LOGIN — Decorative Panel (Right) — Feature Showcase
   Matches app: flex 1.2, white bg, borderLeft 1px gray100,
   vertical scrolling feature carousel with fade overlays
   ═══════════════════════════════════════════════════════════ */

.login-deco-panel {
	flex: 1.2;
	display: flex;
	flex-direction: column;
	background: var(--bg-primary);
	border-left: 1px solid var(--gray-100);
	position: relative;
	overflow: hidden;
	height: 100vh;
	max-height: 100vh;
}

/* Showcase header (above carousel) */
.showcase-header {
	padding: 48px 40px 24px;
	text-align: center;
	position: relative;
	z-index: 2;
}

.showcase-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 6px;
	letter-spacing: -0.5px;
}

.showcase-subtitle {
	font-size: 13px;
	font-weight: 500;
	color: var(--gray-600);
	margin: 0;
	max-width: 360px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* Carousel container — vertical auto-scroll */
.showcase-carousel {
	flex: 1;
	position: relative;
	overflow: hidden;
}

.showcase-track {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 0 40px;
	animation: carouselScroll var(--carousel-duration, 48s) linear infinite;
}

@keyframes carouselScroll {
	0%   { transform: translateY(0); }
	100% { transform: translateY(calc(-1 * var(--carousel-height, 50%))); }
}

/* Fade overlays (top/bottom) — matches app LinearGradient */
.showcase-fade-top,
.showcase-fade-bottom {
	position: absolute;
	left: 0; right: 0;
	height: 80px;
	z-index: 2;
	pointer-events: none;
}

.showcase-fade-top {
	top: 0;
	background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.showcase-fade-bottom {
	bottom: 0;
	background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* Feature cards — matches app featureCard: r16, p16, shadow 0 2px 8px 0.04 */
.feature-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	background: var(--bg-primary);
	border-radius: 16px;
	border: 1px solid var(--gray-100);
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	transition: all var(--duration-normal);
	flex-shrink: 0;
}

.feature-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

/* Feature icon circle — matches app: 48×48, borderRadius 14 */
.feature-icon-circle {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 22px;
	/* Tint bg set inline via style="background:..." */
}

.feature-card-body {
	flex: 1;
	min-width: 0;
}

.feature-card-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 3px;
	letter-spacing: -0.1px;
}

.feature-card-desc {
	font-size: 12px;
	font-weight: 500;
	color: var(--gray-600);
	margin: 0;
	line-height: 1.5;
}

/* Showcase footer */
.showcase-footer {
	padding: 16px 40px 24px;
	text-align: center;
	font-size: 11px;
	font-weight: 500;
	color: var(--gray-400);
	position: relative;
	z-index: 2;
}

/* ── Login Loading Overlay (matches app: full-screen, z9999) */

.login-loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255,255,255,0.95);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	animation: fadeIn .2s ease both;
}

.login-loading-overlay img {
	width: 80px;
	height: 80px;
	margin-bottom: 20px;
}

.login-loading-overlay .spinner {
	width: 28px;
	height: 28px;
	border: 3px solid var(--gray-100);
	border-top-color: var(--primary-dark);
	border-radius: 50%;
	animation: spin .7s linear infinite;
}

.login-loading-overlay p {
	margin-top: 16px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-secondary);
}

/* ── Login Alerts ───────────────────────────────────────── */

.alert {
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
	animation: scaleIn .3s var(--ease-spring) both;
}

.alert-error {
	background: var(--error-bg);
	color: var(--error-text);
	border: 1px solid rgba(211, 95, 95, 0.15);
}

.alert-success {
	background: var(--success-bg);
	color: var(--success-text);
	border: 1px solid rgba(34, 197, 94, 0.15);
}

.alert-info {
	background: var(--info-bg);
	color: var(--info-text);
	border: 1px solid rgba(139, 227, 250, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════ */

.dashboard-header {
	background: linear-gradient(135deg, #f8fdff 0%, #eef9ff 50%, #f3f0ff 100%);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 36px 32px;
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
}
.dashboard-header::before {
	content: '';
	position: absolute;
	top: -60%; left: -20%; width: 140%; height: 140%;
	background: radial-gradient(ellipse at 30% 20%, rgba(139,227,250,0.08) 0%, transparent 60%),
				radial-gradient(ellipse at 70% 80%, rgba(160,125,255,0.06) 0%, transparent 60%);
	pointer-events: none;
}

.dashboard-header h1 {
	font-size: 25px;
	font-weight: 800;
	margin: 0 0 4px;
	letter-spacing: -0.5px;
	color: var(--text-primary);
	line-height: 1.2;
	position: relative;
}

.dashboard-header p {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.5;
	position: relative;
}

/* ── Status Section (landing style) ──────────────────────── */

.status-section {
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 28px 28px 24px;
	margin-bottom: 24px;
}

.status-section-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.status-section-icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--text-secondary);
}

.status-section-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: var(--text-primary);
}

.status-section-subtitle {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	margin: 2px 0 0;
}

.status-stats-row {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.status-stat-card {
	flex: 1;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}

.status-stat-card--wide {
	flex: 2;
	justify-content: center;
}

.status-stat-number {
	font-size: 26px;
	font-weight: 800;
	color: var(--text-primary);
	line-height: 1;
	letter-spacing: -1px;
}

.status-stat-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}

.status-stat-sub {
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
	margin-top: 4px;
}

.status-stat-card .trial-progress {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.status-info-bar {
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
	padding: 12px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.status-info-bar--warning {
	background: var(--warning-bg);
	color: var(--warning-text);
}

.status-info-bar--error {
	background: var(--error-bg);
	color: var(--error-text);
}

.status-info-bar--promo {
	background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(22,163,74,0.04));
	color: #15803d;
	font-weight: 600;
}

.status-actions {
	margin-top: 16px;
	display: flex;
	gap: 10px;
}

.status-actions .btn ion-icon {
	margin-right: 6px;
}

/* ── Subscription Detail Grid ────────────────────────────── */

.sub-detail-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}

.sub-detail-grid--2 {
	grid-template-columns: 1fr 1fr;
}

.sub-detail-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	transition: box-shadow var(--duration-fast);
}

.sub-detail-card:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sub-detail-card-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--gray-50);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--primary-dark);
	flex-shrink: 0;
}

.sub-detail-card-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.sub-detail-card-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	margin-bottom: 3px;
}

.sub-detail-card-value {
	font-size: 18px;
	font-weight: 800;
	color: var(--text-primary);
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.sub-detail-card-value small {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	margin-left: 2px;
}

.sub-detail-card-sub {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	margin-top: 2px;
}

/* ── Summary rows ────────────────────────────────────────── */

.sub-detail-summary {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.sub-detail-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 16px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-light);
}

.sub-detail-summary-row:last-child {
	border-bottom: none;
}

.sub-detail-summary-row > span {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sub-detail-summary-row > span ion-icon {
	font-size: 16px;
	color: var(--text-muted);
}

.sub-detail-summary-row > strong {
	font-weight: 700;
	color: var(--text-primary);
}

.sub-detail-manage-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--primary-dark);
	font-weight: 600;
	cursor: pointer;
	font-size: 13px;
	transition: color var(--duration-fast);
}

.sub-detail-manage-link:hover {
	color: var(--primary-main);
}

.sub-detail-manage-link ion-icon {
	font-size: 13px;
}

/* ── Engagement Timeline ────────────────────────────────── */

.sub-engagement-timeline {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 0;
	margin-bottom: 16px;
	overflow: hidden;
}

.sub-engagement-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px 12px;
	position: relative;
	border-right: 1px solid var(--border-color);
}

.sub-engagement-step:last-child {
	border-right: none;
}

.sub-engagement-step-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--text-muted);
	margin-bottom: 10px;
	flex-shrink: 0;
	opacity: 0.4;
}

.sub-engagement-step--active .sub-engagement-step-dot {
	background: var(--primary-dark);
	opacity: 1;
	box-shadow: 0 0 0 4px rgba(0, 127, 184, 0.15);
}

.sub-engagement-step--done .sub-engagement-step-dot {
	background: #16a34a;
	opacity: 1;
}

.sub-engagement-step-content {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sub-engagement-step-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-primary);
}

.sub-engagement-step--active .sub-engagement-step-label {
	color: var(--primary-dark);
}

.sub-engagement-step--done .sub-engagement-step-label {
	color: #16a34a;
}

.sub-engagement-step-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-primary);
}

.sub-engagement-step-price small {
	font-weight: 400;
	color: var(--text-muted);
	font-size: 11px;
}

/* ── Invoice Section (landing style) ────────────────────── */

.invoice-section {
	margin-top: 24px;
}

.invoice-section-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
}

.invoice-section-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--text-secondary);
	flex-shrink: 0;
}

.invoice-section-text {
	flex: 1;
}

.invoice-section-text h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 2px;
	color: var(--text-primary);
}

.invoice-section-text p {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	margin: 0;
}

.invoice-section .btn ion-icon {
	margin-right: 6px;
}

/* ── Trial Info ─────────────────────────────────────────── */

.trial-info {
	text-align: center;
	padding: 8px 0;
}

.trial-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 16px;
}

.trial-days {
	font-size: 60px;
	font-weight: 800;
	color: var(--primary-dark);
	line-height: 1;
	letter-spacing: -3px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary-accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: countPulse 2s ease-in-out;
}

.trial-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.trial-info p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* Trial progress bar */
.trial-progress {
	width: 100%;
	max-width: 280px;
	height: 4px;
	background: var(--gray-100);
	border-radius: 2px;
	margin: 12px auto 18px;
	overflow: hidden;
}

.trial-progress-bar {
	height: 100%;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--primary-dark), var(--primary-accent));
	transition: width 1s var(--ease-smooth);
	animation: progressFill 1.5s var(--ease-smooth);
}

/* ── Plans Section ──────────────────────────────────────── */

.plans-section {
	margin-top: 36px;
}

.plans-section-header {
	text-align: center;
	margin-bottom: 32px;
}

.plans-promo-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	background: linear-gradient(135deg, #dcfce7, #d1fae5);
	color: #15803d;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: 0.02em;
}

.plans-promo-tag ion-icon {
	font-size: 16px;
}

.plans-section-header h2 {
	font-size: 25px;
	font-weight: 800;
	margin: 0 0 6px;
	color: var(--text-primary);
	letter-spacing: -0.5px;
}

.plans-section-header p {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-muted);
	margin: 0;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* ── Two-tier Grid ──────────────────────────────────────── */

.plans-showcase {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}

.plans-showcase--single {
	grid-template-columns: 1fr;
	max-width: 480px;
	margin: 0 auto;
}

/* ── Plan Tier Card ─────────────────────────────────────── */

.plan-tier {
	background: var(--bg-primary);
	border-radius: var(--radius-xl);
	border: 1px solid var(--border-light);
	overflow: hidden;
	transition: all var(--duration-medium) var(--ease-smooth);
	position: relative;
}

.plan-tier:hover {
	border-color: var(--border-default);
	box-shadow: var(--shadow-md);
	transform: translateY(-4px) scale(1.005);
}

.plan-tier:active {
	transform: translateY(-1px) scale(0.995);
	transition-duration: 100ms;
}

.plan-tier.plan-tier--hq {
	border-color: var(--primary-main);
	box-shadow: 0 4px 16px rgba(0,127,184,0.08);
}

.plan-tier.plan-tier--hq::before {
	content: 'Recommandé';
	position: absolute;
	top: 14px;
	right: 14px;
	background: var(--bg-inverse);
	color: var(--text-inverse);
	font-size: 10px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	z-index: 2;
}

/* ── Plan Header ────────────────────────────────────────── */

.plan-tier-header {
	padding: 28px 24px 22px;
	text-align: center;
}

.plan-tier-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin: 0 auto 14px;
}

.plan-tier:not(.plan-tier--hq) .plan-tier-icon {
	background: var(--primary-bg);
}

.plan-tier--hq .plan-tier-icon {
	background: linear-gradient(135deg, var(--primary-bg), #CCF3FF);
}

.plan-tier-name {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 2px;
	color: var(--text-primary);
	letter-spacing: -0.3px;
}

.plan-tier-tagline {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	margin: 0 0 18px;
	line-height: 1.5;
}

.dashboard-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	position: relative;
}

.dashboard-open-app-btn {
	flex-shrink: 0;
	height: 40px;
	padding: 0 14px;
	font-size: 13px;
}

/* ── Billing Toggle (monthly / annual) ────────────────── */

.billing-toggle {
	display: flex;
	background: var(--bg-secondary);
	border-radius: 10px;
	padding: 3px;
	gap: 0;
	margin: 0 auto 8px;
	max-width: 280px;
}

.billing-toggle-btn {
	flex: 1;
	padding: 8px 6px;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	font-family: var(--font);
	color: var(--text-muted);
	cursor: pointer;
	transition: all var(--duration-normal);
	text-align: center;
	line-height: 1.3;
}

.billing-toggle-btn--active {
	background: var(--primary-main);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 127, 184, 0.20);
}

.billing-toggle-btn:hover:not(.billing-toggle-btn--active) {
	color: var(--text-primary);
}

.billing-toggle-badge {
	display: inline-block;
	background: var(--success-bg);
	color: var(--success-text);
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: var(--radius-pill);
	margin-left: 4px;
	letter-spacing: 0.02em;
	vertical-align: middle;
}

/* ── Price Detail Labels ────────────────────────────────── */

.plan-tier-ht {
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
	align-self: flex-end;
	margin-bottom: 6px;
}

.plan-tier-ttc {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 4px;
	font-weight: 500;
}

.plan-tier-annual-total {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
	font-weight: 500;
}

.plan-tier-savings {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	padding: 3px 10px;
	background: var(--success-bg);
	color: var(--success-text);
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 700;
}

.plan-tier-savings ion-icon {
	font-size: 14px;
}

.plan-tier-tva-info {
	padding: 8px 24px;
	font-size: 11px;
	color: var(--text-muted);
	text-align: center;
	border-bottom: 1px solid var(--border-light);
}

/* ── Pricing Display ────────────────────────────────────── */

.plan-tier-pricing {
	padding: 22px 24px;
	text-align: center;
	border-bottom: 1px solid var(--border-light);
}

.plan-tier-promo-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 14px;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: white;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px;
	letter-spacing: 0.01em;
}

.plan-tier-promo-badge ion-icon {
	font-size: 15px;
}

.plan-tier-amount-old {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-muted);
	text-decoration: line-through;
	margin-right: 6px;
	opacity: 0.6;
}

.plan-tier-price-row {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 3px;
}

.plan-tier-amount {
	font-size: 44px;
	font-weight: 800;
	color: var(--text-primary);
	letter-spacing: -2px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	transition: all var(--duration-medium) var(--ease-spring);
}

.plan-tier-amount.price-changing {
	animation: countPulse .4s var(--ease-spring);
}

.plan-tier-currency {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-muted);
}

.plan-tier-period {
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
	margin-top: 2px;
	transition: opacity var(--duration-fast);
}

.plan-tier-total {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
	font-weight: 500;
}

.plan-tier-total s {
	color: var(--error-main);
	text-decoration: line-through;
	margin-right: 2px;
}

/* ── Promo Timeline ──────────────────────────────────────── */

.plan-tier-timeline {
	padding: 0 24px 20px;
	border-bottom: 1px solid var(--border-light);
}

.promo-step {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 4px;
	transition: background var(--duration-fast);
	position: relative;
}

.promo-step:last-child {
	margin-bottom: 0;
}

.promo-step:not(:last-child)::after {
	content: '';
	position: absolute;
	left: 31px;
	top: 44px;
	height: 12px;
	width: 2px;
	background: var(--border-medium);
}

.promo-step--free {
	background: rgba(34, 197, 94, 0.06);
}

.promo-step-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: var(--gray-50);
	color: var(--text-secondary);
	font-size: 16px;
}

.promo-step--free .promo-step-icon {
	background: rgba(34, 197, 94, 0.12);
	color: #16a34a;
}

.promo-step-content {
	flex: 1;
	min-width: 0;
}

.promo-step-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.01em;
}

.promo-step-desc {
	display: block;
	font-size: 12px;
	color: var(--text-muted);
	font-weight: 500;
}

.promo-step-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	white-space: nowrap;
	flex-shrink: 0;
}

.promo-step--free .promo-step-price {
	color: #16a34a;
}

.promo-step-price small {
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
}

/* ── CTA ────────────────────────────────────────────────── */

.plan-tier-cta {
	padding: 0 24px 24px;
}

.plan-tier-cta .btn {
	margin-top: 18px;
	border-radius: 10px;
}

.plan-tier-cta-sub {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 11.5px;
	color: var(--text-muted);
	margin-top: 10px;
	font-weight: 500;
}

.plan-tier-cta-sub ion-icon {
	font-size: 13px;
	opacity: 0.7;
}

.plan-tier--hq .plan-tier-cta .btn-cta {
	background: var(--bg-inverse);
	color: var(--text-inverse);
}

.plan-tier--hq .plan-tier-cta .btn-cta:hover:not(:disabled) {
	background: #1a1a1a;
	box-shadow: var(--shadow-md);
}

/* ── Feature Categories ─────────────────────────────────── */

.plan-tier-features {
	padding: 0 24px 24px;
}

.feature-category {
	margin-bottom: 18px;
}

.feature-category:last-child {
	margin-bottom: 0;
}

.feature-category-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.feature-category-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	flex-shrink: 0;
}

.plan-tier--hq .feature-category-icon {
	background: var(--primary-bg);
}

.feature-category-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.1px;
}

.feature-category-items {
	list-style: none;
	padding: 0;
	margin: 0;
	padding-left: 36px;
}

.feature-category-items li {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	padding: 2px 0;
	line-height: 1.5;
	position: relative;
}

.feature-category-items li::before {
	content: '';
	position: absolute;
	left: -16px;
	top: 8px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gray-200);
}

.plan-tier--hq .feature-category-items li::before {
	background: var(--primary-main);
}

/* ── Trust Badges ───────────────────────────────────────── */

.trust-section {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 36px;
	flex-wrap: wrap;
}

.trust-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-muted);
	animation: fadeInUp .4s var(--ease-out) both;
}

.trust-badge:nth-child(1) { animation-delay: .1s; }
.trust-badge:nth-child(2) { animation-delay: .2s; }
.trust-badge:nth-child(3) { animation-delay: .3s; }
.trust-badge:nth-child(4) { animation-delay: .4s; }

.trust-badge-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
	transition: transform var(--duration-normal);
}

.trust-badge:hover .trust-badge-icon {
	transform: scale(1.1);
}

/* ── Pricing FAQ (inline) ───────────────────────────────── */

.pricing-faq {
	margin-top: 44px;
}

.pricing-faq-header {
	text-align: center;
	margin-bottom: 20px;
}

.pricing-faq-header h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
	letter-spacing: -0.3px;
}

.pricing-faq-header p {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	margin: 0;
}

.pricing-faq-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.pricing-faq-card {
	background: var(--bg-secondary);
	border: 1px solid transparent;
	border-radius: var(--radius);
	padding: 20px;
	transition: all var(--duration-medium) var(--ease-smooth);
	cursor: default;
}

.pricing-faq-card:hover {
	background: var(--bg-primary);
	border-color: var(--border-light);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.pricing-faq-card h4 {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--text-primary);
}

.pricing-faq-card p {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.6;
}

/* ── Contact CTA ────────────────────────────────────────── */

.pricing-contact {
	margin-top: 44px;
	padding: 40px 32px;
	background: var(--bg-inverse);
	border-radius: var(--radius-xl);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.pricing-contact::before {
	content: '';
	position: absolute;
	top: -60%;
	right: -20%;
	width: 350px;
	height: 350px;
	border-radius: 50%;
	background: rgba(139, 227, 250, 0.05);
}

.pricing-contact::after {
	content: '';
	position: absolute;
	bottom: -40%;
	left: -15%;
	width: 250px;
	height: 250px;
	border-radius: 50%;
	background: rgba(46, 235, 255, 0.03);
}

.pricing-contact-inner {
	position: relative;
	z-index: 1;
}

.pricing-contact h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-inverse);
	margin: 0 0 6px;
	letter-spacing: -0.3px;
}

.pricing-contact p {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255,255,255,0.5);
	margin: 0 0 22px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.pricing-contact-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.pricing-contact .btn-contact-primary {
	height: 44px;
	padding: 0 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	font-family: var(--font);
	background: var(--bg-primary);
	color: var(--text-primary);
	border: none;
	cursor: pointer;
	transition: all var(--duration-normal);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pricing-contact .btn-contact-primary:hover {
	background: var(--bg-secondary);
	text-decoration: none;
	transform: translateY(-1px);
}

.pricing-contact .btn-contact-secondary {
	height: 44px;
	padding: 0 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--font);
	background: transparent;
	color: rgba(255,255,255,0.7);
	border: 1.5px solid rgba(255,255,255,0.15);
	cursor: pointer;
	transition: all var(--duration-normal);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pricing-contact .btn-contact-secondary:hover {
	border-color: rgba(255,255,255,0.3);
	color: var(--text-inverse);
	background: rgba(255,255,255,0.05);
	text-decoration: none;
}

/* ── License Section — Landing Page Style ───────────────── */

.license-section { margin-top: 32px; }

.license-hero {
	background: linear-gradient(135deg, #f8fdff 0%, #eef9ff 50%, #f3f0ff 100%);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 48px 40px 44px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.license-hero::before {
	content: '';
	position: absolute;
	top: -60%;
	left: -20%;
	width: 140%;
	height: 140%;
	background: radial-gradient(ellipse at 30% 20%, rgba(139,227,250,0.08) 0%, transparent 60%),
				radial-gradient(ellipse at 70% 80%, rgba(160,125,255,0.06) 0%, transparent 60%);
	pointer-events: none;
}
.license-hero-badge {
	display: inline-block;
	background: rgba(0, 0, 0, 0.06);
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 6px 16px;
	border-radius: 20px;
	margin-bottom: 20px;
	position: relative;
}
.license-hero-title {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--text-primary);
	margin: 0 0 14px;
	position: relative;
	max-width: 580px;
	margin-left: auto;
	margin-right: auto;
}
.license-hero-subtitle {
	font-size: 15px;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
}

/* Active hero variant */
.license-hero--active {
	background: var(--bg-primary);
	text-align: left;
	padding: 28px 32px 32px;
}
.license-hero--active::before { display: none; }
.license-hero-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}
.license-hero-icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--bg-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
}
.license-hero-header .license-hero-title {
	font-size: 20px;
	margin: 0;
	max-width: none;
}
.license-hero-header .license-hero-subtitle {
	font-size: 13px;
	margin: 2px 0 0;
	max-width: none;
}

/* Gauge row */
.license-gauge-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 16px;
}
.license-gauge-card,
.license-stat-card {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.license-gauge-ring {
	width: 72px;
	height: 72px;
	position: relative;
}
.license-gauge-svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.license-gauge-bg {
	fill: none;
	stroke: var(--gray-100);
	stroke-width: 3;
}
.license-gauge-fill {
	fill: none;
	stroke: var(--primary-main);
	stroke-width: 3;
	stroke-linecap: round;
	transition: stroke-dasharray 1s var(--ease-spring);
}
.license-gauge-number {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 16px;
	font-weight: 700;
	color: var(--text-primary);
}
.license-gauge-label,
.license-stat-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}
.license-stat-number {
	font-size: 28px;
	font-weight: 800;
	color: var(--text-primary);
}
.license-stat-number--available {
	color: var(--success);
}
.license-info-bar {
	background: var(--bg-secondary);
	border-radius: var(--radius-sm);
	padding: 10px 16px;
	font-size: 13px;
	color: var(--text-secondary);
}

/* Benefits grid */
.license-benefits {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 24px;
}
.license-benefit-card {
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	padding: 16px 14px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	transition: transform var(--duration-normal), box-shadow var(--duration-normal);
}
.license-benefit-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}
.license-benefit-icon {
	width: 34px;
	height: 34px;
	min-width: 34px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}
.license-benefit-icon ion-icon { font-size: 16px; }
.license-benefit-card:nth-child(1) .license-benefit-icon { color: #22c55e; }
.license-benefit-card:nth-child(2) .license-benefit-icon { color: #007FB8; }
.license-benefit-card:nth-child(3) .license-benefit-icon { color: #A07DFF; }
.license-benefit-card:nth-child(4) .license-benefit-icon { color: #F29C4C; }
.license-benefit-card h4 {
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 2px;
	color: var(--text-primary);
	line-height: 1.3;
}
.license-benefit-card p {
	font-size: 11px;
	line-height: 1.4;
	color: var(--text-secondary);
	margin: 0;
}

/* Pricing tiers */
.license-pricing-section {
	margin-top: 32px;
}
.license-pricing-title {
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 24px;
	color: var(--text-primary);
}
.license-tiers {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
}
.license-tier-card {
	background: var(--bg-primary);
	border: 1.5px solid var(--border-light);
	border-radius: var(--radius-md);
	padding: 24px 14px 22px;
	text-align: center;
	transition: all var(--duration-normal) var(--ease-out);
	position: relative;
	cursor: default;
}
.license-tier-card:hover {
	border-color: var(--primary-main);
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}
.license-tier-card--popular {
	border-color: var(--primary-main);
	box-shadow: 0 0 0 2px rgba(139,227,250,0.18);
}
.license-tier-popular {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary-main);
	color: var(--text-primary);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 3px 12px;
	border-radius: 10px;
	white-space: nowrap;
}
.license-tier-card--active {
	border-color: var(--primary-main);
	background: rgba(139,227,250,0.04);
	box-shadow: 0 0 0 3px rgba(139,227,250,0.12);
	transform: translateY(-4px);
}
.license-tier-range {
	font-size: 20px;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 2px;
}
.license-tier-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 14px;
}
.license-tier-price {
	font-size: 26px;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 4px;
}
.license-tier-price span {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
}
.license-tier-discount {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 4px;
}
.license-tier-savings {
	font-size: 11px;
	font-weight: 600;
	color: var(--success);
	margin-top: 4px;
}

/* Calculator */
.license-calculator {
	margin-top: 32px;
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.license-calc-header {
	padding: 28px 32px 0;
}
.license-calc-header h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 6px;
}
.license-calc-header p {
	font-size: 13px;
	color: var(--text-secondary);
	margin: 0;
}
.license-calc-body {
	padding: 24px 32px 32px;
}
.license-calc-slider-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.license-calc-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	white-space: nowrap;
}
.license-calc-range {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, var(--primary-main) var(--fill, 3%), var(--gray-100) var(--fill, 3%));
	outline: none;
	cursor: pointer;
	transition: background var(--duration-fast);
}
.license-calc-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bg-primary);
	border: 2.5px solid var(--primary-main);
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	cursor: grab;
	transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.license-calc-range::-webkit-slider-thumb:hover {
	transform: scale(1.15);
	box-shadow: 0 2px 10px rgba(139,227,250,0.3);
}
.license-calc-range::-webkit-slider-thumb:active {
	cursor: grabbing;
	transform: scale(1.1);
}
.license-calc-range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bg-primary);
	border: 2.5px solid var(--primary-main);
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	cursor: grab;
}
.license-calc-qty-display {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
}
.license-calc-results {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.license-calc-result-card {
	background: var(--bg-secondary);
	border-radius: var(--radius-md);
	padding: 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: transform var(--duration-fast);
}
.license-calc-result-card:hover {
	transform: translateY(-2px);
}
.license-calc-result-card--primary {
	background: linear-gradient(135deg, rgba(139,227,250,0.12), rgba(139,227,250,0.04));
	border: 1px solid rgba(139,227,250,0.25);
}
.license-calc-result-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-muted);
}
.license-calc-result-value {
	font-size: 28px;
	font-weight: 800;
	color: var(--text-primary);
	transition: all var(--duration-normal);
}
.license-calc-result-value--savings {
	color: var(--success);
}
.license-calc-result-sub {
	font-size: 12px;
	color: var(--text-muted);
	font-weight: 500;
}

/* CTA section */
.license-cta-section {
	margin-top: 32px;
}
.license-cta-card {
	background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
	border-radius: var(--radius-lg);
	padding: 40px 36px;
	display: flex;
	align-items: center;
	gap: 40px;
	color: #fff;
}
.license-cta-content {
	flex: 1;
}
.license-cta-content h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
}
.license-cta-content p {
	font-size: 14px;
	color: rgba(255,255,255,0.65);
	margin: 0;
	line-height: 1.5;
}
.license-cta-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 260px;
}
.license-cta-qty-row {
	display: flex;
	gap: 10px;
}
.license-cta-form .inline-select,
.license-cta-form .inline-input {
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.15);
	color: #fff;
}
.license-cta-form .inline-select:focus,
.license-cta-form .inline-input:focus {
	background: rgba(255,255,255,0.14);
	border-color: var(--primary-main);
}
.license-cta-form .inline-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
}

/* License list (active state) */
.license-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.license-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-light);
	font-size: 13px;
	font-weight: 500;
	gap: 8px;
	flex-wrap: wrap;
	transition: background var(--duration-fast);
}
.license-list li:last-child { border-bottom: none; }
.license-list li:hover {
	background: var(--bg-secondary);
	margin: 0 -20px;
	padding-left: 20px;
	padding-right: 20px;
	border-radius: var(--radius-sm);
}

/* ── Inline form elements ───────────────────────────────── */

.inline-input {
	height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--gray-100);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	font-family: var(--font);
	background: var(--bg-secondary);
	color: var(--text-primary);
	transition: border-color var(--duration-normal), box-shadow var(--duration-normal), background var(--duration-normal);
}

.inline-input:focus {
	outline: none;
	border-color: var(--primary-main);
	background: var(--bg-primary);
	box-shadow: 0 0 0 3px rgba(139, 227, 250, 0.15);
}

.inline-select {
	height: 44px;
	padding: 8px 36px 8px 12px;
	border: 1px solid var(--gray-100);
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	font-family: var(--font);
	background: var(--bg-secondary);
	color: var(--text-primary);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A4A1A4' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
	transition: border-color var(--duration-normal), box-shadow var(--duration-normal), background var(--duration-normal);
}

.inline-select:focus {
	outline: none;
	border-color: var(--primary-main);
	background: var(--bg-primary);
	box-shadow: 0 0 0 3px rgba(139, 227, 250, 0.15);
}

/* ── Sub-section headings ───────────────────────────────── */

.subsection-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 10px;
}

.text-muted {
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 500;
}

/* ── Support / FAQ ──────────────────────────────────────── */

.support-page h1 {
	font-size: 25px;
	font-weight: 700;
	margin: 0 0 4px;
	letter-spacing: -0.5px;
}

.support-page > .subtitle {
	margin-bottom: 28px;
}

.subtitle {
	color: var(--text-muted);
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.faq {
	margin: 0 0 36px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.faq-item {
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-sm);
	overflow: hidden;
	transition: all var(--duration-normal);
}

.faq-item:hover { border-color: var(--border-default); }

.faq-item[open] {
	box-shadow: var(--shadow-sm);
	border-color: var(--border-default);
}

.faq-item summary {
	padding: 14px 18px;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	user-select: none;
	transition: background var(--duration-fast);
}

.faq-item summary:hover { background: var(--bg-secondary); }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
	content: '';
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--bg-secondary);
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A4A1A4' d='M6 2.5v7M2.5 6h7' stroke='%23A4A1A4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	transition: transform var(--duration-normal);
}

.faq-item[open] summary::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath stroke='%23007FB8' stroke-width='1.5' stroke-linecap='round' d='M2.5 6h7'/%3E%3C/svg%3E");
	background-color: var(--primary-bg);
}

.faq-content {
	padding: 0 18px 18px;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.7;
	animation: fadeInUp .3s var(--ease-out) both;
}

.faq-content p, .faq-content li { font-size: 13px; }
.faq-content ol, .faq-content ul { padding-left: 18px; }

.contact-cta {
	text-align: center;
	padding: 36px 28px;
	background: var(--bg-secondary);
	border-radius: var(--radius);
	border: 1px solid transparent;
}

.contact-cta h2 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
}

.contact-cta p {
	color: var(--text-muted);
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 500;
}

/* ── Success Page ───────────────────────────────────────── */

.success-page {
	text-align: center;
	padding: 48px 0;
}

.success-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: var(--success-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 22px;
	font-size: 36px;
	animation: successBounce .6s var(--ease-spring);
	position: relative;
}

.success-icon::after {
	content: '';
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid var(--success-main);
	opacity: 0;
	animation: successRing 1s .3s var(--ease-out) forwards;
}

@keyframes successRing {
	from { transform: scale(0.8); opacity: .5; }
	to   { transform: scale(1.3); opacity: 0; }
}

.success-page h1 {
	margin: 0 0 8px;
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.success-page p {
	color: var(--text-muted);
	max-width: 420px;
	margin: 0 auto 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.success-actions {
	margin-top: 28px;
}

/* ── Skeleton Loading States ────────────────────────────── */

.skeleton {
	background: linear-gradient(90deg, var(--gray-50) 25%, var(--gray-100) 50%, var(--gray-50) 75%);
	background-size: 400% 100%;
	animation: shimmer 1.5s ease infinite;
	border-radius: 6px;
	height: 16px;
}

.skeleton-line { width: 100%; height: 14px; margin-bottom: 8px; }
.skeleton-line-short { width: 60%; height: 14px; margin-bottom: 8px; }
.skeleton-line-tiny { width: 40%; height: 12px; }
.skeleton-btn { width: 120px; height: 34px; border-radius: 8px; }

/* ── Status Dot (animated) ──────────────────────────────── */

.status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 6px;
}

.status-dot-active {
	background: var(--success-main);
	animation: statusPulse 2s ease-in-out infinite;
}

.status-dot-warning {
	background: var(--warning-main);
	animation: statusPulse 1.5s ease-in-out infinite;
}

.status-dot-error {
	background: var(--error-main);
}

/* ── Info Row (for dashboard detail items) ──────────────── */

.info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-light);
	font-size: 13px;
	font-weight: 500;
}

.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-muted); }
.info-row-value { color: var(--text-primary); font-weight: 600; }

/* ── Utilities ──────────────────────────────────────────── */

.text-warning { color: var(--warning-text); font-weight: 500; }
.text-success { color: var(--success-text); font-weight: 500; }
.text-error { color: var(--error-text); font-weight: 500; }

.mt-xs { margin-top: 6px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 28px; }
.mb-xs { margin-bottom: 6px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 20px; }

.divider {
	height: 1px;
	background: var(--border-light);
	margin: 20px 0;
}

/* ── Password Toggle ────────────────────────────────────── */

.password-wrapper {
	position: relative;
}

.password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--text-muted);
	font-size: 18px;
	line-height: 1;
	transition: color var(--duration-fast);
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-toggle:hover { color: var(--text-primary); }

/* ── Animated Counter ───────────────────────────────────── */

@keyframes countUp {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.count-animate {
	animation: countUp .6s var(--ease-spring) both;
}

/* ── Feature stagger ────────────────────────────────────── */

.feature-category {
	animation: fadeInUp .4s var(--ease-out) both;
}

.plan-tier .feature-category:nth-child(1) { animation-delay: .15s; }
.plan-tier .feature-category:nth-child(2) { animation-delay: .25s; }
.plan-tier .feature-category:nth-child(3) { animation-delay: .35s; }
.plan-tier .feature-category:nth-child(4) { animation-delay: .45s; }
.plan-tier .feature-category:nth-child(5) { animation-delay: .55s; }
.plan-tier .feature-category:nth-child(6) { animation-delay: .65s; }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
	border-top: 1px solid var(--border-light);
	padding: 20px 0;
	text-align: center;
	font-size: 11px;
	font-weight: 500;
	color: var(--text-muted);
	margin-top: auto;
	background: var(--bg-primary);
	letter-spacing: 0.01em;
}

.footer p { margin: 0; }

.footer a {
	color: var(--text-muted);
	font-weight: 500;
	transition: color var(--duration-fast);
}

.footer a:hover { color: var(--text-link); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 790px) {
	/* Login: single panel (mobile) — matches app breakpoint */
	.login-split { flex-direction: column; }
	.login-form-panel { flex: 1; max-width: 100%; min-width: 0; padding: 24px; }
	.login-deco-panel { display: none; }
	.login-welcome h1 { font-size: 22px; }
	.login-welcome p { font-size: 13px; }
	.toast-container { top: 64px; right: 16px; left: 16px; }
	.toast { max-width: 100%; }
}

@media (min-width: 791px) and (max-width: 900px) {
	/* Tablet: smaller padding */
	.login-form-panel { padding: 40px 32px; min-width: 380px; }
	.showcase-header { padding: 32px 28px 20px; }
	.showcase-track { padding: 0 28px; }
}

@media (max-width: 900px) {
	.plans-showcase { grid-template-columns: 1fr; }
	.pricing-faq-grid { grid-template-columns: 1fr; }
	.license-tiers { grid-template-columns: repeat(3, 1fr); }
	.license-benefits { grid-template-columns: repeat(2, 1fr); }
	.license-cta-card { flex-direction: column; text-align: center; gap: 24px; padding: 32px 24px; }
	.license-cta-form { min-width: 100%; }
	.license-gauge-row { grid-template-columns: repeat(2, 1fr); }
	.license-calc-slider-row { flex-wrap: wrap; }
	.invoice-section-inner { flex-direction: column; text-align: center; }
	.status-stats-row { flex-wrap: wrap; }
	.sub-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.container { padding: 20px 16px; }
	.nav-container { padding: 0 16px; }
	.plan-tier-amount { font-size: 36px; }
	.plan-tier-header { padding: 22px 18px 20px; }
	.plan-tier-pricing { padding: 18px; }
	.plan-tier-timeline { padding: 0 18px 18px; }
	.plan-tier-features { padding: 0 18px 18px; }
	.plan-tier-cta { padding: 0 18px 22px; }
	.pricing-contact { padding: 28px 18px; }
	.trust-section { gap: 14px; }
	.plans-section-header h2 { font-size: 20px; }
	.dashboard-header { padding: 28px 20px; }
	.dashboard-header h1 { font-size: 22px; }
	.status-section { padding: 20px 16px 16px; }
	.status-stats-row { flex-direction: column; }
	.sub-detail-grid { grid-template-columns: 1fr; }
	.sub-detail-card { padding: 14px 12px; }
	.sub-detail-card-value { font-size: 16px; }
	.sub-engagement-timeline { flex-direction: column; }
	.sub-engagement-step { border-right: none; border-bottom: 1px solid var(--border-color); flex-direction: row; gap: 12px; padding: 12px 16px; }
	.sub-engagement-step:last-child { border-bottom: none; }
	.sub-engagement-step-dot { margin-bottom: 0; }
	.sub-engagement-step-content { text-align: left; }
	.status-stat-number { font-size: 20px; }
	.card-body { padding: 16px; }
	.card-header { padding: 14px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
	.card-footer { padding: 12px 16px; }
	.license-list li:hover { margin: 0; padding-left: 0; padding-right: 0; }
	.license-tiers { grid-template-columns: repeat(2, 1fr); }
	.license-benefits { grid-template-columns: 1fr 1fr; }
	.license-calc-results { grid-template-columns: 1fr; }
	.license-hero { padding: 32px 20px 28px; }
	.license-hero-title { font-size: 22px; }
	.license-calc-body { padding: 20px; }
	.license-calc-header { padding: 20px 20px 0; }
	.license-calc-result-value { font-size: 22px; }
	.license-tier-price { font-size: 20px; }
	.license-tier-range { font-size: 16px; }
	.invoice-section-inner { flex-direction: column; text-align: center; gap: 12px; }
}

/* ── Auth Standalone Pages ─────────────────────────────── */
.auth-page-wrap {
	min-height: calc(100vh - 170px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 16px;
}

.auth-page-card {
	width: 100%;
	max-width: 620px;
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-md);
	padding: 28px;
}

.auth-page-header h1 {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.5px;
}

.auth-page-header p {
	margin: 8px 0 22px;
	color: var(--text-secondary);
}

.auth-type-row {
	margin-bottom: 18px;
}

.form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.auth-page-foot {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--text-secondary);
	text-align: center;
}

.login-signup-cta {
	margin: 14px 0 10px;
	font-size: 13px;
	text-align: center;
	color: var(--text-secondary);
}

.open-app-main-cta {
	margin: 10px 0 16px;
	padding: 12px;
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	background: linear-gradient(180deg, #ffffff, #f8fcff);
}

.open-app-main-cta-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-secondary);
	text-align: center;
}

/* ── Success Redirect Cards ─────────────────────────────── */
.platform-title {
	margin: 28px 0 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-secondary);
	text-align: center;
}

.platform-cards {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.platform-card {
	display: block;
	text-decoration: none;
	transition: transform var(--duration-fast), opacity var(--duration-fast);
}

.platform-card:hover {
	text-decoration: none;
	transform: translateY(-2px);
	opacity: 0.85;
}

.platform-card img {
	height: 44px;
	width: auto;
	object-fit: contain;
	display: block;
}

@media (max-width: 900px) {
	.dashboard-header { padding: 28px 20px; }
	.dashboard-header-top { flex-direction: column; align-items: flex-start; }
	.dashboard-open-app-btn { width: 100%; }
}

@media (max-width: 640px) {
	.form-grid-2 {
		grid-template-columns: 1fr;
	}

	.auth-page-card {
		padding: 22px 16px;
	}
}