/* ==========================================================================
   ThreatIntel Enterprise - Premium Clean Blue & White Design System
   ========================================================================== */

:root {
  /* Core Blue Palette */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-950: #172554;

  /* Accent Cobalt & Sky */
  --accent-sky: #0ea5e9;
  --accent-sky-light: #e0f2fe;
  --accent-indigo: #4f46e5;
  --accent-teal: #0d9488;

  /* Surfaces & Clean White Backgrounds */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-input: #ffffff;

  /* Crisp Borders & Dividers */
  --border-light: #e2e8f0;
  --border-focus: #3b82f6;
  --border-hover: #cbd5e1;
  --border-strong: #94a3b8;

  /* High Contrast Clean Typography */
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Severity Tokens tailored for Light Blue background */
  --sev-critical-bg: #fef2f2;
  --sev-critical-border: #fecaca;
  --sev-critical-text: #dc2626;

  --sev-high-bg: #fffbeb;
  --sev-high-border: #fde68a;
  --sev-high-text: #b45309;

  --sev-medium-bg: #eff6ff;
  --sev-medium-border: #bfdbfe;
  --sev-medium-text: #1d4ed8;

  --sev-low-bg: #f0fdf4;
  --sev-low-border: #bbf7d0;
  --sev-low-text: #15803d;

  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-card: 0 2px 8px rgba(37, 99, 235, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 24px -4px rgba(37, 99, 235, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.04);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.16s ease;
  --transition-normal: 0.24s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.radial-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.radial-glow.top-left {
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
}

.radial-glow.top-right {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-sky-light) 0%, transparent 70%);
}

/* ==========================================================================
   Header Component
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-header-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  border: 1.5px solid rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.brand-logo:hover .brand-header-logo-img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.42);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-900);
}

.brand-title .title-highlight {
  color: var(--primary-600);
}

.brand-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.system-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-700);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-600);
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.5);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Header Center: Omnibar Universal Search */
.header-center {
  flex: 1;
  max-width: 580px;
  margin: 0 32px;
}

.omnibar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0 16px;
  height: 44px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.omnibar-wrapper:focus-within {
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  color: var(--primary-600);
  font-size: 14px;
  margin-right: 12px;
}

.omnibar-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
}

.omnibar-wrapper input::placeholder {
  color: var(--text-muted);
}

.search-kbd-shortcut {
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

/* Omnibar Instant Results Dropdown */
.omnibar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  max-height: 440px;
  overflow-y: auto;
  z-index: 1000;
  padding: 6px 0;
}

.omnibar-group-header {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.omnibar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.omnibar-item:hover,
.omnibar-item.selected {
  background: var(--primary-50);
}

.omnibar-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.omnibar-icon-feed {
  background: #eff6ff;
  color: #2563eb;
}

.omnibar-icon-actor {
  background: #fdf4ff;
  color: #a21caf;
}

.omnibar-icon-cve {
  background: #fff1f2;
  color: #e11d48;
}

.omnibar-icon-ioc {
  background: #f0fdf4;
  color: #16a34a;
}

.omnibar-icon-sector {
  background: #f8fafc;
  color: #0284c7;
}

.omnibar-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.omnibar-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.omnibar-item-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  gap: 8px;
  align-items: center;
}

.omnibar-dropdown-footer {
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

/* Header Right: Auth & Profile */
.header-right {
  display: flex;
  align-items: center;
  position: relative;
}

.btn-google {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-600);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: var(--transition-fast);
}

.btn-google:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.google-g-icon {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  padding: 2px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
  box-shadow: var(--shadow-sm);
}

.user-pill:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-500);
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-display-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role-badge {
  font-size: 10.5px;
  color: var(--primary-600);
  font-weight: 600;
}

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

/* User Dropdown */
.user-dropdown-menu {
  position: absolute;
  top: 54px;
  right: 0;
  width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.user-dropdown-menu.active {
  display: flex;
  animation: slide-down 0.18s ease-out;
}

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

.dropdown-header {
  padding: 14px 18px;
}

.dropdown-brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-900);
}

.dropdown-brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

.dropdown-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.dropdown-user-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
}

.dropdown-item:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.dropdown-item.text-danger:hover {
  background: var(--sev-critical-bg);
  color: var(--sev-critical-text);
}

/* ==========================================================================
   Main Layout & Login Gate Hero
   ========================================================================== */

.main-layout {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

.login-gate-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(85vh - 72px);
  padding: 32px 16px;
  width: 100%;
}

.login-gateway-container {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
}

/* Left Column: Showcase */
.login-showcase-column {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.login-showcase-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.showcase-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-700);
  letter-spacing: 0.05em;
  width: fit-content;
  margin-bottom: 0;
}

