/* ==========================================
   RESET & TOKENS
   ========================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

:root {
	--bg: #f8fafc;
	--surface: #ffffff;
	--surface-light: #f1f5f9;
	--border: rgba(15, 23, 42, 0.08);
	--border-glow: rgba(99, 102, 241, 0.2);
	--text: #0f172a;
	--text-accent: #0f0f0f;
	--text-muted: #475569;
	--text-dark: #64748b;
	--accent: #8b5cf6;
	--secondary: #F59E0B;
	--accent-glow: rgba(139, 92, 246, 0.1);
	--success: #10b981;
	--success-glow: #07271c;
	--danger: #dc3545;
	/* --font: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; */
	--font: 'Inter', sans-serif;
	--mono: 'SF Mono', monospace;

	/* Refactored dark-mode targets into tokens to eliminate !important bloat */
	--input-border: #e2e8f0;
	--input-focus-border: var(--accent);
	--code-color: #6d28d9;
	--nudge-bg: linear-gradient(90deg, #f3e8ff, #fae8ff);
	--nudge-border: rgba(139, 92, 246, 0.2);
	--nudge-success-bg: linear-gradient(90deg, #d1fae5, #ecfdf5);
	--nudge-success-border: rgba(16, 185, 129, 0.2);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b0b0f;
		--surface: #15151e;
		--surface-light: #21212e;
		--border: rgba(255, 255, 255, 0.08);
		--border-glow: rgba(168, 85, 247, 0.3);
		--text: #f8fafc;
		--text-accent: #f8f8f8;
		--text-muted: #94a3b8;
		--accent: #a855f7;
		--accent-glow: rgba(168, 85, 247, 0.15);

		--input-border: #2e2e3f;
		--code-color: #c084fc;
		--nudge-bg: linear-gradient(90deg, #2e1065, #3b0764);
		--nudge-border: rgba(168, 85, 247, 0.3);
		--nudge-success-bg: linear-gradient(90deg, #064e3b, #022c22);
		--nudge-success-border: rgba(16, 185, 129, 0.3);
	}
}

/* ==========================================
   BASE LAYOUT
   ========================================== */
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.3s, color 0.3s;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

.view-screen {
	display: none;
}

.view-screen.active {
	display: block;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
	height: 64px;
	border-bottom: 1px solid var(--border);
	padding: 0 40px;
	background: rgba(var(--surface), 0.8);
	backdrop-filter: blur(12px);
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;

	.container {
		max-width: 1200px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 100%;
		margin: auto;
	}
}

.logo {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--accent);
	cursor: pointer;
}

.nav-right,
.d-flex-20 {
	display: flex;
	align-items: center;
	position: relative;
	gap: 20px;
}

.nav-link {
	font-size: 14px;
	color: var(--text-muted);
	cursor: pointer;
	transition: color 0.2s;
	font-weight: 500;
	text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
	color: var(--accent);
}

.nav-link.active {
	font-weight: 700;
	position: relative;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: 1px solid var(--border);
	background: var(--surface);
	color: var(--text);
	text-decoration: none !important;
}

.btn:hover {
	background: var(--surface-light);
	border-color: var(--text-dark);
}

.btn:disabled {
	opacity: 0.5;
	background: gray !important;
	pointer-events: none;
}

.btn.primary {
	background: var(--accent);
	color: #fff;
	border: none;
	/* box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25); */
}

.btn.primary:hover,
.btn.primary.outline:hover {
	background: #7c3aed;
	/* box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35); */
}

.btn.secondary {
	background: var(--secondary);
	color: #fff;
	border: none;
	/* box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25); */
}

.btn.secondary:hover,
.btn.secondary.outline:hover {

	background: #F1932B;
	/* box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35); */
}


.btn.primary.outline {
	border: 1px solid var(--accent);
	background: transparent;
	color: #fff;
	/* box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25); */
}

.btn.secondary.outline {
	border: 1px solid var(--secondary);
	background: transparent;
	color: #fff;
	/* box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25); */
}

.btn.success {
	background: var(--success);
	color: #ffffff;
	border: none;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn.success:hover {
	background: #059669;
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
	border-color: transparent;
}

.btn.danger {
	background: var(--danger);
	color: #ffffff;
	border: none;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn.sm {
	height: 34px;
	padding: 0 14px;
	font-size: 12px;
}

.btn-group {
	display: flex;
	gap: 12px;
	width: 100%;
}

.btn-group .btn {
	flex: 1;
}

.btn-group .btn.primary {
	flex: 2;
}

/* ==========================================
   COMPONENTS & CONTAINERS
   ========================================== */
.main-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 80px 40px 40px;
}

.hero {
	text-align: center;
	max-width: 640px;
	margin: 40px auto 0;
}

.hero h1 {
	font-size: 46px;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
	margin-bottom: 16px;
	/* color: var(--accent); */
	color: var(--text);
}

.hero .hero-link {
	color: inherit;
	text-decoration: underline;

	&:hover {
		color: var(--accent);
		text-decoration: none;
	}
}

.hero p {
	font-size: 16px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 16px;
}

.input-wrapper {
	display: flex;
	background: var(--surface);
	border: 2px solid var(--input-border);
	padding: 6px;
	gap: 12px;
	border-radius: 30px;
	box-shadow: 0 10px 25px rgba(148, 163, 184, 0.15);
	transition: all 0.2s;
}

.input-wrapper:focus-within {
	border-color: var(--input-focus-border);
	box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2);
}

.premium-input {
	width: 100%;
	height: 46px;
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 20px;
	outline: none;
	color: var(--text);
	padding: 0 16px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.premium-input:focus {
	border-color: var(--accent);
}

.input-wrapper .premium-input {
	flex: 1;
	background: transparent;
	border: none;
	height: auto;
	padding-left: 20px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 36px;
	max-width: 640px;
	margin: 0 auto;
	box-shadow: 0 10px 30px rgba(148, 163, 184, 0.1);
}

.step-indicator {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
	margin-bottom: 12px;
}

.card h2 {
	font-size: 26px;
	font-weight: 800;
	color: var(--text);
	margin-bottom: 12px;
	letter-spacing: -0.01em;
}

.card p {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.6;
	margin-bottom: 24px;
}

textarea.premium-textarea {
	width: 100%;
	height: 180px;
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 16px;
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.6;
	resize: none;
	outline: none;
	margin-bottom: 8px;
}

textarea.premium-textarea:focus {
	border-color: var(--accent);
	background: var(--surface);
}

.counter-container {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--text-dark);
	margin-bottom: 24px;
	font-family: var(--mono);
	align-content: center;
}

/* ==========================================
   DASHBOARD & SIDEBAR
   ========================================== */
.dash-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 40px;
	margin-top: 40px;
	align-items: start;
}

