/* ==========================================================================
   Unified Shopping Insights & Intelligence - Design System
   Modern Glassmorphism, Vibrant Data Accents & Responsive Layout
   ========================================================================== */

:root {
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette - Dark Glass Theme */
  --bg-dark: #0B0F19;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(18, 24, 38, 0.6);
  --bg-glass-heavy: rgba(11, 15, 25, 0.85);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  /* Brand Accents */
  --primary: #6366F1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --primary-hover: #4F46E5;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;
  --accent-purple: #8B5CF6;
  
  /* Platform Colors */
  --plat-amazon: #FF9900;
  --plat-flipkart: #2874F0;
  --plat-blinkit: #F8CB46;
  --plat-zepto: #8800EC;
  --plat-swiggy: #FC8019;
  --plat-zomato: #E23744;
  --plat-bigbasket: #689F38;
  --plat-dmart: #00A651;
  --plat-nykaa: #FC2779;
  
  /* Elevations & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --backdrop-blur: blur(16px);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-dark: #F3F4F6;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-card-border: rgba(0, 0, 0, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-heavy: rgba(243, 244, 246, 0.95);
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* App Container Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background: var(--bg-glass-heavy);
  backdrop-filter: var(--backdrop-blur);
  border-right: 1px solid var(--bg-card-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform var(--transition-normal);
}

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

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

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #9CA3AF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation Links */
.nav-menu {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.12));
  color: #fff;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.nav-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.725rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-rose);
  color: white;
  font-weight: 700;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storage-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.785rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Main Content Area */
.main-wrapper {
  margin-left: 280px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top App Header */
.top-header {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass-heavy);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--bg-card-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-page-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4F46E5);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--bg-card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Content Container */
.content-body {
  padding: 32px;
  flex: 1;
}

/* View Sections */
.view-section {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

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

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

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.kpi-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kpi-footer {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.trend-up { color: var(--accent-rose); font-weight: 600; }
.trend-down { color: var(--accent-emerald); font-weight: 600; }

/* Section Cards & Containers */
.dashboard-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Platform Badges */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: capitalize;
}

.platform-amazon { background: rgba(255, 153, 0, 0.15); color: #FF9900; border: 1px solid rgba(255, 153, 0, 0.3); }
.platform-flipkart { background: rgba(40, 116, 240, 0.15); color: #4A90E2; border: 1px solid rgba(40, 116, 240, 0.3); }
.platform-blinkit { background: rgba(248, 203, 70, 0.15); color: #F8CB46; border: 1px solid rgba(248, 203, 70, 0.3); }
.platform-zepto { background: rgba(136, 0, 236, 0.15); color: #B34BFF; border: 1px solid rgba(136, 0, 236, 0.3); }
.platform-swiggy { background: rgba(252, 128, 25, 0.15); color: #FC8019; border: 1px solid rgba(252, 128, 25, 0.3); }
.platform-zomato { background: rgba(226, 55, 68, 0.15); color: #E23744; border: 1px solid rgba(226, 55, 68, 0.3); }
.platform-bigbasket { background: rgba(104, 159, 56, 0.15); color: #8BC34A; border: 1px solid rgba(104, 159, 56, 0.3); }
.platform-dmart { background: rgba(0, 166, 81, 0.15); color: #10B981; border: 1px solid rgba(0, 166, 81, 0.3); }
.platform-nykaa { background: rgba(252, 39, 121, 0.15); color: #FC2779; border: 1px solid rgba(252, 39, 121, 0.3); }
.platform-tatacliq { background: rgba(168, 34, 54, 0.15); color: #E57373; border: 1px solid rgba(168, 34, 54, 0.35); }
.platform-wellness { background: rgba(0, 150, 136, 0.15); color: #4DB6AC; border: 1px solid rgba(0, 150, 136, 0.35); }

/* Ingestion Studio Styles */
.ingestion-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bg-card-border);
  padding-bottom: 12px;
}

.ingestion-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ingestion-tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #fff;
}

.ingestion-panel {
  display: none;
}

.ingestion-panel.active {
  display: block;
}

/* Terminal Console Box */
.terminal-box {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.825rem;
  height: 260px;
  overflow-y: auto;
  color: #A7F3D0;
  line-height: 1.6;
}

.terminal-line { margin-bottom: 4px; }
.terminal-line.info { color: #93C5FD; }
.terminal-line.process { color: #FDE047; }
.terminal-line.success { color: #6EE7B7; }
.terminal-line.error { color: #FCA5A5; }

/* Drag & Drop OCR Box */
.ocr-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ocr-dropzone:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

/* Predictive Replenishment Cards */
.replenish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.replenish-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.replenish-card.urgent-critical {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.12);
}

.replenish-card.urgent-warning {
  border-color: rgba(245, 158, 11, 0.4);
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-bar-fill.critical { background: var(--accent-rose); }
.progress-bar-fill.warning { background: var(--accent-amber); }
.progress-bar-fill.normal { background: var(--accent-emerald); }

/* Table Styles */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.custom-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-card-border);
  font-weight: 600;
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Form Controls */
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-glass-heavy);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--bg-card-border);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left: 4px solid var(--accent-emerald); }
.toast.error { border-left: 4px solid var(--accent-rose); }
.toast.info { border-left: 4px solid var(--primary); }

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

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-dark);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

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

.modal-body {
  padding: 24px;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-glass-heavy);
  backdrop-filter: var(--backdrop-blur);
  border-top: 1px solid var(--bg-card-border);
  z-index: 60;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.mobile-nav-item.active {
  color: var(--primary);
  transform: translateY(-2px);
}

.mobile-nav-icon {
  font-size: 1.25rem;
}

/* Mobile Responsiveness & Phone Optimization */
@media (max-width: 768px) {
  body {
    width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    transform: translateX(-100%);
    display: none;
  }

  .main-wrapper {
    margin-left: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 76px;
  }

  .top-header {
    height: 58px;
    padding: 0 14px;
    width: 100vw;
  }

  .header-page-title {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-primary {
    padding: 6px 10px;
    font-size: 0.775rem;
  }

  .content-body {
    padding: 14px 12px 80px 12px;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* 2-Column Compact KPI Grid for Mobile */
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

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

  .kpi-header {
    font-size: 0.725rem;
  }

  .kpi-icon-bubble {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .kpi-value {
    font-size: 1.35rem;
  }

  .kpi-footer {
    font-size: 0.7rem;
  }

  .dashboard-card {
    padding: 16px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
  }

  .card-header-bar {
    margin-bottom: 14px;
  }

  .card-title {
    font-size: 1rem;
  }

  .grid-2col, .grid-3col {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .replenish-card {
    padding: 14px;
  }

  .terminal-box {
    height: 200px;
    font-size: 0.75rem;
  }

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

/* ==========================================================================
   Modals & Enterprise Security Overlays
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Security & Auth Badges */
.security-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.security-status-badge:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
}

.security-status-badge.locked {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.3);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--bg-card-border);
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
}

/* QR Code & APK Install Card */
.apk-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.apk-badge-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.cipher-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.security-audit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.825rem;
}

.security-audit-table th,
.security-audit-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--bg-card-border);
}

.security-audit-table th {
  color: var(--text-secondary);
  font-weight: 600;
}

