/**
 * Authentication Pages Styles
 *
 * Styles for login, register, and my-account pages.
 *
 * @package Arhs_Cube_for_Lux-airport
 */

/* ============================================
   Auth Pages - Base Layout
   ============================================ */

.auth-page {
	min-height: calc(100vh - 200px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

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

.auth-card {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	padding: 2.5rem;
}

/* ============================================
   Auth Header
   ============================================ */

.auth-header {
	text-align: center;
	margin-bottom: 2rem;
}

.auth-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary);
	margin: 0 0 0.5rem;
}

.auth-header p {
	color: #6b7280;
	margin: 0;
}

/* ============================================
   Auth Forms
   ============================================ */

.auth-form {
	margin-bottom: 1.5rem;
}

.form-group {
	margin-bottom: 1rem;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.form-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #374151;
	margin-bottom: 0.5rem;
}

.form-group input {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #ffffff;
}

.form-group input:focus {
	outline: none;
	border-color: var(--secondary);
	box-shadow: 0 0 0 3px rgba(var(--secondary-hex), 0.1);
}

.form-group input::placeholder {
	color: #9ca3af;
}

.form-hint {
	display: block;
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 0.375rem;
}

.form-actions {
	margin-top: 1rem;
}

.form-links {
	text-align: center;
	margin-top: 1rem;
}

.form-links a {
	color: var(--secondary);
	font-size: 0.875rem;
	text-decoration: none;
}

.form-links a:hover {
	text-decoration: underline;
}

/* ============================================
   Form Options (Remember Me + Forgot Password)
   ============================================ */

.form-options {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	gap: 1rem;
}

.remember-me-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.remember-me {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #374151;
	cursor: pointer;
}

.remember-me input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--secondary);
	cursor: pointer;
	flex-shrink: 0;
}

.remember-me-hint {
	font-size: 0.75rem;
	color: #9ca3af;
	padding-left: 1.5rem;
}

.forgot-password-link {
	font-size: 0.875rem;
	color: var(--secondary);
	text-decoration: none;
	white-space: nowrap;
	padding-top: 0.125rem;
}

.forgot-password-link:hover {
	text-decoration: underline;
}

/* ============================================
   GDPR / Privacy Consent Checkbox
   ============================================ */

.form-group-consent {
	margin-bottom: 1.25rem;
}

.consent-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--secondary);
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.consent-text {
	font-size: 0.8125rem;
	color: #4b5563;
	line-height: 1.5;
}

.consent-text a {
	color: var(--secondary);
	font-weight: 500;
	text-decoration: none;
}

.consent-text a:hover {
	text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-primary {
	background: var(--secondary);
	color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
	background: var(--primary);
}

.btn-block {
	width: 100%;
}

.btn-link {
	background: none;
	padding: 0.25rem 0.5rem;
	color: var(--secondary);
}

.btn-link:hover {
	text-decoration: underline;
}

.btn-outline-primary {
	background: transparent;
	border: 1.5px solid var(--secondary);
	color: var(--secondary);
}

.btn-outline-primary:hover {
	background: var(--secondary);
	color: #ffffff;
}

.btn-outline-danger {
	background: transparent;
	border: 1.5px solid #dc2626;
	color: #dc2626;
}

.btn-outline-danger:hover {
	background: #dc2626;
	color: #ffffff;
}

.btn-danger {
	color: #dc2626;
}

.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

/* Loading spinner */
.spinner {
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

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

/* ============================================
   Social Login Buttons
   ============================================ */

.social-login-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.btn-social {
	background: #ffffff;
	border: 1.5px solid #e5e7eb;
	color: #374151;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
}

.btn-social:hover {
	background: #f9fafb;
	border-color: #d1d5db;
}

.social-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ============================================
   Auth Divider
   ============================================ */

.auth-divider {
	display: flex;
	align-items: center;
	margin: 1.5rem 0;
	color: #9ca3af;
	font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

.auth-divider span {
	padding: 0 1rem;
}

/* ============================================
   Auth Footer
   ============================================ */

.auth-footer {
	text-align: center;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.auth-footer p {
	color: #6b7280;
	margin: 0;
	font-size: 0.875rem;
}

.auth-footer a {
	color: var(--secondary);
	font-weight: 500;
	text-decoration: none;
}

.auth-footer a:hover {
	text-decoration: underline;
}

.auth-beta-notice {
	margin: 0.75rem 0 0;
	padding: 0.75rem 1rem;
	background: #f0f5ff;
	border: 1px solid #d0dff5;
	border-radius: 0.5rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #4b5563;
}

.auth-beta-notice strong {
	color: #1e40af;
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
}

.auth-header .auth-beta-notice + p {
	margin-top: 0.6rem;
}

/* ============================================
   Auth Messages
   ============================================ */

.auth-messages {
	margin-bottom: 1.5rem;
}

.alert {
	padding: 0.875rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
}

.alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.alert-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.alert-info {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

/* ============================================
   Password Reset Success State
   ============================================ */

.reset-success {
	text-align: center;
	padding: 1rem 0;
}

.reset-success .success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1.5rem;
	background: #dcfce7;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.reset-success .success-icon svg {
	width: 32px;
	height: 32px;
	color: #16a34a;
}

.reset-success h2 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--primary);
	margin: 0 0 0.5rem;
}

.reset-success p {
	color: #6b7280;
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
}

.reset-success .email-hint {
	font-size: 0.8125rem;
	color: #9ca3af;
}

/* Back Link */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--secondary);
	text-decoration: none;
	font-weight: 500;
}

