/* ==========================================================================
   SAFEPG - Crisp Porcelain & Electric Cyan / Teal Luxury Design System
   Aesthetic: Crisp Clean Porcelain Light Mode (#f8fafc / #ffffff),
   Deep Luxury Midnight Hero (#070d18 / #0b1329),
   Electric Cyan (#0284c7 / #06b6d4 / #38bdf8), Vibrant Teal (#0d9488 / #2dd4bf)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500;1,6..72,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Outfit:wght@500;600;700;800;900&family=Syne:wght@700;800;900&display=swap');

:root {
  /* Crisp Porcelain Light Mode (Default) */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface-elevated: #ffffff;
  
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --primary-glow: rgba(2, 132, 199, 0.35);
  --live-dot-color: #0284c7;
  
  /* Brand Luxury Cyan & Teal Colors */
  --teal-primary: #0284c7;
  --teal-accent: #0ea5e9;
  --teal-light: #f0f9ff;
  --teal-border: #bae6fd;
  --teal-glow: rgba(14, 165, 233, 0.35);
  
  --brand-cyan: #0284c7;
  --brand-teal: #0d9488;
  --brand-blue: #2563eb;
  
  --emerald-primary: #0284c7;
  --emerald-accent: #0ea5e9;
  --emerald-light: #f0f9ff;
  --emerald-border: #bae6fd;
  
  --terracotta: #0284c7;
  --terracotta-hover: #0369a1;
  --terracotta-light: #f0f9ff;
  --terracotta-border: #bae6fd;
  
  --amber-accent: #d97706;
  --rose-accent: #e11d48;
  
  --border-subtle: #f1f5f9;
  --border-card: #e2e8f0;
  
  --text-pure: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 30px -4px rgba(2, 132, 199, 0.15);
  --shadow-modal: 0 -12px 45px rgba(15, 23, 42, 0.15);
  
  --transition-fast: all 0.16s ease;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Midnight Cyber Velvet Dark Theme */
[data-theme="dark"] {
  --bg-app: #080e1a;
  --bg-card: #0d1527;
  --bg-surface-elevated: #111c33;
  
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --primary-glow: rgba(56, 189, 248, 0.35);
  --live-dot-color: #38bdf8;
  
  --teal-primary: #38bdf8;
  --teal-accent: #2dd4bf;
  --teal-light: rgba(6, 182, 212, 0.15);
  --teal-border: rgba(6, 182, 212, 0.3);
  --teal-glow: rgba(56, 189, 248, 0.35);
  
  --brand-cyan: #38bdf8;
  --brand-teal: #2dd4bf;
  --brand-blue: #60a5fa;
  
  --emerald-primary: #38bdf8;
  --emerald-accent: #2dd4bf;
  --emerald-light: rgba(6, 182, 212, 0.15);
  --emerald-border: rgba(6, 182, 212, 0.3);
  
  --terracotta: #38bdf8;
  --terracotta-hover: #0ea5e9;
  --terracotta-light: rgba(56, 189, 248, 0.15);
  --terracotta-border: rgba(56, 189, 248, 0.3);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.12);
  
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 24px -4px rgba(2, 6, 23, 0.6);
  --shadow-hover: 0 14px 35px -6px rgba(6, 182, 212, 0.25);
  --shadow-modal: 0 -12px 45px rgba(2, 6, 23, 0.85);
}

/* Sunset Orange Luxe Dark Theme (Fiery Amber / Terracotta Cyber) */
[data-theme="orange"] {
  --bg-app: #090a0f;
  --bg-card: #12141c;
  --bg-surface-elevated: #181b26;
  
  --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  --primary-glow: rgba(255, 107, 0, 0.45);
  --live-dot-color: #ff6b00;
  
  --teal-primary: #ff6b00;
  --teal-accent: #f97316;
  --teal-light: rgba(255, 107, 0, 0.12);
  --teal-border: rgba(255, 107, 0, 0.35);
  --teal-glow: rgba(255, 107, 0, 0.45);
  
  --brand-cyan: #ff6b00;
  --brand-teal: #f97316;
  --brand-blue: #ea580c;
  
  --emerald-primary: #ff6b00;
  --emerald-accent: #f97316;
  --emerald-light: rgba(255, 107, 0, 0.12);
  --emerald-border: rgba(255, 107, 0, 0.35);
  
  --terracotta: #ff6b00;
  --terracotta-hover: #ea580c;
  --terracotta-light: rgba(255, 107, 0, 0.12);
  --terracotta-border: rgba(255, 107, 0, 0.35);
  
  --amber-accent: #f59e0b;
  --rose-accent: #ef4444;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 24px -4px rgba(0, 0, 0, 0.7);
  --shadow-hover: 0 14px 35px -6px rgba(255, 107, 0, 0.3);
  --shadow-modal: 0 -12px 45px rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #e2e8f0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(13, 148, 136, 0.05) 0%, transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 12px 0;
}