/* Official Logo Emblem on Login Page */
.login-hero-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.login-hero-logo-img {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35), 0 0 0 3px rgba(37, 99, 235, 0.18);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  animation: logoFloat 4s ease-in-out infinite alternate;
}

@keyframes logoFloat {
  0% { transform: translateY(0); box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35), 0 0 0 3px rgba(37, 99, 235, 0.18); }
  100% { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(37, 99, 235, 0.45), 0 0 0 4px rgba(37, 99, 235, 0.25); }
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
  color: var(--primary-950);
}

.hero-title .title-accent {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.hero-description strong {
  color: var(--primary-900);
}

.login-assurance-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.assurance-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assurance-item i {
  color: var(--primary-600);
}

.assurance-dot {
  color: var(--border-color);
  font-weight: 700;
}

/* Right Column: Focused Auth */
.login-auth-column {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Clean White CTA Card */
.auth-cta-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px 30px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.85);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.auth-card-top-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.auth-card-logo-mini {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.auth-card-brand-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.auth-card-brand-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-950);
  line-height: 1.2;
}

.auth-card-brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-600), var(--accent-sky));
}

.cta-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 8px;
}

.cta-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.gis-button-container {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth-divider span {
  padding: 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

.btn-primary {
  background: var(--primary-600);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-700);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background: var(--primary-50);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
}

.btn-secondary:hover {
  background: var(--primary-100);
  border-color: var(--primary-300);
  color: var(--primary-800);
}

.btn-full {
  width: 100%;
}

.auth-security-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Auth Method Tabs (Google vs Email/Phone OTP) */
.auth-method-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-base);
  padding: 4px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.auth-method-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-method-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.6);
}

.auth-method-tab.active {
  background: var(--bg-surface);
  color: var(--primary-700);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

/* OTP Form Elements */
.auth-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .auth-form-row {
    grid-template-columns: 1fr;
  }
}

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

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

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: var(--radius-md);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-main);
  font-size: 13.5px;
  transition: var(--transition-fast);
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  outline: none;
  border-color: var(--primary-600);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* OTP Code Verification Screen */
.otp-verify-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.otp-target-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.otp-target-desc strong {
  color: var(--primary-900);
}

.otp-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  margin: 4px 3px;
}

.otp-input-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.otp-input-field {
  width: 230px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 8px;
  font-family: 'JetBrains Mono', monospace;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary-500);
  background: #ffffff;
  color: var(--primary-900);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.otp-input-field:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.dev-otp-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #1e40af;
}

.dev-otp-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 15px;
  background: #dbeafe;
  padding: 2px 8px;
  border-radius: 4px;
  color: #1e3a8a;
  letter-spacing: 1px;
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

/* Hero Feature Grid (2x2 Showcase Layout) */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
  margin-bottom: 22px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: var(--transition-normal);
}

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

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-bottom: 0;
}

.icon-blue { background: var(--primary-50); color: var(--primary-600); border: 1px solid var(--primary-200); }
.icon-sky { background: var(--accent-sky-light); color: var(--accent-sky); border: 1px solid #bae6fd; }
.icon-indigo { background: #e0e7ff; color: var(--accent-indigo); border: 1px solid #c7d2fe; }
.icon-teal { background: #ccfbf1; color: var(--accent-teal); border: 1px solid #99f6e4; }

.feature-card-text {
  flex: 1;
  min-width: 0;
}

.feature-card-text h4,
.feature-card h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-950);
  margin: 0 0 3px 0;
}

.feature-card-text p,
.feature-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Threat Dashboard & Radar Banner
   ========================================================================== */

.threat-kpi-banner {
  display: grid;
  grid-template-columns: 260px repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* Radar Animation Box */
.radar-visual-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.radar-screen {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--primary-300);
  background: radial-gradient(circle, var(--primary-50) 0%, #ffffff 80%);
  overflow: hidden;
}

.radar-screen::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--primary-200);
}

.radar-screen::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--primary-200);
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(37, 99, 235, 0.3) 0deg, transparent 60deg);
  animation: radar-spin 3s linear infinite;
  transform-origin: center center;
}

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

.radar-blip {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 0 6px var(--primary-500);
}

.blip-1 { top: 25%; left: 30%; animation: blip-fade 3s infinite 0.5s; }
.blip-2 { top: 65%; left: 70%; animation: blip-fade 3s infinite 1.8s; }
.blip-3 { top: 40%; left: 75%; animation: blip-fade 3s infinite 2.4s; }

@keyframes blip-fade {
  0% { opacity: 0; }
  30% { opacity: 1; transform: scale(1.4); }
  100% { opacity: 0; }
}