.back-link:hover {
	text-decoration: underline;
}

.back-link svg {
	flex-shrink: 0;
}

/* ============================================
   Account Page - Layout with Sidebar
   ============================================ */

#primary.account-page {
	padding: 1.5rem 1rem;
	margin-top: 0;
	background: #f5f7fa;
	min-height: calc(100vh - 200px);
}

.account-container {
	max-width: 1100px;
	margin: 0 auto;
}

.account-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 1.5rem;
	align-items: start;
}

/* ── Mobile menu elements (hidden on desktop) ── */

.account-menu-toggle {
	display: none;
}

.account-sidebar-backdrop {
	display: none;
}

.sidebar-close {
	display: none;
}

.account-sidebar--mobile {
	display: none;
}

/* ============================================
   Account Sidebar
   ============================================ */

.account-sidebar {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	position: sticky;
	top: 2rem;
}

.sidebar-header {
	padding: 1.5rem;
	background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
	text-align: center;
}

.user-avatar-sidebar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 0.75rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.avatar-initials {
	font-size: 1.5rem;
	font-weight: 600;
	color: #ffffff;
}

.user-name-sidebar {
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
}

.sidebar-nav {
	padding: 0.75rem 0;
}

.sidebar-nav-item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.875rem 1.5rem;
	color: #374151;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.2s, color 0.2s;
}

.sidebar-nav-item:hover {
	background: #f3f4f6;
	color: var(--secondary);
}

.sidebar-nav-item.active {
	background: rgba(var(--secondary-hex), 0.08);
	color: var(--secondary);
	border-right: 3px solid var(--secondary);
}

.sidebar-nav-item svg {
	flex-shrink: 0;
	opacity: 0.7;
}

.sidebar-nav-item.active svg,
.sidebar-nav-item:hover svg {
	opacity: 1;
}

.sidebar-divider {
	height: 1px;
	background: #e5e7eb;
	margin: 0.5rem 1.5rem;
}

.sidebar-nav-logout {
	color: #dc2626;
}

.sidebar-nav-logout:hover {
	background: #fef2f2;
	color: #b91c1c;
}

/* ============================================
   Account Content Area
   ============================================ */

.account-content {
	min-width: 0; /* Prevent overflow */
}

.account-section {
	/* Container for each tab content */
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.section-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary);
	margin: 0;
}

/* ============================================
   Dashboard Section
   ============================================ */

.dashboard-welcome-card .welcome-message h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--primary);
	margin: 0 0 0.5rem;
}

.dashboard-welcome-card .welcome-message p {
	color: #6b7280;
	margin: 0;
}

.dashboard-quick-links {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin-top: 1.5rem;
}

.quick-link-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: #374151;
	transition: transform 0.2s, box-shadow 0.2s;
}

.quick-link-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	color: var(--secondary);
}