[data-theme="dark"] body {
  background-color: #030712;
}

[data-theme="orange"] body {
  background-color: #06070a;
}

/* ===================================================
   WORLD-CLASS NATIVE MOBILE & DESKTOP CHASSIS LAYOUT
   (iOS / Android Native App Standard — Rapido & Uber Grade)
   =================================================== */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0d1322;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(244, 63, 94, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 107, 0, 0.08) 0%, transparent 45%);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
}

[data-theme="light"] body {
  background-color: #e2e8f0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(13, 148, 136, 0.08) 0%, transparent 45%);
}

/* App Chassis Frame (Desktop Floating Phone / Mobile 100% Screen) */
.mobile-app-wrapper {
  width: 100%;
  max-width: 430px;
  height: 92vh;
  max-height: 890px;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 25px 70px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border-card);
  border-radius: 36px;
}

/* Full Screen Native Mode on Real Mobile Devices */
@media (max-width: 600px) {
  body {
    padding: 0 !important;
    background: var(--bg-app) !important;
    overflow: hidden !important;
  }
  .mobile-app-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 1;
  }
}

/* Native Header (Crisp Frosted Glass with Safe Area Support) */
.mobile-header {
  padding: 12px 14px 10px 14px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 80;
  flex-shrink: 0;
}

[data-theme="dark"] .mobile-header {
  background: rgba(8, 14, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="orange"] .mobile-header {
  background: rgba(10, 12, 16, 0.95);
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.city-pill-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--teal-light);
  border: 1px solid var(--teal-border);
  color: var(--teal-primary);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
}

.city-pill-btn:active {
  transform: scale(0.96);
}

.theme-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Scrollable Main Content Container */
.mobile-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  position: relative;
}

/* Individual Screen View */
.view-screen {
  display: none;
  width: 100%;
  padding: 10px 14px 24px 14px;
  box-sizing: border-box;
  animation: nativeScreenFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-screen.active {
  display: block;
}

@keyframes nativeScreenFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   PERMANENTLY FIXED BOTTOM NAVIGATION BAR (Rapido / Uber Style)
   =================================================== */
.mobile-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(62px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-left: 6px;
  padding-right: 6px;
  z-index: 100;
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.06);
  user-select: none;
}

@media (max-width: 600px) {
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    z-index: 9999 !important;
  }
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(8, 14, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.45);
}

[data-theme="orange"] .mobile-bottom-nav {
  background: rgba(10, 12, 16, 0.96);
  border-top: 1px solid rgba(255, 107, 0, 0.2);
}

/* Bottom Tab Button */
.nav-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.nav-tab-btn i, .nav-tab-btn span:first-child {
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.nav-tab-btn span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.nav-tab-btn:active {
  transform: scale(0.94);
}

/* Active State */
.nav-tab-btn.active {
  color: #f43f5e;
}

.nav-tab-btn.active i, .nav-tab-btn.active span:first-child {
  color: #f43f5e;
  transform: translateY(-2px);
}

.nav-tab-btn.active span {
  color: #f43f5e;
  font-weight: 800;
}

[data-theme="light"] .nav-tab-btn.active {
  color: #0284c7;
}

[data-theme="light"] .nav-tab-btn.active i {
  color: #0284c7;
}

[data-theme="light"] .nav-tab-btn.active span {
  color: #0284c7;
}

/* Center Floating Hero Action Button (Audit Hub) */
.nav-tab-btn.audit-center-btn {
  position: relative;
  overflow: visible;
}

.audit-floating-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e 0%, #ff6b00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.45);
  margin-top: -18px;
  border: 3px solid var(--bg-app);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.audit-center-btn:active .audit-floating-circle {
  transform: scale(0.92);
}


.brand-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}

.brand-glyph-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f43f5e 0%, #ff6b00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.4);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-glyph-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-logo-text {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  line-height: 1;
}

.brand-redfix-title {
  color: #f43f5e;
  font-weight: 900;
  letter-spacing: -0.4px;
}

[data-theme="orange"] .brand-redfix-title {
  color: #ff6b00;
}

.brand-ai-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 0.55rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ff6b00 0%, #e11d48 100%);
  color: #ffffff !important;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.35);
}

.header-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.city-pill-btn {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-pure);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.city-pill-btn:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.theme-toggle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.lang-toggle-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 1px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.lang-opt {
  padding: 2px 6px;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  transition: var(--transition-fast);
}

.lang-opt.active {
  background: var(--primary-gradient);
  color: #ffffff;
  font-weight: 900;
}

.user-avatar-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-avatar-btn:hover {
  transform: scale(1.08);
}

/* Button & Form Utilities */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-pure);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

[data-theme="dark"] .btn-google,
[data-theme="orange"] .btn-google {
  background: var(--bg-card);
  color: #ffffff;
}

.btn-google:hover {
  background: var(--teal-light);
  border-color: var(--teal-primary);
}

