:root {
  --bg-main: #0B0F19;
  --bg-card: #111827;
  --bg-card-hover: #1A2234;
  --bg-glass: rgba(17, 24, 39, 0.75);
  --border-color: #1F2937;
  --border-glow: rgba(59, 130, 246, 0.3);
  
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --primary-glow: rgba(59, 130, 246, 0.4);
  
  --accent-cyan: #06B6D4;
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.15);
  
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 15px var(--primary-glow);
}

.brand-title h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-title span {
  font-size: 11px;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-item a:hover, .nav-item.active a {
  color: var(--text-main);
  background: var(--bg-card-hover);
  border-left: 3px solid var(--primary);
}

.nav-item.active a {
  background: rgba(59, 130, 246, 0.1);
  color: #60A5FA;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-dim);
}

/* Main Content */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.top-bar-title h1 {
  font-size: 20px;
  font-weight: 700;
}

.top-bar-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.brand-select {
  background: transparent;
  color: var(--text-main);
  border: none;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.brand-select option {
  background: var(--bg-card);
  color: var(--text-main);
}

.brand-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(17, 24, 39, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.brand-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.brand-card-item {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: var(--transition);
}

.brand-card-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.vector-badge {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vector-pass { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.vector-fail { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.vector-neutral { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-color); }

.content-container {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #374151;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.stat-icon.total { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.score { background: rgba(147, 51, 234, 0.15); color: #C084FC; }

.stat-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Actions Hub */
.action-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.box-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-scan-form {
  display: flex;
  gap: 12px;
}

.input-url {
  flex: 1;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.input-url:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px var(--primary-glow);
}

.btn-secondary {
  background: #1F2937;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #374151;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.scan-buttons-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Incidents Table */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table-header-box {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #0D1322;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

tr:hover {
  background-color: var(--bg-card-hover);
}

.risk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.risk-CRITICAL { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.risk-HIGH { background: rgba(249, 115, 22, 0.15); color: #F97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.risk-MEDIUM { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.risk-LOW { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.screenshot-preview {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 12px;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

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

/* Button Loading & Pulse States */
.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn.btn-active-scan {
  background: linear-gradient(135deg, #1E40AF, #3B82F6) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  animation: buttonPulse 1.8s infinite;
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Live Scan Monitor Box */
.live-scan-box {
  background: linear-gradient(180deg, #111827 0%, #0D1322 100%);
  border: 1px solid #1E293B;
  transition: all 0.3s ease;
}

.live-scan-box.scanning {
  border-color: #3B82F6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

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

.radar-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
}

.radar-pulse.active {
  background: #3B82F6;
}

.radar-pulse.active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #3B82F6;
  animation: radarRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes radarRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.live-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-status-pill.idle {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-status-pill.running {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.5);
  animation: pulsePill 1.5s infinite alternate;
}

@keyframes pulsePill {
  from { opacity: 0.8; }
  to { opacity: 1; filter: brightness(1.2); }
}

/* Progress Bar */
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #1F2937;
  border-radius: 4px;
  overflow: hidden;
  margin: 6px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3B82F6, #06B6D4);
  border-radius: 4px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  background: #111827;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-info { border-left: 4px solid var(--primary); }
.toast-success { border-left: 4px solid var(--success); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-error { border-left: 4px solid var(--danger); }

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.toast-fade-out {
  transform: translateX(100%);
  opacity: 0;
}

/* 4-Vector Cross-Matching Matrix Styles */
.vector-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.vector-card {
  background: #0B0F19;
  border: 1px solid #1F2937;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.vector-card:hover {
  border-color: #374151;
  background: #0E1422;
}

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

.vector-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #38BDF8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vector-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.vector-status-pill.status-official {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.vector-status-pill.status-fake, .vector-status-pill.status-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.vector-status-pill.status-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.vector-status-pill.status-neutral {
  background: rgba(156, 163, 175, 0.15);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.vector-card-desc {
  font-size: 12px;
  color: #D1D5DB;
  line-height: 1.45;
}

/* Social Platform Badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.platform-instagram { background: rgba(225, 48, 108, 0.15); color: #F472B6; border: 1px solid rgba(225, 48, 108, 0.3); }
.platform-facebook { background: rgba(24, 119, 242, 0.15); color: #60A5FA; border: 1px solid rgba(24, 119, 242, 0.3); }
.platform-x { background: rgba(255, 255, 255, 0.1); color: #F3F4F6; border: 1px solid rgba(255, 255, 255, 0.2); }
.platform-tiktok { background: rgba(0, 242, 234, 0.12); color: #38BDF8; border: 1px solid rgba(0, 242, 234, 0.3); }
.platform-youtube { background: rgba(255, 0, 0, 0.15); color: #F87171; border: 1px solid rgba(255, 0, 0, 0.3); }
.platform-telegram { background: rgba(0, 136, 204, 0.15); color: #38BDF8; border: 1px solid rgba(0, 136, 204, 0.3); }
.platform-linkedin { background: rgba(10, 102, 194, 0.15); color: #93C5FD; border: 1px solid rgba(10, 102, 194, 0.3); }
.platform-web { background: rgba(107, 114, 128, 0.15); color: #9CA3AF; border: 1px solid rgba(107, 114, 128, 0.3); }

/* ==========================================================================
   MOBILE & RESPONSIVE DESIGN ARCHITECTURE
   ========================================================================== */

/* Mobile Top Bar (Hidden on Desktop) */
.mobile-top-bar {
  display: none;
}

.mobile-close-btn {
  display: none;
}

.sidebar-overlay {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

/* Tablet & Mobile Breakpoint (<= 1024px) */
@media screen and (max-width: 1024px) {
  body {
    display: block;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Sidebar Drawer */
  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -310px;
    width: 290px;
    height: 100vh;
    height: 100dvh;
    z-index: 1100;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.7);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
  }

  .mobile-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border-color: var(--danger);
  }

  /* Sticky Mobile Header */
  .mobile-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
  }

  .hamburger-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
  }

  .hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
  }

  .mobile-brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
  }

  .mobile-brand-logo span {
    font-size: 18px;
  }

  .brand-select-mobile {
    background: #0B0F19;
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    outline: none;
    max-width: 130px;
  }

  /* Hide Desktop Top Bar on Mobile/Tablet */
  .desktop-top-bar {
    display: none;
  }

  .main-wrapper {
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
  }

  .content-container {
    padding: 16px 16px 85px 16px;
    gap: 18px;
  }
}

/* Smartphone Breakpoint (<= 768px) */
@media screen and (max-width: 768px) {
  /* Stats Grid - 2x2 Clean Mobile Matrix */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 12px 14px;
    gap: 10px;
    border-radius: var(--radius-md);
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .stat-info h3 {
    font-size: 18px;
    margin-bottom: 2px;
  }

  .stat-info p {
    font-size: 11px;
    line-height: 1.2;
  }

  /* Active Brand Banner */
  .brand-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .banner-right {
    width: 100%;
  }

  .banner-right .btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 10px 14px;
  }

  /* Instant Audit Action Box */
  .action-box {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .box-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .quick-scan-form {
    flex-direction: column;
    gap: 8px;
  }

  .quick-scan-form .input-url {
    width: 100%;
    font-size: 13px;
    padding: 12px 14px;
  }

  .quick-scan-form .btn {
    width: 100%;
    justify-content: center;
    height: 44px;
    font-size: 14px;
  }

  .scan-buttons-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .scan-buttons-row .btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    font-size: 13px;
    white-space: normal;
    text-align: left;
  }

  /* Live Radar & Scan Header */
  .live-scan-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .live-status-pill {
    align-self: flex-start;
  }

  /* Incidents Table Mobile Adaptation */
  .table-container {
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-header-box {
    padding: 14px 16px;
  }

  table {
    min-width: 650px;
    font-size: 13px;
  }

  th, td {
    padding: 12px 14px;
  }

  /* Brand Form Modal (Mobile Full-Height Sheet) */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 20px 16px;
    width: 100%;
    animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

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

  .brand-cards-grid {
    grid-template-columns: 1fr;
  }

  .vector-matrix-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Mobile App Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid #1F2937;
    z-index: 1050;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
  }

  .bottom-nav-item .bnav-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
  }

  .bottom-nav-item.active {
    color: #38BDF8;
  }

  .bottom-nav-item.active .bnav-icon {
    transform: scale(1.15);
  }

  /* Toast Notifications Mobile Positioning */
  .toast-container {
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

/* Small Screens / Narrow Phones (<= 400px) */
@media screen and (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .mobile-brand-logo strong {
    font-size: 13px;
  }

  .brand-select-mobile {
    max-width: 105px;
    font-size: 11px;
  }
}


