/* =============================================================
   NARESH ONLINE CENTER — Smart Widgets & Ultra-Modern Styles
   Features:
   1. 3D Holographic Tilt & Shimmer (ग्लास रिफ्लेक्शन)
   2. Voice Search Modal with Audio Wave (बोलकर खोजें)
   3. Smart Live Fee Calculator (डिजिटल फीस कैलकुलेटर)
   4. Live Social Activity Toaster (लाइव अपडेट नोटिफिकेशन)
   5. Dynamic Glassmorphic Floating Dock (आधुनिक फ्लोटिंग डॉक)
   6. Cyber Dark Mode & Glow Effects (स्मार्ट डार्क मोड)
   ============================================================= */

/* ── 1. HIGH-CONTRAST DARK MODE ENGINE ── */
body.dark-mode {
  --bg:           #0B1120 !important;
  --bg2:          #0F172A !important;
  --card-bg:      #1E293B !important;
  --text:         #F8FAFC !important;
  --text-sub:     #CBD5E1 !important;
  --text-light:   #94A3B8 !important;
  --border:       #334155 !important;
  background-color: #0B1120 !important;
  color: #F8FAFC !important;
}


/* ── UNIVERSAL HIGH-CONTRAST DARK MODE ENGINE (ALL PAGES & COMPONENTS) ── */

