/* Complete light palette. Loaded last so legacy dark declarations cannot leak through. */
html[data-theme="light"] {
	background: #FFFFFF !important;
	color-scheme: light !important;
	--light-bg: #FFFFFF;
	--light-surface: #fff;
	--light-surface-soft: #f6f8fa;
	--light-border: #dce2e7;
	--light-text: #181b1f;
	--light-muted: #68727c;
	--light-gold: #b87520;
}

html[data-theme="light"] body,
html[data-theme="light"] body.bg-white,
html[data-theme="light"] :is(.mobile-app,.home-redesign,.profile-route,.account-app,.reminders-app,.reminder-editor-app,.vehicle-editor-app,.vehicles-app,.repairs-app,.repair-editor-app,.profile-editor-app,.inquiries-app,.customer-club-app,.club-app,.auth-app,.error-app) {
	background: #FFFFFF !important;
	color: var(--light-text) !important;
}

html[data-theme="light"] :is(.site-header,.mobile-bottom-nav) {
	border-color: var(--light-border) !important;
	background: #FFFFFF !important;
	color: var(--light-text) !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
}

html[data-theme="light"] .app-loader {
	background:#FFFFFF !important;
	color:var(--light-text) !important;
}
html[data-theme="light"] .app-loader:before { background:linear-gradient(rgba(42,53,62,.04) 1px,transparent 1px) 0 0/36px 36px,linear-gradient(90deg,rgba(42,53,62,.04) 1px,transparent 1px) 0 0/36px 36px,radial-gradient(circle at 50% 43%,rgba(200,138,49,.13),transparent 35%) !important; }
html[data-theme="light"] .app-loader>p { color:#30373d !important; }
html[data-theme="light"] .app-loader>small,
html[data-theme="light"] .app-loader__status { color:#7b858e !important; }
html[data-theme="light"] .app-loader__progress { background:#dfe4e8 !important; }

html[data-theme="light"] :is(.brand__title,.brand__tagline,.login-action,.header-icon,.mobile-bottom-nav__item>span:last-child) { color: #3c454d !important; }
html[data-theme="light"] .mobile-bottom-nav__item.is-active>span:last-child { color: var(--light-gold) !important; }

html[data-theme="light"] :is(
	.home-intro-card,.home-plus,.home-vehicle-manager,.home-main-services__grid>a,.home-financial-services__grid>a,.home-encyclopedia__card,.home-review-links,.home-image-banner,
	.profile-summary-card,.profile-garage__card,.profile-garage__add-card,.profile-insight-card,.profile-quick-access__grid>a,.profile-orders,.profile-club,.profile-settings__grid>a,
	.reminder-list-card,.reminder-filters button,.reminder-more-filters,.reminders-empty,.reminder-field,.reminder-channels,.reminder-channels label>span,
	.vehicle-list-card,.vehicle-input,.vehicle-form-card,.vehicle-actions-dialog,.vehicle-delete-dialog,
	.repair-card,.repair-chart-card,.repair-summary-card,.repair-wizard-field,.repair-type-picker label>span,
	.settings-card,.financial-summary,.financial-transactions,.financial-filter,.notification-card,.notifications-empty,
	.wallet-balance,.wallet-topup,.wallet-history,.wallet-transaction,.wallet-result-card,
	
	.club-score-card,.club-earn__list article,.club-spend,.club-rewards-button,
	.social-reward-card,.logout-card,.profile-completion-card,.profile-editor-card
) {
	border-color: var(--light-border) !important;
	background: var(--light-surface) !important;
	color: var(--light-text) !important;
	box-shadow: 0 7px 22px rgba(37,48,57,.075) !important;
}

html[data-theme="light"] :is(.auth-brand a,.auth-field input,.auth-inline-back,.vehicles-tip,.vehicles-empty,.vehicles-add,.account-empty,.social-reward-balance,.social-reward-form,.social-submissions,.notifications-overview,.notification-list,.notification-item,.notifications-filter-empty,.notification-detail-modal__dialog,.pwa-prompt__card,.privacy-dialog__head,.privacy-dialog__body) {
	border-color:var(--light-border) !important;
	background:var(--light-surface) !important;
	color:var(--light-text) !important;
	box-shadow:0 7px 22px rgba(37,48,57,.075) !important;
}

html[data-theme="light"] [class*="-card"]:not([class*="-card__"]):not(.home-intro-card--booking) {
	border-color: var(--light-border) !important;
}

html[data-theme="light"] :is(h1,h2,h3,h4,h5,h6),
html[data-theme="light"] :is(.mobile-app,.profile-route,.account-app,.reminders-app,.vehicle-editor-app,.vehicles-app,.repairs-app,.repair-editor-app,.profile-editor-app,.inquiries-app,.club-app) :is(strong,b,dt,dd) {
	color: var(--light-text) !important;
}

html[data-theme="light"] :is(.mobile-app,.profile-route,.account-app,.reminders-app,.vehicle-editor-app,.vehicles-app,.repairs-app,.repair-editor-app,.profile-editor-app,.inquiries-app,.club-app) :is(p,small,time) {
	color: var(--light-muted) !important;
}

html[data-theme="light"] :is(input,select,textarea) {
	border-color: #d7dde2 !important;
	background: #fff !important;
	color: var(--light-text) !important;
	color-scheme: light !important;
}
html[data-theme="light"] :is(input,textarea)::placeholder { color: #9aa2aa !important; }

/* Authentication */
html[data-theme="light"] .auth-app { background:radial-gradient(circle at 50% -5%,rgba(200,138,49,.12),transparent 34%),#f4f6f8 !important; }
html[data-theme="light"] .auth-app:before { background-image:linear-gradient(rgba(45,55,64,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(45,55,64,.035) 1px,transparent 1px) !important; }
html[data-theme="light"] .auth-step h1 { color:var(--light-text) !important; }
html[data-theme="light"] .auth-description,
html[data-theme="light"] .auth-legal { color:var(--light-muted) !important; }
html[data-theme="light"] .auth-field>span { background:#f4f6f8 !important;color:#68727c !important; }
html[data-theme="light"] .auth-submit-wrap { background:linear-gradient(to top,#f4f6f8 68%,rgba(244,246,248,.9) 82%,transparent) !important; }
html[data-theme="light"] .auth-submit:disabled { border-color:#dce1e5 !important;background:#e8ecef !important;color:#89929a !important; }

/* Home */
html[data-theme="light"] .home-redesign { background: radial-gradient(circle at 50% 0,rgba(196,132,45,.08),transparent 260px),#f3f5f7 !important; }
html[data-theme="light"] .home-intro-card--booking { border-color: #d4aa71 !important;background: linear-gradient(145deg,#fff8eb,#fff) !important;color:#332414 !important; }
html[data-theme="light"] .home-intro-card__arrow { background:#edf1f4 !important;color:#555f68 !important; }
html[data-theme="light"] .home-plus { background:#fff8eb !important; }
html[data-theme="light"] .home-plus:after { background:linear-gradient(90deg,rgba(255,255,255,.96),rgba(255,255,255,.72) 48%,rgba(255,255,255,.08)) !important; }
html[data-theme="light"] .home-plus__copy :is(h2,p,a) { color:#604119 !important; }
html[data-theme="light"] .home-vehicle-manager { background:radial-gradient(circle at 18% 42%,rgba(214,151,61,.2),transparent 40%),linear-gradient(145deg,#fffaf1,#fff) !important; }
html[data-theme="light"] .home-vehicle-manager__content { border-color:#e5e1d9 !important; }
html[data-theme="light"] .home-vehicle-manager__items { border-color:#e2e5e8 !important;background:rgba(255,255,255,.9) !important; }
html[data-theme="light"] .home-vehicle-manager__add { border-color:#d9dee3 !important;background:#fff !important;color:#2b3035 !important; }
html[data-theme="light"] .home-financial-services__grid .home-financial-services__featured { border-color:#c98a34 !important;background:linear-gradient(145deg,#fff2d8,#fff) !important;box-shadow:0 0 0 1px rgba(199,132,42,.12),0 8px 22px rgba(159,99,24,.13) !important; }
html[data-theme="light"] .home-encyclopedia__card img { background:#eef1f3 !important; }

/* Profile and account pages */
html[data-theme="light"] .profile-summary-card__identity,
html[data-theme="light"] .profile-summary-card__stat { border-color:#e5e8eb !important;background:#fff !important; }
html[data-theme="light"] .profile-reminder-ring:before { background:#fff !important; }
html[data-theme="light"] .profile-reminder-ring strong,
html[data-theme="light"] .profile-reminder-countdown b { color:var(--light-text) !important; }
html[data-theme="light"] .profile-expense-chart { background:repeating-linear-gradient(to top,transparent 0,transparent 31px,rgba(42,52,60,.08) 32px) !important; }
html[data-theme="light"] :is(.profile-order,.profile-club__list>div,.profile-activity__header,.wallet-transaction,.financial-transaction) { border-color:#e5e9ec !important; }
html[data-theme="light"] .profile-side-menu { border-color:#d9dfe4 !important;background:linear-gradient(155deg,#fff,#f4f6f8) !important;color:var(--light-text) !important;box-shadow:-14px 0 40px rgba(45,54,62,.18) !important; }
html[data-theme="light"] .profile-side-menu nav a { color:#4e5861 !important; }
html[data-theme="light"] .profile-menu-toggle { color:#242a2f !important;opacity:1!important;pointer-events:auto!important; }
html[data-theme="light"] :is(.vehicle-action-row,.vehicle-list-card__menu,.profile-garage__menu,.vehicle-actions-dialog button,.vehicle-actions-dialog a) { color:#283038!important;opacity:1!important;filter:none!important;pointer-events:auto!important; }
html[data-theme="light"] :is(.profile-page,.profile-route) :is(p,small,time,.profile-page__brand-line,.profile-summary-card__identity span,.profile-quick-access strong) { color:#3f4952!important; }
html[data-theme="light"] :is(.profile-page,.profile-route) :is(h1,h2,h3,strong,b,dt,dd) { color:#161a1e!important; }

/* Editors, reminders and reports */
html[data-theme="light"] :is(.reminders-header>a,.reminders-header-add,.vehicle-editor-back,.repair-wizard-header>a,.account-page-header>a,.inquiries-page-header>a) { border-color:#d8dee3 !important;background:#fff !important;color:#424b53 !important; }
html[data-theme="light"] .reminder-filters button.is-active { border-color:#d09a51 !important;background:#fff3df !important;color:#9b6118 !important; }
html[data-theme="light"] .reminder-list-card__actions :is(a,button) { border-color:#d9dfe4 !important;background:#f7f9fa !important; }
html[data-theme="light"] :is(.reminder-form-actions,.vehicle-form-actions,.repair-footer-actions,.financial-actions) { background:linear-gradient(to top,#eef1f4 78%,rgba(238,241,244,.9),transparent) !important; }
html[data-theme="light"] :is(.financial-tabs,.repair-chart-tabs) { border-color:#dce1e5 !important;background:#f7f9fa !important; }

/* Inquiries and overlays */
html[data-theme="light"] :is(dialog,.privacy-dialog,.notification-drawer,.vehicle-actions-dialog,.vehicle-delete-dialog) { border-color:#d8dee3 !important;background:#fff !important;color:var(--light-text) !important; }
html[data-theme="light"] :is(.notification-detail-modal__backdrop,.pwa-prompt__backdrop,.profile-side-menu__backdrop) { background:rgba(47,56,64,.35) !important; }
html[data-theme="light"] .notification-detail-modal__dialog>header,
html[data-theme="light"] .notification-drawer__header { border-color:#e0e5e8 !important;background:#fff !important; }
html[data-theme="light"] .pwa-prompt__icon { border-color:#dec397 !important;background:#fff5e4 !important; }

/* Keep semantic colors while removing black surfaces. */
html[data-theme="light"] :is(.is-success,.account-success) { color:#247a45 !important; }
html[data-theme="light"] :is(.is-error,.is-urgent,.vehicle-action-row--danger) { color:#b84d4d !important; }
html[data-theme="light"] :is(.profile-summary-card__club-link) { color:var(--light-gold) !important; }
html[data-theme="light"] .home-financial-services__badge { color:#2f200d !important; }

@media(max-width:640px) {
	html[data-theme="light"] .mobile-bottom-nav { background:rgba(255,255,255,.96) !important; }
	html[data-theme="light"] .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon { border-color:#fff !important;color:#fff !important; }
}