.radar-meta {
  display: flex;
  flex-direction: column;
}

.live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-700);
  letter-spacing: 0.05em;
}

.stream-rate {
  font-size: 12px;
  color: var(--text-muted);
}

/* KPI Stat Cards (Interactive Tab Switchers) */
.kpi-stat-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.kpi-stat-card:hover {
  border-color: var(--primary-400);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-3px);
  background: #ffffff;
}

.kpi-stat-card:active {
  transform: translateY(-1px);
}

.kpi-stat-card.active-kpi-card {
  border-color: var(--primary-600);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.16);
}

.kpi-stat-card.active-kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-600), #3b82f6);
}

.kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.kpi-stat-card:hover .kpi-icon {
  transform: scale(1.08);
}

.kpi-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.kpi-number {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary-950);
  line-height: 1.2;
}

.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card-action {
  margin-left: auto;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.kpi-stat-card:hover .kpi-card-action,
.kpi-stat-card.active-kpi-card .kpi-card-action {
  opacity: 1;
  transform: translateX(2px);
}

.kpi-action-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-700);
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.kpi-stat-card.active-kpi-card .kpi-action-pill {
  background: var(--primary-600);
  color: #ffffff;
}

/* ==========================================================================
   Navigation Tabs & Category Filter Pills
   ========================================================================== */

.dashboard-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 24px;
  width: 100%;
}

.intel-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.tab-btn.active {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.tab-badge {
  font-size: 11px;
  padding: 2px 7px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
  box-sizing: border-box;
}

.filter-title {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  margin-right: 4px;
}

.pill-btn {
  padding: 6px 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-600);
  background: #f8fafc;
}

.pill-btn.active {
  background: var(--primary-100);
  color: var(--primary-800);
  border-color: var(--primary-300);
}

.pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  margin-left: 2px;
}

.pill-btn.active .pill-count {
  background: var(--primary-200);
  color: var(--primary-900);
}

/* Right-aligned Filter Row Container */
.filter-row-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Category View Toggle */
.category-view-toggle {
  display: inline-flex;
  align-items: center;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-toggle-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary-400);
  color: var(--primary-700);
}

.view-toggle-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.15);
}

/* Category Split Section Containers */
.category-split-section {
  width: 100%;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.category-split-section:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.category-split-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  gap: 16px;
  flex-wrap: wrap;
}