.quick-link-card svg {
	color: var(--secondary);
}

.quick-link-card span {
	font-weight: 500;
	font-size: 0.9375rem;
}

/* ============================================
   Parking Bookings Section
   ============================================ */

.parking-bookings-list {
	min-height: 200px;
}

.empty-state {
	text-align: center;
	padding: 3rem 2rem;
}

.empty-state svg {
	color: #9ca3af;
	margin-bottom: 1rem;
}

.empty-state h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #374151;
	margin: 0 0 0.5rem;
}

.empty-state p {
	color: #6b7280;
	margin: 0 0 1.5rem;
}

.empty-state .btn-primary,
.empty-state .btn-primary:link,
.empty-state .btn-primary:visited {
	color: #ffffff;
}

/* ============================================
   Helper Classes
   ============================================ */

.text-muted {
	color: #6b7280;
}

.loading-text {
	color: #9ca3af;
	font-style: italic;
}

/* ============================================
   Account Page - Legacy Support (no sidebar)
   ============================================ */

.account-header {
	margin-bottom: 2rem;
}

.account-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary);
	margin: 0;
}

/* Login Required */
.account-login-required {
	background: #ffffff;
	border-radius: 16px;
	padding: 3rem;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-prompt h2 {
	font-size: 1.5rem;
	margin: 0 0 1rem;
	color: var(--primary);
}

.login-prompt p {
	color: #6b7280;
	margin: 0 0 1.5rem;
}

.login-prompt-signup {
	margin-top: 1.5rem !important;
	margin-bottom: 0 !important;
	font-size: 0.9375rem;
}

.login-prompt-signup a {
	color: var(--secondary);
	font-weight: 600;
	text-decoration: none;
	margin-left: 0.25rem;
}

.login-prompt-signup a:hover {
	text-decoration: underline;
}

/* Account Cards */
.account-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	margin-bottom: 1rem;
	overflow: hidden;
}

.card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #f3f4f6;
}

.card-header h2 {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--primary);
	margin: 0;
}

.card-body {
	padding: 1.25rem;
}

/* Admin Sidebar Link */
.sidebar-nav-admin {
	color: var(--secondary) !important;
}

.sidebar-nav-admin svg {
	color: var(--secondary);
}

/* User Profile Card */
.user-profile-card .card-body {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.user-info {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0.75rem;
}

.info-row {
	margin-bottom: 0;
}

.info-row label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.125rem;
}

.info-row span {
	font-size: 0.9375rem;
	color: var(--primary);
}

/* Connected Providers */
.connected-providers {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.provider-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	background: #f9fafb;
	border-radius: 8px;
}

.provider-item.linked {
	background: #f0fdf4;
}

.provider-name {
	font-weight: 500;
	color: #374151;
}

/* Sessions */
.active-sessions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.session-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1rem;
	background: #f9fafb;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.session-item.current-session {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.session-info {
	flex: 1;
	min-width: 0;
}

.session-device-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.session-device {
	font-weight: 500;
	font-size: 0.875rem;
	color: #1f2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.session-badge-current {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #166534;
	background: #dcfce7;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	white-space: nowrap;
	line-height: 1.4;
}

.session-meta {
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 0.125rem;
}

.session-revoke-btn {
	flex-shrink: 0;
	font-size: 0.75rem;
	padding: 0.3rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	color: #6b7280;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.session-revoke-btn:hover {
	border-color: #fca5a5;
	color: #dc2626;
	background: #fef2f2;
}

.session-revoke-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ============================================
   Parking Bookings
   ============================================ */

/* Spinner Animation */
@keyframes spin {
	to { transform: rotate(360deg); }
}

.spinner {
	animation: spin 1s linear infinite;
}

/* Loading State */
.loading-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	color: #6b7280;
}

.loading-state .spinner {
	margin-bottom: 1rem;
	color: var(--secondary);
}

/* Error State */
.error-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
	text-align: center;
}

.error-state svg {
	color: #dc2626;
	margin-bottom: 1rem;
}

.error-state h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--primary);
	margin: 0 0 0.5rem;
}

.error-state p {
	color: #6b7280;
	margin: 0 0 1.5rem;
}

