/* ==========================================================================
   TerraVision Web Mockup - Style Guide & Theme (Dark Mode Preferred)
   ========================================================================== */

:root {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: #1f2937;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --primary-blue: #60a5fa;
  --primary-blue-glow: rgba(96, 165, 250, 0.25);
  --primary-red: #f43f5e;
  --primary-red-glow: rgba(244, 63, 94, 0.25);
  --primary-green: #34d399;
  --primary-green-glow: rgba(52, 211, 153, 0.25);
  --accent-yellow: #fbbf24;
  --accent-yellow-glow: rgba(251, 191, 36, 0.25);

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  height: 100vh;
}

/* ==========================================================================
   Web Grid Layout (Sidebar + Device Center)
   ========================================================================== */

.web-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Info Sidebar */
.info-sidebar {
  width: 400px;
  background-color: var(--bg-secondary);
  border-right: 1px solid #1e293b;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 32px;
}

.logo-container h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.badge {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 30px;
}

.instructions {
  margin-bottom: 40px;
}

.instructions h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 1.5px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}

.instructions ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.instructions li {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 14px 16px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.instructions li:hover {
  background: rgba(96, 165, 250, 0.05);
  border-color: rgba(96, 165, 250, 0.2);
  transform: translateX(4px);
}

.tech-stack-info h4 {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  background-color: #1f2937;
  color: #cbd5e1;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Device Center */
.device-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1e293b 0%, #0b0f19 100%);
  padding: 20px;
}

/* ==========================================================================
   Smartphone Mockup Frame
   ========================================================================== */

.smartphone {
  width: 375px;
  height: 760px;
  background-color: #05070f;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 0 4px #27272a,
              0 0 0 12px #0c0f1d,
              0 0 50px rgba(96, 165, 250, 0.1);
  position: relative;
  border: 4px solid #1e293b;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.smartphone.warning-glow {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 0 4px #27272a,
              0 0 0 12px #0c0f1d,
              0 0 60px rgba(245, 158, 11, 0.35); /* Amber warning glow */
  border-color: #3b2a0c;
}

.notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 25px;
  background-color: #000;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 1000;
}

.screen {
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Mobile UI - Status Bar & Nav
   ========================================================================== */

.status-bar {
  height: 40px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 1005;
  background-color: var(--bg-primary);
  color: var(--text-main);
  user-select: none;
}

.status-icons {
  display: flex;
  gap: 6px;
}

.app-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
}

.app-screen.active {
  display: flex;
  animation: screenFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.app-header {
  padding: 15px 20px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid #1e293b;
}

.app-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.app-header p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.screen-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ==========================================================================
   Bottom Navigation Bar
   ========================================================================== */

.bottom-nav {
  height: 65px;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 12px;
  z-index: 1005;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 4px;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 4px 12px;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item.active::after {
  opacity: 1;
  transform: scale(1.5);
}

.nav-item.active {
  color: var(--primary-blue);
}

.nav-item[data-screen="screen-report"].active {
  color: var(--primary-red);
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background-color: #fff;
  border-radius: 10px;
  z-index: 1005;
  pointer-events: none;
}

/* ==========================================================================
   Map Interface & Screen Division
   ========================================================================== */

#map-wrapper {
  height: 55%;
  width: 100%;
  position: relative;
}

#map {
  height: 100%;
  width: 100%;
  background-color: #0b0f19;
}

/* Leaflet Overrides */
.leaflet-container {
  background: #0f172a !important;
}
.leaflet-bar {
  border: none !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3) !important;
}
.leaflet-bar a {
  background-color: var(--bg-card) !important;
  color: #fff !important;
  border-color: #374151 !important;
}