.btn-dark-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  color: var(--text-pure);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

[data-theme="dark"] .btn-dark-secondary,
[data-theme="orange"] .btn-dark-secondary {
  background: var(--bg-card);
  color: #ffffff;
}

.btn-dark-secondary:hover {
  background: var(--teal-light);
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

.theme-select-pill {
  transition: var(--transition-fast);
}

.theme-select-pill:hover,
.theme-select-pill.active {
  background: var(--teal-light) !important;
  color: var(--teal-primary) !important;
  border-color: var(--teal-primary) !important;
  box-shadow: 0 0 10px var(--teal-glow) !important;
}

.btn-rose-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-rose-pill:hover {
  background: #fecdd3;
  border-color: #f87171;
}

.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition-fast);
}

.btn-teal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-full {
  width: 100%;
}

.btn-pill-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #020617;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
}

.btn-pill-white:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.btn-pill-white:active {
  transform: scale(0.97);
}

/* Form Controls */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-pure);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px var(--teal-light);
}

/* Main Mobile Scrollable Body */
.mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 110px 14px;
  position: relative;
  scroll-behavior: smooth;
}

.mobile-body::-webkit-scrollbar {
  display: none;
}

/* View Screen Transitions */
.view-screen {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.view-screen.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Modern Floating Search Bar */
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 3px 8px 3px 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px var(--teal-light);
}

.search-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 8px;
}

.search-glass-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-pure);
  font-size: 0.8rem;
  padding: 7px 0;
  outline: none;
  font-family: inherit;
}

.search-glass-input::placeholder {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.search-filter-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: var(--transition-fast);
}

/* AI Tools Bento Quick Bar */
.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.ai-feature-pill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.ai-feature-pill-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-hover);
}

.ai-feature-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.ai-feature-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-pure);
}

.ai-feature-sub {
  font-size: 0.56rem;
  color: var(--teal-primary);
  font-weight: 700;
}

/* Editorial Hero Carousel Banner */
.hero-slider-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  background: 
    radial-gradient(circle at 95% 75%, rgba(13, 148, 136, 0.28) 0%, rgba(6, 78, 59, 0.15) 30%, transparent 60%),
    radial-gradient(circle at 10% 15%, rgba(30, 58, 138, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #070d18 0%, #0a1424 50%, #05141e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.35);
  color: #ffffff;
}

[data-theme="orange"] .hero-slider-container {
  background: 
    radial-gradient(circle at 95% 75%, rgba(234, 88, 12, 0.28) 0%, rgba(154, 52, 18, 0.15) 30%, transparent 60%),
    radial-gradient(circle at 10% 15%, rgba(124, 45, 18, 0.25) 0%, transparent 45%),
    linear-gradient(135deg, #0d0e14 0%, #151722 50%, #1a1512 100%);
  border: 1px solid rgba(255, 107, 0, 0.25);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.hero-slide {
  display: none;
  padding: 18px 16px 16px 16px;
  position: relative;
  animation: slideFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  display: block;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

.slider-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

[data-theme="orange"] .hero-pill-tag {
  color: #ff6b00;
  border-color: rgba(255, 107, 0, 0.35);
  background: rgba(20, 22, 30, 0.85);
}

.hero-editorial-title {
  font-family: 'Newsreader', 'Playfair Display', Georgia, 'Plus Jakarta Sans', serif;
  font-size: 1.38rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 7px;
}

.hero-editorial-title em {
  font-style: italic;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  background: linear-gradient(90deg, #93c5fd 0%, #67e8f9 45%, #2dd4bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

[data-theme="orange"] .hero-editorial-title em {
  background: linear-gradient(90deg, #fdba74 0%, #fb923c 45%, #ff6b00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 0.76rem;
  line-height: 1.5;
  color: #94a3b8;
  margin-bottom: 14px;
}

.hero-slide .btn-dark-secondary {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #94a3b8;
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-slide .btn-dark-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.35);
  color: #f1f5f9;
}

.slider-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 0 8px 0;
  background: rgba(3, 7, 18, 0.45);
}

.slide-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.slide-dot.active {
  width: 18px;
  background: var(--primary-gradient);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Horizontal Scroll Pills */
.pills-scroll-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.pills-scroll-row::-webkit-scrollbar {
  display: none;
}

.mobile-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  font-family: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-pill:hover, .mobile-pill.active {
  background: var(--teal-light);
  color: var(--teal-primary);
  border-color: var(--teal-border);
}

/* Segmented Control */
.view-mode-switch, .segmented-control {
  display: flex;
  background: var(--border-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 2px;
  margin-bottom: 12px;
  gap: 2px;
}

.view-mode-btn, .segmented-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-mode-btn.active, .segmented-btn.active {
  background: var(--bg-card);
  color: var(--teal-primary);
  border: 1px solid var(--border-card);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

/* Visual PG Cards */
.visual-pg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

.visual-pg-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal-border);
}

.card-cover-wrapper {
  position: relative;
  width: 100%;
  height: 145px;
  background: #e2e8f0;
  overflow: hidden;
}

.card-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-pg-card:hover .card-cover-img {
  transform: scale(1.04);
}

.card-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%, rgba(15, 23, 42, 0.75) 100%);
}

.card-top-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.badge-tag-category {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="orange"] .badge-tag-category {
  color: #0284c7;
}

.badge-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.badge-score-pill.emerald {
  background: var(--primary-gradient);
  color: #ffffff;
}

[data-theme="orange"] .badge-score-pill.emerald {
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 50%, #ea580c 100%);
  color: #fed7aa;
  border: 1px solid rgba(255, 107, 0, 0.4);
}

.badge-score-pill.amber {
  background: #d97706;
  color: #ffffff;
}

.badge-score-pill.rose {
  background: #e11d48;
  color: #ffffff;
}

.card-body-content {
  padding: 12px 14px 14px 14px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-pure);
  line-height: 1.3;
}

.card-location-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.card-price-amenity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 8px;
}

.card-price-block {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--teal-primary);
}

.card-price-unit {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-action-btn {
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--primary-gradient);
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: var(--transition-fast);
}

.card-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

[data-theme="orange"] .card-action-btn {
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid #ea580c;
  color: #ff6b00;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

[data-theme="orange"] .card-action-btn:hover {
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.45);
}

/* Cards & Glassmorphic Surfaces */
.dark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  color: var(--text-pure);
  transition: var(--transition-fast);
}