/* Booking Cards */
.bookings-container {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.booking-card {
	background: #f9fafb;
	border-radius: 0;
	padding: 1.25rem;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	transition: box-shadow 0.2s, background 0.2s;
}

.booking-card:last-child {
	border-bottom: none;
}

.booking-card:hover {
	background: #f1f5f9;
}

.booking-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e5e7eb;
}

.booking-ref .label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.125rem;
}

.booking-ref .value {
	font-size: 1rem;
	font-weight: 600;
	color: var(--primary);
	font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.booking-status {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.booking-status.status-active {
	background: #dcfce7;
	color: #166534;
}

.booking-status.status-amended {
	background: #fef3c7;
	color: #92400e;
}

.booking-status.status-cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.booking-status.status-completed {
	background: #e0e7ff;
	color: #3730a3;
}

.booking-status.status-unknown {
	background: #f3f4f6;
	color: #6b7280;
}

.booking-details {
	margin-bottom: 1rem;
}

.booking-dates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 1rem;
}

.date-item .label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.date-item .value {
	font-size: 0.9375rem;
	color: var(--primary);
	font-weight: 500;
}

.booking-info-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.booking-info {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	flex: 1;
	min-width: 0;
}

.booking-info .info-item {
	display: flex;
	flex-direction: column;
}

.booking-info .label {
	font-size: 0.6875rem;
	font-weight: 500;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.125rem;
}

.booking-info .value {
	font-size: 0.875rem;
	color: #374151;
}

.booking-cta,
.booking-cta:link,
.booking-cta:visited {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	background: var(--secondary);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
	white-space: nowrap;
}

.booking-cta:hover {
	background: var(--primary);
	color: #ffffff;
	transform: translateX(2px);
}

.booking-cta:active {
	transform: translateX(0);
}

.booking-cta svg {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.booking-cta:hover svg {
	transform: translateX(2px);
}

.section-header .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	white-space: nowrap;
	flex-shrink: 0;
	color: #ffffff;
	text-decoration: none;
}

/* ── Conversations Tab ─────────────────────────────────────────── */

.conversations-container {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.conversation-card {
	background: #f9fafb;
	border-radius: 0;
	padding: 1.25rem;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	transition: box-shadow 0.2s, background 0.2s;
}

.conversation-card:last-child {
	border-bottom: none;
}

.conversation-card:hover {
	background: #f1f5f9;
}

.conversation-body {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.conversation-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(var(--primary-hex), 0.08), rgba(var(--secondary-hex), 0.12));
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--secondary);
}

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

.conversation-title {
	font-size: 0.9375rem;
	font-weight: 500;
	color: #1f2937;
	line-height: 1.4;
	margin-bottom: 0.25rem;
	word-break: break-word;
	text-align: left;
}

.conversation-meta {
	display: flex;
	gap: 1rem;
	font-size: 0.8125rem;
	color: #9ca3af;
	line-height: 1.4;
}

.conversation-meta > span {
	flex: 1;
	text-align: left;
}

.conversation-cta,
.conversation-cta:link,
.conversation-cta:visited {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	background: var(--secondary);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s, transform 0.1s;
	white-space: nowrap;
}

.conversation-cta:hover {
	background: var(--primary);
	color: #ffffff;
	transform: translateX(2px);
}

.conversation-cta:active {
	transform: translateX(0);
}

.conversation-cta svg {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.conversation-cta:hover svg {
	transform: translateX(2px);
}

/* Pagination Controls */
.pagination-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid #e5e7eb;
}

.pagination-info {
	font-size: 0.8125rem;
	color: #6b7280;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.pagination-controls .btn-page {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 500;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #ffffff;
	color: #374151;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.pagination-controls .btn-page:hover:not([disabled]) {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.pagination-controls .btn-page[disabled] {
	opacity: 0.35;
	cursor: default;
}

#refresh-conversations-btn {
	padding: 0.5rem;
	border-radius: 6px;
	transition: background 0.2s;
}

#refresh-conversations-btn:hover {
	background: #f3f4f6;
}

/* Button Loading State */
.btn .btn-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Refresh Button */
#refresh-bookings-btn {
	padding: 0.5rem;
	border-radius: 6px;
	transition: background 0.2s;
}

