/* TARAMAA FRONTEND — DARK MODE
   Additive theme layer only. Light mode is the untouched existing design.
   No images/graphics are replaced or filtered. Layout geometry is preserved.
*/

html[data-tm-theme="dark"]{
  color-scheme:dark;
  --tm-dark-bg:#0a0b12;
  --tm-dark-surface:#151722;
  --tm-dark-surface-2:#1b1d2a;
  --tm-dark-surface-3:#222535;
  --tm-dark-text:#f4f1ff;
  --tm-dark-muted:#b9b4ca;
  --tm-dark-line:rgba(181,139,255,.25);
  --tm-dark-purple:#b98cff;
  --tm-dark-purple-2:#d0b4ff;
  --tm-dark-orange:#ffad32;
  --tm-dark-orange-2:#ffd06a;
}

/* Page canvas */
html[data-tm-theme="dark"] body,
html[data-tm-theme="dark"] .tm-login-page,
html[data-tm-theme="dark"] .tm-register-page,
html[data-tm-theme="dark"] .tm-about-page,
html[data-tm-theme="dark"] .tm-blog-page,
html[data-tm-theme="dark"] .tm-contact-faq-page,
html[data-tm-theme="dark"] .tm-how-page,
html[data-tm-theme="dark"] .tm-refund-page,
html[data-tm-theme="dark"] .tm-pujari-profile-page,
html[data-tm-theme="dark"] .tm-upcoming-page,
html[data-tm-theme="dark"] .tm-live-page,
html[data-tm-theme="dark"] .tm-booking-page,
html[data-tm-theme="dark"] .taramaa-home-v6{
  background:#0a0b12!important;
  color:var(--tm-dark-text);
}