.cat-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cat-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.cat-icon-threat-intelligence { background: #ede9fe; color: #7c3aed; border: 1px solid #ddd6fe; }
.cat-icon-dark-web-exposure { background: #fef3c7; color: #d97706; border: 1px solid #fde68a; }
.cat-icon-ransomware-incident { background: #fee2e2; color: #dc2626; border: 1px solid #fecaca; }
.cat-icon-vulnerability-intel { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.cat-icon-attack-surface { background: #d1fae5; color: #059669; border: 1px solid #a7f3d0; }
.cat-icon-ai-cyber-research { background: #f3e8ff; color: #9333ea; border: 1px solid #e9d5ff; }

.cat-header-titles {
  min-width: 0;
}

.cat-header-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-header-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.cat-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-header-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
  padding: 22px;
  background: #f8fafc;
  align-items: stretch;
}

/* Feed Card Category Badge (Prominently displayed on each card) */
.card-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-category-badge.cat-threat-intel {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.card-category-badge.cat-dark-web {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.card-category-badge.cat-ransomware {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.card-category-badge.cat-vulnerability {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.card-category-badge.cat-attack-surface {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.card-category-badge.cat-ai-research {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}


/* FIFO Live Stream Status Indicator */
.fifo-status-indicator {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fifo-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Search Banner */
.search-results-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  gap: 16px;
}

.search-banner-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.search-banner-text {
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.search-banner-text strong {
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--primary-200);
}

.search-count-pill {
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid var(--border-light);
}

/* Origin Filter Chips (All vs Live vs Historical Archive) */
.search-origin-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.origin-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.origin-filter-chip:hover {
  border-color: var(--primary-400);
  color: var(--primary-800);
  background: #f8fafc;
}

.origin-filter-chip.active {
  background: var(--primary-600);
  color: #ffffff;
  border-color: var(--primary-600);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.origin-filter-chip.origin-live-chip.active {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.origin-filter-chip.origin-historical-chip {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.origin-filter-chip.origin-historical-chip:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

.origin-filter-chip.origin-historical-chip.active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.origin-badge-cnt {
  background: rgba(0, 0, 0, 0.08);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
}

.origin-filter-chip.active .origin-badge-cnt {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-300);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* ==========================================================================
   Tab Panes & Threat Cards
   ========================================================================== */

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.feeds-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.feeds-grid.flat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.threat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 495px;
  min-height: 495px;
  max-height: 495px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  box-sizing: border-box;
}

.threat-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-400);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

/* Card Visual Header with Contextual Banner */
.card-visual-header {
  position: relative;
  width: 100%;
  height: 165px;
  min-height: 165px;
  max-height: 165px;
  background: #090e1c;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.card-threat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.threat-card:hover .card-threat-img {
  transform: scale(1.03);
}

.card-visual-overlay {
  display: none;
}

/* Card Floating Origin & Severity Badge Row */
.card-badge-floating-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.card-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 10px;
  font-weight: 700;
  padding: 3.5px 8.5px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.card-origin-pill.pill-live {
  background: rgba(15, 23, 42, 0.88);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.card-origin-pill.pill-live i {
  color: #38bdf8;
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.card-origin-pill.pill-historical {
  background: rgba(120, 53, 15, 0.92);
  color: #fef3c7;
  border: 1px solid rgba(251, 191, 36, 0.6);
}

.card-origin-pill.pill-historical i {
  color: #fbbf24;
}

/* Distinct visual identity for Historical Archive Cards */
.threat-card.card-historical {
  border-color: #fed7aa;
  background: #fffdfb;
}

.threat-card.card-historical:hover {
  border-color: #d97706;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.12);
}

.card-date.card-date-historical {
  color: #b45309;
  font-weight: 600;
}

/* Omnibar Dropdown Historical Identification */
.omnibar-group-header.omnibar-header-live {
  background: #f0fdf4;
  color: #166534;
  border-bottom: 1px solid #bbf7d0;
}

.omnibar-group-header.omnibar-header-historical {
  background: #fffbeb;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
}

.omnibar-item-icon.omnibar-icon-historical {
  background: #fef3c7;
  color: #d97706;
}

.badge-historical-mini {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Modal Historical Notice Banner */
.modal-historical-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: #92400e;
  font-size: 13px;
  line-height: 1.5;
}

.modal-historical-banner i {
  font-size: 18px;
  color: #d97706;
  margin-top: 2px;
  flex-shrink: 0;
}

.modal-hist-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-hist-text strong {
  font-size: 13.5px;
  color: #78350f;
}

.card-content-wrap {
  padding: 14px 16px 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.card-feed-type {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-700);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
  flex-shrink: 0;
}

/* Threat Actor & Compromised Technology Entity Badges */
.card-entity-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  flex-shrink: 0;
}

.entity-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  transition: var(--transition-fast);
  min-width: 0;
  height: 44px;
  box-sizing: border-box;
}

.entity-badge:hover {
  background: #f1f5f9;
  border-color: var(--primary-300);
}

.actor-badge {
  background: #fdf4ff;
  border-color: #f5d0fe;
}

.actor-badge:hover {
  background: #fae8ff;
  border-color: #e879f9;
}

.tech-badge {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.tech-badge:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.entity-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.entity-badge-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.entity-badge-kind {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.actor-badge .entity-badge-kind {
  color: #a21caf;
}

.tech-badge .entity-badge-kind {
  color: #15803d;
}

.entity-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Modal Entity Chips with Pictures */
.modal-entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.modal-entity-chip:hover {
  border-color: var(--primary-300);
  transform: translateY(-1px);
}

.modal-actor-chip {
  background: #fdf4ff;
  border-color: #f5d0fe;
  color: #86198f;
}

.modal-tech-chip {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.modal-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}


/* Modal Banner Image */
.modal-banner-wrap {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: #090e1c;
}

.modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090e1c;
}

/* Share Preview Image */
.share-preview-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 10px 0 14px;
  background: #090e1c;
}

.share-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090e1c;
}

.advisory-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-200);
}

.severity-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.severity-critical {
  background: var(--sev-critical-bg);
  color: var(--sev-critical-text);
  border: 1px solid var(--sev-critical-border);
}

.severity-high {
  background: var(--sev-high-bg);
  color: var(--sev-high-text);
  border: 1px solid var(--sev-high-border);
}

.severity-medium {
  background: var(--sev-medium-bg);
  color: var(--sev-medium-text);
  border: 1px solid var(--sev-medium-border);
}

.views-tag {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-threat-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px 0;
  color: var(--primary-950);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  flex-shrink: 0;
}

.card-threat-summary {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0 0 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  flex-shrink: 0;
}

.card-chips-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-bottom: 10px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  flex-shrink: 0;
}

.chip {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  flex-shrink: 0;
}

.chip-actor {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.chip-cve {
  font-family: var(--font-mono);
  background: var(--sev-high-bg);
  color: var(--sev-high-text);
  border-color: var(--sev-high-border);
}

.chip-target {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  flex-shrink: 0;
  margin-top: auto;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  box-sizing: border-box;
}

.card-date {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

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

.btn-inspect {
  background: var(--bg-surface);
  color: var(--primary-700);
  border: 1px solid var(--primary-200);
  font-size: 12.5px;
  padding: 7px 14px;
}

.btn-inspect:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
}

.btn-share {
  background: var(--primary-600);
  color: #ffffff;
  border: 1px solid var(--primary-600);
  font-size: 12.5px;
  padding: 7px 14px;
}

.btn-share:hover {
  background: var(--primary-700);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Tab 2: Threat Actor Dossiers
   ========================================================================== */

.tab-intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

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

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

.intro-left h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 4px;
}

.intro-left p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.intro-right {
  display: flex;
  gap: 10px;
}

.legend-chip {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.badge-severe {
  background: var(--sev-critical-bg);
  color: var(--sev-critical-text);
  border: 1px solid var(--sev-critical-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-elevated {
  background: var(--sev-high-bg);
  color: var(--sev-high-text);
  border: 1px solid var(--sev-high-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.actor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.actor-card:hover {
  border-color: var(--primary-300);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.actor-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.actor-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 2px;
}

.actor-activity-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--primary-600);
  font-weight: 600;
}

.actor-timeline-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

/* ==========================================================================
   Tab 3: CVE Compass Grid
   ========================================================================== */

.cves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}

.cve-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.cve-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
}

.cve-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cve-id-title {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-800);
}

.cve-mentions-badge {
  font-size: 12px;
  font-weight: 700;
  background: var(--sev-high-bg);
  color: var(--sev-high-text);
  border: 1px solid var(--sev-high-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.sources-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.source-tag {
  font-size: 11.5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

/* ==========================================================================
   Tab 4: IOC Telemetry Stream Table
   ========================================================================== */

.ioc-search-bar-row {
  margin-bottom: 20px;
}

.ioc-input-group {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 16px;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.ioc-input-group:focus-within {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.ioc-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
}

.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.ioc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.ioc-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ioc-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.ioc-table tr:hover td {
  background: var(--primary-50);
}

.ioc-pattern-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-700);
  max-width: 380px;
  word-break: break-all;
}

.threat-score-pill {
  font-weight: 800;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.score-critical { background: var(--sev-critical-bg); color: var(--sev-critical-text); border: 1px solid var(--sev-critical-border); }
.score-medium { background: var(--sev-high-bg); color: var(--sev-high-text); border: 1px solid var(--sev-high-border); }

/* ==========================================================================
   Modals & Social Sharing
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: modal-enter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg { max-width: 780px; }
.modal-md { max-width: 540px; }

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

.modal-body {
  padding: 28px;
}

.modal-threat-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--primary-950);
}

.modal-timestamp-row {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.threat-summary-block {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.block-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-800);
  margin-bottom: 10px;
}

.block-badge-title h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-900);
}

.threat-summary-text {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.6;
}

/* How It Happened Attack Chain Block */
.attack-chain-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.attack-chain-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.attack-step-card {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-600);
  font-size: 13.5px;
  line-height: 1.5;
}

.step-num-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--primary-700);
  background: var(--primary-100);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  font-size: 11px;
  height: fit-content;
}

.step-content {
  flex: 1;
  color: var(--text-main);
}

.step-content strong {
  color: var(--primary-900);
}

/* Modal IOC Table */
.ioc-inspect-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.ioc-inspect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.modal-ioc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.modal-ioc-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.modal-ioc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.modal-ioc-table tr:hover td {
  background: var(--primary-50);
}

.ioc-val-text {
  color: var(--primary-700);
  font-weight: 600;
  word-break: break-all;
}

.ioc-type-badge {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--primary-100);
  color: var(--primary-800);
  border-radius: 4px;
}

.threat-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.breakdown-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.breakdown-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stix-inspect-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stix-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-900);
}

.stix-pre {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-800);
  max-height: 180px;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-subtle);
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

/* ==========================================================================
   Social Sharing Specific Styles
   ========================================================================== */

.share-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-600);
  font-size: 18px;
}

.share-header-title h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-950);
}