/* 1. Header, Navigation & Dropdowns */
body.dark-mode .header {
  background: #0F172A !important;
  border-bottom: 1px solid #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .logo-text h1,
body.dark-mode .logo-text div {
  color: #FFFFFF !important;
}
body.dark-mode .logo-text p {
  color: #94A3B8 !important;
}
body.dark-mode .nav-link {
  color: #E2E8F0 !important;
}
body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
  color: #38BDF8 !important;
}
body.dark-mode .dropdown {
  background: #1E293B !important;
  border: 1.5px solid #334155 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}
body.dark-mode .dropdown a {
  color: #E2E8F0 !important;
  border-bottom-color: #334155 !important;
}
body.dark-mode .dropdown a:hover {
  background: #24344D !important;
  color: #FFFFFF !important;
}
body.dark-mode .dropdown a i {
  color: #38BDF8 !important;
}
body.dark-mode .gov-disclaimer-strip {
  background: #0F172A !important;
  color: #93C5FD !important;
  border-bottom: 1px solid #334155 !important;
}
body.dark-mode .gov-disclaimer-strip strong {
  color: #FBBF24 !important;
}
body.dark-mode .hamburger span {
  background: #FFFFFF !important;
}

/* 2. All Card Containers & Surface Boxes */
body.dark-mode .section,
body.dark-mode .section-alt,
body.dark-mode .section-bg-light,
body.dark-mode .card,
body.dark-mode .q12-card,
body.dark-mode .hero-card,
body.dark-mode .stat-item,
body.dark-mode .svc-card,
body.dark-mode .sv-card,
body.dark-mode .sc-card,
body.dark-mode .itr-card,
body.dark-mode .pmk-card,
body.dark-mode .prv-card,
body.dark-mode .bk-core-card,
body.dark-mode .bk-bank-tile,
body.dark-mode .bk-stat-box,
body.dark-mode .bk-card-box,
body.dark-mode .smart-calc-box,
body.dark-mode .smart-tools-box,
body.dark-mode .calc-item,
body.dark-mode .tool-result-display,
body.dark-mode .service-card,
body.dark-mode .service-section,
body.dark-mode .token-slip-card,
body.dark-mode .interactive-wizard-card,
body.dark-mode .pt-card,
body.dark-mode .pt-qcard,
body.dark-mode .job-card,
body.dark-mode .yi-card,
body.dark-mode .dept-card,
body.dark-mode .tool-section-card,
body.dark-mode .hub-card,
body.dark-mode .contact-card,
body.dark-mode .faq-card,
body.dark-mode .about-card,
body.dark-mode .scheme-table-wrap,
body.dark-mode .ap-card,
body.dark-mode .guide-card,
body.dark-mode .story-card {
  background-color: #1E293B !important;
  border-color: #334155 !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Card inner headers, footers & sub-boxes */
body.dark-mode .dept-card-head,
body.dark-mode .tool-card-head,
body.dark-mode .sc-card-top,
body.dark-mode .sc-card-footer,
body.dark-mode .job-bottom,
body.dark-mode .pt-details-box,
body.dark-mode .tool-result-box,
body.dark-mode .sc-price-row,
body.dark-mode .pt-server-status-banner,
body.dark-mode .contact-info-box,
body.dark-mode .notice-container,
body.dark-mode .notice-bar {
  background-color: #0F172A !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}

/* 3. Typography — Headings, Paragraphs, Lists & Labels */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode strong,
body.dark-mode b,
body.dark-mode th,
body.dark-mode .pt-hero-title,
body.dark-mode .pt-portal-name,
body.dark-mode .pt-qcard-title,
body.dark-mode .job-title,
body.dark-mode .sc-card-title,
body.dark-mode .dept-card-head h3,
body.dark-mode .cat-heading h2,
body.dark-mode .tool-head-title h2,
body.dark-mode .section-title h2,
body.dark-mode .sec-title,
body.dark-mode .fc-title,
body.dark-mode .q12-title,
body.dark-mode .hero-card-title,
body.dark-mode .bk-core-title,
body.dark-mode .svc-name,
body.dark-mode .sv-card-title {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode .pt-portal-desc,
body.dark-mode .pt-qcard-desc,
body.dark-mode .job-desc,
body.dark-mode .sc-card-body p,
body.dark-mode .tool-head-title p,
body.dark-mode .hero-desc,
body.dark-mode .section-desc,
body.dark-mode .cat-heading span,
body.dark-mode .q12-desc,
body.dark-mode .bk-core-desc,
body.dark-mode .calc-name,
body.dark-mode .sv-card-sub,
body.dark-mode .dept-card-head span {
  color: #CBD5E1 !important;
}

body.dark-mode label,
body.dark-mode .tool-input-group label,
body.dark-mode .form-label,
body.dark-mode .form-group label {
  color: #F1F5F9 !important;
  font-weight: 600;
}

body.dark-mode small,
body.dark-mode .text-muted,
body.dark-mode .pt-qcard-dept,
body.dark-mode .pt-dept-tag,
body.dark-mode .job-org,
body.dark-mode .sc-card-sub,
body.dark-mode .hero-card-sub,
body.dark-mode .meta-date {
  color: #94A3B8 !important;
}

/* 4. Links */
body.dark-mode a:not(.btn-primary):not(.btn-secondary):not(.btn-cta):not(.btn-login):not(.btn-launch-portal):not(.btn-laplap-glow):not(.calc-wa-btn):not(.tool-action-btn):not(.svc-btn-link):not(.svc-btn-wa):not(.sc-btn):not(.job-apply-btn):not(.job-notify-btn):not(.tool-btn-whatsapp):not(.pt-qbtn-direct):not(.pt-qbtn-help):not(.pt-ssb-btn):not(.toast-action-link) {
  color: #60A5FA !important;
}
body.dark-mode a:hover {
  color: #93C5FD !important;
}

/* 5. Filter Bars, Search Bars & Inputs */
body.dark-mode .filter-bar,
body.dark-mode .nj-filter,
body.dark-mode .pt-filter-section,
body.dark-mode .dept-filter-bar {
  background: #0F172A !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .filter-btn,
body.dark-mode .pt-filter-btn,
body.dark-mode .nf-btn,
body.dark-mode .dept-pill,
body.dark-mode .tab-btn,
body.dark-mode .tool-pill,
body.dark-mode .svc-filter-btn {
  background: #1E293B !important;
  color: #CBD5E1 !important;
  border: 1.5px solid #334155 !important;
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover,
body.dark-mode .pt-filter-btn.active,
body.dark-mode .pt-filter-btn:hover,
body.dark-mode .nf-btn.active,
body.dark-mode .nf-btn:hover,
body.dark-mode .dept-pill.active,
body.dark-mode .dept-pill:hover,
body.dark-mode .tab-btn.active,
body.dark-mode .tab-btn:hover,
body.dark-mode .tool-pill:hover,
body.dark-mode .svc-filter-btn.active,
body.dark-mode .svc-filter-btn:hover {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

body.dark-mode input:not([type="submit"]):not([type="button"]),
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .tool-input-control,
body.dark-mode .pt-search-input,
body.dark-mode .yojana-search-input,
body.dark-mode .ap-search-input,
body.dark-mode .dept-search-box input {
  background-color: #0F172A !important;
  border: 1.5px solid #475569 !important;
  color: #F8FAFC !important;
}

body.dark-mode input:focus,
body.dark-mode select:focus,
body.dark-mode textarea:focus,
body.dark-mode .tool-input-control:focus,
body.dark-mode .pt-search-input:focus,
body.dark-mode .yojana-search-input:focus,
body.dark-mode .ap-search-input:focus {
  border-color: #38BDF8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
  background-color: #0F172A !important;
}

body.dark-mode ::placeholder {
  color: #94A3B8 !important;
  opacity: 0.9;
}

body.dark-mode .pt-search-box,
body.dark-mode .search-box,
body.dark-mode .ap-search-box,
body.dark-mode .yojana-search-box {
  background: #1E293B !important;
  border-color: #475569 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* 6. Tables */
body.dark-mode table,
body.dark-mode .scheme-table {
  background: #1E293B !important;
  border-color: #334155 !important;
}
body.dark-mode th,
body.dark-mode .scheme-table th {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border-color: #334155 !important;
}
body.dark-mode td,
body.dark-mode .scheme-table td {
  background: #1E293B !important;
  color: #CBD5E1 !important;
  border-color: #334155 !important;
}
body.dark-mode tr:hover td,
body.dark-mode .scheme-table tr:hover td {
  background: #24344D !important;
  color: #FFFFFF !important;
}
body.dark-mode .scheme-name-link {
  color: #60A5FA !important;
}
body.dark-mode .scheme-name-link:hover {
  color: #93C5FD !important;
}

/* 7. Result Rows & Stats in Citizen Tools */
body.dark-mode .result-stat-row {
  border-bottom-color: #334155 !important;
  color: #CBD5E1 !important;
}
body.dark-mode .result-stat-val {
  color: #38BDF8 !important;
}
body.dark-mode .result-stat-highlight {
  color: #34D399 !important;
}

/* 8. Badges, Chips & Meta Pills */
body.dark-mode .tag-cg,
body.dark-mode .pt-status-live,
body.dark-mode .jm-salary {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34D399 !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
}
body.dark-mode .tag-kendra,
body.dark-mode .jm-last {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #F87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.4) !important;
}
body.dark-mode .jm-posts,
body.dark-mode .sc-badge,
body.dark-mode .service-counter-badge,
body.dark-mode .pt-filter-count {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(147, 197, 253, 0.4) !important;
}
body.dark-mode .jm-date,
body.dark-mode .jm-edu {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
}
body.dark-mode .pt-ssb-pill {
  background: #0F172A !important;
  color: #E2E8F0 !important;
  border-color: #334155 !important;
}
body.dark-mode .pt-portal-icon {
  background: #0F172A !important;
  color: #38BDF8 !important;
}
body.dark-mode .pt-dept-hub-banner {
  background: #064E3B !important;
  border-color: #047857 !important;
}
body.dark-mode .pt-dhb-text h3 {
  color: #ECFDF5 !important;
}
body.dark-mode .pt-dhb-text p {
  color: #A7F3D0 !important;
}
body.dark-mode .job-post {
  color: #38BDF8 !important;
}
body.dark-mode .sc-fee {
  color: #38BDF8 !important;
}
body.dark-mode .sc-time {
  color: #34D399 !important;
}


/* ── LAP-LAP COLORFUL PULSING BADGES & KEYFRAMES ── */
@keyframes laplapBlink {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.85)); }
  50% { opacity: 0.55; transform: scale(0.96); filter: drop-shadow(0 0 2px rgba(239, 68, 68, 0.25)); }
}
@keyframes laplapGreen {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.85)); }
  50% { opacity: 0.55; transform: scale(0.96); filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.25)); }
}
@keyframes laplapAmber {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.85)); }
  50% { opacity: 0.55; transform: scale(0.96); filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.25)); }
}
@keyframes laplapBlue {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.85)); }
  50% { opacity: 0.55; transform: scale(0.96); filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.25)); }
}
@keyframes laplapPurple {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.85)); }
  50% { opacity: 0.55; transform: scale(0.96); filter: drop-shadow(0 0 2px rgba(168, 85, 247, 0.25)); }
}
@keyframes laplapCyan {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.85)); }
  50% { opacity: 0.55; transform: scale(0.96); filter: drop-shadow(0 0 2px rgba(6, 182, 212, 0.25)); }
}