#refresh-bookings-btn:hover {
	background: #f3f4f6;
}

#refresh-bookings-btn svg {
	color: #6b7280;
	transition: color 0.2s;
}

#refresh-bookings-btn:hover svg {
	color: #374151;
}

/* Account Actions */
.account-actions {
	margin-top: 2rem;
	text-align: center;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
	#primary.account-page {
		padding: 1rem;
	}

	.account-layout {
		grid-template-columns: 1fr;
	}

	/* Hide desktop sidebar, show mobile drawer */
	.account-sidebar--desktop {
		display: none;
	}

	.account-sidebar--mobile {
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		width: 280px;
		max-width: 80%;
		z-index: 99;
		border-radius: 0 12px 12px 0;
		box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
		transform: translateX(calc(-100% - 24px));
		transition: transform 0.3s ease;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.account-sidebar--mobile.is-open {
		transform: translateX(0);
	}

	.account-content {
		position: relative;
		overflow: hidden;
		min-height: 400px;
	}

	/* ── Hamburger button (inline with section header) ── */
	.account-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0;
		left: 0;
		width: 40px;
		height: 40px;
		padding: 0;
		background: none;
		border: 1px solid #e5e7eb;
		border-radius: 8px;
		color: var(--primary);
		cursor: pointer;
		transition: border-color 0.2s, background 0.2s;
		z-index: 1;
	}

	.account-menu-toggle:hover {
		border-color: var(--secondary);
		background: #f9fafb;
	}

	.section-header {
		padding-left: 52px;
	}

	/* ── Backdrop overlay ── */
	.account-sidebar-backdrop {
		display: none;
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, 0.3);
		z-index: 98;
	}

	.account-sidebar-backdrop.is-visible {
		display: block;
	}

	/* ── Close button inside sidebar header ── */
	.sidebar-close {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0.75rem;
		right: 0.75rem;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		border: none;
		background: rgba(255, 255, 255, 0.2);
		color: #ffffff;
		cursor: pointer;
		transition: background 0.2s;
		padding: 0;
	}

	.sidebar-close:hover {
		background: rgba(255, 255, 255, 0.35);
	}

	.account-sidebar--mobile .sidebar-header {
		position: relative;
	}

	.dashboard-quick-links {
		grid-template-columns: 1fr;
	}

	/* Parking Bookings Responsive */
	.booking-dates {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.auth-card {
		padding: 1.5rem;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.social-login-buttons {
		grid-template-columns: 1fr;
	}

	.user-info {
		grid-template-columns: 1fr;
	}

	/* Parking Bookings Responsive - Mobile */
	.booking-card {
		padding: 1rem;
	}

	.booking-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.booking-info-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.booking-info {
		gap: 0.75rem 1.5rem;
	}

	.booking-cta {
		width: 100%;
		justify-content: center;
	}

	/* Conversations Responsive - Mobile */
	.conversation-body {
		flex-wrap: wrap;
	}

	.conversation-icon {
		display: none;
	}

	.conversation-content {
		flex-basis: 100%;
	}

	.conversation-cta {
		width: 100%;
		justify-content: center;
	}

	.conversation-cta-label {
		display: inline;
	}
}

/* ============================================
   Password Strength Indicator
   ============================================ */

.password-strength {
	margin-top: 0.5rem;
}

.strength-bar {
	height: 4px;
	background: #e5e7eb;
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.strength-fill {
	height: 100%;
	border-radius: 2px;
	transition: width 0.3s ease, background-color 0.3s ease;
	width: 0;
}

.strength-fill.strength-weak {
	background-color: #ef4444;
}

.strength-fill.strength-fair {
	background-color: #f59e0b;
}

.strength-fill.strength-good {
	background-color: #10b981;
}

.strength-fill.strength-strong {
	background-color: #059669;
}

.strength-requirements {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	font-size: 0.75rem;
}

.strength-requirements li {
	color: #9ca3af;
	position: relative;
	padding-left: 1.25rem;
}

.strength-requirements li::before {
	content: '○';
	position: absolute;
	left: 0;
	font-size: 0.7rem;
}

.strength-requirements li.met {
	color: #059669;
}

.strength-requirements li.met::before {
	content: '✓';
	color: #059669;
}

.strength-requirements li.unmet {
	color: #9ca3af;
}

/* ============================================
   Cloudflare Turnstile
   ============================================ */

.cf-turnstile,
.cf-turnstile-container {
	margin: 1rem 0;
	display: flex;
	justify-content: center;
}

/* ============================================
   Secure Update Form (Re-authentication)
   ============================================ */

.secure-update-card {
	border-top: 3px solid #f59e0b;
}

.secure-update-card .card-header h2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.security-notice {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 0.5rem;
	padding: 0.625rem 0.875rem;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	color: #92400e;
}

/* ============================================
   Email Verification Banner
   ============================================ */

.verification-banner {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.verification-banner .banner-icon {
	flex-shrink: 0;
	color: #2563eb;
}

.verification-banner .banner-content {
	flex: 1;
}

.verification-banner .banner-content p {
	margin: 0;
	font-size: 0.875rem;
	color: #1e40af;
}

.verification-banner .btn {
	flex-shrink: 0;
	font-size: 0.8125rem;
	padding: 0.375rem 0.75rem;
}

/* ============================================
   Cookie Preferences Card
   ============================================ */

.consents-intro-card .card-body p {
	margin: 0;
	font-size: 0.9375rem;
	color: #475569;
	line-height: 1.6;
}

.cookie-pref-description {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #64748b;
}

.cookie-categories {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 1.25rem;
}

.cookie-category-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.cookie-category-row:last-child {
	border-bottom: none;
}

.cookie-cat-info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.cookie-cat-name {
	font-weight: 600;
	font-size: 0.875rem;
	color: #1e293b;
}

.cookie-cat-desc {
	font-size: 0.8125rem;
	color: #94a3b8;
}

/* Toggle switch */
.consent-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
	user-select: none;
}

.consent-toggle input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	background: #cbd5e1;
	border-radius: 12px;
	transition: background 0.25s ease;
	flex-shrink: 0;
}

.toggle-slider::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: transform 0.25s ease;
}