.sidebar-menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.side-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 12px;
	color: var(--text-muted);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	font-weight: 500;
}

.side-item svg {
	flex-shrink: 0;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.side-item.active,
.side-item:hover {
	background: var(--accent-glow);
	color: var(--accent);
}

.side-item.active svg,
.side-item:hover svg {
	opacity: 1;
}

/* ==========================================
   BANNERS & UTILITIES
   ========================================== */
.nudge-banner {
	display: flex;
	background: var(--nudge-bg);
	border: 1px solid var(--nudge-border);
	border-radius: 16px;
	padding: 16px 24px;
	margin-bottom: 16px;
	align-items: center;
	justify-content: space-between;
}

.nudge-banner.success-banner {
	background: var(--nudge-success-bg);
	border-color: var(--nudge-success-border);
}

.nudge-text h4 {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 2px;
}

.nudge-text p {
	font-size: 13px;
	color: var(--text-muted);
}

.item-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border: 1px solid var(--border);
	background: var(--surface);
	margin-bottom: 12px;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(148, 163, 184, 0.05);
	gap: 20px;
}

.item-row-info {
	flex: 1;
	min-width: 0;
}

.item-row-url {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.item-row-url a {
	color: inherit;
	text-decoration: none !important;
}

.item-row-url a:hover {
	text-decoration: underline !important;
}

.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(8px);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.modal-overlay.active {
	display: flex;
}

.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	display: inline-block;
}

.profile-badge {
	display: none;
	align-items: center;
	background: var(--surface-light);
	border: 1px solid var(--border);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	color: var(--text);
	font-weight: 600;
	max-width: 180px;
}

.truncate {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.code-box-wrapper {
	position: relative;
}

.code-box {
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 18px 80px 18px 18px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--code-color);
	line-height: 1.5;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

.copy-btn {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--surface);
	z-index: 2;
}