/* Weather Alert Bar */
.weather-alert-bar {
  background-color: rgba(245, 158, 11, 0.95); /* Orange for warnings */
  padding: 8px 16px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-weight: 700;
  z-index: 1004;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Route floating FAB button */
.fab-route {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: var(--primary-green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.fab-route:hover {
  transform: translateX(-50%) scale(1.05);
}

/* Routing Overlay Panel */
.routing-overlay-panel {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 12px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.routing-details h4 {
  font-family: var(--font-display);
  font-size: 13px;
  margin-bottom: 4px;
}

.routing-details p {
  font-size: 11px;
  margin-bottom: 2px;
}

.safe-tag { color: var(--primary-green); font-weight: 700; }
.unsafe-tag { color: var(--primary-red); font-weight: 700; }
.route-reason { color: var(--text-muted); font-size: 10px !important; margin-top: 4px; font-style: italic; }

.btn-clear-route {
  background-color: #374151;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-clear-route:hover {
  background-color: #4b5563;
}

/* ==========================================================================
   Community Feed Section (Bottom 45% of Map Screen)
   ========================================================================== */

.community-feed-section {
  height: 45%;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  border-top: 1px solid #1e293b;
}

.feed-header {
  padding: 10px 16px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
}

.feed-active-badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-green);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.feed-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feed-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feed-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.feed-user {
  font-weight: 700;
  color: #fff;
}

.feed-badge-verified {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--primary-blue);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 9px;
  margin-left: 6px;
  font-weight: 700;
}

.feed-time {
  color: var(--text-muted);
}

.feed-msg {
  font-size: 11px;
  line-height: 1.4;
  color: #cbd5e1;
}

.feed-stars {
  font-size: 10px;
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  gap: 3px;
  align-self: flex-end;
}

.empty-feed {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 20px;
}

/* ==========================================================================
   Dossier Flow UI
   ========================================================================== */

.search-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--primary-blue);
}

.search-box button {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-box button:hover {
  opacity: 0.9;
}

/* Card Styling */
.card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #374151;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.safe-period-card {
  background-color: var(--bg-card);
  border-left: 4px solid var(--primary-green);
  color: var(--primary-green);
}

.card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 6px;
}

.danger-text {
  color: var(--accent-yellow);
}

.card-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
}

.score-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-blue) 0%, var(--primary-blue) 75%, #1f2937 75%, #1f2937 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 20px var(--primary-blue-glow);
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
}

.score-circle-inner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-card);
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-circle span {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.score-circle small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
  margin-left: 2px;
}

.dossier-result .card {
  opacity: 0;
  transform: translateY(16px);
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dossier-result .card:nth-child(1) { animation-delay: 0.05s; }
.dossier-result .card:nth-child(2) { animation-delay: 0.15s; }
.dossier-result .card:nth-child(3) { animation-delay: 0.25s; }

@keyframes cardSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-card {
  border-left: 4px solid var(--primary-blue);
}

.ai-text {
  font-style: italic;
  color: #93c5fd !important;
}

/* ==========================================================================
   Report Flow UI
   ========================================================================== */

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.category-pills {
  display: flex;
  gap: 8px;
}

.pill {
  flex: 1;
  background-color: #1f2937;
  border: 1px solid #374151;
  padding: 8px;
  border-radius: 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.pill.active {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  border-color: #f43f5e;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--primary-red-glow);
}

textarea {
  width: 100%;
  height: 80px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  resize: none;
}

textarea:focus {
  border-color: var(--primary-red);
}

.upload-area {
  background-color: #1e293b;
  border: 2px dashed #334155;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.upload-area:hover {
  border-color: var(--primary-red);
  background-color: rgba(244, 63, 94, 0.02);
}

.upload-icon {
  font-size: 28px;
  margin-bottom: 6px;
  display: block;
}

.upload-area p {
  font-size: 12px;
  color: var(--text-muted);
}

.hidden-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#preview-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #1f2937;
  border-radius: 10px;
  overflow: hidden;
}

#image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-danger {
  width: 100%;
  background-color: var(--primary-red);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
  box-shadow: 0 4px 15px var(--primary-red-glow);
}

.btn-danger:hover {
  opacity: 0.9;
}