.share-instructions {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.share-preview-card {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-left: 4px solid var(--primary-600);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

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

.share-brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-brand-logo-mini {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.preview-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-100);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.preview-domain {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.share-preview-title {
  font-size: 15.5px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--primary-950);
}

.share-preview-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.social-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.social-share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  transition: var(--transition-fast);
}

.social-btn-text {
  display: flex;
  flex-direction: column;
}

.social-name {
  font-size: 13.5px;
  font-weight: 700;
}

.social-sub {
  font-size: 11px;
  opacity: 0.85;
}

/* Social Branded Colors */
.btn-x-twitter {
  background: #0f1419;
}

.btn-x-twitter:hover {
  background: #272c30;
}

.btn-linkedin {
  background: #0a66c2;
}

.btn-linkedin:hover {
  background: #084e96;
}

.btn-whatsapp {
  background: #128c7e;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #075e54;
}

.btn-facebook {
  background: #1877f2;
}

.btn-facebook:hover {
  background: #1464cc;
}

.share-link-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-link-box label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.link-input-group {
  display: flex;
  gap: 8px;
}

.link-input-group input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12.5px;
  outline: none;
}

.link-input-group input:focus {
  border-color: var(--primary-500);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

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

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-600);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease-out;
}

.toast.toast-success {
  border-left-color: var(--primary-600);
}