.hero-footer-note {
	font-size: 14px !important;
	color: var(--text-dark);
	margin-top: 14px;
	font-weight: 500;
}

.text-muted-span {
	color: var(--text-muted);
}

.block-spacing {
	margin: 32px 0 24px;
}

.status-indicator[data-status="success"] {
	color: #10b981;
}

.status-indicator[data-status="error"] {
	color: #ef4444;
}

.install-desc {
	font-size: 13px;
	color: #9ca3af;
	margin: 0 0 10px 0;
}

.verify-actions {
	border-top: 1px solid var(--border);
	padding-top: 20px;
}

.char-count-text {
	color: var(--text);
}

.display-none {
	display: none;
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	gap: 16px;
}

.profile-subtext {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 4px;
}

.profile-card {
	margin: 0;
	max-width: 100%;
	background: var(--surface);
	border-color: var(--border);
}

.profile-card-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.field-label {
	font-size: 11px;
	text-transform: uppercase;
	color: var(--text-dark);
	font-weight: 600;
}

.field-value {
	font-size: 15px;
	color: var(--text);
	margin-top: 2px;
	font-weight: 500;
}

.field-divider {
	border-top: 1px solid var(--border);
	padding-top: 16px;
}

.field-value-large {
	font-size: 24px;
	font-weight: 700;
	color: var(--success);
	margin-top: 2px;
	font-family: var(--mono);
}

/* ==========================================
   MODALS & CUSTOMIZER WIDGETS
   ========================================== */
.modal-card {
	width: 500px;
	padding: 32px;
}

.modal-header-title {
	color: var(--text);
	margin-bottom: 8px;
}

.modal-description {
	font-size: 13px;
	margin-bottom: 24px;
	color: var(--text-muted);
	line-height: 1.5;
}

.modal-form-inputs {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.modal-form-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.modal-sent-state {
	text-align: center;
	padding: 10px 0;
}

.sent-icon {
	font-size: 32px;
	margin-bottom: 12px;
}

.highlighted-email {
	color: var(--text);
	font-weight: 500;
}

.testing-shortcut-box {
	background: rgba(99, 102, 241, 0.05);
	border: 1px dashed rgba(99, 102, 241, 0.3);
	padding: 16px;
	border-radius: 12px;
	margin-bottom: 20px;
}

.shortcut-title {
	font-size: 11px;
	color: var(--accent);
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.shortcut-btn {
	width: 100%;
	height: 36px;
}

.alt-font-size {
	font-size: 12px;
}

.wgt-container {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	max-width: 650px;
	font-family: var(--font);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(148, 163, 184, 0.1);
}

.wgt-container .wgt-header {
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--surface-light);
	border-bottom: 1px solid var(--border);
	align-items: center;
}

.wgt-container .wgt-title {
	color: var(--text-dark);
	font-size: 13px;
	font-weight: 600;
}

.wgt-container .wgt-copy {
	background: var(--surface-light);
	border: 1px solid var(--text-dark);
	color: var(--text-muted);
	border-radius: 6px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 12px;
	display: flex;
	gap: 6px;
	align-items: center;
	transition: all 0.2s ease;
}

.wgt-container .wgt-copy:hover {
	border-color: var(--text-dark);
	background: var(--surface);
}

.wgt-container .wgt-code-area {
	margin: 0;
	padding: 18px;
	white-space: pre-wrap;
	word-break: break-all;
	background: var(--surface);
	font-family: var(--mono);
	font-size: 13px;
	line-height: 1.6;
	color: var(--text);
}

.wgt-container .hl-comment {
	color: var(--text-dark);
	font-style: italic;
}

.wgt-container .hl-tag {
	color: var(--accent);
}

.wgt-container .hl-attr {
	color: #3b82f6;
}

.wgt-container .hl-val {
	color: var(--success);
}

footer {
	border-top: 1px solid var(--border);
	padding: 20px;
	text-align: center;
	font-size: 12px;
	display: flex;
	justify-content: center;
	gap: 10px;

	.container {
		width: 100%;
		max-width: 1200px;
		margin: 0 auto;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 40px;

	}
}

footer a {
	transition: color 0.2s;
	color: var(--text-muted);
	text-decoration: none;
}

footer a:hover,
footer a.active {
	color: var(--text);
	text-decoration: underline;
}

/* ==========================================
   PREVIEWS & WORKSPACES
   ========================================== */
.demo-preview-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 32px;
	max-width: 750px;
	margin: 0 auto;
	box-shadow: 0 10px 30px rgba(148, 163, 184, 0.06);
	text-align: left;
}