/* Shared header */
html[data-tm-theme="dark"] .tm-header{
  background:rgba(10,11,18,.94)!important;
  border-bottom-color:rgba(185,140,255,.24)!important;
  box-shadow:0 5px 24px rgba(0,0,0,.35)!important;
}
html[data-tm-theme="dark"] .tm-topbar{color:#aaa5bb;border-bottom-color:rgba(185,140,255,.16)}
html[data-tm-theme="dark"] .tm-topbar a:hover{color:var(--tm-dark-purple)}
html[data-tm-theme="dark"] .tm-brand{color:var(--tm-dark-purple)}
html[data-tm-theme="dark"] .tm-brand-copy small{color:#ddd8ea}
html[data-tm-theme="dark"] .tm-menu-item{color:#eeeaf8}
html[data-tm-theme="dark"] .tm-menu-item:hover,
html[data-tm-theme="dark"] .tm-menu-item.is-active{color:#d0b4ff;background:rgba(38,34,55,.78);border-color:rgba(185,140,255,.22);box-shadow:0 7px 18px rgba(0,0,0,.30),inset 0 0 0 1px rgba(255,255,255,.04)}
html[data-tm-theme="dark"] .tm-menu-item::before,
html[data-tm-theme="dark"] .tm-menu-item::after{border-color:#b98cff}
html[data-tm-theme="dark"] .tm-login{color:#f0eaff;background:#191b27;border-color:#9b72e8;box-shadow:0 5px 16px rgba(0,0,0,.30)}
html[data-tm-theme="dark"] .tm-mobile-toggle{background:#191b27;border-color:#9b72e8}
html[data-tm-theme="dark"] .tm-mobile-toggle span{background:#c5a4ff}
html[data-tm-theme="dark"] .tm-menu{background:rgba(20,21,31,.98);border-color:#7e5ac1;box-shadow:0 16px 40px rgba(0,0,0,.45)}

/* Theme switch — compact icon-only control. Light mode remains bright/glowing. */
.tm-theme-toggle{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:116px;height:42px;padding:3px;border:1px solid #c8b2ee;border-radius:22px;
  background:linear-gradient(145deg,#f7f9fd,#e7ebf3);color:#697184;
  box-shadow:inset 0 2px 7px rgba(52,60,80,.16),0 0 0 1px rgba(109,39,232,.10),0 6px 18px rgba(109,39,232,.14),0 0 22px rgba(150,92,255,.18);
  cursor:pointer;flex:0 0 auto;overflow:hidden;font:700 8px/1 Arial,sans-serif;letter-spacing:.2px;
  transition:background .28s ease,border-color .28s ease,box-shadow .28s ease;
  -webkit-tap-highlight-color:transparent;
}
.tm-theme-toggle:focus-visible{outline:2px solid #9b72e8;outline-offset:2px}
.tm-theme-toggle-track{position:absolute;inset:3px;display:grid;grid-template-columns:1fr 1fr;align-items:center;z-index:3;pointer-events:none}
.tm-theme-toggle-label{display:flex;align-items:center;justify-content:center;gap:0;height:100%;white-space:nowrap;opacity:.62;transition:color .25s ease,opacity .25s ease,filter .25s ease}
.tm-theme-toggle-label svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 0 transparent);transition:filter .25s ease,transform .25s ease}
.tm-theme-toggle-knob{position:absolute;z-index:2;left:4px;top:4px;width:52px;height:32px;border-radius:17px;background:linear-gradient(145deg,#ffffff,#e1e6ef);box-shadow:0 3px 8px rgba(38,47,67,.25),inset 0 1px 0 rgba(255,255,255,.98),0 0 14px rgba(128,70,244,.24);transition:transform .32s cubic-bezier(.2,.8,.2,1),background .28s ease,box-shadow .28s ease}
.tm-theme-toggle[data-state="light"]{border-color:#b99cff;background:linear-gradient(145deg,#f9fbff,#e8edf5);box-shadow:inset 0 2px 7px rgba(52,60,80,.13),0 0 0 1px rgba(109,39,232,.12),0 7px 20px rgba(109,39,232,.18),0 0 25px rgba(150,92,255,.24)}
.tm-theme-toggle[data-state="dark"]{background:#252a3b;border-color:#555e79;box-shadow:inset 0 2px 8px rgba(0,0,0,.38),0 4px 13px rgba(0,0,0,.30);color:#aeb4c7}
.tm-theme-toggle[data-state="dark"] .tm-theme-toggle-knob{transform:translateX(56px);background:linear-gradient(145deg,#69728a,#3d4355);box-shadow:0 3px 9px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.18),0 0 12px rgba(128,112,190,.12)}
.tm-theme-toggle[data-state="light"] .tm-theme-light{color:#4c2a92;opacity:1}
.tm-theme-toggle[data-state="light"] .tm-theme-light svg{filter:drop-shadow(0 0 4px rgba(109,39,232,.42))}
.tm-theme-toggle[data-state="dark"] .tm-theme-dark{color:#f1efff;opacity:1}
.tm-theme-toggle[data-state="dark"] .tm-theme-dark svg{filter:drop-shadow(0 0 4px rgba(185,140,255,.28))}

@media(max-width:820px){
  .tm-theme-toggle{width:91px;height:36px;border-radius:20px;padding:3px}
  .tm-theme-toggle-track{inset:3px}
  .tm-theme-toggle-knob{left:4px;top:4px;width:40px;height:26px;border-radius:14px}
  .tm-theme-toggle[data-state="dark"] .tm-theme-toggle-knob{transform:translateX(43px)}
  .tm-theme-toggle-label svg{width:16px;height:16px}
  .tm-auth{gap:8px!important}
}

/* Mobile dock */
html[data-tm-theme="dark"] .tm-mobile-bottom-nav{
  background:linear-gradient(145deg,rgba(24,25,37,.94),rgba(25,20,39,.92))!important;
  border-color:rgba(255,173,50,.62)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.48),0 0 0 1px rgba(185,140,255,.10),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
html[data-tm-theme="dark"] .tm-mobile-bottom-nav-secondary{border-top-color:rgba(185,140,255,.18)!important}
html[data-tm-theme="dark"] .tm-mobile-nav-item{color:#eeeaf8!important}
html[data-tm-theme="dark"] .tm-mobile-nav-icon{color:#c09aff!important;background:linear-gradient(145deg,#292536,#191a27)!important;border-color:rgba(185,140,255,.42)!important;box-shadow:0 5px 13px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.07)!important}
html[data-tm-theme="dark"] .tm-mobile-nav-item.is-active{color:#ffd36e!important;background:linear-gradient(180deg,rgba(109,39,232,.22),rgba(255,173,50,.07))!important}
html[data-tm-theme="dark"] .tm-mobile-nav-item.is-active .tm-mobile-nav-icon{border-color:rgba(255,173,50,.65)!important;background:linear-gradient(145deg,#342b45,#211c30)!important;color:#ffd36e!important}

/* Common page cards / surfaces */
html[data-tm-theme="dark"] .about-card,
html[data-tm-theme="dark"] .tm-feature-card,
html[data-tm-theme="dark"] .tm-side-card,
html[data-tm-theme="dark"] .tm-gold-card,
html[data-tm-theme="dark"] .tm-message-card,
html[data-tm-theme="dark"] .tm-help-card,
html[data-tm-theme="dark"] .tm-newsletter-card,
html[data-tm-theme="dark"] .tm-popular-card,
html[data-tm-theme="dark"] .tm-hero-card,
html[data-tm-theme="dark"] .up-main-panel,
html[data-tm-theme="dark"] .up-side-card,
html[data-tm-theme="dark"] .up-card,
html[data-tm-theme="dark"] .up-subscribe,
html[data-tm-theme="dark"] .up-trust,
html[data-tm-theme="dark"] .up-why,
html[data-tm-theme="dark"] .profile-card,
html[data-tm-theme="dark"] .login-card,
html[data-tm-theme="dark"] .login-trust-strip,
html[data-tm-theme="dark"] .reg-card,
html[data-tm-theme="dark"] .reg-trust-strip,
html[data-tm-theme="dark"] .refund-card,
html[data-tm-theme="dark"] .tm-card,
html[data-tm-theme="dark"] .tm-details-card,
html[data-tm-theme="dark"] .tm-payment-card,
html[data-tm-theme="dark"] .tm-safe-card,
html[data-tm-theme="dark"] .tm-summary-card,
html[data-tm-theme="dark"] .tm-trusted-card,
html[data-tm-theme="dark"] .live-card,
html[data-tm-theme="dark"] .live-video-card,
html[data-tm-theme="dark"] .live-offerings-card,
html[data-tm-theme="dark"] .live-sankalp-card,
html[data-tm-theme="dark"] .live-action-card,
html[data-tm-theme="dark"] .live-details-card,
html[data-tm-theme="dark"] .live-priest-card,
html[data-tm-theme="dark"] .live-chat-card,
html[data-tm-theme="dark"] .live-trust-strip,
html[data-tm-theme="dark"] .ep-filter-card,
html[data-tm-theme="dark"] .ep-puja-card,
html[data-tm-theme="dark"] .ep-trust,
html[data-tm-theme="dark"] .home-puja-card,
html[data-tm-theme="dark"] .temple-card,
html[data-tm-theme="dark"] .home-panel,
html[data-tm-theme="dark"] .testimonial,
html[data-tm-theme="dark"] .mega-offer,
html[data-tm-theme="dark"] .world-trust,
html[data-tm-theme="dark"] .article-card,
html[data-tm-theme="dark"] .daily-rail,
html[data-tm-theme="dark"] .app-banner,
html[data-tm-theme="dark"] .newsletter-box,
html[data-tm-theme="dark"] .stat-wall,
html[data-tm-theme="dark"] .trust-mini-rail{
  background-color:#171923!important;
  color:var(--tm-dark-text);
  box-shadow:0 8px 24px rgba(0,0,0,.24)!important;
}

/* Inner cards / panels */
html[data-tm-theme="dark"] .glimpses-grid figure,
html[data-tm-theme="dark"] .tm-load-more a,
html[data-tm-theme="dark"] .tm-compact-card,
html[data-tm-theme="dark"] .tm-popular-row,
html[data-tm-theme="dark"] .tm-newsletter-card form,
html[data-tm-theme="dark"] .login-role,
html[data-tm-theme="dark"] .login-input,
html[data-tm-theme="dark"] .login-socials button,
html[data-tm-theme="dark"] .reg-input,
html[data-tm-theme="dark"] .reg-select,
html[data-tm-theme="dark"] .profile-full-btn,
html[data-tm-theme="dark"] .profile-btn-secondary,
html[data-tm-theme="dark"] .profile-btn-follow,
html[data-tm-theme="dark"] .profile-icon-btn,
html[data-tm-theme="dark"] .ep-search,
html[data-tm-theme="dark"] .ep-reset,
html[data-tm-theme="dark"] .ep-load,
html[data-tm-theme="dark"] .ep-more,
html[data-tm-theme="dark"] .up-field,
html[data-tm-theme="dark"] .up-time,
html[data-tm-theme="dark"] .up-pagination,
html[data-tm-theme="dark"] .live-offer,
html[data-tm-theme="dark"] .live-more-offers,
html[data-tm-theme="dark"] .live-action-card button,
html[data-tm-theme="dark"] .live-details-card .live-card-title button,
html[data-tm-theme="dark"] .live-priest button,
html[data-tm-theme="dark"] .contact-mini>a,
html[data-tm-theme="dark"] .tm-outline-button,
html[data-tm-theme="dark"] .tm-footer-subscribe,
html[data-tm-theme="dark"] .tm-page-footer-subscribe,
html[data-tm-theme="dark"] .tm-page-footer-stat,
html[data-tm-theme="dark"] .tm-footer-stat{
  background:#20222f!important;
  color:#eeeaf8;
  border-color:rgba(185,140,255,.30)!important;
}

/* Text */
html[data-tm-theme="dark"] .about-hero .lead,
html[data-tm-theme="dark"] .mandir-copy>p,
html[data-tm-theme="dark"] .tm-card-content p,
html[data-tm-theme="dark"] .tm-compact-card div>div,
html[data-tm-theme="dark"] .tm-popular-row small,
html[data-tm-theme="dark"] .tm-newsletter-card p,
html[data-tm-theme="dark"] .tm-contact-item p,
html[data-tm-theme="dark"] .tm-contact-form input,
html[data-tm-theme="dark"] .tm-contact-form textarea,
html[data-tm-theme="dark"] .tm-contact-form select,
html[data-tm-theme="dark"] .profile-about>p,
html[data-tm-theme="dark"] .profile-stats span,
html[data-tm-theme="dark"] .profile-verified-card p,
html[data-tm-theme="dark"] .review-row p,
html[data-tm-theme="dark"] .review-top small,
html[data-tm-theme="dark"] .language-list b,
html[data-tm-theme="dark"] .ep-meta,
html[data-tm-theme="dark"] .ep-card-body p,
html[data-tm-theme="dark"] .ep-card-body h3,
html[data-tm-theme="dark"] .up-intro p,
html[data-tm-theme="dark"] .up-card-body,
html[data-tm-theme="dark"] .up-side-card,
html[data-tm-theme="dark"] .live-feature-row small,
html[data-tm-theme="dark"] .live-action-card p,
html[data-tm-theme="dark"] .live-detail-main dt,
html[data-tm-theme="dark"] .chat-row p,
html[data-tm-theme="dark"] .chat-row time,
html[data-tm-theme="dark"] .live-trust-strip small,
html[data-tm-theme="dark"] .login-heading p,
html[data-tm-theme="dark"] .login-field>span,
html[data-tm-theme="dark"] .login-message,
html[data-tm-theme="dark"] .reg-field>span,
html[data-tm-theme="dark"] .reg-login-copy,
html[data-tm-theme="dark"] .reg-secure-note,
html[data-tm-theme="dark"] .refund-hero-copy>p,
html[data-tm-theme="dark"] .commitment-copy p,
html[data-tm-theme="dark"] .eligibility-card p,
html[data-tm-theme="dark"] .process-step p,
html[data-tm-theme="dark"] .help-copy p{
  color:#c4bfd0!important;
}
html[data-tm-theme="dark"] h1,
html[data-tm-theme="dark"] h2,
html[data-tm-theme="dark"] h3,
html[data-tm-theme="dark"] h4,
html[data-tm-theme="dark"] strong,
html[data-tm-theme="dark"] b,
html[data-tm-theme="dark"] label,
html[data-tm-theme="dark"] .ep-results-head,
html[data-tm-theme="dark"] .up-panel-head,
html[data-tm-theme="dark"] .tm-card-content h3,
html[data-tm-theme="dark"] .tm-compact-card h3,
html[data-tm-theme="dark"] .tm-popular-row,
html[data-tm-theme="dark"] .profile-name-row,
html[data-tm-theme="dark"] .login-role{
  color:#f5f1ff;
}
html[data-tm-theme="dark"] a{color:inherit}

/* Purple / orange accents remain readable */
html[data-tm-theme="dark"] .tm-footer-title,
html[data-tm-theme="dark"] .tm-page-footer-title,
html[data-tm-theme="dark"] .profile-btn-follow,
html[data-tm-theme="dark"] .profile-full-btn,
html[data-tm-theme="dark"] .tm-load-more a,
html[data-tm-theme="dark"] .tm-popular-number,
html[data-tm-theme="dark"] .ep-reset,
html[data-tm-theme="dark"] .ep-load,
html[data-tm-theme="dark"] .ep-cat-icon,
html[data-tm-theme="dark"] .live-more-offers,
html[data-tm-theme="dark"] .live-action-card button,
html[data-tm-theme="dark"] .live-priest button{
  color:#c5a4ff!important;
}
html[data-tm-theme="dark"] .tm-footer-support-heading,
html[data-tm-theme="dark"] .tm-page-footer-support-heading,
html[data-tm-theme="dark"] .tm-footer-stat span,
html[data-tm-theme="dark"] .tm-page-footer-stat span,
html[data-tm-theme="dark"] .tm-footer-connect p,
html[data-tm-theme="dark"] .tm-page-footer-connect p,
html[data-tm-theme="dark"] .tm-footer-contact-row,
html[data-tm-theme="dark"] .tm-page-footer-contact-row{
  color:#d0cadc!important;
}
html[data-tm-theme="dark"] .tm-footer-subscribe input,
html[data-tm-theme="dark"] .tm-page-footer-subscribe input,
html[data-tm-theme="dark"] input,
html[data-tm-theme="dark"] textarea,
html[data-tm-theme="dark"] select{
  color:#f4f1ff!important;background:#20222f!important;
}
html[data-tm-theme="dark"] input::placeholder,
html[data-tm-theme="dark"] textarea::placeholder{color:#918ba2!important}

/* Home / Explore surfaces and controls */
html[data-tm-theme="dark"] .home-hero,
html[data-tm-theme="dark"] .home-offer-card,
html[data-tm-theme="dark"] .home-hero-side,
html[data-tm-theme="dark"] .home-side-slide,
html[data-tm-theme="dark"] .middle-gallery-slide,
html[data-tm-theme="dark"] .home-offer-card .offer-scroll,
html[data-tm-theme="dark"] .ep-hero,
html[data-tm-theme="dark"] .ep-hero-copy,
html[data-tm-theme="dark"] .ep-hero-stats,
html[data-tm-theme="dark"] .ep-cat{
  background-color:#171923!important;color:#f4f1ff;
}
html[data-tm-theme="dark"] .ep-cat.active{background:#39275a!important;color:#fff!important;border-color:#a978ff!important}
html[data-tm-theme="dark"] .why-list i,
html[data-tm-theme="dark"] .how-step-icon,
html[data-tm-theme="dark"] .trust-mini-rail i,
html[data-tm-theme="dark"] .side-gallery-arrow,
html[data-tm-theme="dark"] .side-slide-dots,
html[data-tm-theme="dark"] .middle-gallery-dots{
  background:#242637!important;color:#c6a6ff!important;border-color:rgba(185,140,255,.42)!important;
}
html[data-tm-theme="dark"] .home-puja-card .puja-card-body>a,
html[data-tm-theme="dark"] .ep-book,
html[data-tm-theme="dark"] .ep-apply,
html[data-tm-theme="dark"] .tm-gold-button,
html[data-tm-theme="dark"] .tm-gold-card button{
  color:#17120a!important;
}
html[data-tm-theme="dark"] .ep-search button,
html[data-tm-theme="dark"] .ep-heart{color:#d0b4ff!important}

/* Hero image overlays become darker without changing/replacing graphics */
html[data-tm-theme="dark"] .tm-blog-hero-copy,
html[data-tm-theme="dark"] .about-hero-copy,
html[data-tm-theme="dark"] .hiw-hero-copy,
html[data-tm-theme="dark"] .refund-hero-copy,
html[data-tm-theme="dark"] .ep-hero-copy{
  background:linear-gradient(90deg,rgba(23,25,35,.96) 0%,rgba(23,25,35,.88) 70%,rgba(23,25,35,.58) 100%)!important;
}
html[data-tm-theme="dark"] .tm-blog-hero-art:before,
html[data-tm-theme="dark"] .about-hero-art .art-fade,
html[data-tm-theme="dark"] .hiw-hero-art:before,
html[data-tm-theme="dark"] .refund-hero-art:before{
  background:linear-gradient(90deg,rgba(10,11,18,.60),rgba(10,11,18,.16),transparent)!important;
}

/* Login / register / booking */
html[data-tm-theme="dark"] .login-visual,
html[data-tm-theme="dark"] .reg-side,
html[data-tm-theme="dark"] .reg-hero,
html[data-tm-theme="dark"] .login-form-card{
  background:linear-gradient(180deg,#171923 0%,#151621 100%)!important;
}
html[data-tm-theme="dark"] .login-input i,
html[data-tm-theme="dark"] .login-eye{color:#d8d2e8}
html[data-tm-theme="dark"] .login-alert,
html[data-tm-theme="dark"] .reg-alert{background:#351b21;border-color:#8c4650;color:#ffb4b7}
html[data-tm-theme="dark"] .login-role.active,
html[data-tm-theme="dark"] .reg-country,
html[data-tm-theme="dark"] .reg-benefit{background:#2b2631!important;border-color:#9b72e8!important}

/* Footer — both universal and isolated Home/Explore footer */
html[data-tm-theme="dark"] .tm-site-footer,
html[data-tm-theme="dark"] .tm-page-footer{
  background:
    radial-gradient(circle at 11% 48%,rgba(255,177,27,.055),transparent 23%),
    radial-gradient(circle at 83% 43%,rgba(137,93,255,.06),transparent 27%),
    linear-gradient(180deg,#151722 0%,#11121a 100%)!important;
  border-color:rgba(255,173,50,.70)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.34)!important;
}
html[data-tm-theme="dark"] .tm-footer-bottom,
html[data-tm-theme="dark"] .tm-page-footer-bottom{
  background:rgba(11,12,18,.90)!important;border-top-color:rgba(185,140,255,.20)!important;color:#9e98ae!important;
}
html[data-tm-theme="dark"] .tm-footer-contact-row i,
html[data-tm-theme="dark"] .tm-page-footer-contact-row i{background:#242637!important;border-color:rgba(185,140,255,.35)!important}
html[data-tm-theme="dark"] .tm-footer-stat strong,
html[data-tm-theme="dark"] .tm-page-footer-stat strong{color:#ffb64a}
html[data-tm-theme="dark"] .tm-footer-stat strong.tm-purple-text,
html[data-tm-theme="dark"] .tm-page-footer-stat strong.tm-page-purple-text{color:#c5a4ff}

/* Preserve the existing orange primary buttons while making their text legible */
html[data-tm-theme="dark"] .tm-register,
html[data-tm-theme="dark"] .login-submit,
html[data-tm-theme="dark"] .reg-submit,
html[data-tm-theme="dark"] .profile-btn-primary,
html[data-tm-theme="dark"] .support-button,
html[data-tm-theme="dark"] .ep-apply,
html[data-tm-theme="dark"] .tm-gold-button{
  color:#17120a!important;
}

/* Dark theme should not dim or recolor actual artwork */
html[data-tm-theme="dark"] img{filter:none!important}

/* Additional page-specific surfaces. These rules are intentionally additive and
   only activate when the user has selected Dark Mode. */
html[data-tm-theme="dark"] .tm-blog-hero,
html[data-tm-theme="dark"] .tm-blog-main,
html[data-tm-theme="dark"] .tm-blog-sidebar,
html[data-tm-theme="dark"] .tm-blog-layout,
html[data-tm-theme="dark"] .tm-faq-panel,
html[data-tm-theme="dark"] .tm-contact-list,
html[data-tm-theme="dark"] .tm-contact-panel,
html[data-tm-theme="dark"] .tm-contact-grid,
html[data-tm-theme="dark"] .hiw-step-card,
html[data-tm-theme="dark"] .hiw-trust-grid,
html[data-tm-theme="dark"] .hiw-hero,
html[data-tm-theme="dark"] .hiw-after-item,
html[data-tm-theme="dark"] .hiw-cta,
html[data-tm-theme="dark"] .commitment,
html[data-tm-theme="dark"] .eligibility-card,
html[data-tm-theme="dark"] .details-card,
html[data-tm-theme="dark"] .help-card,
html[data-tm-theme="dark"] .up-filters,
html[data-tm-theme="dark"] .up-pagination,
html[data-tm-theme="dark"] .up-panel-head,
html[data-tm-theme="dark"] .up-popular,
html[data-tm-theme="dark"] .up-why,
html[data-tm-theme="dark"] .up-subscribe,
html[data-tm-theme="dark"] .up-trust{
  background:#171923!important;
  color:#f4f1ff;
}

html[data-tm-theme="dark"] .tm-faq-search,
html[data-tm-theme="dark"] .tm-faq-tabs button,
html[data-tm-theme="dark"] .tm-qno,
html[data-tm-theme="dark"] .tm-contact-icon,
html[data-tm-theme="dark"] .tm-outline-button,
html[data-tm-theme="dark"] .hiw-big-icon,
html[data-tm-theme="dark"] .hiw-after-icon,
html[data-tm-theme="dark"] .up-field,
html[data-tm-theme="dark"] .up-reset,
html[data-tm-theme="dark"] .up-date,
html[data-tm-theme="dark"] .up-view-all,
html[data-tm-theme="dark"] .up-calendar-icon,
html[data-tm-theme="dark"] .profile-stats i,
html[data-tm-theme="dark"] .profile-verified-card>i,
html[data-tm-theme="dark"] .contact-mini>i{
  background:#20222f!important;
  color:#c9abff!important;
  border-color:rgba(185,140,255,.34)!important;
}

html[data-tm-theme="dark"] .tm-contact-form input,
html[data-tm-theme="dark"] .tm-contact-form select,
html[data-tm-theme="dark"] .tm-contact-form textarea,
html[data-tm-theme="dark"] .tm-faq-search input,
html[data-tm-theme="dark"] .reg-input input,
html[data-tm-theme="dark"] .reg-select input,
html[data-tm-theme="dark"] .reg-country input,
html[data-tm-theme="dark"] .tm-input input,
html[data-tm-theme="dark"] .tm-input textarea,
html[data-tm-theme="dark"] .tm-input select,
html[data-tm-theme="dark"] .live-chat-form input{
  background:transparent!important;color:#f4f1ff!important;
}

html[data-tm-theme="dark"] .ep-filter-card select,
html[data-tm-theme="dark"] .ep-results-head select,
html[data-tm-theme="dark"] .ep-search,
html[data-tm-theme="dark"] .ep-load,
html[data-tm-theme="dark"] .ep-reset,
html[data-tm-theme="dark"] .ep-book,
html[data-tm-theme="dark"] .live-chat-form,
html[data-tm-theme="dark"] .live-chat-form button,
html[data-tm-theme="dark"] .tm-selected-time,
html[data-tm-theme="dark"] .tm-calendar-box,
html[data-tm-theme="dark"] .tm-input,
html[data-tm-theme="dark"] .tm-offering,
html[data-tm-theme="dark"] .tm-change-puja{
  background:#20222f!important;color:#eeeaf8!important;border-color:rgba(185,140,255,.30)!important;
}

/* Readability for page-specific dark text that otherwise stays near-black. */
html[data-tm-theme="dark"] .ep-hero h1,
html[data-tm-theme="dark"] .ep-results-head h2 span,
html[data-tm-theme="dark"] .ep-rating,
html[data-tm-theme="dark"] .ep-rating small,
html[data-tm-theme="dark"] .up-time,
html[data-tm-theme="dark"] .up-card-body,
html[data-tm-theme="dark"] .tm-breadcrumb,
html[data-tm-theme="dark"] .up-breadcrumb,
html[data-tm-theme="dark"] .login-breadcrumb,
html[data-tm-theme="dark"] .reg-breadcrumb,
html[data-tm-theme="dark"] .profile-location,
html[data-tm-theme="dark"] .profile-meta,
html[data-tm-theme="dark"] .contact-mini small,
html[data-tm-theme="dark"] .tm-contact-form input::placeholder,
html[data-tm-theme="dark"] .tm-contact-form textarea::placeholder,
html[data-tm-theme="dark"] .tm-contact-form select,
html[data-tm-theme="dark"] .up-field input,
html[data-tm-theme="dark"] .up-field select,
html[data-tm-theme="dark"] .up-field span,
html[data-tm-theme="dark"] .up-subscribe p,
html[data-tm-theme="dark"] .up-side-card p,
html[data-tm-theme="dark"] .up-why small,
html[data-tm-theme="dark"] .refund-breadcrumb,
html[data-tm-theme="dark"] .refund-breadcrumb a,
html[data-tm-theme="dark"] .refund-hero-copy>p,
html[data-tm-theme="dark"] .commitment-copy p{
  color:#c4bfd0!important;
}

/* Headings and section labels on every reference page */
html[data-tm-theme="dark"] .tm-blog-hero-copy h1,
html[data-tm-theme="dark"] .tm-section-heading,
html[data-tm-theme="dark"] .hiw-section-title,
html[data-tm-theme="dark"] .hiw-hero h1,
html[data-tm-theme="dark"] .hiw-hero-copy,
html[data-tm-theme="dark"] .mandir-copy h2,
html[data-tm-theme="dark"] .about-note h2,
html[data-tm-theme="dark"] .profile-card-heading h2,
html[data-tm-theme="dark"] .login-heading h2,
html[data-tm-theme="dark"] .reg-section-title,
html[data-tm-theme="dark"] .refund-hero h1,
html[data-tm-theme="dark"] .center-heading h2{
  color:#f4f1ff;
}

/* White pseudo/inner surfaces used by the Home/Explore cards */
html[data-tm-theme="dark"] .puja-card-media,
html[data-tm-theme="dark"] .ep-card-image{background:#0e0b19!important}
html[data-tm-theme="dark"] .home-newsletter-form,
html[data-tm-theme="dark"] .newsletter-box input,
html[data-tm-theme="dark"] .newsletter-box,
html[data-tm-theme="dark"] .world-score,
html[data-tm-theme="dark"] .offer-counts i,
html[data-tm-theme="dark"] .daily-rail,
html[data-tm-theme="dark"] .article-card,
html[data-tm-theme="dark"] .testimonial{
  background:#20222f!important;color:#eeeaf8!important;
}
html[data-tm-theme="dark"] .why-list p b,
html[data-tm-theme="dark"] .daily-rail h3,
html[data-tm-theme="dark"] .article-card h3,
html[data-tm-theme="dark"] .article-card small,
html[data-tm-theme="dark"] .testimonial p,
html[data-tm-theme="dark"] .world-score small,
html[data-tm-theme="dark"] .world-trust p{
  color:#c4bfd0!important;
}

/* Artwork overlays only; actual image files remain unchanged. */
html[data-tm-theme="dark"] .ep-hero-image:after{
  background:linear-gradient(90deg,rgba(10,11,18,.92) 0%,rgba(10,11,18,.78) 26%,rgba(10,11,18,.32) 55%,rgba(10,11,18,.08) 78%,rgba(10,11,18,0) 100%)!important;
}
html[data-tm-theme="dark"] .tm-blog-hero-art:before,
html[data-tm-theme="dark"] .about-hero-art .art-fade{
  background:linear-gradient(90deg,rgba(10,11,18,.78),rgba(10,11,18,.24),transparent)!important;
}

/* Focus states remain visible against the dark surface. */
html[data-tm-theme="dark"] input:focus,
html[data-tm-theme="dark"] select:focus,
html[data-tm-theme="dark"] textarea:focus,
html[data-tm-theme="dark"] button:focus-visible,
html[data-tm-theme="dark"] a:focus-visible{
  outline-color:#c19aff;
}


/* Final readability guardrails — dark mode only. These do not alter dimensions,
   spacing, images, or the light theme. They only correct inherited/near-black text
   on surfaces that are otherwise covered by the page-specific rules above. */
html[data-tm-theme="dark"] body,
html[data-tm-theme="dark"] body p,
html[data-tm-theme="dark"] body li,
html[data-tm-theme="dark"] body label,
html[data-tm-theme="dark"] body dt,
html[data-tm-theme="dark"] body dd,
html[data-tm-theme="dark"] body th,
html[data-tm-theme="dark"] body td{
  color:inherit;
}
html[data-tm-theme="dark"] input,
html[data-tm-theme="dark"] select,
html[data-tm-theme="dark"] textarea{
  caret-color:#d2b5ff!important;
}
html[data-tm-theme="dark"] input::placeholder,
html[data-tm-theme="dark"] textarea::placeholder{
  color:#928ba4!important;
  opacity:1!important;
}
html[data-tm-theme="dark"] hr{border-color:rgba(185,140,255,.22)!important}
html[data-tm-theme="dark"] .tm-auth .tm-login{color:#f4f1ff!important;background:#191b27!important;border-color:#9b72e8!important}
html[data-tm-theme="dark"] .tm-auth .tm-register{color:#17120a!important}

@media(max-width:820px){
  /* Compact enough for 360–520px screens while retaining the reference pill look. */
  .tm-theme-toggle{width:88px!important;height:34px!important;border-radius:18px!important}
  .tm-theme-toggle-knob{width:38px!important;height:24px!important;top:4px!important;left:4px!important}
  .tm-theme-toggle[data-state="dark"] .tm-theme-toggle-knob{transform:translateX(42px)!important}
  .tm-theme-toggle-label{gap:2px!important;font-size:6px!important}
  .tm-theme-toggle-label svg{width:12px!important;height:12px!important}
}
@media(max-width:380px){
  .tm-theme-toggle{width:82px!important}
  .tm-theme-toggle[data-state="dark"] .tm-theme-toggle-knob{transform:translateX(39px)!important}
  .tm-theme-toggle-label span{letter-spacing:0!important}
}


@media (prefers-reduced-motion: reduce){
  .tm-theme-toggle,
  .tm-theme-toggle-knob,
  .tm-theme-toggle-label{transition:none!important}
}