.toast.toast-error {
  border-left-color: var(--sev-critical-text);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .login-gateway-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .login-showcase-column {
    text-align: center;
    align-items: center;
  }
  .login-showcase-header {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .hero-badge {
    margin: 0 auto;
  }
  .login-assurance-bar {
    margin: 0 auto;
  }
  .threat-kpi-banner {
    grid-template-columns: 1fr 1fr;
  }
  .radar-visual-box {
    grid-column: span 2;
  }
  .hero-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile Elements Hidden on Desktop */
.mobile-search-toggle-btn {
  display: none;
}

.btn-text-short {
  display: none;
}

.btn-text-full {
  display: inline;
}

.modal-drag-handle {
  display: none;
}

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

.mobile-table-scroll-hint {
  display: none;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Experience (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
  }

  body.mobile-nav-visible {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 16px));
  }

  .main-layout {
    padding: 12px 10px 24px;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* --- Mobile App Header --- */
  .app-header {
    height: 60px;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-left {
    gap: 8px;
  }

  .brand-header-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand-title {
    font-size: 15px;
    white-space: nowrap;
  }

  .brand-subtitle,
  .system-status-pill {
    display: none !important;
  }

  /* Header center is hidden by default on mobile, revealed when mobile-search-open */
  .header-center {
    display: none;
  }

  .app-header.mobile-search-open .header-center {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 110;
    animation: slideDownSearch 0.18s ease-out;
  }

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

  .header-center .omnibar-wrapper {
    width: 100%;
  }

  .header-center input#omnibarInput {
    height: 42px;
    font-size: 14px;
    padding-left: 36px;
    border-radius: var(--radius-full);
  }

  .search-kbd-shortcut {
    display: none !important;
  }

  /* Mobile Search Toggle Button */
  .mobile-search-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--primary-700);
    font-size: 14px;
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.15s ease, transform 0.1s ease;
  }

  .mobile-search-toggle-btn:active {
    background: var(--primary-100);
    transform: scale(0.94);
  }

  .app-header.mobile-search-open .mobile-search-toggle-btn {
    background: var(--primary-600);
    color: #ffffff;
    border-color: var(--primary-600);
  }

  /* Header action buttons */
  .header-right {
    gap: 6px;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .header-action-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    min-height: 36px;
    border-radius: 8px;
  }

  .user-pill {
    padding: 4px 8px;
    gap: 6px;
    height: 38px;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
  }

  .user-role-badge {
    display: none;
  }

  .user-display-name {
    font-size: 12.5px;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-dropdown-menu {
    right: 8px;
    width: calc(100vw - 24px);
    max-width: 320px;
  }

  /* --- Landing Page & Authentication Gateway on Mobile --- */
  .login-gate-hero {
    padding: 12px 0 24px;
  }

  .login-gateway-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Show the auth card first on mobile so user can sign in immediately */
  .login-auth-column {
    order: -1;
    width: 100%;
  }

  .login-showcase-column {
    width: 100%;
    text-align: center;
    padding: 0 4px;
  }

  .login-showcase-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .login-hero-logo-box {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  .hero-badge {
    margin: 0 auto 6px;
    font-size: 10.5px;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
  }

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

  .feature-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .login-assurance-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 11px;
    margin-top: 14px;
  }

  .auth-cta-card {
    padding: 18px 14px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
  }

  .auth-card-top-brand {
    gap: 10px;
    margin-bottom: 12px;
  }

  .cta-header h3 {
    font-size: 17px;
    line-height: 1.3;
  }

  .cta-header p {
    font-size: 12.5px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .auth-method-tabs {
    gap: 6px;
  }

  .auth-method-tab {
    padding: 8px 10px;
    font-size: 12.5px;
    min-height: 40px;
  }

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

  .input-with-icon input,
  .input-with-icon select {
    height: 46px;
    font-size: 16px !important; /* Prevents iOS Safari auto-zoom */
  }

  .otp-input-field {
    height: 52px !important;
    font-size: 26px !important;
    letter-spacing: 8px !important;
    text-align: center !important;
  }

  #sendOtpSubmitBtn,
  #verifyOtpSubmitBtn,
  #heroGoogleSignInBtn {
    min-height: 46px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* --- Threat KPI Banner on Mobile --- */
  .threat-kpi-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .radar-visual-box {
    grid-column: span 2;
    padding: 10px 14px;
    min-height: auto;
  }

  .kpi-stat-card {
    padding: 10px 12px;
    min-height: 72px;
    border-radius: 12px;
  }

  .kpi-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .kpi-number {
    font-size: 18px;
    font-weight: 800;
  }

  .kpi-label {
    font-size: 10.5px;
    line-height: 1.25;
  }

  .kpi-action-pill {
    display: none;
  }

  /* --- Intel Tabs & Category Filter Pills on Mobile (Horizontal Carousel) --- */
  .dashboard-controls-bar {
    margin-bottom: 14px;
  }

  .intel-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 4px 2px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
  }

  .intel-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12.5px;
    min-height: 38px;
    border-radius: var(--radius-full);
    white-space: nowrap;
  }

  .filter-pills-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 4px 2px 8px;
  }

  .filter-pills-row::-webkit-scrollbar {
    display: none;
  }

  .filter-title {
    display: none;
  }

  .pill-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 11.5px;
    min-height: 34px;
    border-radius: var(--radius-full);
    white-space: nowrap;
  }

  .filter-row-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 6px;
  }

  .category-view-toggle .view-toggle-btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 6px 12px;
  }

  .fifo-status-indicator {
    width: 100%;
    justify-content: center;
    font-size: 11px;
    padding: 4px 8px;
  }

  /* --- Content Grids on Mobile --- */
  .feeds-grid,
  .feeds-grid.flat-grid,
  .category-cards-grid,
  .actors-grid,
  .cves-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .feed-card,
  .actor-card,
  .cve-card {
    border-radius: 14px;
  }

  .card-banner-wrap {
    height: 150px;
  }

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

  .card-headline {
    font-size: 15px;
    line-height: 1.35;
  }

  .card-summary {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .card-footer {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .card-footer .btn {
    flex: 1;
    min-height: 40px;
    font-size: 12.5px;
    justify-content: center;
  }

  /* --- IOC Forensic Telemetry Stream on Mobile --- */
  .mobile-table-scroll-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary-700);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 8px;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .ioc-table th,
  .ioc-table td {
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .ioc-input-group {
    flex-direction: column;
    gap: 8px;
  }

  .ioc-input-group input {
    height: 44px;
    font-size: 14px;
  }

  .ioc-input-group .btn {
    width: 100%;
    min-height: 42px;
  }

  /* --- Sector Risk Intelligence on Mobile --- */
  .sector-dropdown-banner {
    padding: 16px 14px;
    border-radius: 16px;
    gap: 12px;
  }

  .banner-top-row {
    flex-direction: column;
    gap: 10px;
  }

  .banner-heading {
    font-size: 16px;
  }

  .banner-subtext {
    font-size: 12px;
  }

  .sector-quick-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .sector-select-dropdown {
    height: 46px;
    font-size: 13.5px;
    padding: 8px 34px 8px 10px;
  }

  .risk-details-grid {
    grid-template-columns: 1fr;
    padding: 10px 12px;
    font-size: 12px;
  }

  /* --- Modals as Native Bottom Sheets on Mobile --- */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    height: 92vh;
    border-radius: 20px 20px 0 0;
    margin: 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
    animation: modalSheetEnter 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  .modal-drag-handle {
    display: block;
    width: 44px;
    height: 5px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: 10px auto 4px;
    flex-shrink: 0;
  }

  .modal-header {
    padding: 12px 16px;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 10;
    border-bottom: 1px solid var(--border-light);
  }

  .modal-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 50%;
    background: var(--bg-subtle);
  }

  .modal-body {
    padding: 14px 16px 20px;
    -webkit-overflow-scrolling: touch;
  }

  .modal-threat-title {
    font-size: 18px;
    line-height: 1.3;
  }

  .modal-timestamp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 11.5px;
  }

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

  .modal-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    position: sticky;
    bottom: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    z-index: 10;
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .social-buttons-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .social-share-btn {
    min-height: 46px;
    padding: 10px 14px;
  }

  /* --- Mobile App Bottom Navigation Bar --- */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 95;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.05);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none;
    border: none;
    padding: 6px 8px;
    color: var(--text-muted);
    cursor: pointer;
    flex: 1;
    height: 100%;
    touch-action: manipulation;
    transition: color 0.15s ease, transform 0.1s ease;
  }

  .mobile-nav-item:active {
    transform: scale(0.92);
  }

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

  .mobile-nav-icon-wrap {
    position: relative;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
  }

  .mobile-nav-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: var(--primary-600);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 10px;
    padding: 1px 4px;
    line-height: 1;
  }

  .mobile-nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .mobile-nav-item.active .mobile-nav-label {
    font-weight: 800;
  }
}