.dark-card:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-hover);
}

/* Modals & Slide-up Drawers */
.mobile-modal-overlay, .modal-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(8px) !important;
  z-index: 999 !important;
  display: none !important;
  align-items: flex-end !important;
  justify-content: center !important;
}

.mobile-modal-overlay.active, .modal-overlay.active {
  display: flex !important;
  animation: modalFadeIn 0.22s ease forwards !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-drawer, .modal-box {
  width: 100% !important;
  max-height: 85% !important;
  background: var(--bg-card) !important;
  border-top: 1px solid var(--border-card) !important;
  border-radius: 26px 26px 0 0 !important;
  padding: 16px 18px 24px 18px !important;
  overflow-y: auto !important;
  box-shadow: var(--shadow-modal) !important;
  transform: translateY(100%);
  animation: drawerSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes drawerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drawer-drag-handle {
  width: 38px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: #cbd5e1;
  margin: 0 auto 14px auto;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.city-card, .city-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.city-card:hover, .city-card.active, .city-card-item:hover, .city-card-item.active {
  background: var(--teal-light);
  border-color: var(--teal-primary);
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.15);
}

.city-card-icon {
  font-size: 1.3rem;
}

.city-card-name {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-pure);
}

.city-card-count {
  font-size: 0.65rem;
  color: var(--teal-primary);
  font-weight: 700;
}

/* Native Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  padding: 0 2px;
}

[data-theme="dark"] .mobile-bottom-nav {
  background: rgba(8, 14, 26, 0.94);
}

[data-theme="orange"] .mobile-bottom-nav {
  background: rgba(10, 12, 16, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 3px;
  transition: var(--transition-fast);
  font-size: 0.58rem;
  font-weight: 700;
  min-width: 0;
  flex: 1;
}

.nav-tab-btn:hover, .nav-tab-btn.active {
  color: var(--teal-primary);
}

.nav-tab-btn.active i {
  color: var(--teal-primary);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

.nav-tab-btn.audit-center-btn {
  transform: translateY(-6px);
  flex: 1.2;
}

.audit-floating-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: var(--transition-fast);
}

.audit-floating-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px var(--primary-glow);
}

/* Map Containers */
.map-container-box {
  width: 100%;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  margin-bottom: 14px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.map-floating-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-badge-counter {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-card);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
}

.custom-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.7rem;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  cursor: pointer;
}

.custom-map-marker.marker-emerald { background: var(--teal-primary); }
.custom-map-marker.marker-amber { background: #d97706; }
.custom-map-marker.marker-rose { background: #e11d48; }

/* AI Scanner & Copilot HUD */
.ai-camera-viewport {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  background: #070d18;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
  margin-bottom: 12px;
}

[data-theme="orange"] .ai-camera-viewport {
  background: #0d0f17;
  border: 1px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.2);
}

.ai-scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
  box-shadow: 0 0 10px #38bdf8;
  animation: scanLaser 2.2s ease-in-out infinite alternate;
}