.demo-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border);
	padding-bottom: 16px;
	margin-bottom: 24px;
	gap: 16px;
}

.demo-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--accent);
	background: var(--accent-glow);
	padding: 4px 10px;
	border-radius: 12px;
}

.config-group {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-muted);
	font-weight: 500;
}

.sm-select {
	height: 32px !important;
	padding: 0 8px !important;
	font-size: 12px !important;
	border-radius: 8px !important;
	width: 140px;
	cursor: pointer;
}

.demo-article-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--text);
	line-height: 1.25;
	margin-bottom: 6px;
	letter-spacing: -0.02em;
}

.demo-article-meta {
	font-size: 12px;
	color: var(--text-dark);
	/* margin-bottom: 20px; */
	font-family: var(--font);
}


.demo-p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-muted);
	margin-bottom: 14px;
}

.demo-p:last-of-type {
	margin-bottom: 0;
}

.hero-section {
	padding-bottom: 20px;
}

.section-divider {
	border: 0;
	height: 1px;
	background: var(--border);
	max-width: 400px;
	margin: 60px auto;
}

.demo-section {
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 40px;
}

.demo-intro {
	text-align: center;
	max-width: 500px;
	margin: 0 auto 32px;
}

.demo-intro h2 {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 8px;
	color: var(--text);
}

.demo-intro p {
	font-size: 14px;
	color: var(--text-muted);
	line-height: 1.5;
}

.audio-player {
	transform-origin: left center;
	padding: 0.4rem 0.9rem !important;
}

.nav-new-player-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.nav-credits-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 32px;
	padding: 0 12px 0 10px;
	border-radius: 16px;
	background: var(--surface-light);
	border: 1px solid var(--border);
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	cursor: pointer;
	transition: border-color 0.2s;
	white-space: nowrap;
}

.nav-credits-pill:hover {
	border-color: var(--accent);
}

.nav-credits-pill svg {
	color: var(--accent);
	flex-shrink: 0;
}

.nav-avatar {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(139, 92, 246, 0.12);
	border: 1px solid rgba(139, 92, 246, 0.25);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--accent);
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s;
	user-select: none;
}

.nav-avatar:hover,
.nav-avatar.active {
	background: rgba(139, 92, 246, 0.2);
}

.nav-avatar-dot {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--success);
	border: 2px solid var(--bg);
}

.nav-dropdown {
	display: none;
	position: absolute;
	/* No more fixed viewport lock */
	top: calc(100% + 12px);
	/* Spits it out right under the navbar */
	right: 0;
	/* Flushes it to the right edge of your profile area */
	z-index: 200;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	width: 210px;
	padding: 5px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.nav-dropdown.active {
	display: block;
}

.nav-dd-head {
	padding: 10px 11px 10px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 4px;
}

.nav-dd-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
}

.nav-dd-email {
	font-size: 11px;
	color: var(--text-dark);
	margin-top: 2px;
}

.nav-dd-item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 11px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.nav-dd-item:hover {
	background: var(--surface-light);
	color: var(--text);
}

.nav-dd-item--danger {
	color: var(--danger);
}

.nav-dd-item--danger:hover {
	background: rgba(239, 68, 68, 0.07);
	color: var(--danger);
}

.nav-dd-sep {
	height: 1px;
	background: var(--border);
	margin: 4px 0;
}

.nav-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	border-radius: 8px;
	flex-shrink: 0;
}

.nav-hamburger span {
	display: block;
	width: 100%;
	height: 1.5px;
	background: var(--text-muted);
	border-radius: 2px;
	transition: background 0.2s;
}

.nav-hamburger:hover span {
	background: var(--text);
}

.nav-mobile-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 149;
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(2px);
}

.nav-mobile-overlay.active {
	display: block;
}