/* ==========================================================================
   Sector Risk Intelligence Module Styles
   ========================================================================== */

/* Prominent Sector Dropdown Banner & Selector */
.sector-dropdown-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-xl);
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.banner-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.banner-label-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 680px;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: var(--radius-full);
  width: fit-content;
}

.banner-heading {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.banner-subtext {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.banner-select-row {
  width: 100%;
}

.sector-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sector-select-dropdown {
  width: 100%;
  height: 54px;
  padding: 0 46px 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.sector-select-dropdown:hover {
  border-color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.2);
  background-color: #f8faff;
}

.sector-select-dropdown:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  background-color: #ffffff;
}

.sector-select-dropdown option {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  background-color: #ffffff;
  padding: 10px 14px;
}

.select-trailing-icon {
  position: absolute;
  right: 20px;
  color: #2563eb;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.2s ease;
}

.sector-select-wrapper:hover .select-trailing-icon {
  transform: translateY(2px);
}

/* Dynamic Sector Quick Metrics */
.sector-quick-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.quick-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.quick-metric-chip i {
  font-size: 13px;
}

.metric-chip-critical {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.metric-chip-high {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.metric-chip-blue {
  background: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-800);
}


/* Active Sector Overview Banner */
.sector-overview-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 26px 30px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.sector-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

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

.sector-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.sector-header-titles h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-950);
  margin-bottom: 4px;
}