[data-theme="orange"] .ai-scan-laser {
  background: linear-gradient(90deg, transparent, #ff6b00, transparent);
  box-shadow: 0 0 10px #ff6b00;
}

@keyframes scanLaser {
  0% { top: 4%; }
  100% { top: 96%; }
}

.ai-hud-tag {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.6rem;
  font-weight: 800;
}

[data-theme="orange"] .ai-hud-tag {
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: #ff6b00;
}

.ai-hud-tag.alert {
  border-color: #f43f5e;
  color: #fda4af;
}

.copilot-chat-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.chat-bubble-ai {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px 14px 14px 2px;
  padding: 10px 12px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-pure);
  box-shadow: var(--shadow-sm);
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: 14px 14px 2px 14px;
  padding: 8px 12px;
  font-size: 0.76rem;
  max-width: 85%;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Google Account 1-Tap Cards */
.google-acc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.google-acc-card:hover {
  background: var(--teal-light);
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-sm);
}

/* Score Circle Badge */
.score-badge-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #ffffff;
  flex-shrink: 0;
}

.score-emerald { background: var(--primary-gradient); box-shadow: 0 2px 12px var(--primary-glow); }
.score-amber { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); box-shadow: 0 2px 10px rgba(180, 83, 9, 0.3); }
.score-rose { background: linear-gradient(135deg, #9f1239 0%, #e11d48 100%); box-shadow: 0 2px 10px rgba(159, 18, 57, 0.3); }

.market-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--teal-primary);
  background: var(--teal-light);
  border: 1px solid var(--teal-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.brand-icon {
  border-radius: 50%;
  background: var(--teal-light);
  border: 1px solid var(--teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   CIVIC COMPLAINT SCREEN STYLES
   ========================================================================== */

/* --- Header --- */
.civic-screen-header {
  background: linear-gradient(135deg, #0f172a 0%, #1a2744 50%, #0f1f3d 100%);
  border-radius: var(--radius-md);
  padding: 16px 14px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.civic-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.civic-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.civic-x-badge {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.civic-header-title {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.civic-header-sub {
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.civic-header-sub strong {
  color: #38bdf8;
}

/* --- Form Card --- */
.civic-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-card);
}

/* --- Category Pills Grid --- */
.civic-cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 7px;
  margin-bottom: 4px;
}

.civic-cat-pill {
  background: var(--bg-app);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  font-family: inherit;
  line-height: 1.3;
}

.civic-cat-pill:hover {
  border-color: var(--teal-border);
  color: var(--teal-primary);
  background: var(--teal-light);
}

.civic-cat-pill.active {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background: var(--teal-light);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

/* --- Photo Upload Zone --- */
.civic-photo-upload-area {
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--bg-app);
  min-height: 90px;
  text-align: center;
}

.civic-photo-upload-area:hover {
  border-color: var(--teal-primary);
  background: var(--teal-light);
}

/* --- Photo Preview Grid --- */
.civic-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.civic-photo-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1.5px solid var(--border-card);
  background: var(--bg-app);
}

.civic-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.civic-photo-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: none;
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

/* --- Anonymous / Named Toggle --- */
.civic-name-toggle-card {
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
  margin-bottom: 14px;
}

.civic-anon-toggle {
  display: flex;
  gap: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.civic-toggle-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  background: transparent;
  color: var(--text-muted);
}

.civic-toggle-btn.active-named {
  background: #fff;
  color: var(--teal-primary);
  border-color: var(--teal-border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* --- X-Branded Submit Button --- */
.civic-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-spring);
  font-family: inherit;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.civic-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.civic-submit-btn:hover::before {
  opacity: 0.7;
}

.civic-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.3);
}

.civic-submit-btn:active {
  transform: translateY(0);
}

.civic-submit-btn > * {
  position: relative;
  z-index: 1;
}

.civic-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Success Banner --- */
.civic-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 12px;
  animation: slideInUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Feed Cards --- */
.civic-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.civic-feed-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--teal-border);
}

.civic-feed-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.civic-feed-cat-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--teal-light);
  color: var(--teal-primary);
  border: 1px solid var(--teal-border);
  white-space: nowrap;
}

.civic-feed-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.3;
  margin-bottom: 4px;
}

.civic-feed-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.civic-feed-photo-row {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.civic-feed-photo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.civic-feed-photo:hover {
  transform: scale(1.05);
}

.civic-feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  gap: 6px;
}

.civic-feed-meta {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.civic-feed-meta span {
  display: block;
}

.civic-feed-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.civic-upvote-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-card);
  background: var(--bg-app);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.civic-upvote-btn:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background: var(--teal-light);
}

.civic-upvote-btn.voted {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background: var(--teal-light);
}

.civic-x-link {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  background: #000;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.civic-x-link:hover {
  opacity: 0.8;
}

/* --- Skeleton Loader --- */
.civic-feed-skeleton {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.skeleton-line {
  background: linear-gradient(90deg, var(--border-subtle) 25%, var(--bg-app) 50%, var(--border-subtle) 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark mode overrides for civic screen */
[data-theme="dark"] .civic-form-card {
  background: var(--bg-card);
  border-color: rgba(56, 189, 248, 0.12);
}

[data-theme="dark"] .civic-cat-pill {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(56, 189, 248, 0.15);
  color: var(--text-muted);
}

[data-theme="dark"] .civic-cat-pill.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.4);
  color: #67e8f9;
}

[data-theme="dark"] .civic-photo-upload-area {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .civic-feed-card {
  background: var(--bg-card);
  border-color: rgba(56, 189, 248, 0.1);
}

[data-theme="dark"] .civic-success-banner {
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.2), rgba(6, 95, 70, 0.2));
  border-color: rgba(52, 211, 153, 0.3);
}