.svc-badge, .svc-badge-new {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.63rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  white-space: nowrap;
}
.badge-red, .svc-badge-new {
  background: linear-gradient(135deg, #EF4444, #DC2626) !important;
  color: #FFFFFF !important;
  animation: laplapBlink 1.1s ease-in-out infinite !important;
}
.badge-green {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFFFFF !important;
  animation: laplapGreen 1.2s ease-in-out infinite !important;
}
.badge-amber {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  color: #FFFFFF !important;
  animation: laplapAmber 1s ease-in-out infinite !important;
}
.badge-blue {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8) !important;
  color: #FFFFFF !important;
  animation: laplapBlue 1.25s ease-in-out infinite !important;
}
.badge-purple {
  background: linear-gradient(135deg, #A855F7, #7E22CE) !important;
  color: #FFFFFF !important;
  animation: laplapPurple 1.15s ease-in-out infinite !important;
}
.badge-cyan {
  background: linear-gradient(135deg, #06B6D4, #0891B2) !important;
  color: #FFFFFF !important;
  animation: laplapCyan 1.05s ease-in-out infinite !important;
}

/* Ensure light elements preserve black text */
body.dark-mode .token-number-badge,
body.dark-mode .badge-laplap-new,
body.dark-mode .badge-laplap-live,
body.dark-mode .badge-laplap-hot {
  color: #fff !important;
}

/* ── 2. 3D HOLOGRAPHIC TILT & SPECULAR SHINE ── */
.holo-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.holo-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.22), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.holo-card:hover::after {
  opacity: 1;
}

/* ── 3. VOICE SEARCH BUTTON & MODAL ── */
.voice-search-btn {
  background: linear-gradient(135deg, #EF4444, #F43F5E);
  color: #fff;
  border: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.voice-search-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
}

.voice-search-btn.listening {
  animation: voicePulse 1.2s infinite;
}
@keyframes voicePulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70%  { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Voice Modal Overlay */
.voice-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.voice-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.voice-modal-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 36px 30px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .voice-modal-card {
  background: #1E293B;
  color: #F8FAFC;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.voice-modal-overlay.active .voice-modal-card {
  transform: scale(1);
}

.voice-mic-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.45);
  animation: micFloat 2s ease-in-out infinite;
}
@keyframes micFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Equalizer Waves */
.sound-wave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  margin: 18px 0;
}
.sound-bar {
  width: 5px;
  height: 12px;
  background: linear-gradient(180deg, #EF4444, #F59E0B);
  border-radius: 4px;
  animation: waveAnim 1.2s ease-in-out infinite;
}
.sound-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-bar:nth-child(2) { animation-delay: 0.3s; }
.sound-bar:nth-child(3) { animation-delay: 0.5s; }
.sound-bar:nth-child(4) { animation-delay: 0.2s; }
.sound-bar:nth-child(5) { animation-delay: 0.4s; }
@keyframes waveAnim {
  0%, 100% { height: 10px; }
  50%       { height: 36px; }
}

.voice-transcript {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  min-height: 32px;
  margin: 10px 0 16px;
}
body.dark-mode .voice-transcript { color: #F8FAFC; }

.voice-hints {
  font-size: 0.8rem;
  color: #64748B;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 14px;
}
body.dark-mode .voice-hints { background: #334155; color: #CBD5E1; }

.btn-close-voice {
  position: absolute;
  top: 14px; right: 14px;
  background: #F1F5F9;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-mode .btn-close-voice { background: #334155; color: #F8FAFC; }

/* ── 4. SMART CSC FEE & SERVICE CALCULATOR ── */
.smart-calc-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 2px solid #E2E8F0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  margin: 30px auto;
  max-width: 1320px;
  width: 100%;
  box-sizing: border-box;
}
body.dark-mode .smart-calc-box {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-color: #334155;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #E2E8F0;
}
body.dark-mode .calc-header { border-color: #334155; }

.calc-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669, #10B981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.calc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.calc-tab {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.calc-tab:hover, .calc-tab.active {
  background: #0F2347;
  color: #fff;
  border-color: #0F2347;
}
body.dark-mode .calc-tab {
  background: #1E293B;
  border-color: #334155;
  color: #CBD5E1;
}
body.dark-mode .calc-tab.active {
  background: #10B981;
  border-color: #10B981;
  color: #fff;
}

.calc-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.calc-item {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .calc-item {
  background: #1E293B;
  border-color: #334155;
}
.calc-item:hover {
  border-color: #10B981;
  transform: translateY(-2px);
}
.calc-item.selected {
  background: #F0FDF4;
  border-color: #10B981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}
body.dark-mode .calc-item.selected {
  background: #064E3B;
  border-color: #34D399;
}

.calc-item-info { display: flex; align-items: center; gap: 10px; }
.calc-checkbox {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid #CBD5E1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.75rem; transition: all 0.2s ease;
}
.calc-item.selected .calc-checkbox {
  background: #10B981;
  border-color: #10B981;
}

.calc-name { font-size: 0.88rem; font-weight: 700; color: #0F172A; }
body.dark-mode .calc-name { color: #F8FAFC; }
.calc-price { font-size: 0.85rem; font-weight: 800; color: #059669; }
body.dark-mode .calc-price { color: #34D399; }

/* Total Bar */
.calc-total-bar {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #fff;
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.calc-total-label { font-size: 0.9rem; color: #94A3B8; }
.calc-total-amount { font-size: 1.8rem; font-weight: 900; color: #FBBF24; }

.calc-wa-btn {
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.calc-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ── 5. LIVE SOCIAL ACTIVITY TOASTER ── */
.live-toast-widget {
  position: fixed;
  bottom: 85px;
  left: 18px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  z-index: 990;
  max-width: 360px;
  width: calc(100% - 36px);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}
body.dark-mode .live-toast-widget {
  background: rgba(30, 41, 59, 0.98);
  border-color: #334155;
  color: #F8FAFC;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.live-toast-widget.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-avatar {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25);
  margin-top: 2px;
}
.toast-content-wrap {
  flex: 1;
  min-width: 0;
}
.toast-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.toast-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
body.dark-mode .toast-badge {
  background: #1E293B;
  color: #93C5FD;
  border-color: #3B82F6;
}
.toast-msg-time {
  font-size: 0.70rem;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.dark-mode .toast-msg-time { color: #94A3B8; }
.toast-close-btn {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: #94A3B8;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
}
.toast-close-btn:hover { color: #DC2626; }
.toast-msg-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}
body.dark-mode .toast-msg-title { color: #F8FAFC; }
.toast-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed rgba(226, 232, 240, 0.8);
}
body.dark-mode .toast-action-row {
  border-top-color: #334155;
}
.toast-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff !important;
  background: #16A34A;
  padding: 3px 9px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.toast-action-link:hover {
  background: #15803D;
}
.toast-center-tag {
  font-size: 0.68rem;
  color: #64748B;
  font-weight: 600;
}
body.dark-mode .toast-center-tag { color: #94A3B8; }

/* ── 6. DYNAMIC GLASSMORPHIC FLOATING DOCK (iOS STYLE) ── */
.sticky-bar, .sticky-nj, .sticky-ct, .sticky-sv {
  display: none !important;
}
@media (min-width: 769px) {
  .sticky-book,
  .sticky-bottom-bar,
  .mobile-bottom-bar,
  .sb-sticky-bar,
  .sticky-pay-bar,
  .sticky-sv,
  .sticky-nj,
  .sticky-ct,
  .sticky-bar,
  .sticky-order-bar,
  .itr-bottom-bar,
  .ap-bottom-bar,
  .prv-bottom-bar,
  .sch-bottom-bar,
  .pmk-bottom-bar,
  .bk-sticky-bar,
  .so-sticky-bar,
  div[class*="-bottom-bar"]:not(body),
  div[class*="bottom-bar"]:not(.notice-container):not(.topbar):not(body),
  div[class*="sticky-"][class*="-bar"]:not(body) {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .dynamic-dock {
    bottom: 10px !important;
  }
  body {
    padding-bottom: 75px !important;
  }
}

/* Universal footer clearance so floating dock never overlaps copyright/disclaimer */
.footer-compact,
.footer {
  padding-bottom: 75px !important;
}
@media (max-width: 768px) {
  .footer-compact,
  .footer {
    padding-bottom: 115px !important;
  }
}

.dynamic-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .dynamic-dock {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.dock-item {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  text-decoration: none;
  font-size: 1.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
body.dark-mode .dock-item { color: #CBD5E1; }
.dock-item:hover {
  transform: translateY(-5px) scale(1.15);
  background: rgba(0,0,0,0.06);
  color: #10B981;
}
body.dark-mode .dock-item:hover {
  background: rgba(255,255,255,0.1);
  color: #34D399;
}

.dock-item.dock-highlight {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.dock-item.dock-highlight:hover {
  transform: translateY(-6px) scale(1.18);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.55);
}

.dock-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #0F172A;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
}
.dock-item:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 7. LIVE CENTER STATUS & DIGITAL CLOCK BAR ── */
.live-center-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(6, 95, 70, 0.04));
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 10px 18px;
  margin: 16px auto;
  max-width: 1320px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08);
}
body.dark-mode .live-center-status-bar {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}

.lcs-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lcs-indicator {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981, 0 0 20px #10B981;
  animation: laplapDotPulse 1.2s infinite ease-in-out;
}
.lcs-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #065F46;
}
body.dark-mode .lcs-text { color: #6EE7B7; }
.lcs-sub {
  font-size: 0.78rem;
  color: #047857;
  font-weight: 500;
}
body.dark-mode .lcs-sub { color: #A7F3D0; }

.lcs-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lcs-clock {
  background: #fff;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Inter', monospace;
  font-weight: 800;
  font-size: 0.86rem;
  color: #065F46;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.dark-mode .lcs-clock {
  background: #1E293B;
  color: #34D399;
  border-color: #334155;
}

/* ── 8. AUDIO SPEECH READER (TTS) PILL ── */
.tts-reader-btn {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.tts-reader-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}
.tts-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}
.tts-wave-bar {
  width: 3px;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  animation: ttsWaveAnim 0.8s infinite ease-in-out alternate;
}
.tts-wave-bar:nth-child(2) { animation-delay: 0.2s; }
.tts-wave-bar:nth-child(3) { animation-delay: 0.4s; }
.tts-wave-bar:nth-child(4) { animation-delay: 0.15s; }
@keyframes ttsWaveAnim {
  0%   { height: 3px; }
  100% { height: 14px; }
}

/* ── 9. AI SMART SERVICE FINDER MODAL ── */
.ai-finder-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ai-finder-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.ai-finder-card {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 24px 22px;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .ai-finder-card {
  background: #1E293B;
  color: #F8FAFC;
  border-color: #334155;
}
.ai-finder-overlay.active .ai-finder-card {
  transform: translateY(0) scale(1);
}
.ai-finder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  border-bottom: 1.5px solid #E2E8F0;
  padding-bottom: 14px;
}
body.dark-mode .ai-finder-header { border-color: #334155; }
.ai-badge {
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* AI Interactive Search & Prompt Bar */
.ai-search-container {
  margin-bottom: 16px;
  position: relative;
}
.ai-search-input-wrap {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 4px 8px 4px 14px;
  transition: all 0.2s ease;
}
.ai-search-input-wrap:focus-within {
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
body.dark-mode .ai-search-input-wrap {
  background: #0F172A;
  border-color: #334155;
}
body.dark-mode .ai-search-input-wrap:focus-within {
  border-color: #60A5FA;
  background: #1E293B;
}
.ai-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  padding: 8px 6px;
  color: #0F172A;
  font-family: inherit;
}
body.dark-mode .ai-search-input {
  color: #F8FAFC;
}
.ai-search-mic-btn {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #2563EB;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.ai-search-mic-btn:hover {
  background: #2563EB;
  color: #fff;
}
.ai-quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scrollbar-width: thin;
}
.ai-chip {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.ai-chip:hover {
  background: #2563EB;
  color: #fff;
  border-color: #2563EB;
  transform: translateY(-1px);
}
body.dark-mode .ai-chip {
  background: #0F172A;
  border-color: #334155;
  color: #CBD5E1;
}
body.dark-mode .ai-chip:hover {
  background: #3B82F6;
  color: #fff;
}

/* Category Grid */
.ai-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px;
}
.ai-cat-btn {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
body.dark-mode .ai-cat-btn {
  background: #0F172A;
  border-color: #334155;
  color: #F8FAFC;
}
.ai-cat-btn:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
  transform: translateX(3px);
}
body.dark-mode .ai-cat-btn:hover {
  background: #1E293B;
  border-color: #60A5FA;
}
.ai-cat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #DBEAFE;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Result Box */
.ai-res-box {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s;
}
.ai-res-box:hover {
  border-color: #93C5FD;
}
body.dark-mode .ai-res-box {
  background: #0F172A;
  border-color: #334155;
}
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 6px;
  margin-bottom: 6px;
}
.ai-tag-time { background: #DCFCE7; color: #15803D; }
.ai-tag-fee { background: #FEF3C7; color: #B45309; }
.ai-tag-cat { background: #EEF2FF; color: #4338CA; }
body.dark-mode .ai-tag-time { background: rgba(34, 197, 94, 0.15); color: #4ADE80; }
body.dark-mode .ai-tag-fee { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
body.dark-mode .ai-tag-cat { background: rgba(99, 102, 241, 0.15); color: #A5B4FC; }

/* AI Answer Callout */
.ai-faq-answer {
  background: #EFF6FF;
  border-left: 4px solid #2563EB;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  font-size: 0.86rem;
  color: #1E3A8A;
  line-height: 1.5;
  margin-bottom: 12px;
}
body.dark-mode .ai-faq-answer {
  background: rgba(37, 99, 235, 0.15);
  border-left-color: #60A5FA;
  color: #BFDBFE;
}

/* ── 10. PHOTO & SIGNATURE RESIZE HELPER MODAL ── */
.tool-helper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tool-helper-tile {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
}
body.dark-mode .tool-helper-tile {
  background: #0F172A;
  border-color: #334155;
}

@media (max-width: 640px) {
  .dynamic-dock {
    bottom: 8px;
    padding: 5px 10px;
    gap: 6px;
  }
  .dock-item {
    width: 38px; height: 38px;
    font-size: 1rem;
  }
  .live-center-status-bar {
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 12px;
    margin-right: 12px;
    width: calc(100% - 24px);
  }
  .smart-tools-box,
  .smart-calc-box {
    margin-left: 12px;
    margin-right: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }
}

/* ── 11. SMART FUNCTIONS & TOOLS HUB (नए फंक्शन) ── */
.smart-tools-box {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  margin: 32px auto;
  max-width: 1320px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
body.dark-mode .smart-tools-box {
  background: #1E293B;
  border-color: #334155;
  color: #F8FAFC;
}

.tools-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #F1F5F9;
  padding-bottom: 14px;
}
body.dark-mode .tools-box-header { border-color: #334155; }

.tools-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-tab-btn {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-mode .tool-tab-btn {
  background: #0F172A;
  border-color: #334155;
  color: #CBD5E1;
}
.tool-tab-btn:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1D4ED8;
}
body.dark-mode .tool-tab-btn:hover {
  background: #1E293B;
  border-color: #60A5FA;
  color: #93C5FD;
}
.tool-tab-btn.active {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  border-color: #1D4ED8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
body.dark-mode .tool-tab-btn.active {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  border-color: #3B82F6;
  color: #fff;
}

.tools-tab-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}
.tools-tab-panel.active {
  display: block;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tool-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.tool-input-wrap label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
}
body.dark-mode .tool-input-wrap label { color: #CBD5E1; }
.tool-input-wrap input,
.tool-input-wrap select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  background: #fff;
  color: #0F172A;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
body.dark-mode .tool-input-wrap input,
body.dark-mode .tool-input-wrap select {
  background: #0F172A;
  border-color: #334155;
  color: #F8FAFC;
}
.tool-input-wrap input:focus,
.tool-input-wrap select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tool-action-btn {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}
.tool-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.tool-result-display {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-top: 16px;
}
body.dark-mode .tool-result-display {
  background: #0F172A;
  border-color: #334155;
}

/* ── Digital E-Token Slip Styling ── */
.token-slip-card {
  background: #fff;
  border: 2px dashed #3B82F6;
  border-radius: 18px;
  padding: 20px;
  max-width: 480px;
  margin: 16px auto;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
  text-align: center;
}
body.dark-mode .token-slip-card {
  background: #1E293B;
  border-color: #60A5FA;
}
.token-number-badge {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-block;
  margin: 10px 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* =========================================================
   DYNAMIC GLASSMORPHIC FLOATING DOCK (iOS STYLE)
   ========================================================= */
.dynamic-dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 35, 71, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  padding: 6px 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 107, 53, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.dynamic-dock:hover {
  background: rgba(15, 35, 71, 0.96);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 28px rgba(255, 107, 53, 0.4);
}
.dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s ease;
}
.dock-item:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.45);
}
.dock-item.dock-highlight {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}
.dock-item.dock-highlight:hover {
  transform: translateY(-5px) scale(1.15);
}
.dock-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #0F172A;
  color: #F8FAFC;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.dock-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0F172A;
}
.dock-item:hover .dock-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dark mode dock */
body.dark-mode .dynamic-dock {
  background: rgba(11, 17, 32, 0.92);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
}

@media (max-width: 640px) {
  .dynamic-dock {
    bottom: 12px;
    gap: 6px;
    padding: 5px 8px;
  }
  .dock-item {
    width: 38px;
    height: 38px;
    font-size: 0.98rem;
  }
  .dock-tooltip { display: none; }
}

/* =============================================================
   FULL-PAGE LAYOUT — सभी पेज पर Left-Right Full Screen
   Widget sections fill screen properly on all devices
   ============================================================= */

/* ── All widget section wrappers fill full width ── */
.smart-calc-box,
.smart-tools-box,
.live-center-status-bar {
  box-sizing: border-box;
  width: 100%;
}

/* On medium screens — reduce padding slightly */
@media (max-width: 1280px) {
  .smart-calc-box,
  .smart-tools-box {
    padding: 24px;
  }
  .live-center-status-bar {
    padding: 10px 16px;
  }
}

/* On tablet */
@media (max-width: 1024px) {
  .smart-calc-box,
  .smart-tools-box {
    border-radius: 18px;
    padding: 22px;
  }
  .calc-services-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .ai-cat-grid {
    grid-template-columns: 1fr;
  }
}

/* On mobile — full-width with side margins */
@media (max-width: 768px) {
  .smart-calc-box,
  .smart-tools-box {
    margin: 20px 12px;
    width: calc(100% - 24px);
    border-radius: 16px;
    padding: 18px 16px;
  }

  .live-center-status-bar {
    margin: 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .calc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .calc-total-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .calc-total-amount {
    font-size: 1.5rem;
  }

  .tools-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tool-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ai-finder-card {
    border-radius: 16px;
    padding: 16px 14px;
    max-height: 95vh;
  }

  .ai-cat-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .voice-modal-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .voice-mic-circle {
    width: 68px;
    height: 68px;
    font-size: 1.9rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .smart-calc-box,
  .smart-tools-box {
    margin: 14px 10px;
    width: calc(100% - 20px);
    padding: 14px 12px;
    border-radius: 14px;
  }

  .live-center-status-bar {
    margin: 10px;
    width: calc(100% - 20px);
    padding: 10px 12px;
    border-radius: 12px;
  }

  .calc-services-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-tabs {
    gap: 6px;
  }

  .calc-tab {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .tool-tab-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .lcs-right {
    flex-wrap: wrap;
    gap: 8px;
  }

  .token-slip-card {
    margin: 12px 0;
    padding: 16px;
  }

  .dynamic-dock {
    bottom: 8px;
    padding: 4px 8px;
    gap: 4px;
    max-width: calc(100vw - 20px);
  }

  .dock-item {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ── Ensure widget sections inside .container don't overflow ── */
.container .smart-calc-box,
.container .smart-tools-box {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}

/* ── Toast widget — stays within viewport ── */
.live-toast-widget {
  max-width: min(340px, calc(100vw - 36px));
}

/* ── Voice modal — proper mobile sizing ── */
@media (max-width: 480px) {
  .voice-modal-card {
    padding: 20px 16px;
    border-radius: 18px;
    max-width: calc(100vw - 32px);
  }
}

/* ── AI Finder — fits all screens ── */
@media (max-width: 480px) {
  .ai-finder-card {
    padding: 14px 12px;
    border-radius: 14px;
    max-height: 96vh;
  }
  .ai-quick-chips {
    gap: 6px;
  }
  .ai-chip {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}

/* ── Dark mode widget full-width fixes ── */
body.dark-mode .smart-calc-box {
  margin-left: auto;
  margin-right: auto;
}
body.dark-mode .smart-tools-box {
  margin-left: auto;
  margin-right: auto;
}

/* ── Section wrapper for widgets — adds proper container padding ── */
.widget-section-wrap {
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  max-width: 1320px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .widget-section-wrap {
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .widget-section-wrap {
    padding: 0 10px;
  }
}

/* =====================================================
   UNIVERSAL HIGH-CONTRAST DARK MODE ENGINE (ALL PAGES)
   Guarantees 100% text legibility & crisp contrast across all 159 pages
   ===================================================== */
body.dark-mode {
  background-color: #0B0F19 !important;
  color: #F8FAFC !important;
}

/* 1. All Headings, Titles & Emphasized Text: Pure White */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode th,
body.dark-mode dt,
body.dark-mode strong,
body.dark-mode b,
body.dark-mode [class*="-title"],
body.dark-mode [class*="-heading"],
body.dark-mode [class*="-header"] h1,
body.dark-mode [class*="-header"] h2,
body.dark-mode [class*="-header"] h3,
body.dark-mode [class*="-header"] h4,
body.dark-mode [class*="-card"] h1,
body.dark-mode [class*="-card"] h2,
body.dark-mode [class*="-card"] h3,
body.dark-mode [class*="-card"] h4,
body.dark-mode [class*="-val"],
body.dark-mode [class*="-value"],
body.dark-mode [class*="-stat-val"],
body.dark-mode [class*="-num"],
body.dark-mode [class*="-faq-q"],
body.dark-mode [class*="-step-title"] {
  color: #FFFFFF !important;
}

/* 2. All Body Text, Paragraphs, Lists, Labels & Descriptions: Crisp Light Slate */
body.dark-mode p,
body.dark-mode li,
body.dark-mode dd,
body.dark-mode label,
body.dark-mode small,
body.dark-mode td,
body.dark-mode [class*="-desc"],
body.dark-mode [class*="-subtitle"],
body.dark-mode [class*="-sub"],
body.dark-mode [class*="-text"],
body.dark-mode [class*="-muted"],
body.dark-mode [class*="-detail"],
body.dark-mode [class*="-lbl"],
body.dark-mode [class*="-label"],
body.dark-mode [class*="-faq-a"],
body.dark-mode [class*="-step-desc"],
body.dark-mode [class*="-editorial"] p {
  color: #CBD5E1 !important;
}

/* 3. Surface Containers, Cards, Boxes, Panels & Modals */
body.dark-mode .card,
body.dark-mode [class*="-card"]:not(.pt-fav-btn),
body.dark-mode [class*="-editorial"],
body.dark-mode [class*="-panel"],
body.dark-mode [class*="-summary"],
body.dark-mode [class*="-faq"],
body.dark-mode [class*="-faq-item"],
body.dark-mode [class*="-step-card"],
body.dark-mode [class*="-stat-card"],
body.dark-mode .modal-content,
body.dark-mode [class*="-modal-content"],
body.dark-mode [class*="-modal-card"],
body.dark-mode [class*="-modal-container"],
body.dark-mode .dropdown,
body.dark-mode .dropdown-menu {
  background-color: #1E293B !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

/* 4. Sub-surfaces (details box, price strip, headers/footers of cards) */
body.dark-mode [class*="-details-box"],
body.dark-mode [class*="-price-row"],
body.dark-mode [class*="-card-top"],
body.dark-mode [class*="-card-footer"],
body.dark-mode [class*="-table-wrap"],
body.dark-mode .table-responsive {
  background-color: #0F172A !important;
  border-color: #334155 !important;
}

/* 5. Inputs, Search Bars & Textareas */
body.dark-mode input[type="text"],
body.dark-mode input[type="search"],
body.dark-mode input[type="tel"],
body.dark-mode input[type="number"],
body.dark-mode input[type="date"],
body.dark-mode input[type="email"],
body.dark-mode input[type="password"],
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode [class*="-search-input"] {
  background-color: #0F172A !important;
  color: #FFFFFF !important;
  border-color: #334155 !important;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode [class*="-search-input"]::placeholder {
  color: #94A3B8 !important;
}

/* 6. Filter Tabs, Badges & Tags */
body.dark-mode .filter-bar,
body.dark-mode [class*="-filter-bar"],
body.dark-mode [class*="-filter-section"] {
  background-color: #1E293B !important;
  border-color: #334155 !important;
}
body.dark-mode .filter-btn,
body.dark-mode [class*="-filter-btn"] {
  background-color: #0F172A !important;
  color: #CBD5E1 !important;
  border-color: #334155 !important;
}
body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover,
body.dark-mode [class*="-filter-btn"].active,
body.dark-mode [class*="-filter-btn"]:hover {
  background-color: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #3B82F6 !important;
}
body.dark-mode .tag,
body.dark-mode [class*="-tag"],
body.dark-mode .badge,
body.dark-mode [class*="-badge"]:not(.pulse-dot),
body.dark-mode .pill,
body.dark-mode [class*="-pill"] {
  background-color: rgba(30, 41, 59, 0.9) !important;
  border-color: #475569 !important;
  color: #E2E8F0 !important;
}

/* High-contrast Government Badges */
body.dark-mode .tag-cg,
body.dark-mode [class*="-badge-green"],
body.dark-mode [class*="-tag-cg"] {
  background-color: rgba(6, 95, 70, 0.4) !important;
  color: #6EE7B7 !important;
  border-color: #047857 !important;
}
body.dark-mode .tag-kendra,
body.dark-mode [class*="-badge-orange"],
body.dark-mode [class*="-tag-kendra"] {
  background-color: rgba(154, 52, 18, 0.4) !important;
  color: #FDBA74 !important;
  border-color: #C2410C !important;
}

/* 7. Secondary / Guide Action Buttons */
body.dark-mode [class*="-btn-sec"],
body.dark-mode [class*="-btn-secondary"],
body.dark-mode [class*="-btn-guide"] {
  background-color: #0F172A !important;
  color: #60A5FA !important;
  border-color: #334155 !important;
}
body.dark-mode [class*="-btn-sec"]:hover,
body.dark-mode [class*="-btn-secondary"]:hover,
body.dark-mode [class*="-btn-guide"]:hover {
  background-color: #1E293B !important;
  color: #93C5FD !important;
}

/* 8. WhatsApp Action Buttons (Always clear vibrant green with white text) */
body.dark-mode [class*="-btn-wa"],
body.dark-mode .btn-wa,
body.dark-mode .btn-whatsapp,
body.dark-mode a[href*="wa.me"] {
  background-color: #16A34A !important;
  color: #FFFFFF !important;
  border-color: #15803D !important;
}