.sector-header-titles p {
  font-size: 13px;
  color: var(--text-muted);
}

.sector-risk-gauges {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gauge-pill {
  display: flex;
  flex-direction: column;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  min-width: 120px;
  text-align: center;
}

.gauge-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.gauge-value {
  font-size: 18px;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--primary-800);
}

.gauge-value.val-critical {
  color: #dc2626;
}

.sector-summary-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

/* Threat Actors Associated with Sector Risks Section */
.sector-actors-section {
  margin-bottom: 32px;
}

.sector-actors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.sector-actor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.sector-actor-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sector-actor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-600);
}

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

.sector-actor-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.sector-actor-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sector-actor-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sector-actor-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-800);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.sector-actor-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-main);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.actor-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.actor-meta-row strong {
  color: var(--text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.actor-meta-row strong i {
  color: var(--primary-600);
}

.actor-meta-row span {
  color: var(--text-secondary);
}

/* Targeted / Compromised Technologies Section */
.sector-tech-section {
  margin-bottom: 32px;
}

.sector-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sector-tech-card {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.sector-tech-card:hover {
  border-color: var(--primary-300);
  border-left-color: var(--primary-600);
  background: #f8faff;
  transform: translateY(-1px);
}

.sector-tech-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Top 10 Risks Section */
.sector-risks-section {
  margin-bottom: 36px;
}

.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title-bar h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-950);
  display: flex;
  align-items: center;
  gap: 8px;
}

.risks-container-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.risk-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.risk-item-card:hover {
  border-color: var(--primary-300);
  box-shadow: var(--shadow-md);
  transform: translateX(2px);
}

.risk-rank-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--primary-200);
}

.risk-rank-badge.top-3 {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

.risk-item-body {
  flex: 1;
  min-width: 0;
}

.risk-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.risk-item-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary-950);
}

.risk-badges-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.risk-ttp-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-700);
  background: var(--primary-50);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--primary-200);
}

.risk-history-text {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 10px;
}

.risk-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 12.5px;
}

@media (max-width: 768px) {
  .risk-details-grid {
    grid-template-columns: 1fr;
  }
}

.detail-line {
  color: var(--text-secondary);
}

.detail-line strong {
  color: var(--primary-900);
  font-weight: 700;
}

.risk-mitigation-box {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #166534;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.sector-intels-section {
  margin-top: 30px;
}

.quick-google-account-btn:hover {
  background: var(--primary-50) !important;
  border-color: var(--primary-400) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