/* ==========================================================================
   GLOBAL MODAL BACKDROP & SLIDE-UP MODAL STYLES (Clean PWA Overlay)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal-backdrop.active {
  display: flex !important;
  animation: modalFadeIn 0.2s ease forwards;
}

.slide-up-modal {
  background: var(--bg-card, #ffffff);
  color: var(--text-pure, #0f172a);
  border: 1px solid var(--border-card, #e2e8f0);
  border-top: 3px solid var(--teal-primary, #0284c7);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px 32px 20px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .slide-up-modal {
  background: #0f172a;
  color: #f8fafc;
  border-color: rgba(56, 189, 248, 0.2);
  border-top: 3px solid #38bdf8;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   4 CORE FLAGSHIP PILLARS TOP SWITCHER & RICH SCREENS (Women Safety & FSSAI Food)
   ========================================================================== */

.pillar-nav-bar {
  display: flex;
  gap: 6px;
  background: rgba(13, 21, 39, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 0 0 12px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.pillar-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.pillar-tab-btn:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.pillar-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.pillar-tab-btn.active.pill-ws {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 2px 10px rgba(244, 63, 94, 0.35);
}

.pillar-tab-btn.active.pill-food {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.pillar-tab-btn.active.pill-civic {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}

/* SOS Glowing Rapid Action Box */
.ws-sos-glow-card {
  background: linear-gradient(135deg, rgba(244,63,94,0.15) 0%, rgba(225,29,72,0.06) 100%);
  border: 1px solid rgba(244,63,94,0.35);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
}

.emergency-hotlines-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.hotline-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(244,63,94,0.3);
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fb7185;
  text-decoration: none;
  transition: var(--transition-fast);
}

.hotline-chip:hover {
  background: rgba(244,63,94,0.2);
  transform: translateY(-1px);
}

/* Rich Evidence Feed Cards */
.evidence-feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.evidence-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.evidence-card-img-wrap {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}

.evidence-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-status-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.evidence-status-pill.danger {
  background: rgba(225, 29, 72, 0.85);
  color: #fff;
}

.evidence-status-pill.warning {
  background: rgba(217, 119, 6, 0.85);
  color: #fff;
}

.evidence-status-pill.resolved {
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
}

.corroborate-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 10px;
}

.corroborate-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.corroborate-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.03);
}

.corroborate-btn.active {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* ==============================================================================
   WOMEN SAFETY & FSSAI FOOD HUB LUXURY DESIGN SYSTEM (3-THEME CONSISTENT)
   ============================================================================== */

/* Screen Headers */
.hub-screen-header {
  padding: 12px 14px 14px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.hub-screen-header.women-header {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(244, 63, 94, 0.25);
  box-shadow: 0 4px 20px -2px rgba(244, 63, 94, 0.1);
}

.hub-screen-header.fssai-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.1);
}

[data-theme="dark"] .hub-screen-header.women-header,
[data-theme="orange"] .hub-screen-header.women-header {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15) 0%, rgba(13, 21, 39, 0.9) 100%);
  border-color: rgba(244, 63, 94, 0.35);
  box-shadow: 0 4px 24px rgba(244, 63, 94, 0.15);
}

[data-theme="dark"] .hub-screen-header.fssai-header,
[data-theme="orange"] .hub-screen-header.fssai-header {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(13, 21, 39, 0.9) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.15);
}

.hub-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hub-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.4px;
}

.hub-header-badge.women-badge {
  background: rgba(244, 63, 94, 0.12);
  color: #e11d48;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.hub-header-badge.fssai-badge {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .hub-header-badge.women-badge,
[data-theme="orange"] .hub-header-badge.women-badge {
  background: rgba(244, 63, 94, 0.2);
  color: #fca5a5;
  border-color: rgba(244, 63, 94, 0.4);
}

[data-theme="dark"] .hub-header-badge.fssai-badge,
[data-theme="orange"] .hub-header-badge.fssai-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.4);
}

.hub-header-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-pure);
  line-height: 1.2;
  margin-bottom: 4px;
}

.hub-header-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Emergency Helpline Quick Strip */
.emergency-call-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.emergency-call-strip::-webkit-scrollbar {
  display: none;
}

.emergency-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.emergency-call-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.emergency-call-pill.rose {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.emergency-call-pill.emerald {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

[data-theme="dark"] .emergency-call-pill.rose,
[data-theme="orange"] .emergency-call-pill.rose {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25) 0%, rgba(225, 29, 72, 0.35) 100%);
  border-color: rgba(244, 63, 94, 0.45);
  color: #ffe4e6;
}

