* { -webkit-tap-highlight-color: transparent; }
body { font-family: 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif; overscroll-behavior-y: none; transition: background 0.3s ease, color 0.2s ease; }
body.dark-theme { background: radial-gradient(circle at 10% 20%, #0a0f1f, #03050b); color: #f1f5f9; }
body.dark-theme .glass-card { background: rgba(18,25,45,0.7); backdrop-filter: blur(12px); border: 1px solid rgba(249,115,22,0.25); }
body.dark-theme .service-card { background: rgba(15,23,42,0.6) !important; backdrop-filter: blur(8px); border: 1px solid rgba(249,115,22,0.2) !important; }
body.dark-theme .service-card:hover { border-color: rgba(249,115,22,0.6) !important; transform: translateY(-2px); }
body.dark-theme .glass-dock { background: rgba(15,23,42,0.85) !important; backdrop-filter: blur(20px); border: 1px solid rgba(249,115,22,0.3) !important; }
body.dark-theme .input-glass { background: rgba(0,0,0,0.5) !important; border: 1px solid rgba(249,115,22,0.5) !important; color: #fff; }
body.dark-theme .prob-btn-inactive { background: rgba(30,41,59,0.7) !important; border: 1px solid rgba(255,255,255,0.08) !important; color: #e2e8f0; }
body:not(.dark-theme) .prob-btn-active { background: #f97316 !important; border-color: #ea580c !important; color: #000 !important; box-shadow: 0 0 0 2px rgba(249,115,22,0.35); }
body:not(.dark-theme) .brand-chip.selected { background: #f97316 !important; border-color: #ea580c !important; color: #000 !important; box-shadow: 0 0 0 2px rgba(249,115,22,0.3); }
body:not(.dark-theme) .input-glass { background: white; border: 1px solid #e2e8f0; }
body:not(.dark-theme) #problemsContainer > button.prob-btn:not(.prob-btn-active) { border-color: #94a3b8; color: #0f172a; background: #fff; }
body:not(.dark-theme) #problemsContainer > button.prob-btn.prob-btn-active { color: #000 !important; box-shadow: 0 2px 0 rgba(234, 88, 12, 0.35), 0 0 0 2px rgba(249, 115, 22, 0.35) !important; }
/* C8 P2 — problem chips: 2-col grid, equal row heights, centered labels (order unchanged) */
#problemsContainer.problem-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}
#problemsContainer.problem-chip-grid > .prob-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 2.75rem;
  height: 100%;
  line-height: 1.2;
  padding: 0.65rem 0.75rem;
  white-space: normal;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  #problemsContainer.problem-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* P0.13 — problem step: split scroll + anchored footer (no sticky overlay) */
#contentArea.problem-step-active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.problem-step-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.problem-step-shell__back,
.booking-step-back-btn {
  align-self: flex-start;
  width: auto;
  max-width: 11rem;
  flex-shrink: 0;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.35rem;
  -webkit-tap-highlight-color: transparent;
}
.problem-step-shell__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.problem-next-dock--anchored {
  flex-shrink: 0;
  position: relative;
  z-index: 62;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: #ffffff;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.06);
}
body.dark-theme .problem-next-dock--anchored {
  background: rgb(2, 6, 23);
  border-top-color: rgba(71, 85, 105, 0.55);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.28);
}
.problem-next-dock { margin-top: auto; }
.problem-next-dock__btn { display: block; width: 100%; max-width: 28rem; margin-left: auto; margin-right: auto; border-radius: 1rem; padding: 0.9rem 1rem; font-size: 0.875rem; font-weight: 900; letter-spacing: 0.02em; transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.2s ease; border: 2px solid transparent; }
.problem-next-dock__btn--active { background: linear-gradient(180deg, #ff9538, #f97316); color: #000; box-shadow: 0 6px 22px rgba(249, 115, 22, 0.45); border-color: rgba(234, 88, 12, 0.55); }
.problem-next-dock__btn--active:active { transform: scale(0.98); }
.problem-next-dock__btn--idle { background: rgba(148, 163, 184, 0.25); color: #64748b; border-color: rgba(148, 163, 184, 0.45); opacity: 0.72; cursor: not-allowed; }
body.dark-theme .problem-next-dock__btn--idle { background: rgba(51, 65, 85, 0.5); color: #94a3b8; border-color: rgba(71, 85, 105, 0.6); }
.phone-continue--valid { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35); }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Light-mode header — refined in stabilize.css (cinematic depth recovery) */
body:not(.dark-theme) #mainHeader {
    color: #0f172a;
}
body:not(.dark-theme) #mainHeader .online-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
body.dark-theme #mainHeader .online-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35), 0 0 5px rgba(52, 211, 153, 0.28);
    opacity: 1;
}
body:not(.dark-theme) #trackOrderDockBtn {
    opacity: 1;
    -webkit-tap-highlight-color: rgba(249, 115, 22, 0.14);
}
body:not(.dark-theme) #trackOrderDockBtn:hover,
body:not(.dark-theme) #trackOrderDockBtn:active {
    opacity: 1;
    background: rgba(255, 237, 213, 0.95);
}
body:not(.dark-theme) #whatsappDockBtn {
    opacity: 1;
    -webkit-tap-highlight-color: rgba(34, 197, 94, 0.14);
}
body:not(.dark-theme) #whatsappDockBtn:hover,
body:not(.dark-theme) #whatsappDockBtn:active {
    opacity: 1;
    background: rgba(34, 197, 94, 0.1);
}

/* Light-mode theme toggle visibility (scoped) */
body:not(.dark-theme) #themeToggle {
    background: #ffffff;
    border-color: rgba(100, 116, 139, 0.52);
    color: #334155;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    -webkit-tap-highlight-color: rgba(249, 115, 22, 0.12);
}
body:not(.dark-theme) #themeToggle:hover,
body:not(.dark-theme) #themeToggle:active {
    background: #f8fafc;
    border-color: rgba(71, 85, 105, 0.58);
    color: #0f172a;
}
body:not(.dark-theme) #themeToggle svg {
    stroke: currentColor;
}