/* Loader / Spinner */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  gap: 15px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#report-loader .spinner {
  border-top-color: var(--primary-red);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader p {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Success Flow */
.report-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 10px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.report-success h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 10px;
}

.report-success p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.points-badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-green);
  border: 1px solid var(--primary-green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 30px;
}

.report-success button {
  background-color: #374151;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Utils */
.hidden {
  display: none !important;
}

/* ==========================================================================
   News Feed UI (Mockup App)
   ========================================================================== */
.news-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-category {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

.news-time {
  font-size: 11px;
  color: var(--text-muted);
}

.news-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.news-source {
  color: var(--text-muted);
}

.news-risk-badge {
  border: 1px solid;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.news-ai-box {
  background-color: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--primary-blue);
  border-radius: 8px;
  padding: 10px 12px;
}

.news-ai-box h5 {
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 4px;
}

.news-ai-box p {
  font-size: 12px;
  color: #93c5fd !important;
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

.empty-news {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 20px;
}

/* Custom CSS for Redesign: Lucide SVGs & Custom Map Pins */
.logo-icon {
  width: 32px;
  height: 32px;
  stroke: var(--primary-blue);
  stroke-width: 2px;
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  stroke: var(--primary-blue);
  stroke-width: 2.5px;
  margin-top: 2px;
  float: left;
  margin-right: 12px;
}

.instructions li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px !important;
  padding-left: 0 !important;
}
.instructions li::before {
  display: none !important; /* Hide old bullet dots */
}

.status-icon {
  width: 14px;
  height: 14px;
  stroke: var(--text-main);
  stroke-width: 2.5px;
}

.nav-icon-svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  stroke-width: 2px;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.nav-item.active .nav-icon-svg {
  stroke: var(--primary-blue);
  transform: scale(1.1);
}

.nav-item[data-screen="screen-report"].active .nav-icon-svg {
  stroke: var(--primary-red);
}

.btn-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5px;
  margin-right: 6px;
  vertical-align: -2px;
}

.upload-icon-svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary-red);
  stroke-width: 1.5px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.success-icon-svg {
  width: 48px;
  height: 48px;
  stroke: var(--primary-green);
  stroke-width: 2px;
  margin-bottom: 16px;
}

/* Leaflet Custom DivIcon Markers styling */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.custom-pin svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2.5px;
}

/* Color codes for specific pins */
.flood-pin {
  background-color: var(--primary-blue);
  box-shadow: 0 0 12px var(--primary-blue-glow);
}

.landslide-pin {
  background-color: var(--accent-yellow);
  box-shadow: 0 0 12px var(--accent-yellow-glow);
}

.fire-pin {
  background-color: var(--primary-red);
  box-shadow: 0 0 12px var(--primary-red-glow);
}

.user-pin {
  background-color: var(--primary-green);
  box-shadow: 0 0 15px var(--primary-green-glow);
  animation: user-glow 2s infinite;
}

@keyframes user-glow {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Floating Destination Search Bar */
.map-search-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 1001;
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  gap: 12px;
}

.route-fields {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  position: relative;
}

.route-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 0.2s ease;
}

.route-field-row:focus-within {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--primary-blue-glow);
}

.route-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.origin-dot {
  background-color: var(--primary-green);
  box-shadow: 0 0 8px var(--primary-green-glow);
}

.destination-dot {
  background-color: var(--primary-red);
  box-shadow: 0 0 8px var(--primary-red-glow);
}

.route-fields-connector {
  position: absolute;
  left: 13px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
  border-left: 2px dotted rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 1;
}

.map-search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  color: #f8fafc;
  outline: none;
  font-size: 11px;
  font-family: var(--font-body);
}

.map-search-bar button {
  border: none;
  background: var(--primary-blue);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--primary-blue-glow);
}

.map-search-bar button:hover {
  transform: scale(1.05);
  background-color: #3b82f6;
}

.map-search-bar button svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  stroke-width: 2.5px;
}

/* ==========================================================================
   Radar Scanner Overlay & Keyframes
   ========================================================================== */