[data-theme="dark"] .emergency-call-pill.emerald,
[data-theme="orange"] .emergency-call-pill.emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
  border-color: rgba(16, 185, 129, 0.45);
  color: #d1fae5;
}

/* Segmented Subtab Navigation */
.hub-subnav-container {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: 14px;
  gap: 3px;
}

[data-theme="dark"] .hub-subnav-container,
[data-theme="orange"] .hub-subnav-container {
  background: rgba(15, 23, 42, 0.7);
  border-color: var(--border-card);
}

.hub-subnav-btn {
  flex: 1;
  padding: 7px 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

[data-theme="dark"] .hub-subnav-btn,
[data-theme="orange"] .hub-subnav-btn {
  color: var(--text-muted);
}

.hub-subnav-btn:hover {
  color: var(--text-pure);
}

.hub-subnav-btn.active.women-subnav {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
}

.hub-subnav-btn.active.fssai-subnav {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Rich Evidence Feed Cards */
.rich-evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.rich-evidence-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-border);
  box-shadow: var(--shadow-hover);
}

.rich-evidence-img-box {
  width: 100%;
  height: 155px;
  position: relative;
  background: #0f172a;
  overflow: hidden;
}

.rich-evidence-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rich-evidence-card:hover .rich-evidence-img {
  transform: scale(1.04);
}

.rich-evidence-overlay-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rich-evidence-time-tag {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  backdrop-filter: blur(8px);
}

.rich-evidence-body {
  padding: 12px 14px;
}

.rich-evidence-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
  gap: 6px;
}

.rich-evidence-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.3;
}

.rich-evidence-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--teal-accent);
  font-weight: 700;
  margin-bottom: 6px;
}

.rich-evidence-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.rich-evidence-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-dim);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.rich-evidence-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.action-pill-btn:hover {
  transform: translateY(-1px);
}

.action-pill-btn.twitter {
  color: #0284c7;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.action-pill-btn.whatsapp {
  color: #15803d;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

[data-theme="dark"] .action-pill-btn,
[data-theme="orange"] .action-pill-btn {
  border-color: var(--border-card);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

[data-theme="dark"] .action-pill-btn.twitter,
[data-theme="orange"] .action-pill-btn.twitter {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

[data-theme="dark"] .action-pill-btn.whatsapp,
[data-theme="orange"] .action-pill-btn.whatsapp {
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

/* Guide Cards */
.guide-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.guide-card-item:hover {
  border-color: var(--teal-border);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.guide-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.guide-card-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-pure);
}

.guide-card-text {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Photo Drop Zone */
.photo-drop-zone {
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-app);
  transition: var(--transition-fast);
}

.photo-drop-zone:hover {
  border-color: var(--teal-accent);
  background: var(--teal-light);
}

[data-theme="dark"] .photo-drop-zone,
[data-theme="orange"] .photo-drop-zone {
  background: rgba(15, 23, 42, 0.3);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.photo-preview-item {
  position: relative;
  height: 75px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(225, 29, 72, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================================
   LIVE BLACKSPOTS RADAR MAP & PULSE MARKERS
   =================================================== */
.radar-pulse-pin {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  cursor: pointer;
}

.radar-pulse-pin.danger {
  background: #f43f5e;
  border: 2px solid #ffffff;
  animation: pulse-ring-danger 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.radar-pulse-pin.warning {
  background: #f59e0b;
  border: 2px solid #ffffff;
  animation: pulse-ring-warning 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.radar-pulse-pin.resolved {
  background: #10b981;
  border: 2px solid #ffffff;
}

@keyframes pulse-ring-danger {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

@keyframes pulse-ring-warning {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Custom Leaflet Map popup */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-pure) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-card) !important;
  padding: 0 !important;
}
.leaflet-popup-content {
  margin: 10px 12px !important;
  line-height: 1.4 !important;
}
.leaflet-popup-tip {
  background: var(--bg-card) !important;
}

/* ===================================================
   REAL-TIME SAFETY NOTIFICATIONS DRAWER
   =================================================== */
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-app);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  transition: var(--transition-fast);
  cursor: pointer;
}
.notif-item:hover {
  border-color: var(--teal-accent);
  background: var(--teal-light);
}
.notif-item.unread {
  border-left: 3px solid #f43f5e;
}
.notif-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-content {
  flex: 1;
}
.notif-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.notif-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-pure);
}
.notif-time {
  font-size: 0.64rem;
  color: var(--text-dim);
}
.notif-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 6px;
}
.notif-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
}
.notif-locality-tag {
  color: var(--teal-accent);
  font-weight: 700;
}
.notif-share-btn {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
  border-radius: var(--radius-pill);
  padding: 1px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

/* ===================================================
   RESIDENT SCOUT PROFILE CARD (3-THEME ADAPTIVE)
   =================================================== */
.resident-profile-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-pure);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

[data-theme="light"] .resident-profile-badge-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-color: var(--border-card);
}