.nav-mobile-drawer {
	display: none;
	position: fixed;
	top: 64px;
	left: 0;
	right: 0;
	z-index: 150;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	padding: 8px 0 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.nav-mobile-drawer.active {
	display: block;
}

.nav-drawer-section {
	display: flex;
	flex-direction: column;
}

.nav-drawer-identity {
	padding: 10px 20px 12px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 4px;
}

.nav-drawer-item {
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.nav-drawer-item:hover {
	background: var(--surface-light);
	color: var(--text);
}

.nav-drawer-item--danger {
	color: var(--danger);
}

.nav-drawer-item--danger:hover {
	background: rgba(239, 68, 68, 0.07);
	color: var(--danger);
}

.customizer-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 24px;
	margin-top: 24px;
	align-items: start;
}

.customizer-sidebar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.control-group.inline-row {
	flex-direction: row;
	justify-content: start;
	align-items: center;
	padding: 8px 16px;
}

.control-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
}

.range-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mono-badge {
	font-family: var(--mono);
	font-size: 11px;
	background: var(--surface-light);
	padding: 2px 6px;
	border-radius: 4px;
}

.custom-checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
	cursor: pointer;
}

.custom-range {
	accent-color: var(--accent);
	cursor: pointer;
	height: 6px;
	border-radius: 3px;
}

.customizer-stacked-layout {
	display: flex;
	flex-direction: column;
}