.radar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-radius: 24px;
}

.radar-overlay.radar-hidden {
  opacity: 0;
}

.radar-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(96, 165, 250, 0.05) 0deg, rgba(96, 165, 250, 0.6) 320deg, transparent 360deg);
  border-radius: 50%;
  transform-origin: center;
  animation: radar-sweep 2s linear infinite;
}

.radar-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1.5px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.2);
  animation: radar-ping 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.radar-text {
  position: absolute;
  bottom: 20px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  font-family: var(--font-display);
}

.radar-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  box-shadow: 0 0 10px var(--primary-blue);
  animation: radar-dot-pulse 0.8s infinite alternate;
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radar-ping {
  0% { transform: scale(0.2); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes radar-dot-pulse {
  from { opacity: 0.4; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   Premium Refinements, Glassmorphism & Animations
   ========================================================================== */

/* Glassmorphism overrides */
.bottom-nav {
  position: relative;
  background-color: rgba(17, 24, 39, 0.8) !important;
  backdrop-filter: blur(20px) !important;
}

.map-search-bar {
  background-color: rgba(17, 24, 39, 0.8) !important;
  backdrop-filter: blur(20px) !important;
}

.routing-overlay-panel {
  background-color: rgba(17, 24, 39, 0.8) !important;
  backdrop-filter: blur(20px) !important;
}

/* Tab indicator bubble */
.nav-indicator-bubble {
  position: absolute;
  bottom: 22px; /* Center with icons */
  height: 42px;
  width: 50px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 12px;
  z-index: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
}

.nav-indicator-bubble.active {
  opacity: 1;
}

/* Tab bounce animation */
.nav-item.active .nav-icon-svg {
  animation: tab-spring-bounce 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tab-spring-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) translateY(-3px); }
  100% { transform: scale(1.1) translateY(0); }
}

/* Custom Marker Bottom Sheet overlay */
.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 14px 20px 20px 20px;
  z-index: 1010;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  align-self: center;
  margin-bottom: 2px;
}

.bottom-sheet-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bottom-sheet-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.bottom-sheet-close svg {
  width: 14px;
  height: 14px;
}

.bottom-sheet-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bottom-sheet-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.sheet-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.4;
}

.sheet-img-container {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2px;
}

.sheet-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-actions {
  margin-top: 4px;
  display: flex;
  gap: 8px;
}

.btn-confirm-risk {
  flex: 1;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--primary-blue);
  padding: 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-confirm-risk.voted {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 12px var(--primary-blue-glow);
}

/* Thumbs up pop animation */
.thumbs-up-pop {
  animation: thumbs-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes thumbs-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Drag and drop upload */
.upload-area.dragover {
  border-color: var(--primary-red) !important;
  background-color: rgba(244, 63, 94, 0.08) !important;
  transform: scale(1.02);
}

/* Floating Remove Image Button in Upload Box */
.btn-remove-preview {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(244, 63, 94, 0.95) !important;
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-remove-preview:hover {
  background: #e11d48 !important;
  transform: scale(1.1);
}

.btn-remove-preview svg {
  width: 14px;
  height: 14px;
}

/* AI verification progress indicator */
.progress-container {
  width: 100%;
  height: 6px;
  background-color: #374151;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--primary-red);
  border-radius: 3px;
  transition: width 0.1s linear;
}

/* Dossier Clear Search input button */
.search-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.btn-clear-search {
  position: absolute;
  right: 14px;
  top: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.btn-clear-search:hover {
  color: #fff;
}

.btn-clear-search svg {
  width: 18px;
  height: 18px;
}

/* Feed card pop animation */
.feed-card-voted {
  border-color: var(--accent-yellow) !important;
}

.feed-stars i {
  transition: transform 0.2s ease;
}

.feed-stars.voted {
  color: var(--accent-yellow);
  font-weight: bold;
}

.feed-stars.voted i {
  transform: scale(1.2);
}

/* ==========================================================================
   Responsive & Adaptive Shell (Mobile Viewport <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .info-sidebar {
    display: none !important;
  }
  
  .device-container {
    padding: 0 !important;
    background: var(--bg-primary) !important;
  }
  
  .smartphone {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  
  .notch {
    display: none !important; /* Hide mockup notch on mobile */
  }
  
  .screen {
    border-radius: 0 !important;
  }
  
  .status-bar {
    padding-top: env(safe-area-inset-top, 10px);
    height: calc(40px + env(safe-area-inset-top, 0px));
  }
  
  .bottom-nav {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    height: calc(65px + env(safe-area-inset-bottom, 0px));
  }
  
  .home-indicator {
    display: none !important;
  }
}


/* ==========================================================================
   Sidebar Enhancements: KPI Grid, Live Status Dot, Leaderboard
   ========================================================================== */

.sidebar-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-green);
  box-shadow: 0 0 6px var(--primary-green-glow);
  animation: user-glow 2s infinite;
  margin-left: auto;
  flex-shrink: 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.kpi-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.leaderboard-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 28px;
}