.consent-toggle input:checked + .toggle-slider {
	background: #22c55e;
}

.consent-toggle input:checked + .toggle-slider::after {
	transform: translateX(20px);
}

.consent-toggle input:disabled + .toggle-slider {
	background: #86efac;
	cursor: default;
}

.consent-toggle input:disabled + .toggle-slider::after {
	opacity: 0.8;
}

.consent-toggle input:disabled ~ .toggle-label {
	color: #166534;
}

.consent-toggle input:focus-visible + .toggle-slider {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.toggle-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: #64748b;
	white-space: nowrap;
	min-width: 4.5rem;
}

.consent-toggle input:checked ~ .toggle-label {
	color: #166534;
}

/* Saved confirmation message */
.consent-saved-msg {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.75rem;
	margin-top: 0.75rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #166534;
	animation: consentFadeIn 0.2s ease;
}

@keyframes consentFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ── Réno Preferences ── */
.reno-preference-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.reno-preference-info {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.reno-preference-label {
	font-weight: 600;
	font-size: 0.875rem;
	color: #1e293b;
}

.reno-preference-desc {
	font-size: 0.8125rem;
	color: #94a3b8;
}

/* ── Logout Confirmation Modal ── */
.logout-confirm-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9998;
}
.logout-confirm-backdrop.is-visible {
	display: block;
	animation: consentFadeIn 0.15s ease;
}
.logout-confirm-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	padding: 2rem;
	width: 90%;
	max-width: 380px;
	text-align: center;
}
.logout-confirm-modal.is-open {
	display: block;
	animation: consentFadeIn 0.15s ease;
}
.logout-confirm-modal h3 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1a1a2e;
}
.logout-confirm-modal p {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	color: #64748b;
}
.logout-confirm-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}
.logout-confirm-actions .btn {
	flex: 1;
	max-width: 140px;
}
.logout-confirm-actions .btn-danger {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
}
.logout-confirm-actions .btn-danger:hover:not(:disabled) {
	background: #b91c1c;
	border-color: #b91c1c;
}
.logout-confirm-actions .btn-danger:disabled {
	opacity: 0.8;
	cursor: wait;
}
.confirm-spinner {
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}