.customizer-top-console {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.controls-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.console-footer {
	display: flex;
	justify-content: start;
	align-items: center;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	gap: 20px;
}

.customizer-actions {
	display: flex;
	align-items: center;
	margin-left: auto;
	gap: 12px;
}

.customizer-preview-stage.wide-stage {
	background: var(--surface-light);
	border: 1px dashed var(--border);
	border-radius: 16px;
	padding: 20px;
}

.mock-player-box.wide-player {
	width: 100%;
	max-width: 100%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.check-label {
	cursor: pointer;
	margin-bottom: 0;
	margin-left: 6px;
	font-size: 12px;
}

.premium-input.size-sm {
	height: 34px;
	padding: 0 10px;
	font-size: 12px;
	border-radius: 8px;
}

.control-input-wrapper.range-wrapper {
	display: flex;
	align-items: center;
	height: 34px;
}

.custom-range {
	width: 100%;
}

/* .customizer-actions .btn.action-sm {
	height: 34px;
	padding: 0 14px;
	font-size: 12px;
	border-radius: 8px;
} */

.article-source-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 8px 10px 8px 14px;
	margin-bottom: 14px;
}

.article-source-link {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 1;
	min-width: 0;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 12.5px;
	font-weight: 500;
	transition: color 0.15s;
}

.article-source-link:hover {
	color: var(--accent);
}

.article-source-link svg {
	flex-shrink: 0;
	opacity: 0.45;
	transition: opacity 0.15s;
}

.article-source-link:hover svg {
	opacity: 0.85;
}

.article-source-url {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.article-source-external {
	flex-shrink: 0;
	opacity: 0.3;
	transition: opacity 0.15s;
}

.article-source-link:hover .article-source-external {
	opacity: 0.7;
}

.article-source-bar .btn.sm {
	flex-shrink: 0;
	border-radius: 8px;
	gap: 5px;
}

.cost-badge {
	background: var(--secondary);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	height: 24px;
	min-width: 24px;
	padding: 0 6px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-family: var(--mono);
	margin-left: 4px;
	transition: background-color 0.2s;
}

.btn:hover .cost-badge {
	background: #ea580c;
}

.unified-article-row {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 20px;
	width: 100%;
}

.item-row-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
	.dash-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.sidebar-menu {
		flex-direction: row;
		overflow-x: auto;
		padding-bottom: 8px;
		border-bottom: 1px solid var(--border);
		-webkit-overflow-scrolling: touch;
	}

	.side-item {
		white-space: nowrap;
	}
}

@media (max-width: 900px) {
	.controls-grid.compact-controls {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

@media (max-width: 768px) {
	.navbar {
		padding: 0 20px;
	}

	.hidden-mobile {
		display: none;
	}

	.main-container {
		padding: 40px 20px 40px;
	}

	.hero h1 {
		font-size: 32px;
	}

	.nudge-banner,
	.panel-header,
	.item-row,
	.input-wrapper,
	.btn-group,
	.demo-preview-header {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.nudge-banner .btn,
	.panel-header .btn,
	.item-row .btn,
	.btn-group .btn {
		width: 100%;
	}

	.item-row {
		padding: 16px;
	}

	.item-row-info {
		width: 100%;
	}

	.item-row-url {
		white-space: normal;
		word-break: break-all;
	}

	.item-row .btn {
		order: 3;
	}

	.input-wrapper {
		background: transparent;
		box-shadow: none;
		border: none !important;
		padding: 0;
		gap: 8px;
	}

	.input-wrapper .premium-input {
		background: var(--surface);
		border: 2px solid #e2e8f0;
		border-radius: 20px;
		height: 48px;
		flex: none;
	}

	.input-wrapper .btn.primary {
		width: 100%;
		height: 46px;
	}

	.btn-group .btn {
		flex: none;
	}

	.demo-preview-header {
		align-items: flex-start;
		gap: 12px;
	}

	.config-group {
		width: 100%;
		justify-content: space-between;
	}

	.demo-preview-card {
		padding: 20px;
	}

	.demo-article-title {
		font-size: 22px;
	}

	.customizer-actions {
		width: 100%;
		justify-content: flex-end;
	}

	.customizer-actions button.secondary {
		flex: 1;
	}

	.customizer-actions button.primary {
		flex: 2;
	}

	.unified-article-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.item-row-actions {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
		width: 100%;
	}

	.item-row-actions .btn {
		width: 100%;
	}

	footer .container {
		flex-direction: column-reverse;
		gap: 10px;
	}
}

@media (max-width: 640px) {
	.nav-hamburger {
		display: flex;
	}

	#nav-auth-container {
		display: none;
	}

	.nav-cta-label {
		display: none;
	}

	.nav-new-player-btn {
		width: 34px;
		height: 34px;
		padding: 0;
		border-radius: 50%;
		justify-content: center;
	}

	.nav-credits-pill .nav-credits-text::before {
		content: attr(data-count);
	}
}

@media (max-width: 600px) {
	.controls-grid.compact-controls {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.console-footer {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding-top: 14px;
	}

	.customizer-actions {
		width: 100%;
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 10px;
	}

	.customizer-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.customizer-preview-stage.wide-stage {
		padding: 40px 12px 24px;
	}
}

/* ==========================================
   LANGUAGES PANEL
   ========================================== */
.lang-tier-callout {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--success-glow);
	border: 1px solid #23a57a;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 13px;
	color: var(--text-muted);
}

.lang-tier-callout svg {
	flex-shrink: 0;
	color: var(--success);
}

.lang-tier-callout strong {
	color: var(--success);
}

.lang-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 8px;
	margin-bottom: 24px;
}

.lang-chip {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1.5px solid var(--border);
	background: var(--surface);
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
}

.lang-chip:hover {
	border-color: #8b5cf67f;
	background: rgba(139, 92, 246, 0.05);
}

.lang-chip.lang-selected {
	border-color: var(--accent);
	background: var(--accent-glow);
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.lang-chip.lang-default {
	cursor: default;
}

.lang-chip .lang-flag {
	font-size: 20px;
	line-height: 1;
}

.lang-chip .lang-name {
	flex: 1;
	min-width: 0;
}

.lang-check {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid var(--border);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, border-color 0.15s;
}

.lang-chip.lang-selected .lang-check {
	background: var(--accent);
	border-color: var(--accent);
}

.lang-check svg {
	display: none;
}

.lang-chip.lang-selected .lang-check svg {
	display: block;
}

.lang-default-badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: var(--accent);
	color: #fff;
	padding: 2px 6px;
	border-radius: 5px;
	flex-shrink: 0;
}

.lang-cost-footer {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.lang-cost-breakdown {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.lang-cost-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dark);
}

.lang-cost-formula {
	font-size: 13px;
	color: var(--text-muted);
	font-family: var(--mono);
}

.lang-cost-formula .lang-hl {
	color: var(--secondary);
	font-weight: 700;
}

.lang-cost-formula .lang-extra {
	color: var(--secondary);
	font-weight: 700;
}

.lang-cost-amount {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.03em;
	font-family: var(--mono);
	color: var(--text);
	transition: color 0.2s;
}

.lang-cost-amount.lang-over-tier {
	color: var(--secondary);
}

.lang-cost-unit {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dark);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.lang-sel-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-muted);
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 4px 12px;
}

.lang-sel-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}

.lang-max-notice {
	display: none;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--text-dark);
}

.lang-max-notice.visible {
	display: flex;
}

.lang-save-buttons {
	display: flex;
}