.leaderboard-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s;
}

.leaderboard-item:hover { background: rgba(255, 255, 255, 0.04); }

.leaderboard-item.you-item {
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.rank-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 8px;
  min-width: 28px;
  text-align: center;
}

.rank-badge.gold   { background: linear-gradient(135deg, #ffd700, #f59e0b); color: #000; }
.rank-badge.silver { background: linear-gradient(135deg, #c0c0c0, #9ca3af); color: #000; }
.rank-badge.bronze { background: linear-gradient(135deg, #cd7f32, #b45309); color: #fff; }
.rank-badge.you    { background: rgba(96, 165, 250, 0.2); color: var(--primary-blue); border: 1px solid rgba(96, 165, 250, 0.3); }

.rank-name { font-size: 12px; color: #cbd5e1; flex: 1; font-weight: 500; }
.rank-pts  { font-size: 11px; color: var(--accent-yellow); font-weight: 700; }

/* ==========================================================================
   Feed Header: Pulse dot & Notification Bell
   ========================================================================== */

.feed-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-green);
  box-shadow: 0 0 6px var(--primary-green-glow);
  animation: pulse-red 1.5s infinite;
  margin-right: 4px;
  vertical-align: middle;
}

.notify-bell {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.notify-bell:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-red);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--bg-secondary);
  line-height: 1;
  animation: badge-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badge-pop {
  0%   { transform: scale(0); }
  80%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   News Filter Tabs
   ========================================================================== */

.news-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid #1e293b;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.news-filter-tabs::-webkit-scrollbar { display: none; }

.news-tab {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.news-tab:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.news-tab.active {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--primary-blue);
}

/* ==========================================================================
   Gamification: Streak Banner & Confetti
   ========================================================================== */

.streak-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: #fdba74;
  margin-bottom: 16px;
}

.success-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.confetti-piece {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  animation: confetti-fall 1.4s ease-in forwards;
}

@keyframes confetti-fall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(480deg); opacity: 0; }
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: rgba(17, 24, 39, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--primary-blue);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 260px;
  max-width: 340px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  pointer-events: all;
  animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  cursor: pointer;
}

.toast.toast-success { border-left-color: var(--primary-green); }
.toast.toast-warning { border-left-color: var(--accent-yellow); }
.toast.toast-danger  { border-left-color: var(--primary-red); }

.toast.toast-exit {
  animation: toast-slide-out 0.3s ease forwards;
}

.toast-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-body { flex: 1; }

.toast-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toast-slide-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ==========================================================================
   Dossier Risk Breakdown Bars
   ========================================================================== */

.risk-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.risk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.risk-row-label {
  color: var(--text-muted);
  width: 85px;
  flex-shrink: 0;
  font-weight: 500;
}

.risk-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.risk-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
  width: 0%;
}

.risk-row-value {
  font-weight: 700;
  width: 30px;
  text-align: right;
  font-size: 10px;
}

