/* == Dark Mode Toggle == */
.dark-mode-toggle {
	position: relative;
	display: inline-flex;
	height: 1.5rem;
	width: 3rem;
	align-items: center;
	border-radius: var(--radius-full);
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
	background-color: #e0e0e0;
	outline: 2px solid #ffffff;
}
.dark-mode-toggle.active { background-color: #303030; }
.dark-mode-toggle .toggle-knob { display: inline-block; font-size: 1.2rem; transition: transform 0.2s ease; margin-left: -0.25rem }
.dark-mode-toggle.active .toggle-knob { transform: translateX(1.25rem); }
.dark-mode-toggle .icon-moon { color:#ffffff; }
.dark-mode-toggle .icon-sun { color: #eab308; }

/* == Density Toggle == */

.density-toggle {
	display: inline-flex;
	background-color: var(--accent);
	border-radius: var(--radius-full);
	padding: 2px;
	gap: var(--space-0\.5);
}

.density-option {
	padding: var(--space-2) var(--space-2\.5);
	font-size: var(--text-xs);
	font-weight: 500;
	border: none;
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.density-option.active {
	background-color: var(--secondary);
	color: var(--foreground);
	box-shadow: var(--shadow-sm);
}


/* VIP gold button */
.btn-vip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-6);
	background: linear-gradient(135deg, var(--vip-gold), #f59e0b);
	color: white;
	font-size: var(--text-base);
	font-weight: 600;
	border: none;
	border-radius: var(--radius-lg);
	cursor: pointer;
	color:#403000;
	box-shadow: 0 0 15px #f59e0b;
    border: 1px solid #403000;
}

.btn-vip:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.btn-vip img {
	width: 20px;
	height: 20px;
}


/* == Verification Status Component == */

.verify {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: var(--space-8) var(--space-6);
	max-width: 480px;
	margin: 0 auto;
}

.verify h2 {
	font-size: var(--text-2xl);
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.verify > svg {
	width: 64px;
	height: 64px;
	margin-bottom: var(--margin-base);
}

.verify.verified > svg { color: var(--success, #16a34a); }
.verify.pending > svg { color: var(--warning); }
.verify.rejected > svg { color: var(--error, #dc2626); }
.verify.none > svg { color: var(--muted); opacity: 0.6; }

.verify .status-message {
	color: var(--muted);
	font-size: var(--text-base);
	margin: 0 0 1.5rem;
	line-height: var(--line-height-normal);
}

/* Verified state */
.verify.verified .verified-date {
	font-size: var(--text-sm);
	color: var(--muted);
	margin: 0;
}

/* Pending state */
.verify.pending .pending-gesture {
	background: var(--accent);
	border-radius: var(--radius-md);
	padding: var(--space-3) var(--space-5);
	margin: 0 0 1rem;
	font-size: var(--text-base);
}

.verify.pending .check-back {
	font-size: var(--text-sm);
	color: var(--muted);
	margin: 0;
}

/* Rejected state */
.verify.rejected .rejection-reason {
	background: rgba(239, 68, 68, 0.1);
	color: var(--error, #dc2626);
	border-radius: var(--radius-md);
	padding: var(--space-3) var(--space-4);
	margin: 0 0 1rem;
	font-weight: 500;
}

.verify.rejected .retry-tips {
	background: var(--accent);
	border-radius: var(--radius-md);
	padding: var(--space-5);
	margin: 0 0 1.5rem;
	text-align: left;
	width: 100%;
}

.verify.rejected .retry-tips h4 {
	font-size: var(--text-base);
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.verify.rejected .retry-tips ul {
	margin: 0;
	padding: 0 0 0 1.25rem;
	font-size: var(--text-sm);
	color: var(--muted);
}

.verify.rejected .retry-tips li {
	margin-bottom: var(--space-1\.5);
}

.verify.rejected .retry-tips li:last-child {
	margin-bottom: 0;
}

/* None state (not started) */
.verify.none .verification-benefits {
	background: var(--accent);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	margin: 0 0 1.5rem;
	text-align: left;
	width: 100%;
}

.verify.none .verification-benefits h3 {
	font-size: var(--text-base);
	margin: 0 0 1rem;
}

.verify.none .verification-benefits ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--gap-base);
}

.verify.none .verification-benefits li {
	display: flex;
	align-items: flex-start;
	gap: var(--gap-base);
	font-size: var(--text-base);
	line-height: var(--line-height-tight);
}

.verify.none .verification-benefits li svg {
	flex-shrink: 0;
	color: var(--success, #16a34a);
	margin-top: var(--space-0\.5);
}

.verify.none .verification-benefits li span strong {
	color: var(--foreground);
}

.verify.none .privacy-note {
	font-size: var(--text-sm);
	color: var(--muted);
	margin: var(--margin-base) 0 0;
	line-height: var(--line-height-tight);
}

/* == Gesture Display Component == */

.gesture-display {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--gap-base);
}

.gesture-image-container {
	background: var(--accent);
	border-radius: var(--radius-lg);
	padding: var(--space-4);
	overflow: hidden;
}

.gesture-image {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.gesture-info {
	text-align: center;
}

.gesture-name {
	font-size: var(--text-lg);
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.gesture-instruction {
	font-size: var(--text-base);
	color: var(--muted);
	margin: 0;
	line-height: var(--line-height-tight);
}

/* Size variants */
.gesture-display-sm .gesture-image-container {
	width: 80px;
	height: 80px;
	padding: var(--space-2);
}

.gesture-display-sm .gesture-name {
	font-size: var(--text-sm);
}

.gesture-display-sm .gesture-instruction {
	font-size: var(--text-sm);
}

.gesture-display-md .gesture-image-container {
	width: 120px;
	height: 120px;
	padding: var(--space-3);
}

.gesture-display-lg .gesture-image-container {
	width: 180px;
	height: 180px;
	padding: var(--space-4);
}

.gesture-display-lg .gesture-name {
	font-size: var(--text-xl);
}

.gesture-display-lg .gesture-instruction {
	font-size: var(--text-base);
}

/* Gesture emoji sizes per display variant */
.gesture-emoji {
	line-height: 1;
}

.gesture-display-sm .gesture-emoji {
	font-size: 3rem;
}

.gesture-display-md .gesture-emoji {
	font-size: 5rem;
}

.gesture-display-lg .gesture-emoji {
	font-size: 7rem;
}


/* == Photo Capture Component == */

.photo-capture {
	display: flex;
	flex-direction: column;
	gap: var(--gap-base);
	max-width: 90%;
	margin: 0 auto;
	padding: var(--space-4);
}

.capture-header {
	text-align: center;
}

.capture-header h2 {
	font-size: var(--text-xl);
	font-weight: 600;
	margin: 0 0 1rem;
}

/* Camera / Preview area */
.capture-area {
	aspect-ratio: 4/5;
	min-height: 280px;
	background: var(--accent);
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
}

.camera-view {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.camera-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--surface);
}

.camera-video.mirrored {
	transform: scaleX(-1);
}

.capture-preview {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.capture-preview .preview-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Capture options (before camera starts) */
.capture-options {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: var(--space-8);
	gap: var(--gap-base);
}

.capture-hint {
	font-size: var(--text-base);
	color: var(--muted);
	text-align: center;
	margin: 0;
	line-height: var(--line-height-normal);
}

.camera-error {
	font-size: var(--text-base);
	color: var(--error, #dc2626);
	text-align: center;
	margin: 0;
	line-height: var(--line-height-normal);
}

.capture-buttons {
	display: flex;
	gap: var(--gap-base);
	flex-wrap: wrap;
	justify-content: center;
}

.capture-buttons button {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-5);
	font-size: var(--text-base);
}

.capture-buttons button svg {
	flex-shrink: 0;
}

/* Action buttons below camera */
.capture-actions {
	display: flex;
	gap: var(--gap-base);
	justify-content: center;
}

.capture-actions button {
	flex: 1;
	max-width: 200px;
	padding: var(--space-4) var(--space-6);
	font-size: var(--text-base);
}

.capture-btn {
	gap: var(--space-2);
}

.capture-btn svg {
	flex-shrink: 0;
}



/* == Golden Reply == */

/* Golden reply icon (sparkles) */
.golden-reply-icon {
	width: var(--icon-md);
	height: var(--icon-md);
	color: var(--warning);
	flex-shrink: 0;
}

/* Banner for Messages page */
.golden-reply-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap-base);
	padding: var(--space-2) var(--space-4);
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
	border: 1px solid rgba(245, 158, 11, 0.3);
	border-radius: var(--card-radius);
	margin: var(--space-2) 0;
}

.golden-reply-banner.not-verified {
	background: linear-gradient(135deg, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.05) 100%);
	border-color: rgba(156, 163, 175, 0.3);
}

.golden-reply-banner.not-verified .golden-reply-icon {
	color: var(--muted);
}

.golden-reply-content {
	display: flex;
	align-items: center;
	gap: var(--gap-base);
}

.golden-reply-text {
	font-size: var(--text-base);
}

.golden-reply-text strong {
	color: var(--warning);
}

.golden-reply-link {
	font-weight: 500;
}

.golden-reply-why {
	background: none;
	border: none;
	color: var(--muted);
	font-size: var(--text-sm);
	cursor: pointer;
	padding: var(--space-1) var(--space-2);
}

/* Message banners row — unlimited 24h + golden reply side by side */
.message-banners {
	display: flex;
	gap: var(--gap-base);
	margin: var(--space-2) 0;
}

.message-banners > .golden-reply-banner {
	flex: 1;
	margin: 0;
	min-width: 0;
}

@media (max-width: 600px) {
	.message-banners {
		flex-direction: column;
	}
}

/* Unlock banner — offer state uses blue accent, active uses green */
.unlock-banner.offer {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
	border-color: rgba(59, 130, 246, 0.3);
	color:var(--foreground);
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.unlock-banner.offer:hover {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.unlock-banner.offer:disabled {
	opacity: 0.6;
	cursor: wait;
}

.unlock-banner.offer .golden-reply-text strong {
	color: var(--info);
}

/* Generic coin cost display — inline "X coins" label */
.coin-cost {
	display: inline-flex;
	align-items: center;
	gap: var(--space-1);
	font-weight: 600;
	font-size: var(--text-sm);
	white-space: nowrap;
}

.coin-cost.insufficient {
	color: var(--error);
}

.unlock-banner.active {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
	border-color: rgba(16, 185, 129, 0.3);
}

.unlock-banner.active .golden-reply-text strong {
	color: var(--success);
}

/* Compact indicator for Member page */
.golden-reply-indicator {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3\.5);
	background: var(--warning-bg-subtle-flat);
	border: 1px solid rgba(245, 158, 11, 0.25);
	border-radius: var(--radius-full);
	font-size: var(--text-sm);
	color: var(--warning);
	font-weight: 500;
}

.golden-reply-indicator .golden-reply-icon {
	width: var(--icon-sm);
	height: var(--icon-sm);
}

.golden-reply-indicator.not-verified {
	background: rgba(156, 163, 175, 0.1);
	border-color: rgba(156, 163, 175, 0.25);
	color: var(--muted);
}

.golden-reply-indicator.not-verified .golden-reply-icon {
	color: var(--muted);
}

/* Cost Prompt - inline display above message input */
.cost-prompt {
	display: flex;
	align-items: center;
	gap: var(--gap-base);
	padding: var(--space-2) var(--space-3);
	margin-bottom: var(--space-2);
}

/* Coins required variant uses column layout for unlock options below */
.cost-prompt.coins-required {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.cost-prompt .cost-text {
	flex: 1;
	font-size: var(--text-sm);
	font-weight: 500;
	text-align: right;
}

.cost-prompt.insufficient {
	background: var(--error-bg-subtle-flat);
	border-color: rgba(239, 68, 68, 0.25);
}

.cost-prompt.vip-required {
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-2);
	text-align: center;
}

.cost-prompt.vip-required h3 {
	gap: var(--space-2);
	font-weight: 600;
}

.cost-prompt.vip-required p {
	font-size: var(--text-sm);
	color: var(--muted);
}

.cost-prompt.vip-required footer {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

/* Cost Prompt - unlock options */
.cost-prompt .cost-main {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	width: 100%;
}

/* Checkbox appears on new row below buttons */
.cost-prompt .cost-main label {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.cost-prompt .unlock-options {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	padding-top: var(--space-2);
	border-top: 1px solid rgba(var(--foreground-rgb), 0.1);
}

.cost-prompt .unlock-options-label {
	font-size: var(--text-xs);
	color: var(--muted);
	white-space: nowrap;
}

.cost-prompt .btn-unlock-option {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-xs);
	font-weight: 500;
	color: var(--primary);
	background: transparent;
	border: 1px solid var(--primary);
	border-radius: var(--radius-xl);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.cost-prompt .btn-unlock-option.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.cost-prompt .btn-unlock-option svg {
	flex-shrink: 0;
}

.cost-prompt .btn-unlock-option .unlock-option-name {
	font-weight: 500;
}

.cost-prompt .btn-unlock-option .coin-cost {
	color: var(--muted);
}

.cost-prompt .btn-unlock-option .icon-coin-mini {
	flex-shrink: 0;
}

.cost-prompt label {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
	padding-top: var(--space-2);
	border-top: 1px solid rgba(var(--foreground-rgb), 0.1);
	font-size: var(--text-xs);
	color: var(--muted);
	cursor: pointer;
}

.cost-prompt label input[type="checkbox"] {
	width: 14px;
	height: 14px;
	margin: 0;
	cursor: pointer;
}


/* ============================================================
   M8. Profile Photo Sizes
   ============================================================ */

.avatar {
	width: 40px;
	height: 40px;
	object-fit: cover;
	flex-shrink: 0;
	max-width: 16rem;
	aspect-ratio: 4/5;
	border: var(--avatar-border-width) solid var(--avatar-border-color);
	border-radius: var(--avatar-radius);
}

.avatar.sm {
	width: 40px;
	height: 40px;
}

.avatar.md {
	width: 56px;
	height: 56px;
}

.avatar.lg {
	width: 80px;
	height: 80px;
}

.avatar.xl {
	width: 120px;
	height: 120px;
}

/* ============================================================
   M9. Coin Pill
   ============================================================ */

.coin-pill {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	background: transparent;
	font-family: var(--font-condensed);
	min-width: 40px;
	color: var(--coin-text-dark);
}
.dark .coin-pill {
	color: var(--coin-text-light);
}

.coin-pill-icon {
	font-size: 32px;
	line-height: 1;
}

.coin-pill-amount EM {
	font-style: normal;
}

.coin-pill-empty {
	color: var(--muted);
}

@media (min-width: 768px) {
	.coin-pill {
		flex-direction: row;
		gap: var(--space-2);
		padding: var(--space-1) var(--space-2);
		min-width: auto;
	}

	.coin-pill-icon {
		font-size: 1.4rem;
	}

	.coin-pill-text,
	.coin-pill-amount {
		font-size: 1rem;
	}
}

.coin-emoji {
	display: inline-block;
	vertical-align: middle;
}

/* ============================================================
   M10. Online Indicators
   ============================================================ */

.online-dot {
	width: 14px;
	height: 14px;
	background: var(--online-dot);
	border: 1px solid #22c55e;
	border-radius: var(--radius-full);
	flex-shrink: 0;
	display:inline-block;
	margin-right: var(--space-1);
}

/* ============================================================
   M11. Profile Badges
   ============================================================ */

.medals {
	position: absolute;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	pointer-events: none;
}

.medals-photo {
	top: var(--space-2);
	right: var(--space-2);
}

.medals-avatar {
	bottom: -4px;
	right: -4px;
	flex-direction: row;
	background-color: var(--background-color);
	border-radius: var(--radius-lg);
	padding: 2px 4px;
	gap: 2px;
}

.medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
	font-size: 24px;
	line-height: 1;
	width: auto;
	height: auto;
}

.medals .medal {
	font-size: 24px;
}

.medal img {
	width: 24px;
	height: 24px;
	display: block;
}

.medals .medal img {
	width: 24px;
	height: 24px;
}

.info-badge {
	background:var(--accent);
	margin:var(--space-0\.5);
	padding:var(--space-0\.5) var(--space-3);
	border-radius: var(--radius-full);
}

.feature-info {
	margin:0;
	padding:0;
	font-size:var(--text-xs);
}

.feature-info li {
	margin: var(--space-1) 0;
	padding:0;
	line-height: 1.5;
	list-style-type: none;
}

.badge-vip,
.badge-new {
	background: transparent;
	border: none;
	box-shadow: none;
}

.badge-verified {
	color: var(--member-verified-bg);
}

.medals-photo .badge-new .badge-icon {
	width: 14px;
	height: 14px;
}

.medals-avatar .badge-new .badge-icon {
	width: 12px;
	height: 12px;
}

/* Verification required box (discovery online tab) */
.task-required-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 400px;
	margin: var(--space-8) auto;
	padding: var(--space-6);
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.task-required-box h3 {
	margin: 0 0 var(--space-2);
}

.task-required-subtitle {
	font-size: var(--text-sm);
	color: var(--muted);
	margin: 0 0 var(--space-4);
}

.task-benefits-list {
	list-style: none;
	margin: 0 0 var(--space-6);
	padding: 0;
	text-align: center;
}

.task-benefits-list li {
	padding: var(--space-1) 0;
	color: var(--muted);
}


.report-reasons {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	margin: var(--space-3) 0;
}

.report-reason {
	width: 100%;
	padding: var(--space-2) var(--space-3);
	font-size: var(--text-sm);
	text-align: left;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--input-bg);
	color: var(--foreground);
	cursor: pointer;
}

.report-reason:hover {
	border-color: var(--primary);
}

.report-reason.selected {
	border-color: var(--primary);
	background: var(--selection-bg);
	color: var(--primary);
}

/* == Admin Test & Emulation Banners == */

.emulated {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
	font-weight: 500;
	background: linear-gradient(90deg, #dc2626, #b91c1c);
	color: #fff;
}

.emulated.preview {
	background: linear-gradient(90deg, #f59e0b, #d97706);
	color: var(--vip-button-text);
}

.emulated > div {
	display: flex;
	align-items: center;
	gap: var(--space-2);
}

.emulated > div > span:last-child {
	font-weight: 600;
}

.emulated small {
	font-weight: 400;
	opacity: 0.8;
}

.emulated button {
	background: rgba(0, 0, 0, 0.2);
	color: inherit;
	border: none;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius-xs);
	font-size: var(--text-xs);
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

body:has(.emulated) #site-header {
	top: 36px;
}

body:has(.emulated) .app-page {
	padding-top: 36px;
}

@media (max-width: 768px) {
	.emulated {
		padding: var(--space-2) var(--space-3);
		font-size: var(--text-xs);
	}

	.emulated button {
		padding: var(--space-1) var(--space-2);
		font-size: var(--text-2xs);
	}

	body:has(.emulated) #site-header {
		top: 32px;
	}

	body:has(.emulated) .app-page {
		padding-top: 32px;
	}
}




/* == UNSUBSCRIBE, EMAIL PREFERENCES & AUTOLOGIN PAGES == */

.unsubscribe-page,
.email-preferences-page,
.autologin-page {
	min-height: 100vh;
	background: var(--background);
	padding: var(--space-8) var(--space-4);
}

.unsubscribe-container,
.email-preferences-container,
.autologin-container {
	background: var(--card-background);
	border-radius: var(--radius-sm);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	max-width: 480px;
	width: 100%;
	overflow: hidden;
}

.unsubscribe-logo,
.email-preferences-logo,
.autologin-logo {
	background: var(--accent);
	padding: var(--space-6);
	text-align: center;
	border-bottom: 1px solid var(--border);
}

.unsubscribe-logo img,
.email-preferences-logo img,
.autologin-logo img {
	max-height: 40px;
	width: auto;
}

.unsubscribe-logo h1,
.email-preferences-logo h1,
.autologin-logo h1 {
	font-size: var(--text-2xl);
	font-weight: 700;
	margin: 0;
	color: var(--foreground);
}

.unsubscribe-content,
.email-preferences-content,
.autologin-content {
	padding: var(--space-8);
	text-align: center;
}

.unsubscribe-content h2,
.email-preferences-content h2,
.autologin-content h2 {
	font-size: var(--text-2xl);
	font-weight: 600;
	margin: 0 0 1rem;
	color: var(--foreground);
}

.unsubscribe-spinner,
.email-preferences-spinner,
.autologin-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--border);
	border-top-color: var(--primary);
	border-radius: var(--radius-full);
	animation: spin 1s linear infinite;
	margin: 0 auto var(--space-4);
}

.unsubscribe-icon,
.email-preferences-icon,
.autologin-icon {
	margin: 0 auto var(--space-4);
	width: 64px;
	height: 64px;
	border-radius: var(--radius-full);
}

.unsubscribe-icon-success {
	background: var(--success-bg-subtle-flat);
	color: var(--success);
}

.unsubscribe-icon-error,
.email-preferences-icon-error,
.autologin-icon-error {
	background: var(--error-bg-subtle-flat);
	color: var(--error);
}

.unsubscribe-message,
.email-preferences-message,
.autologin-message {
	font-size: var(--text-base);
	color: var(--foreground);
	margin: 0 0 0.5rem;
}

.unsubscribe-description,
.autologin-description {
	font-size: var(--text-sm);
	color: var(--muted);
	margin: 0 0 1.5rem;
}

.unsubscribe-actions,
.email-preferences-actions,
.autologin-actions {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.email-preferences-email {
	font-size: var(--text-sm);
	color: var(--muted);
	margin: 0 0 1.5rem;
}

.email-preferences-email strong {
	color: var(--foreground);
}

.email-preferences-quick-actions {
	display: flex;
	justify-content: center;
	gap: var(--space-2);
	margin-bottom: var(--space-6);
	font-size: var(--text-sm);
}

.email-preferences-quick-actions .separator {
	color: var(--muted);
}

.email-preferences-quick-actions .btn-text {
	background: none;
	border: none;
	color: var(--primary);
	cursor: pointer;
	font-size: var(--text-sm);
	padding: 0;
}

.email-preferences-quick-actions .btn-text:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.email-preferences-list {
	text-align: left;
	margin-bottom: var(--space-6);
}

.email-preference-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--border);
}

.email-preference-item:last-child {
	border-bottom: none;
}

.email-preference-info {
	flex: 1;
	min-width: 0;
	padding-right: var(--space-4);
}

.email-preference-title {
	font-weight: 500;
	color: var(--foreground);
	margin-bottom: var(--space-1);
}

.email-preference-description {
	font-size: var(--text-sm);
	color: var(--muted);
}

.email-preferences-saved {
	gap: var(--space-2);
	padding: var(--space-3);
	background: var(--success-bg-subtle-flat);
	color: var(--success);
	border-radius: var(--radius-sm);
	margin-bottom: var(--margin-base);
	font-size: var(--text-sm);
}

.email-preferences-error {
	padding: var(--space-3);
	background: var(--error-bg-subtle-flat);
	color: var(--error);
	border-radius: var(--radius-sm);
	margin-bottom: var(--margin-base);
	font-size: var(--text-sm);
}

.email-preferences-note {
	font-size: var(--text-xs);
	color: var(--muted);
	margin: var(--margin-base) 0 0;
	padding-top: var(--space-4);
	border-top: 1px solid var(--border);
}

/* Settings quick-action cards (passkey, dark mode, density, logout) */
.ui-section > .card {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3);
	background: var(--accent);
}

.ui-section > .card .label-group {
	display: flex;
	flex-direction: column;
	gap: var(--space-0\.5);
}

.ui-section > .card .label {
	font-weight: 500;
	font-size: var(--text-sm);
}

.ui-section > .card .label.active {
	color: var(--success);
}

.ui-section > .card .description {
	font-size: var(--text-xs);
	color: var(--muted);
}

/* 2x2 grid on desktop, 1 column on mobile */
.profile-section.ui-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--gap-base);
}

@media (max-width: 640px) {
	.profile-section.ui-section {
		grid-template-columns: 1fr;
	}
}

/* Passkey manager list */
.passkey-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.passkey-list li {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--border);
}

.passkey-list li:last-child {
	border-bottom: none;
}

.passkey-list .muted {
	color: var(--muted);
	font-size: var(--text-xs);
	margin-right: auto;
}

.passkey-list input[type="text"] {
	flex: 1;
}

.passkey-actions { text-align: right; }

/* == Push Permission Banner == */

.push-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--accent);
	border-top: 1px solid var(--border);
	padding: var(--space-4) var(--space-6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
	z-index: 100;
}

.push-banner p {
	margin: 0;
	font-size: var(--text-base);
	color: var(--foreground);
}

.push-banner-actions {
	display: flex;
	gap: var(--space-3);
	flex-shrink: 0;
}

.push-banner-actions .btn {
	padding: var(--space-2) var(--space-4);
	font-size: var(--text-sm);
	white-space: nowrap;
}

@media (max-width: 767px) {
	.push-banner {
		flex-direction: column;
		align-items: stretch;
		padding: var(--space-3) var(--space-4);
		gap: var(--space-3);
		bottom: 64px;
	}

	.push-banner-actions {
		width: 100%;
	}

	.push-banner-actions .btn {
		flex: 1;
	}
}