@media (max-width: 768px) {
	.lang-cost-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.lang-cost-breakdown {
		flex-direction: row;
	}

	.lang-save-buttons {

		width: 100%;
		display: block !important;

		button {
			flex: 1 !important;
			width: 100%;
			margin-bottom: 5px;
		}
	}


	.lang-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

.preview-viewport-center {
	display: block;
	box-sizing: border-box;
	/* padding: 10px 0; */
	transition: max-width 0.3s ease, margin 0.3s ease;
}

.preview-viewport-center .audio-player {
	width: 100%;
	box-sizing: border-box;
}


/**************
 * voice picker
 **************/
.voice-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	border: 1px solid var(--border);
	background: var(--surface);
	margin-bottom: 12px;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(148, 163, 184, 0.05);
	gap: 20px;
	transition: border-color 0.15s ease;
}

.voice-row:hover {
	border-color: var(--border-glow);
}

.voice-lang-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.voice-lang-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-accent);
}

.voice-lang-code {
	font-size: 11px;
	font-family: var(--mono);
	color: var(--text-dark);
	letter-spacing: 0.03em;
}

.vp-pills {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.vp-pill {
	height: 34px;
	padding: 0 14px;
	font-size: 12px;
	font-weight: 500;
	/* padding: 6px 14px; */
	border-radius: 20px;
	border: 1.5px solid var(--border);
	background: var(--surface-light);
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.13s;
	white-space: nowrap;
	user-select: none;
}

.vp-pill:hover {
	border-color: #8b5cf67f;
	background: rgba(139, 92, 246, 0.1);
}

.vp-pill.active {
	background: var(--accent-glow);
	border-color: var(--accent);
	color: var(--accent);
	font-weight: 600;
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.vp-preview {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1.5px solid var(--border);
	background: var(--surface-light);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	color: var(--text-muted);
	transition: border-color 0.13s, color 0.13s, background 0.13s;
}

.vp-preview:hover,
.vp-preview.playing {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--accent-glow);
}

@media (max-width: 768px) {
	.voice-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.vp-pills {
		justify-content: flex-start;
	}
}


/* HOW */
.steps-pipeline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
	flex-wrap: wrap;
	/* Wraps clean on small screens */
}

.step-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #9ca3af;
	white-space: nowrap;
}

/* Neon/Purple indicator matching your accent */
.step-idx {
	font-weight: 700;
	color: #a855f7;
	font-size: 13px;
}

.step-pill:not(.active) {
	opacity: 0.4;
}

/* Subtle separator arrow between inline items */
.step-arrow {
	color: rgba(255, 255, 255, 0.15);
	font-size: 12px;
	user-select: none;
}

/* Responsive handling for narrow displays */
@media (max-width: 480px) {
	.steps-pipeline {
		flex-direction: column;
		gap: 8px;
	}

	.step-arrow {
		display: none;
		/* Hide horizontal arrows on vertical stack */
	}
}


.accent {
	color: var(--accent) !important;
}


@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.spinning {
	animation: spin 0.8s linear infinite;
}

.marquee {
	overflow: hidden;
	white-space: nowrap;
	width: 100%;
	/* background: #161616; */
	/* border-top: 1px solid #262626; */
	/* border-bottom: 1px solid #262626; */
	padding: 20px 0;
	margin-top: 100px;
	opacity: 0;
	transition: opacity 5s;

	&.shown {
		opacity: 1;
	}


	/* Hardware-accelerated smooth gradient fade at both ends */
	-webkit-mask-image: linear-gradient(to right,
		transparent 0%,
		black 15%,
		black 85%,
		transparent 100%);
	mask-image: linear-gradient(to right,
		transparent 0%,
		black 15%,
		black 85%,
		transparent 100%);
}

.marquee-track {
	display: flex;
	width: max-content;
	/* gap: 40px; */
	animation: scroll 60s linear infinite;
}

.marquee-track img {
	height: 16px;
	width: auto;
	object-fit: contain;
	border-radius: 3px;
	margin-right: 40px;
	transition: transform 0.3s ease;

	&:hover {
		transform: scale(1.5);
	}
}

/* Pause on hover is a clean touch */
.marquee:hover .marquee-track {
	animation-play-state: paused;
}

@keyframes scroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

.voice-lang-code {
	display: none;
}

select.domain-filter {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%207l5%205%205-5%22%20stroke%3D%22%23333%22%20stroke-width%3D%222%22%20fill%3D%22none%22%2F%3E%3C%2Fsvg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 10px center !important;
}


