/* =========================================================
   EBADI UI V2 — CANONICAL DARK THEME
   Loaded last. Keeps the approved light design language while
   switching canvas, surfaces, controls and chrome to dark mode.
========================================================= */
html[data-theme="dark"]{
  color-scheme:dark!important;
  --eb-ui-bg:#0f1113;
  --eb-ui-surface:#171a1d;
  --eb-ui-surface-2:#1c2024;
  --eb-ui-soft:#202428;
  --eb-ui-warm:#282218;
  --eb-ui-warm-2:#302719;
  --eb-ui-text:#f5f2ec;
  --eb-ui-muted:#aaa49b;
  --eb-ui-faint:#7f868c;
  --eb-ui-line:#2d3237;
  --eb-ui-gold:#d4a048;
  --eb-ui-gold-2:#e0aa50;
  --eb-ui-gold-soft:#302719;
  --eb-ui-success:#68bd89;
  --eb-ui-danger:#e07169;
  --eb-ui-shadow:0 7px 20px rgba(0,0,0,.20);
  --eb-card-border:#2d3237;
  --eb-card-shadow:0 7px 20px rgba(0,0,0,.20);
  --eb-gold:#d4a048;
  --eb-gold-dark:#e0aa50;
  --eb-gold-soft:#302719;
  --eb-warm:#282218;
  --eb-soft:#202428;
  --eb-text:#f5f2ec;
  --eb-muted:#aaa49b;
  --eb-faint:#7f868c;
  --eb-success:#68bd89;
  --eb-danger:#e07169;
  background:#0f1113!important;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.ebadi-ui-v2-page,
html[data-theme="dark"] body.ebadi-home-body,
html[data-theme="dark"] body.ebadi-login-page,
html[data-theme="dark"] body.ebadi-legal-page,
html[data-theme="dark"] body.ebadi-error-page{
  background:#0f1113!important;
  color:#f5f2ec!important;
}

/* -------- SHARED APP CHROME -------- */
html[data-theme="dark"] body .ebadi-global-navigation.ebadi-ui-v2-chrome>.ebadi-app-header.site-header{
  border-bottom-color:#252a2e!important;
  background:#111417!important;
}
html[data-theme="dark"] body .ebadi-app-header .ebadi-app-brand,
html[data-theme="dark"] body .ebadi-app-header .ebadi-app-brand__title{color:#f5f2ec!important}
html[data-theme="dark"] body .ebadi-app-header .ebadi-app-brand__tagline{color:#9d9890!important}
html[data-theme="dark"] body .ebadi-app-header .ebadi-app-header__icon{color:#e6e8ea!important}
html[data-theme="dark"] body .ebadi-global-navigation.ebadi-ui-v2-chrome>.ebadi-app-quick.home-tabs{background:transparent!important}
html[data-theme="dark"] body .ebadi-app-quick .ebadi-app-quick__item{
  border-color:#2b3035!important;background:#171a1d!important;color:#e9e7e2!important;
  box-shadow:0 2px 8px rgba(0,0,0,.12)!important;
}
html[data-theme="dark"] body .ebadi-app-quick .ebadi-app-quick__item.is-active{
  border-color:#5d4928!important;background:#2e2619!important;color:#dfa94d!important;
}
html[data-theme="dark"] body .ebadi-global-navigation.ebadi-ui-v2-chrome>.ebadi-app-bottom.mobile-bottom-nav{
  border-color:#2d3237!important;background:rgba(17,20,23,.97)!important;
  box-shadow:0 -8px 24px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] body .ebadi-app-bottom .ebadi-app-bottom__item{color:#949ba1!important}
html[data-theme="dark"] body .ebadi-app-bottom .ebadi-app-bottom__item.is-active{color:#d9a347!important}
html[data-theme="dark"] body .ebadi-app-bottom .ebadi-app-bottom__item.is-active .ebadi-app-bottom__icon{
  border-color:#111417!important;background:linear-gradient(145deg,#e0a847,#bd7a24)!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(206,143,43,.32),inset 0 1px rgba(255,255,255,.25)!important;
}
html[data-theme="dark"] body .ebadi-app-bottom .ebadi-app-bottom__item.is-active .ebadi-app-bottom__label{color:#d9a347!important}

/* -------- HOME -------- */
html[data-theme="dark"] body.ebadi-home-body .mobile-app,
html[data-theme="dark"] body.ebadi-home-body .home-shell{background:#0f1113!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-home-body .hero-card{
  border:1px solid #302d28!important;
  background:linear-gradient(145deg,#211e19 0%,#171a1d 100%)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] body.ebadi-home-body :is(.hero-card__title,.section-head h2,.card-head__title h2,.service-item,.knowledge-card){color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-home-body :is(.hero-card__meta,.card-head__title p,.section-head a,.expense-legend li){color:#aaa49b!important}
html[data-theme="dark"] body.ebadi-home-body .hero-card__cta{background:#302719!important;color:#dca64b!important}
html[data-theme="dark"] body.ebadi-home-body .hero-card__dots span{background:#484d51!important}
html[data-theme="dark"] body.ebadi-home-body .hero-card__dots span.is-active{background:#d4a048!important}
html[data-theme="dark"] body.ebadi-home-body .soft-card{
  border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 8px 22px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] body.ebadi-home-body .card-head__icon{background:#2e2619!important;color:#d9a347!important}
html[data-theme="dark"] body.ebadi-home-body .reminder-item__label{color:#e9e6df!important}
html[data-theme="dark"] body.ebadi-home-body .reminder-item__label i{background:#25221b!important;color:#d9a347!important}
html[data-theme="dark"] body.ebadi-home-body .reminder-item__meta{color:#9f9a92!important}
html[data-theme="dark"] body.ebadi-home-body .soft-card__footer{background:#2d261b!important;color:#d9a347!important}
html[data-theme="dark"] body.ebadi-home-body .expense-card__amount{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-home-body .expense-card__amount span{color:#a7a198!important}
html[data-theme="dark"] body.ebadi-home-body .expense-legend b{color:#ece8e1!important}
html[data-theme="dark"] body.ebadi-home-body .donut:before{background:#171a1d!important;box-shadow:inset 0 0 0 1px #30353a!important}
html[data-theme="dark"] body.ebadi-home-body .donut span{color:#a9a49d!important}
html[data-theme="dark"] body.ebadi-home-body .service-item__icon{border-color:#292e32!important;background:#191d20!important;color:#e5e8ea!important}
html[data-theme="dark"] body.ebadi-home-body .promo-card--purple{background:linear-gradient(135deg,#181d28,#20273a)!important}
html[data-theme="dark"] body.ebadi-home-body .promo-card--sand{background:linear-gradient(135deg,#282117,#332816)!important}
html[data-theme="dark"] body.ebadi-home-body .promo-card__content h3{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-home-body .promo-card__content p{color:#aaa49b!important}
html[data-theme="dark"] body.ebadi-home-body .promo-card__arrow{background:#262b2f!important;color:#e7e9eb!important}
html[data-theme="dark"] body.ebadi-home-body .knowledge-card{border-color:#2d3237!important;background:#171a1d!important;box-shadow:0 7px 20px rgba(0,0,0,.18)!important}
html[data-theme="dark"] body.ebadi-home-body .knowledge-card span{color:#eeeae4!important}

/* -------- APP-WIDE CANVAS -------- */
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.account-app,.feature-app,.branches-app,.branch-detail-app,.financial-app,.wallet-app,.wallet-result-app,.notifications-app,.logout-app,.social-reward-app,.inquiries-app,.club-app,.reminders-app,.repairs-app,.vehicle-editor-app,.repair-editor-app,.profile-editor-app,.profile-route,.booking-app-shell,.inspection-list,.inspection-report,.inspection-review-app),
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.mobile-app.profile-editor-app,.mobile-app.profile-page),
html[data-theme="dark"] body.ebadi-ui-v2 .ui-v2-page{
  background:#0f1113!important;color:#f5f2ec!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.account-page-header,.reminders-header,.repairs-page-header,.vehicle-editor-header,.repair-wizard-header,.notifications-header,.inquiries-page-header,.club-header,.inspection-page-head,.feature-app__header,.profile-editor__header,.ebadi-crud-header){
  background:#0f1113!important;color:#f5f2ec!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.account-page-header,.reminders-header,.repairs-page-header,.vehicle-editor-header,.repair-wizard-header,.notifications-header,.inquiries-page-header,.club-header,.inspection-page-head,.feature-app__header,.profile-editor__header,.ebadi-crud-header) h1,
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.account-app,.feature-app,.club-app,.reminders-app,.repairs-app,.vehicle-editor-app,.repair-editor-app,.profile-editor-app,.profile-route,.inquiries-app) h2,
html[data-theme="dark"] body.ebadi-ui-v2 .ui-v2-page-title h1,
html[data-theme="dark"] body.ebadi-ui-v2 .ui-v2-section-head h2{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.account-page-header,.reminders-header,.repairs-page-header,.vehicle-editor-header,.repair-wizard-header,.notifications-header,.inquiries-page-header,.club-header,.inspection-page-head,.feature-app__header,.profile-editor__header,.ebadi-crud-header) :where(p,small),
html[data-theme="dark"] body.ebadi-ui-v2 .ui-v2-page-title p,
html[data-theme="dark"] body.ebadi-ui-v2 .ui-v2-section-head :is(span,a){color:#aaa49b!important}

/* Common cards/surfaces */
html[data-theme="dark"] body.ebadi-ui-v2-page :where(
  .account-card,.settings-card,.wallet-balance,.wallet-overview,.wallet-settlement,.wallet-settlement-history,.wallet-topup,.wallet-history,
  .notifications-overview,.notification-list,.notification-item,.logout-card,.social-reward-balance,.social-submissions,
  .financial-summary,.financial-transactions,.financial-activity-log,.financial-row,
  .branch-hero,.branch-info-panel,.branch-gallery,.branch-reviews,.branch-card,.branch-card-grid article,
  .feature-form,.feature-list article,.inspection-hero,.inspection-cards article,.inspection-approved-reviews article,
  .inquiries-hero,.inquiries-services,.inquiries-history,.inquiry-service-card,.inquiry-history-item,
  .club-score-card,.club-earn,.club-history,.club-spend,
  .reminder-form-section,.reminder-quick-vehicle,.reminders-list article,
  .repair-summary,.repair-chart-card,.repair-tools,.repair-records article,.repair-form-step,
  .ebadi-crud-section,.vehicle-form-section,.profile-onboarding-card,.profile-completion-card,.profile-editor-card,
  .profile-summary-card,.profile-status-strip,.profile-garage,.profile-insights,.profile-reminder-list,.profile-quick-access,.profile-activity,.profile-settings,
  .wallet-result-card,.feature-app__content,.empty-state,.account-empty,.feature-notice,.settings-sessions,.settings-session,.privacy-dialog,
  .reminder-list-card,.repair-card,.repair-form-card,.vehicle-input,.reminder-field,.repair-wizard-field
){
  border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 7px 20px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.account-app,.feature-app,.club-app,.reminders-app,.repairs-app,.vehicle-editor-app,.repair-editor-app,.profile-editor-app,.profile-route,.inquiries-app) :where(p,small),
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.settings-row small,.settings-session__meta,.financial-row__copy small,.notification-item p,.feature-notice p,.account-empty p){color:#aaa49b!important}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(h1,h2,h3,h4,strong,b){color:#f5f2ec}

/* Forms */
html[data-theme="dark"] body.ebadi-ui-v2-page :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea),
html[data-theme="dark"] body.ebadi-login-page :where(input,select,textarea){
  border-color:#343a3f!important;background:#1b1f22!important;color:#f2f0eb!important;-webkit-text-fill-color:#f2f0eb!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(input,select,textarea)::placeholder,
html[data-theme="dark"] body.ebadi-login-page :where(input,textarea)::placeholder{color:#777f85!important;-webkit-text-fill-color:#777f85!important}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(input,select,textarea):focus{border-color:#9c7739!important;box-shadow:0 0 0 3px rgba(212,160,72,.12)!important}
html[data-theme="dark"] body.ebadi-ui-v2-page label{color:#d9d5ce!important}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.field-hint,.form-hint,.profile-field-hint,.vehicle-field-hint){color:#96918a!important}

/* Buttons, tabs and chips */
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.button,.btn,.primary-button,.submit-button,.reminders-header-add,.repair-add-button,.profile-editor-submit,.wallet-topup button,.feature-form button[type="submit"],.social-reward-app button[type="submit"],.ebadi-crud-editor button[type="submit"],.vehicle-form-actions button,.reminder-form-actions button,.repair-footer-actions button,.settings-save){
  background:linear-gradient(145deg,#dfa449,#b87322)!important;color:#111315!important;box-shadow:0 8px 18px rgba(189,121,31,.22)!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.secondary-button,.outline-button,.feature-tabs button,.financial-tabs button,.inquiry-tabs button,.settings-tabs button){
  border-color:#343a3f!important;background:#1a1e21!important;color:#dadde0!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.feature-tabs button.is-active,.financial-tabs button.is-active,.inquiry-tabs button.is-active,.settings-tabs button.is-active){
  border-color:#5a4729!important;background:#302719!important;color:#e1aa4e!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.feature-tabs,.financial-tabs,.inquiry-tabs,.reminders-tabs,.repair-filters,.inspection-filters) :where(button,a){
  border-color:#343a3f!important;background:#171a1d!important;color:#c9c6c0!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page :where(.feature-tabs,.financial-tabs,.inquiry-tabs,.reminders-tabs,.repair-filters,.inspection-filters) :where(button.is-active,a.is-active){
  border-color:#5a4729!important;background:#302719!important;color:#e1aa4e!important;
}

/* -------- VEHICLES -------- */
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2,
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicles-app{background:#0f1113!important;color:#f5f2ec!important}
html[data-theme="dark"] .vehicles-v2-add{border-color:#4e402c!important;background:linear-gradient(135deg,#292218,#201d18)!important;color:#f5f2ec!important;box-shadow:0 7px 20px rgba(0,0,0,.17)!important}
html[data-theme="dark"] .vehicles-v2-add:before{background:rgba(255,255,255,.025)!important}
html[data-theme="dark"] .vehicles-v2-add__copy strong{color:#f5f2ec!important}
html[data-theme="dark"] .vehicles-v2-add__copy small{color:#aaa49b!important}
html[data-theme="dark"] .vehicle-v2-card{border-color:#2d3237!important;background:#171a1d!important;box-shadow:0 7px 20px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .vehicle-v2-card.is-default{border-color:#6a522c!important}
html[data-theme="dark"] .vehicle-v2-card__hero{background:linear-gradient(145deg,#1d2023 0%,#171a1d 100%)!important}
html[data-theme="dark"] .vehicle-v2-card__hero:after{background:rgba(255,255,255,.025)!important}
html[data-theme="dark"] .vehicle-v2-card__default-badge{border-color:#5d4928!important;background:#2e2619!important;color:#dda74b!important}
html[data-theme="dark"] .vehicle-v2-card__copy h3{color:#f5f2ec!important}
html[data-theme="dark"] .vehicle-v2-card__copy :is(p,.vehicle-v2-card__mileage){color:#9f9a93!important}
html[data-theme="dark"] .vehicle-v2-card__mileage bdi{color:#e6e2db!important}
html[data-theme="dark"] .vehicle-v2-card__more{border-color:#343a3f!important;background:rgba(28,32,36,.95)!important;color:#e6e8ea!important;box-shadow:0 4px 12px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .vehicle-v2-card__quick{border-top-color:#2d3237!important;background:#171a1d!important}
html[data-theme="dark"] .vehicle-v2-card__quick :is(a,button){color:#c1bdb6!important}
html[data-theme="dark"] .vehicle-v2-card__quick :is(a,button):active{background:#202428!important}
html[data-theme="dark"] .vehicles-v2-empty{border-color:#3a4045!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] .vehicles-v2-empty__icon{background:#302719!important;color:#d9a347!important}
html[data-theme="dark"] .vehicles-v2-empty strong{color:#f5f2ec!important}
html[data-theme="dark"] .vehicles-v2-empty p{color:#aaa49b!important}
html[data-theme="dark"] .vehicles-v2-tip{border-color:#4a3c29!important;background:#252018!important;color:#c0b9af!important}
html[data-theme="dark"] .vehicles-v2-tip strong{color:#eee9e1!important}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 :is(.vehicle-actions-dialog,.vehicle-delete-dialog){border-color:#343a3f!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 26px 74px rgba(0,0,0,.45)!important}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog__head{border-color:#2d3237!important}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-actions-dialog__head button{background:#22262a!important;color:#dfe2e4!important}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-action-row{border-color:#282d31!important;color:#e7e3dc!important}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog>span{background:#35201f!important;color:#ef7b72!important}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 .vehicle-delete-dialog p{color:#aaa49b!important}
html[data-theme="dark"] body.ebadi-vehicles-page.ebadi-ui-v2 [data-cancel-vehicle-delete]{background:#24282c!important;color:#d9dde0!important}

/* -------- PROFILE / EDITOR -------- */
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field{
  border-color:#343a3f!important;background:#171a1d!important;box-shadow:0 3px 10px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field__icon{
  border-left-color:#30353a!important;background:#1d2125!important;color:#d9a347!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field__label{color:#dcd8d1!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field__label i{background:#302719!important;color:#dda74b!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field__label small{color:#8f969b!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field :is(input,select,textarea){background:transparent!important;color:#f5f2ec!important;-webkit-text-fill-color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field--locked{background:#15181a!important;border-color:#31363a!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field--locked .profile-field__icon{background:#1b1f22!important;color:#81888e!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .profile-editor-app .profile-field--locked input{color:#90979d!important;-webkit-text-fill-color:#90979d!important}
html[data-theme="dark"] :is(.profile-summary-card,.profile-garage__card,.profile-insight-card,.profile-reminder-list article,.profile-quick-access__grid>a,.profile-settings__grid>a){border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}

/* -------- REMINDERS / REPAIRS -------- */
html[data-theme="dark"] :is(.reminder-field,.repair-wizard-field,.vehicle-input){border-color:#343a3f!important;background:#1b1f22!important;color:#f5f2ec!important}
html[data-theme="dark"] :is(.reminder-field__icon,.vehicle-input__icon,.repair-wizard-field__icon){background:#252018!important;color:#d9a347!important}
html[data-theme="dark"] :is(.reminder-item,.repair-card,.reminder-list-card){border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] :is(.reminder-item__meta,.reminder-field__help,.repair-card p,.repair-card small){color:#aaa49b!important}

/* -------- SETTINGS / ACCOUNT -------- */
html[data-theme="dark"] body.ebadi-settings-page .settings-card,
html[data-theme="dark"] body.ebadi-settings-page .settings-sessions,
html[data-theme="dark"] body.ebadi-settings-page .settings-session{border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-settings-page .settings-row__icon,
html[data-theme="dark"] body.ebadi-settings-page .settings-session__icon{background:#302719!important;color:#d9a347!important}
html[data-theme="dark"] body.ebadi-settings-page :is(.settings-inline-link,.settings-privacy-button){border-color:#30353a!important;background:#1b1f22!important;color:#e4e1dc!important}
html[data-theme="dark"] body.ebadi-settings-page .settings-two-column select{border-color:#343a3f!important;background:#1b1f22!important;color:#f2f0eb!important}
html[data-theme="dark"] body.ebadi-settings-page .settings-switch i{background:#373d42!important}
html[data-theme="dark"] body.ebadi-settings-page .settings-switch input:checked+i{background:#c78c31!important}
html[data-theme="dark"] body.ebadi-settings-page .settings-session-list article{border-color:#2d3237!important;background:#171a1d!important}
html[data-theme="dark"] body.ebadi-settings-page .settings-session form button{border-color:#3a4045!important;background:#202428!important;color:#dedbd5!important}
html[data-theme="dark"] body.ebadi-settings-page .privacy-dialog__head{border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-settings-page .privacy-dialog__body{background:#171a1d!important;color:#c9c5be!important}
html[data-theme="dark"] body.ebadi-settings-page .privacy-dialog__accept{background:linear-gradient(145deg,#dfa449,#b87322)!important;color:#111315!important}

/* -------- FINANCIAL / WALLET / NOTIFICATIONS -------- */
html[data-theme="dark"] :is(.financial-row,.wallet-transaction,.notification-item){border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] :is(.financial-row__copy p,.financial-row__copy small,.wallet-transaction small,.notification-item p,.notification-item time){color:#aaa49b!important}
html[data-theme="dark"] :is(.financial-search,.financial-filter,.notifications-filter,.wallet-topup input){border-color:#343a3f!important;background:#1b1f22!important;color:#f5f2ec!important}
html[data-theme="dark"] .account-success{border-color:#28533a!important;background:#16271d!important;color:#7fd39d!important}

/* -------- BRANCHES / INSPECTIONS / FEATURES -------- */
html[data-theme="dark"] :is(.branch-card,.branch-info-panel,.branch-gallery,.branch-reviews,.inspection-card,.inspection-cards article,.feature-list article,.feature-form){border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] :is(.branch-card p,.branch-info-panel p,.inspection-card p,.feature-list article p){color:#aaa49b!important}

/* -------- INQUIRIES -------- */
html[data-theme="dark"] body.ebadi-ui-v2-page .inquiries-app{background:#0f1113!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .inquiries-hero{border-color:#54452f!important;background:linear-gradient(135deg,#292218,#1c1b19)!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page :is(.inquiry-service-card,.inquiry-history-item){border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .inquiries-category-empty{border-color:#3a4045!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .inquiries-category-empty span{background:#302719!important;color:#d9a347!important}
html[data-theme="dark"] :is(.inquiry-modal__dialog,.inquiry-result__content,.inquiry-consent){border-color:#343a3f!important;background:#171a1d!important;color:#f5f2ec!important}

/* -------- CUSTOMER CLUB -------- */
html[data-theme="dark"] :is(.club-score-card,.club-earn__list article,.club-spend,.club-history article){border-color:#2d3237!important;background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] :is(.club-score-card p,.club-earn__list article small,.club-history article small){color:#aaa49b!important}

/* -------- BOOKING -------- */
html[data-theme="dark"] body.ebadi-ui-v2-page .booking-app-shell,
html[data-theme="dark"] body.ebadi-booking-page,
html[data-theme="dark"] .booking-app-shell .ebadi-5step-root .phone{background:#0f1113!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .booking-app-shell :where(.card,.step-card,.form-card,.panel,.right,.gw,.kv,.priceBox,.branch,.ebadi-timepicker,.ebadi-daytab,.ebadi-slot,.booking-vehicle-choice,.booking-save-vehicle){
  border-color:#343a3f!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 7px 20px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .booking-app-shell :is(.topTitle,.cardTitle,.pageTitle,.title,.gwName,.v,.name,label,strong,h1,h2,h3){color:#f5f2ec!important}
html[data-theme="dark"] .booking-app-shell :is(.pageSub,.sub,.gwHint,.branchMeta,.hint,.k){color:#aaa49b!important}
html[data-theme="dark"] .booking-app-shell :is(input,select,textarea,.control,.coupon input){border-color:#343a3f!important;background:#1b1f22!important;color:#f5f2ec!important}
html[data-theme="dark"] .booking-app-shell :is(.gw.is-selected,.tab.is-active,.ebadi-daytab.is-active,.ebadi-slot.is-selected){border-color:#8d6933!important;background:#3a2d1b!important;color:#f5f2ec!important}
html[data-theme="dark"] .booking-app-shell .ebadi-banner-slide img{background:#171a1d!important}

/* -------- SERVICES SHEET -------- */
html[data-theme="dark"] body .services-sheet-backdrop{background:rgba(0,0,0,.58)!important;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important}
html[data-theme="dark"] body .services-sheet{border-color:#30353a!important;background:#15181b!important;color:#f5f2ec!important;box-shadow:0 -24px 56px rgba(0,0,0,.44)!important}
html[data-theme="dark"] body .services-sheet__handle{background:#555b60!important}
html[data-theme="dark"] body .services-sheet>header{border-color:#2d3237!important;color:#f5f2ec!important}
html[data-theme="dark"] body .services-sheet>header h2{color:#f5f2ec!important}
html[data-theme="dark"] body .services-sheet>header p{color:#aaa49b!important}
html[data-theme="dark"] body .services-sheet>header button{border-color:#343a3f!important;background:#22262a!important;color:#dfe2e4!important}
html[data-theme="dark"] body .services-sheet__body{background:#15181b!important;color:#f5f2ec!important;scrollbar-color:#79603a transparent!important}
html[data-theme="dark"] body .services-sheet__body h3{color:#e9e6df!important}
html[data-theme="dark"] body .services-sheet__grid a{border-color:#30353a!important;background:#1a1e21!important;color:#f5f2ec!important;box-shadow:0 5px 16px rgba(0,0,0,.16)!important}
html[data-theme="dark"] body .services-sheet__grid a:active{border-color:#6b512c!important;background:#242018!important}
html[data-theme="dark"] body .services-sheet__grid a>span{border-color:#383d42!important;background:#22262a!important;color:#f5f2ec!important}
html[data-theme="dark"] body .services-sheet__grid strong{color:#f2eee7!important}
html[data-theme="dark"] body .services-sheet__grid small{color:#9f9a92!important}
html[data-theme="dark"] body .services-sheet__grid i{color:#72797f!important}

/* -------- LOADER -------- */
html[data-theme="dark"] .app-loader{background:#0f1113!important;color:#f5f2ec!important}
html[data-theme="dark"] .app-loader:before{background:radial-gradient(circle at 50% 38%,rgba(212,160,72,.13),transparent 28%),radial-gradient(circle at 18% 78%,rgba(52,43,28,.48),transparent 24%)!important}
html[data-theme="dark"] .app-loader__logo{border-color:#4a3c29!important;background:#1d1b17!important;box-shadow:0 12px 34px rgba(0,0,0,.28)!important}
html[data-theme="dark"] .app-loader__spinner{border-color:#34312c!important;border-top-color:#d4a048!important;border-right-color:#b9802b!important}
html[data-theme="dark"] .app-loader__copy strong{color:#f5f2ec!important}
html[data-theme="dark"] .app-loader__copy span{color:#aaa49b!important}
html[data-theme="dark"] .app-loader__progress{background:#2a2e31!important}
html[data-theme="dark"] .app-loader.app-loader--route{background:rgba(10,12,14,.84)!important}
html[data-theme="dark"] .app-loader--route .app-loader__surface{border-color:#30353a!important;background:#171a1d!important;box-shadow:0 18px 50px rgba(0,0,0,.36)!important}
html[data-theme="dark"] .ebadi-5step-root .ebadi-step-loader{background:rgba(10,12,14,.80)!important}
html[data-theme="dark"] .ebadi-5step-root .ebadi-step-loader__box{border-color:#343a3f!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 16px 40px rgba(0,0,0,.34)!important}
html[data-theme="dark"] .ebadi-5step-root .ebadi-step-loader__text{color:#d9d5ce!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .inquiry-loading{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .inquiry-loading strong{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page .inquiry-loading small{color:#aaa49b!important}

/* -------- PUBLIC SCREENS -------- */
html[data-theme="dark"] body.ebadi-login-page .auth-app,
html[data-theme="dark"] body.ebadi-error-page .error-app{background:#0f1113!important;color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-login-page .auth-card,
html[data-theme="dark"] body.ebadi-error-page .error-card{border-color:#30353a!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 12px 32px rgba(0,0,0,.24)!important}
html[data-theme="dark"] body.ebadi-login-page :is(.auth-brand,.auth-card h1,.auth-card h2),
html[data-theme="dark"] body.ebadi-error-page .error-card h1{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-login-page :is(.auth-description,.auth-legal),
html[data-theme="dark"] body.ebadi-error-page .error-card p{color:#aaa49b!important}
html[data-theme="dark"] body.ebadi-legal-page :is(.legal-shell,.legal-card,.legal-content){background:#0f1113!important;color:#f5f2ec!important;border-color:#30353a!important}
html[data-theme="dark"] body.ebadi-legal-page :is(h1,h2,h3,strong){color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-legal-page :is(p,li,small){color:#aaa49b!important}

/* -------- DESKTOP GATE -------- */


@media (prefers-reduced-motion:reduce){
  html[data-theme="dark"] *,html[data-theme="dark"] *:before,html[data-theme="dark"] *:after{scroll-behavior:auto!important}
}

/* -------- OVERLAYS / PICKERS / SYSTEM UI -------- */
html[data-theme="dark"] :is(.ebadi-search-select__panel,.jalali-dialog,.notification-detail-modal__dialog,.pwa-prompt__card,.inquiry-modal__dialog){
  border-color:#343a3f!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 24px 70px rgba(0,0,0,.46)!important;
}
html[data-theme="dark"] :is(.ebadi-search-select__head,.notification-detail-modal__copy,.privacy-dialog__head){border-color:#2d3237!important;background:#171a1d!important}
html[data-theme="dark"] :is(.ebadi-search-select__search,.ebadi-search-select__trigger){border-color:#343a3f!important;background:#1b1f22!important;color:#f5f2ec!important}
html[data-theme="dark"] .ebadi-search-select__option{border-color:#292e32!important;background:#171a1d!important;color:#e9e6df!important}
html[data-theme="dark"] .ebadi-search-select__option:is(:hover,.is-selected){background:#2a241a!important;color:#dda74b!important}
html[data-theme="dark"] :is(.ebadi-search-select__close,.notification-detail-modal__done){border-color:#343a3f!important;background:#22262a!important;color:#e1e4e6!important}
html[data-theme="dark"] :is(.ebadi-search-select__empty,.notifications-filter-empty){color:#96918a!important}
html[data-theme="dark"] .ebadi-search-select__backdrop,
html[data-theme="dark"] .notification-detail-modal__backdrop,
html[data-theme="dark"] .pwa-prompt__backdrop{background:rgba(0,0,0,.62)!important;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important}

html[data-theme="dark"] .jalali-calendar{background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] .jalali-calendar :is(select,button){border-color:#343a3f!important;background:#1b1f22!important;color:#ece9e2!important}
html[data-theme="dark"] .jalali-weekdays{color:#8f969c!important}
html[data-theme="dark"] .jalali-days button{background:#1b1f22!important;color:#e7e3dc!important}
html[data-theme="dark"] .jalali-days button:is(:hover,.is-selected){background:#302719!important;color:#e1aa4e!important}
html[data-theme="dark"] .jalali-days button.is-today{border-color:#8c6934!important}

html[data-theme="dark"] .pwa-prompt__card{background:#171a1d!important;color:#f5f2ec!important}
html[data-theme="dark"] .pwa-prompt__icon{border-color:#514126!important;background:#302719!important;color:#d9a347!important}
html[data-theme="dark"] .pwa-prompt__copy :is(h2,strong){color:#f5f2ec!important}
html[data-theme="dark"] .pwa-prompt__copy :is(p,small){color:#aaa49b!important}
html[data-theme="dark"] .pwa-prompt__primary{background:linear-gradient(145deg,#dfa449,#b87322)!important;color:#111315!important}
html[data-theme="dark"] .pwa-prompt__secondary{border-color:#343a3f!important;background:#22262a!important;color:#dfe2e4!important}

html[data-theme="dark"] .ebadi-connectivity{background:rgba(7,9,11,.86)!important}
html[data-theme="dark"] .ebadi-connectivity__card{border-color:#343a3f!important;background:#171a1d!important;color:#f5f2ec!important;box-shadow:0 22px 64px rgba(0,0,0,.46)!important}
html[data-theme="dark"] .ebadi-connectivity__hint{border-color:#30353a!important;background:#1b1f22!important;color:#b6b1aa!important}
html[data-theme="dark"] .ebadi-connectivity__home{border-color:#343a3f!important;background:#22262a!important;color:#e2e5e7!important}
html[data-theme="dark"] .ebadi-connectivity__retry{background:linear-gradient(145deg,#dfa449,#b87322)!important;color:#111315!important}

/* Scrollbars stay discreet in dark mode. */
html[data-theme="dark"] *{scrollbar-color:#4a4f54 transparent}

/* UI V2 — inspections page dark counterpart */
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-page-head h1{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-page-head__copy>small,
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-page-head p{color:#aaa49b!important}
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-empty{
  border-color:#39332a!important;
  background:linear-gradient(135deg,#201c17,#181a1c)!important;
  color:#f5f2ec!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-empty__icon{
  border-color:#39332a!important;
  background:#232527!important;
  color:#f5f2ec!important;
}
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-empty__icon svg{stroke:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-empty h2{color:#f5f2ec!important}
html[data-theme="dark"] body.ebadi-ui-v2-page.ebadi-inspections-page .inspection-empty p{color:#aaa49b!important}

/* INSPECTIONS FIX 08 — dark counterpart */
html[data-theme="dark"] .ebadi-inspections-page .inspection-page-head h1{color:#f5f2ec!important}
html[data-theme="dark"] .ebadi-inspections-page .inspection-page-head__copy>small,
html[data-theme="dark"] .ebadi-inspections-page .inspection-page-head p{color:#aaa49b!important}
html[data-theme="dark"] .ebadi-inspections-page .inspection-cards .inspection-empty{
  border-color:#3a332b!important;
  background:linear-gradient(145deg,#1c1a17 0%,#17191b 100%)!important;
  color:#f5f2ec!important;
}
html[data-theme="dark"] .ebadi-inspections-page .inspection-cards .inspection-empty__icon{
  border-color:#4a4033!important;
  background:#22201c!important;
  color:#f5f2ec!important;
}
html[data-theme="dark"] .ebadi-inspections-page .inspection-cards .inspection-empty__icon svg{stroke:#f5f2ec!important}
html[data-theme="dark"] .ebadi-inspections-page .inspection-cards .inspection-empty h2{color:#f5f2ec!important}
html[data-theme="dark"] .ebadi-inspections-page .inspection-cards .inspection-empty p{color:#aaa49b!important}