[data-theme="dark"] .resident-profile-badge-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(13, 21, 39, 0.95) 100%);
  border-color: rgba(56, 189, 248, 0.28);
}

[data-theme="orange"] .resident-profile-badge-card {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(18, 20, 28, 0.95) 100%);
  border-color: rgba(255, 107, 0, 0.32);
}

.resident-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 14px var(--teal-glow);
  color: #ffffff;
  flex-shrink: 0;
}

.resident-profile-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-pure);
}

.resident-profile-tag {
  font-size: 0.74rem;
  color: var(--teal-accent);
  font-weight: 700;
  margin-top: 2px;
}

.resident-profile-note {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===================================================
   MCD ADVISORY BANNER (3-THEME ADAPTIVE)
   =================================================== */
.mcd-advisory-banner {
  background: var(--teal-light);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.mcd-advisory-banner:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: var(--teal-primary);
}

.mcd-advisory-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 4px;
  line-height: 1.35;
}

.mcd-advisory-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.mcd-advisory-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-accent);
}

.mcd-advisory-link {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

.mcd-advisory-link:hover {
  text-decoration: underline;
}

[data-theme="light"] .mcd-advisory-badge,
[data-theme="light"] .mcd-advisory-link {
  color: var(--teal-primary);
}

/* ===================================================
   SERVICE HIGHLIGHT CARDS (3-THEME ADAPTIVE)
   =================================================== */
.service-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.service-highlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-hover);
}

.service-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.service-card-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-pure);
}

.service-card-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

/* ===================================================
   SUNRISE FONT & GRADIENT STYLING (RedFiX AI)
   =================================================== */
.sunrise-brand-text {
  font-family: 'Syne', 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 35%, #ff6b00 70%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(244, 63, 94, 0.2));
}

.sunrise-ai-badge {
  font-family: 'Syne', 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.58rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ff6b00 0%, #e11d48 100%);
  color: #ffffff !important;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
  margin-left: 4px;
  vertical-align: middle;
  display: inline-block;
}

/* ===================================================
   FLOATING DESKTOP QR CODE WIDGET & QR MODAL
   =================================================== */
.desktop-qr-widget {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: 228px;
  background: rgba(13, 19, 33, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 
    0 20px 45px -10px rgba(0, 0, 0, 0.65),
    0 0 30px -5px rgba(244, 63, 94, 0.22);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .desktop-qr-widget {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 
    0 20px 40px -10px rgba(15, 23, 42, 0.15),
    0 0 25px -5px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .desktop-qr-widget h4 {
  color: #0f172a !important;
}

[data-theme="light"] .desktop-qr-widget p {
  color: #64748b !important;
}

.desktop-qr-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(40px);
}

.qr-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.qr-live-badge {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  display: inline-block;
}

.qr-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-toggle-btn:hover {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
}

.qr-code-frame {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 10px auto;
  padding: 10px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f43f5e, #ff6b00, transparent);
  box-shadow: 0 0 10px #f43f5e;
  animation: qrScanBeam 2.4s ease-in-out infinite alternate;
}

@keyframes qrScanBeam {
  0% { top: 6px; }
  100% { top: calc(100% - 9px); }
}

.qr-url-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 5px 8px;
  gap: 6px;
  margin-bottom: 8px;
}

[data-theme="light"] .qr-url-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.qr-url-pill span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-theme="light"] .qr-url-pill span {
  color: #334155;
}

.qr-copy-btn {
  background: linear-gradient(135deg, #f43f5e 0%, #ff6b00 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.qr-copy-btn:hover {
  opacity: 0.9;
}

.qr-pwa-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

.desktop-qr-min-pill {
  position: fixed;
  bottom: 24px;
  right: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  gap: 6px;
  z-index: 999;
  transition: all 0.2s ease;
}

[data-theme="light"] .desktop-qr-min-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.desktop-qr-min-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.3);
}

@media (max-width: 950px) {
  .desktop-qr-widget {
    display: none !important;
  }
  .desktop-qr-min-pill {
    display: none !important;
  }
}

/* ===================================================
   PWA INSTALL STRIP & SUPER-APP PROMOTION BANNER
   =================================================== */
.pwa-install-strip {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(255, 107, 0, 0.08) 100%);
  border: 1px solid rgba(244, 63, 94, 0.25);
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .pwa-install-strip {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-color: rgba(2, 132, 199, 0.25);
}

.pwa-strip-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.btn-pwa-install {
  flex: 1.2;
  background: linear-gradient(135deg, #f43f5e 0%, #ff6b00 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-pwa-install:active {
  transform: scale(0.96);
}

.btn-pwa-info {
  flex: 1;
  background: var(--bg-surface-elevated);
  color: var(--text-pure);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-pwa-info:active {
  transform: scale(0.96);
}