.voice-tier-tab {
	background: #1e1e24;
	color: #a0a0a9;
	border: 1px solid #3f3f46;
	cursor: pointer;
	transition: all 0.2s ease;
}

.voice-tier-tab.active {
	background: var(--success-glow);
	border-color: var(--success);
	color: var(--success);
	font-weight: 600;
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.no-voices-tier {
	font-size: 12px;
	color: #71717a;
	font-style: italic;
	padding: 6px 12px;
}


/* Container & Layout Cleanups */
.voices-domain-select {
	width: 100%;
	padding: 0 10px;
	margin-bottom: 20px;
}

.voice-row {
	display: flex;
	align-items: flex-start;
	padding: 20px;
	background: var(--bg-card, #18181c);
	border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
	border-radius: 12px;
	margin-bottom: 12px;
	gap: 16px;
}

.voice-lang-info {
	flex-shrink: 0;
	width: 170px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: 4px;
}

.voice-lang-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	line-height: 1.2;
}

.voice-lang-flag {
	height: 11px;
	border-radius: 2px;
	flex-shrink: 0;
}

.voice-lang-code {
	font-size: 11px;
	opacity: 0.5;
	margin-top: 4px;
	font-weight: 500;
}

.vp-tiers-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
	align-items: flex-end;
}

.vp-tier-row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	justify-content: flex-end;
	padding: 10px 20px;
	border-radius: 8px;
}

.vp-tier-row.standard {
	background: #38bdf80f;
}

.vp-tier-row.premium {
	background: #c084fc0f;
}

.vp-tier-row.hd {
	background: #fbbf240f;
}

/* Tier Label Badges */
.vp-tier-inline-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.9px;
	min-width: 80px;
	text-align: left;
	white-space: nowrap;
	opacity: 0.7;
}

.vp-tier-inline-label.tier-standard,
.tier-txt.standard {
	color: #38bdf8;
}

.vp-tier-inline-label.tier-premium,
.tier-txt.premium {
	color: #c084fc;
}

.vp-tier-inline-label.tier-hd,
.tier-txt.hd {
	color: #fbbf24;
}

.vp-pills-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
	flex: 1;
	width: 100%;
}

/* Base Pill Style */
.vp-pill {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--text-muted, #a1a1aa);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.vp-pill:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* Tier-Specific Active Pill Styles */
.vp-pill.tier-standard.active {
	background: rgba(56, 189, 248, 0.15);
	border-color: #38bdf8;
	color: #38bdf8;
	box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.vp-pill.tier-premium.active {
	background: rgba(168, 85, 247, 0.15);
	border-color: #a855f7;
	color: #c084fc;
	box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.vp-pill.tier-hd.active {
	background: rgba(245, 158, 11, 0.15);
	border-color: #f59e0b;
	color: #fbbf24;
	box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Footer Layout */
.lang-cost-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-cost-label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.lang-cost-actions {
	display: flex;
	gap: 10px;
}

/* Container & Domain Selector */
.languages-domain-select {
	width: 100%;
	padding: 0 10px;
	margin-bottom: 20px;
}

.lang-sel-badge-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Grid Layout */
.lang-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

/* Chips */
.lang-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: var(--bg-card, #18181c);
	border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
	border-radius: 8px;
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
}

.lang-chip:hover {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.04);
}

.lang-chip.lang-selected {
	border-color: #a855f7;
	background: rgba(168, 85, 247, 0.12);
	box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.lang-chip.lang-default {
	opacity: 0.85;
	cursor: default;
}

.lang-name {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
}

.lang-flag {
	width: 16px;
	height: auto;
	margin-right: 8px;
	border-radius: 2px;
}

.lang-default-badge {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-muted, #a1a1aa);
}

.lang-check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
}

.lang-chip.lang-selected .lang-check {
	background: #a855f7;
}

/* Footer Layout */
.lang-cost-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-cost-breakdown {
	display: flex;
	align-items: center;
}

.lang-cost-label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.lang-save-buttons {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.apply-btn-wide {
	min-width: 220px;
}

/* Modal Callout Inside Dialog */
.modal-cost-box {
	margin-top: 15px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
}

.modal-cost-val {
	color: var(--accent, #a855f7);
	font-size: 1.1em;
}

a.article-link {
	color: var(--success);
	text-decoration: none;

	&:hover {
		color: inherit;
	}
}