/* ═══════════════════════════════════════════════════════════
   V-CIN Suraksha — Custom Styles
   UX4G 3.0 base + V-CIN emergency design system
════════════════════════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --vcin-bg        : #0f172a;
  --vcin-surface   : #1e293b;
  --vcin-surface2  : #263346;
  --vcin-border    : rgba(100,116,139,0.18);
  --vcin-text      : #e2e8f0;
  --vcin-muted     : #94a3b8;
  --vcin-accent    : #3b82f6;
  --vcin-danger    : #ef4444;
  --vcin-success   : #10b981;
  --vcin-warn      : #f59e0b;
  --vcin-info      : #6366f1;
  --vcin-radius    : 14px;
  --vcin-radius-sm : 8px;
  --vcin-shadow    : 0 4px 24px rgba(0,0,0,0.35);
  --vcin-font      : 'Inter', system-ui, sans-serif;
  --vcin-font-brand: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family     : var(--vcin-font);
  background      : var(--vcin-bg);
  color           : var(--vcin-text);
  min-height      : 100vh;
  line-height     : 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ───────────────────────────────────────────── */
.hidden { display: none !important; }
.vcin-muted { color: var(--vcin-muted); font-size: 0.88rem; }

/* ═══════════════════════════════════════════════════════════
   JOIN OVERLAY
════════════════════════════════════════════════════════════ */
.vcin-overlay {
  position   : fixed;
  inset      : 0;
  display    : flex;
  align-items: center;
  justify-content: center;
  padding    : 20px;
  z-index    : 9000;
  background : linear-gradient(135deg, #0a0f1e 0%, #0d1b2e 50%, #0f172a 100%);
}

.vcin-join-card {
  background   : var(--vcin-surface);
  border       : 1px solid var(--vcin-border);
  border-radius: 24px;
  padding      : 40px 36px;
  max-width    : 420px;
  width        : 100%;
  box-shadow   : var(--vcin-shadow);
  animation    : fadeUp 0.4s ease;
}

.vcin-op-join { background: linear-gradient(160deg, #1e293b, #162032); }

.vcin-logo-wrap {
  text-align   : center;
  margin-bottom: 24px;
}

.vcin-brand-logo-img {
  width        : 100px;
  height       : 100px;
  object-fit   : contain;
  margin-bottom: 8px;
  filter       : drop-shadow(0 6px 16px rgba(34, 197, 94, 0.35));
  animation    : logoFloat 3s ease-in-out infinite alternate;
}

.vcin-header-logo-img {
  width        : 38px;
  height       : 38px;
  object-fit   : contain;
  filter       : drop-shadow(0 2px 8px rgba(34, 197, 94, 0.4));
  flex-shrink  : 0;
  transition   : transform 0.2s ease;
}
.vcin-header-logo-img:hover { transform: scale(1.1); }

@keyframes logoFloat {
  0%   { transform: translateY(0px); filter: drop-shadow(0 6px 16px rgba(34, 197, 94, 0.35)); }
  100% { transform: translateY(-5px); filter: drop-shadow(0 12px 24px rgba(220, 38, 38, 0.45)); }
}

.vcin-brand-slogan {
  font-size     : 0.72rem;
  font-weight   : 800;
  letter-spacing: 2px;
  margin-top    : 6px;
  display       : flex;
  justify-content: center;
  align-items   : center;
  gap           : 6px;
}
.vcin-slogan-verify  { color: #dc2626; text-shadow: 0 0 10px rgba(220,38,38,0.3); }
.vcin-slogan-connect { color: #94a3b8; text-shadow: 0 0 10px rgba(148,163,184,0.3); }
.vcin-slogan-protect { color: #16a34a; text-shadow: 0 0 10px rgba(22,163,74,0.3); }

.vcin-brand {
  font-family  : var(--vcin-font-brand);
  font-size    : 1.8rem;
  font-weight  : 700;
  color        : var(--vcin-text);
}
.vcin-brand span {
  background: linear-gradient(135deg, #dc2626, #16a34a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vcin-tagline { font-size: 0.82rem; color: var(--vcin-muted); margin-top: 4px; }

.vcin-join-form { display: flex; flex-direction: column; }

.vcin-label {
  font-size  : 0.82rem;
  font-weight: 600;
  color      : var(--vcin-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.vcin-input {
  background   : var(--vcin-surface2);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius-sm);
  color        : var(--vcin-text);
  padding      : 12px 14px;
  font-size    : 1rem;
  font-family  : var(--vcin-font);
  width        : 100%;
  transition   : border-color 0.2s;
  outline      : none;
}
.vcin-input:focus { border-color: var(--vcin-accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.vcin-input::placeholder { color: var(--vcin-muted); }

.vcin-join-form .vcin-otp-row,
div.vcin-otp-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap    : 8px !important;
  margin-bottom: 14px !important;
  width  : 100% !important;
  box-sizing: border-box !important;
}

.vcin-join-form .vcin-otp-row input,
.vcin-join-form .vcin-otp-row input[type="text"],
div.vcin-otp-row input.vcin-otp-box,
input.vcin-otp-box {
  flex         : 1 1 0px !important;
  width        : 0 !important;
  min-width    : 0 !important;
  max-width    : 100% !important;
  height       : 56px !important;
  padding      : 0 !important;
  margin       : 0 !important;
  box-sizing   : border-box !important;
  background   : var(--vcin-surface2, #263346) !important;
  border       : 2px solid var(--vcin-border, rgba(100,116,139,0.25)) !important;
  border-radius: var(--vcin-radius-sm, 10px) !important;
  color        : var(--vcin-text, #f8fafc) !important;
  font-size    : 1.6rem !important;
  font-weight  : 700 !important;
  text-align   : center !important;
  font-family  : var(--vcin-font-brand, sans-serif) !important;
  outline      : none !important;
  transition   : all 0.2s ease !important;
  caret-color  : var(--vcin-accent, #3b82f6) !important;
  line-height  : 56px !important;
  display      : block !important;
}
.vcin-join-form .vcin-otp-row input:focus,
input.vcin-otp-box:focus {
  border-color: #3b82f6 !important;
  transform   : translateY(-2px) !important;
  box-shadow  : 0 4px 14px rgba(59,130,246,0.3) !important;
  background  : #1e293b !important;
}

/* Placeholder: dim "X" hint so users know a code is needed */
input.vcin-otp-box::placeholder {
  color      : rgba(148, 163, 184, 0.35) !important;
  font-size  : 1.4rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.1em !important;
}

/* Error state: red border + shake animation on invalid submit */
@keyframes vcin-otp-shake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-7px); }
  30%  { transform: translateX(7px); }
  45%  { transform: translateX(-5px); }
  60%  { transform: translateX(5px); }
  75%  { transform: translateX(-3px); }
  90%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.vcin-otp-row.vcin-otp-error {
  animation: vcin-otp-shake 0.5s ease-in-out;
}
.vcin-otp-row.vcin-otp-error input.vcin-otp-box {
  border-color: #ef4444 !important;
  box-shadow  : 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
  background  : rgba(239, 68, 68, 0.06) !important;
}



.vcin-btn-primary {
  background   : linear-gradient(135deg, #2563eb, #3b82f6);
  color        : #fff;
  border       : none;
  border-radius: var(--vcin-radius-sm);
  padding      : 14px 20px;
  font-size    : 1rem;
  font-weight  : 700;
  cursor       : pointer;
  width        : 100%;
  margin-top   : 10px;
  transition   : transform 0.15s, opacity 0.2s, box-shadow 0.2s;
  font-family  : var(--vcin-font);
}
.vcin-btn-primary:hover:not(:disabled) {
  transform : translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}
.vcin-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.vcin-btn-secondary {
  background   : transparent;
  color        : var(--vcin-accent);
  border       : 1px solid rgba(59,130,246,0.35);
  border-radius: var(--vcin-radius-sm);
  padding      : 12px 20px;
  font-size    : 0.92rem;
  font-weight  : 600;
  cursor       : pointer;
  width        : 100%;
  margin-top   : 10px;
  transition   : background 0.2s, transform 0.15s;
  font-family  : var(--vcin-font);
}
.vcin-btn-secondary:hover { background: rgba(59,130,246,0.08); transform: translateY(-1px); }

.vcin-btn-secondary-sm {
  background   : transparent;
  color        : var(--vcin-accent);
  border       : 1px solid rgba(59,130,246,0.35);
  border-radius: 6px;
  padding      : 7px 14px;
  font-size    : 0.82rem;
  font-weight  : 600;
  cursor       : pointer;
  transition   : background 0.2s;
}
.vcin-btn-secondary-sm:hover { background: rgba(59,130,246,0.08); }

.vcin-btn-warning {
  background   : linear-gradient(135deg, #d97706, #f59e0b);
  color        : #fff;
  border       : none;
  border-radius: var(--vcin-radius-sm);
  padding      : 13px 20px;
  font-size    : 0.95rem;
  font-weight  : 700;
  cursor       : pointer;
  transition   : transform 0.15s, box-shadow 0.2s;
  font-family  : var(--vcin-font);
}
.vcin-btn-warning:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }

.vcin-btn-danger-sm {
  background   : var(--vcin-danger);
  color        : #fff;
  border       : none;
  border-radius: 6px;
  padding      : 8px 16px;
  font-size    : 0.85rem;
  font-weight  : 700;
  cursor       : pointer;
  transition   : opacity 0.2s;
}
.vcin-btn-danger-sm:hover { opacity: 0.85; }

.vcin-btn-info {
  background   : linear-gradient(135deg, #4f46e5, #6366f1);
  color        : #fff;
  border       : none;
  border-radius: 6px;
  padding      : 9px 16px;
  font-size    : 0.85rem;
  font-weight  : 600;
  cursor       : pointer;
  transition   : transform 0.15s;
}
.vcin-btn-info:hover { transform: translateY(-1px); }

.vcin-btn-icon {
  background   : var(--vcin-surface2);
  color        : var(--vcin-text);
  border       : 1px solid var(--vcin-border);
  border-radius: 8px;
  width        : 40px;
  height       : 40px;
  font-size    : 1rem;
  cursor       : pointer;
  flex-shrink  : 0;
  transition   : background 0.2s;
}
.vcin-btn-icon:hover { background: var(--vcin-surface); }

.vcin-code-gen-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 12px;
}
.vcin-gen-code-display {
  font-family  : var(--vcin-font-brand);
  font-size    : 1.4rem;
  font-weight  : 700;
  color        : #60a5fa;
  letter-spacing: 4px;
  min-width    : 90px;
  text-align   : center;
  background   : rgba(59, 130, 246, 0.1);
  border       : 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: var(--vcin-radius-sm);
  padding      : 10px 14px;
}

.vcin-join-footer { text-align: center; margin-top: 24px; }
.vcin-badge-gov {
  font-size    : 0.78rem;
  color        : var(--vcin-muted);
  background   : rgba(59,130,246,0.08);
  border       : 1px solid rgba(59,130,246,0.2);
  border-radius: 99px;
  padding      : 4px 12px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.vcin-header, .vcin-op-header {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 14px 20px;
  background     : rgba(15,23,42,0.95);
  border-bottom  : 1px solid var(--vcin-border);
  position       : sticky;
  top            : 0;
  z-index        : 100;
  backdrop-filter: blur(12px);
}

.vcin-header-left { display: flex; align-items: center; gap: 12px; }
.vcin-header-logo { font-size: 1.6rem; }
.vcin-header-title {
  font-family : var(--vcin-font-brand);
  font-size   : 1.1rem;
  font-weight : 700;
  color       : var(--vcin-text);
}
.vcin-header-sub { font-size: 0.78rem; color: var(--vcin-muted); }
.vcin-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Chips ─ */
.vcin-chip {
  font-size    : 0.78rem;
  font-weight  : 600;
  padding      : 5px 12px;
  border-radius: 99px;
  border       : 1px solid var(--vcin-border);
  background   : var(--vcin-surface2);
  color        : var(--vcin-text);
  cursor       : pointer;
  transition   : all 0.2s;
  text-decoration: none;
  white-space  : nowrap;
}
.vcin-chip-ok   { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #34d399; }
.vcin-chip-warn { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
.vcin-chip-default { background: var(--vcin-surface2); }

/* ── Badges ─ */
.vcin-badge {
  font-size    : 0.72rem;
  font-weight  : 700;
  padding      : 3px 10px;
  border-radius: 99px;
  background   : var(--vcin-surface2);
  color        : var(--vcin-muted);
  border       : 1px solid var(--vcin-border);
}
.vcin-badge-danger  { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.35);  color: #f87171; }
.vcin-badge-warn    { background: rgba(245,158,11,0.15); border-color: rgba(245,158,11,0.35); color: #fbbf24; }
.vcin-badge-success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #34d399; }
.vcin-badge-info    { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.35); color: #a5b4fc; }

/* ═══════════════════════════════════════════════════════════
   CITIZEN APP — MAIN LAYOUT
════════════════════════════════════════════════════════════ */
.vcin-main {
  max-width: 520px;
  margin   : 0 auto;
  padding  : 16px 16px 40px;
}

.vcin-section {
  background   : var(--vcin-surface);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius);
  padding      : 20px;
  margin-bottom: 16px;
}

.vcin-section h2 {
  font-family  : var(--vcin-font-brand);
  font-size    : 1rem;
  font-weight  : 700;
  margin-bottom: 12px;
  color        : var(--vcin-text);
}

.vcin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vcin-section-header h2 { margin-bottom: 0; }

/* ── SOS Hero ─ */
.vcin-sos-section {
  background   : linear-gradient(160deg, rgba(239,68,68,0.08) 0%, rgba(15,23,42,0.98) 60%);
  border-color : rgba(239,68,68,0.25);
  text-align   : center;
}

.vcin-sos-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }

.vcin-sos-btn {
  width        : 160px;
  height       : 160px;
  border-radius: 50%;
  background   : radial-gradient(circle at 40% 35%, #ef4444, #991b1b);
  border       : 4px solid rgba(239,68,68,0.5);
  color        : #fff;
  cursor       : pointer;
  font-family  : var(--vcin-font-brand);
  display      : flex;
  flex-direction: column;
  align-items  : center;
  justify-content: center;
  box-shadow   : 0 0 0 0 rgba(239,68,68,0.4), 0 8px 32px rgba(239,68,68,0.3);
  animation    : sosPulse 2.4s ease-in-out infinite;
  transition   : transform 0.15s;
  position     : relative;
}
.vcin-sos-btn:hover { transform: scale(1.05); }
.vcin-sos-btn:active { transform: scale(0.97); }

.vcin-sos-btn.vcin-sos-active {
  animation: sosPulseActive 0.8s ease-in-out infinite;
  border-color: #fff;
}

.vcin-sos-label { font-size: 2.4rem; font-weight: 800; letter-spacing: 2px; }
.vcin-sos-sub   { font-size: 0.65rem; opacity: 0.8; margin-top: 2px; }
.vcin-sos-hint  { color: var(--vcin-muted); font-size: 0.85rem; margin-top: 8px; }

.vcin-sos-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }

.vcin-toggle-row {
  display      : flex;
  align-items  : center;
  gap          : 8px;
  font-size    : 0.82rem;
  color        : var(--vcin-muted);
  cursor       : pointer;
  margin-top   : 10px;
  justify-content: center;
}
.vcin-toggle-row input { width: auto; margin: 0; }

/* Golden Hour CTA */
.vcin-gh-cta {
  display       : flex;
  flex-direction: column;
  align-items   : center;
  width         : 100%;
  margin-top    : 14px;
  border-radius : 10px;
  padding       : 14px;
  gap           : 4px;
}
.vcin-gh-cta-sub { font-size: 0.72rem; opacity: 0.85; font-weight: 500; }

/* Recording indicator */
.vcin-rec-badge {
  display      : flex;
  align-items  : center;
  gap          : 8px;
  background   : rgba(239,68,68,0.12);
  border       : 1px solid rgba(239,68,68,0.3);
  border-radius: 99px;
  padding      : 6px 14px;
  font-size    : 0.82rem;
  margin       : 8px auto;
  width        : fit-content;
  animation    : recBlink 1s linear infinite;
}
.vcin-hash-inline {
  font-size  : 0.7rem;
  opacity    : 0.7;
  word-break : break-all;
  font-family: monospace;
}

/* Status banners */
.vcin-status-banner {
  background   : rgba(245,158,11,0.1);
  border       : 1px solid rgba(245,158,11,0.25);
  border-radius: var(--vcin-radius-sm);
  padding      : 10px 14px;
  font-size    : 0.88rem;
  color        : #fbbf24;
  margin-top   : 8px;
}
.vcin-ok-banner {
  background   : rgba(16,185,129,0.1);
  border       : 1px solid rgba(16,185,129,0.3);
  border-radius: var(--vcin-radius-sm);
  padding      : 10px 14px;
  font-size    : 0.88rem;
  color        : #34d399;
  margin-top   : 8px;
}

/* ── Guardian ─ */
.vcin-switch { position: relative; display: inline-block; width: 52px; height: 28px; flex-shrink: 0; }
.vcin-switch input { opacity: 0; width: 0; height: 0; }
.vcin-switch-slider {
  position     : absolute; inset: 0;
  background   : var(--vcin-surface2);
  border-radius: 99px;
  cursor       : pointer;
  border       : 1px solid var(--vcin-border);
  transition   : background 0.3s;
}
.vcin-switch-slider::before {
  content      : '';
  position     : absolute;
  width        : 20px; height: 20px;
  left         : 3px; bottom: 3px;
  background   : #fff;
  border-radius: 50%;
  transition   : transform 0.3s;
}
.vcin-switch input:checked ~ .vcin-switch-slider { background: var(--vcin-success); }
.vcin-switch input:checked ~ .vcin-switch-slider::before { transform: translateX(24px); }

.vcin-guardian-alert {
  background   : rgba(239,68,68,0.1);
  border       : 1px solid rgba(239,68,68,0.3);
  border-radius: var(--vcin-radius-sm);
  padding      : 14px;
}
.vcin-ga-header { font-weight: 700; color: #f87171; margin-bottom: 6px; }
.vcin-ga-dist   { color: var(--vcin-muted); font-size: 0.85rem; }

/* ── Helplines ─ */
.vcin-helpline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vcin-helpline-btn {
  display      : flex;
  flex-direction: column;
  align-items  : center;
  background   : rgba(239,68,68,0.08);
  border       : 1px solid rgba(239,68,68,0.25);
  border-radius: var(--vcin-radius-sm);
  padding      : 14px;
  text-decoration: none;
  transition   : transform 0.15s, background 0.2s;
  cursor       : pointer;
}
.vcin-helpline-btn:hover { background: rgba(239,68,68,0.15); transform: translateY(-2px); }
.vcin-helpline-num   { font-size: 1.6rem; font-weight: 800; color: #f87171; font-family: var(--vcin-font-brand); }
.vcin-helpline-label { font-size: 0.72rem; color: var(--vcin-muted); margin-top: 2px; }

/* ── Map ─ */
.vcin-map {
  height       : 240px;
  border-radius: 10px;
  border       : 1px solid var(--vcin-border);
  margin       : 12px 0;
  z-index      : 1;
  overflow     : hidden;
}

/* ── Row ─ */
.vcin-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Select ─ */
.vcin-select {
  background   : var(--vcin-surface2);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius-sm);
  color        : var(--vcin-text);
  padding      : 11px 14px;
  font-size    : 0.95rem;
  font-family  : var(--vcin-font);
  width        : 100%;
  margin-bottom: 10px;
  outline      : none;
}
.vcin-select:focus { border-color: var(--vcin-accent); }

/* ── Textarea ─ */
.vcin-textarea {
  background   : var(--vcin-surface2);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius-sm);
  color        : var(--vcin-text);
  padding      : 12px 14px;
  font-size    : 0.95rem;
  font-family  : var(--vcin-font);
  width        : 100%;
  resize       : vertical;
  margin-bottom: 10px;
  outline      : none;
  min-height   : 90px;
}
.vcin-textarea:focus { border-color: var(--vcin-accent); }
.vcin-textarea::placeholder { color: var(--vcin-muted); }

/* ── Evidence Upload Zone ─ */
.vcin-upload-zone {
  border       : 2px dashed rgba(100,116,139,0.3);
  border-radius: var(--vcin-radius-sm);
  padding      : 18px;
  text-align   : center;
  cursor       : pointer;
  background   : rgba(100,116,139,0.03);
  transition   : border-color 0.2s, background 0.2s;
  font-size    : 0.88rem;
  color        : var(--vcin-muted);
}
.vcin-upload-zone:hover { border-color: var(--vcin-accent); background: rgba(59,130,246,0.04); }

/* Draft box */
.vcin-draft-box {
  background   : var(--vcin-surface2);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius-sm);
  padding      : 14px;
  font-size    : 0.82rem;
  color        : var(--vcin-text);
  white-space  : pre-wrap;
  word-break   : break-word;
  font-family  : monospace;
  margin-top   : 10px;
  max-height   : 300px;
  overflow-y   : auto;
}

/* Hash display */
.vcin-hash {
  display      : block;
  font-family  : monospace;
  font-size    : 0.75rem;
  color        : var(--vcin-success);
  background   : rgba(16,185,129,0.08);
  border-radius: 4px;
  padding      : 4px 8px;
  margin-top   : 6px;
  word-break   : break-all;
}

/* Scam result */
.vcin-scam-result { padding: 14px; border-radius: var(--vcin-radius-sm); font-size: 0.9rem; margin-top: 10px; white-space: pre-wrap; }
.vcin-scam-high   { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.vcin-scam-medium { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #fde68a; }
.vcin-scam-low    { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }

/* Chat log */
.vcin-chat-log {
  background   : var(--vcin-surface2);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius-sm);
  padding      : 12px;
  min-height   : 80px;
  max-height   : 250px;
  overflow-y   : auto;
  margin-bottom: 10px;
  font-size    : 0.88rem;
}

/* ═══════════════════════════════════════════════════════════
   GOLDEN HOUR MODAL
════════════════════════════════════════════════════════════ */
.vcin-modal-card {
  background   : var(--vcin-surface);
  border       : 1px solid rgba(245,158,11,0.25);
  border-radius: 20px;
  padding      : 32px 28px;
  max-width    : 440px;
  width        : 100%;
  max-height   : 90vh;
  overflow-y   : auto;
  position     : relative;
  animation    : fadeUp 0.3s ease;
  box-shadow   : 0 0 60px rgba(245,158,11,0.15);
}

.vcin-modal-close {
  position  : absolute;
  top       : 16px;
  right     : 16px;
  background: none;
  border    : none;
  color     : var(--vcin-muted);
  font-size : 1.1rem;
  cursor    : pointer;
}

/* ════════════════════════════════════════════════════════════
   ROOM CODE EXPLANATION MODAL
═════════════════════════════════════════════════════════════ */
.vcin-explanation-modal {
  max-width: 560px !important;
  padding: 32px 28px !important;
}
.explanation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--vcin-border);
}
.explanation-icon {
  font-size: 2rem;
}
.explanation-header h2 {
  font-family: var(--vcin-font-brand);
  font-size: 1.3rem;
  margin: 0;
}
.explanation-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--vcin-text);
}
.prototype-warning {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(245,158,11,0.15));
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.prototype-warning .warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.prototype-warning strong {
  display: block;
  color: #fca5a5;
  margin-bottom: 4px;
  font-size: 1rem;
}
.prototype-warning p {
  margin: 0;
  color: var(--vcin-muted);
  font-size: 0.85rem;
}
.explanation-body h3 {
  font-family: var(--vcin-font-brand);
  font-size: 1.1rem;
  margin: 20px 0 12px;
  color: #f5d90a;
}
.explanation-body h4 {
  font-size: 0.95rem;
  margin: 16px 0 8px;
  color: #fbbf24;
}
.device-requirements {
  margin: 12px 0 20px;
}
.device-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(59,130,246,0.08);
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(59,130,246,0.15);
}
.device-row.guardian-row {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.15);
}
.device-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}
.device-row strong {
  display: block;
  color: #93c5fd;
  margin-bottom: 4px;
}
.device-row p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--vcin-muted);
}
.device-row code {
  background: rgba(59,130,246,0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #bfdbfe;
}
.permissions-box {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.permissions-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.permissions-box li {
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.permissions-box li strong {
  color: #fde68a;
}
.permission-note {
  margin: 12px 0 0 !important;
  font-size: 0.8rem !important;
  color: var(--vcin-muted) !important;
}
.testing-flow ol {
  margin: 8px 0 0;
  padding-left: 20px;
}
.testing-flow li {
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.room-code-tip {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 20px !important;
  font-size: 0.85rem !important;
}
.explanation-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--vcin-border);
}
.dont-show-again {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--vcin-muted);
  cursor: pointer;
}
.dont-show-again input {
  accent-color: var(--vcin-accent);
}
.explanation-actions .vcin-btn-primary {
  padding: 12px 24px;
  font-weight: 600;
}

.vcin-gh-header { text-align: center; margin-bottom: 20px; }
.vcin-gh-icon   { font-size: 2.5rem; margin-bottom: 8px; }
.vcin-gh-header h2 { font-size: 1.3rem; font-family: var(--vcin-font-brand); }
.vcin-gh-stat   { font-size: 0.78rem; color: #fbbf24; margin-top: 6px; }

/* Timer ring */
.vcin-timer-wrap {
  display : flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width   : 140px;
  height  : 140px;
  margin  : 0 auto 20px;
}
.vcin-timer-ring { width: 140px; height: 140px; position: absolute; }
.vcin-timer-text {
  position    : absolute;
  font-family : var(--vcin-font-brand);
  font-size   : 1.4rem;
  font-weight : 700;
  color       : var(--vcin-warn);
}

/* GH Checklist */
.vcin-gh-step {
  display      : flex;
  gap          : 14px;
  align-items  : flex-start;
  padding      : 14px;
  background   : var(--vcin-surface2);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius-sm);
  margin-bottom: 10px;
  transition   : opacity 0.3s;
}
.vcin-gh-step-done { opacity: 0.5; }
.vcin-gh-step-done .vcin-gh-step-num { background: var(--vcin-success) !important; }

.vcin-gh-step-num {
  width        : 28px;
  height       : 28px;
  border-radius: 50%;
  background   : var(--vcin-warn);
  color        : #fff;
  display      : flex;
  align-items  : center;
  justify-content: center;
  font-weight  : 700;
  font-size    : 0.85rem;
  flex-shrink  : 0;
}
.vcin-gh-step-body strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.vcin-gh-step-body p { font-size: 0.8rem; color: var(--vcin-muted); }

.vcin-step-done {
  background   : none;
  border       : 1px solid var(--vcin-success);
  color        : var(--vcin-success);
  border-radius: 6px;
  padding      : 5px 12px;
  font-size    : 0.78rem;
  cursor       : pointer;
  margin-top   : 8px;
  transition   : background 0.2s;
}
.vcin-step-done:hover { background: rgba(16,185,129,0.1); }

/* ═══════════════════════════════════════════════════════════
   JITSI OVERLAY
════════════════════════════════════════════════════════════ */
.vcin-jitsi-card {
  background   : #000;
  border-radius: 16px;
  width        : 100%;
  max-width    : 900px;
  height       : 85vh;
  overflow     : hidden;
  box-shadow   : var(--vcin-shadow);
  display      : flex;
  flex-direction: column;
}

.vcin-jitsi-header {
  display      : flex;
  align-items  : center;
  justify-content: space-between;
  padding      : 10px 16px;
  background   : #111;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink  : 0;
  height       : 56px;
}

.vcin-jitsi-title { color: #fff; font-weight: 700; font-size: 0.95rem; }

.vcin-call-timer {
  font-family  : var(--vcin-font-brand);
  font-size    : 1.2rem;
  font-weight  : 700;
  color        : #22c55e;
}

/* Conference invite banner */
.vcin-conference-invite {
  position   : fixed;
  bottom     : 20px;
  left       : 50%;
  transform  : translateX(-50%);
  background : var(--vcin-surface);
  border     : 1px solid rgba(99,102,241,0.4);
  border-radius: 12px;
  padding    : 14px 20px;
  display    : flex;
  align-items: center;
  gap        : 12px;
  box-shadow : var(--vcin-shadow);
  z-index    : 8000;
  font-size  : 0.9rem;
  animation  : fadeUp 0.3s ease;
  white-space: nowrap;
  flex-wrap  : wrap;
}

/* ═══════════════════════════════════════════════════════════
   OPERATOR DASHBOARD
════════════════════════════════════════════════════════════ */
.vcin-op-body { background: #0a0f1e; }

/* Stats Strip */
.vcin-stats-strip {
  display      : grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap          : 1px;
  background   : var(--vcin-border);
  border-bottom: 1px solid var(--vcin-border);
}

.vcin-stat-card {
  background   : var(--vcin-surface);
  padding      : 14px 16px;
  text-align   : center;
}
.vcin-stat-num {
  font-family  : var(--vcin-font-brand);
  font-size    : 1.8rem;
  font-weight  : 800;
  line-height  : 1;
  margin-bottom: 4px;
}
.vcin-stat-label { font-size: 0.7rem; color: var(--vcin-muted); white-space: nowrap; }

.vcin-stat-danger  .vcin-stat-num { color: #f87171; }
.vcin-stat-warn    .vcin-stat-num { color: #fbbf24; }
.vcin-stat-success .vcin-stat-num { color: #34d399; }
.vcin-stat-info    .vcin-stat-num { color: #a5b4fc; }
.vcin-stat-default .vcin-stat-num { color: var(--vcin-text); }

.vcin-op-overlay {
  background: linear-gradient(135deg, #090d16 0%, #0d1726 50%, #111827 100%);
  z-index: 9999;
}

/* Layout */
.vcin-op-layout {
  display  : grid;
  grid-template-columns: 1fr 400px;
  height   : calc(100vh - 130px);
  overflow : hidden;
}

.vcin-op-map-col { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.vcin-op-map-header {
  display      : flex;
  align-items  : center;
  justify-content: space-between;
  padding      : 8px 16px;
  background   : var(--vcin-surface);
  border-bottom: 1px solid var(--vcin-border);
  font-weight  : 600;
  font-size    : 0.85rem;
}
.vcin-op-map { flex: 1; height: 100%; width: 100%; min-height: 0; }

/* Floating conference invite banner */
.vcin-conference-invite {
  position   : fixed;
  top        : 20px;
  right      : 20px;
  z-index    : 10000;
  background : var(--vcin-surface);
  border     : 2px solid var(--vcin-accent);
  border-radius: var(--vcin-radius);
  padding    : 14px 20px;
  box-shadow : 0 10px 30px rgba(0,0,0,0.5);
  display    : flex;
  align-items: center;
  gap        : 12px;
  animation  : fadeUp 0.3s ease;
}

/* Guardian alert card */
.vcin-guardian-alert {
  background   : rgba(239,68,68,0.1);
  border       : 1px solid rgba(239,68,68,0.4);
  border-radius: var(--vcin-radius-sm);
  padding      : 14px;
  margin-top   : 10px;
}
.vcin-ga-header { font-weight: 700; color: #f87171; font-size: 0.95rem; margin-bottom: 4px; }
.vcin-ga-dist   { font-size: 0.85rem; color: var(--vcin-muted); }

.vcin-map-legend {
  display    : flex;
  gap        : 14px;
  padding    : 8px 16px;
  background : var(--vcin-surface);
  border-top : 1px solid var(--vcin-border);
  font-size  : 0.75rem;
  color      : var(--vcin-muted);
  flex-wrap  : wrap;
}
.vcin-legend-dot {
  display      : inline-block;
  width        : 10px; height: 10px;
  border-radius: 50%;
  margin-right : 4px;
  vertical-align: middle;
}

/* Map custom marker */
.vcin-map-marker {
  width        : 36px;
  height       : 36px;
  border-radius: 50%;
  display      : flex;
  align-items  : center;
  justify-content: center;
  font-size    : 1rem;
  border       : 2px solid rgba(255,255,255,0.4);
  box-shadow   : 0 2px 8px rgba(0,0,0,0.3);
}

/* Sidebar */
.vcin-op-sidebar {
  display      : flex;
  flex-direction: column;
  border-left  : 1px solid var(--vcin-border);
  background   : var(--vcin-surface);
  overflow     : hidden;
}

/* Tabs */
.vcin-tabs {
  display   : flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--vcin-border);
  flex-shrink: 0;
}
.vcin-tabs::-webkit-scrollbar { display: none; }

.vcin-tab {
  flex-shrink  : 0;
  background   : none;
  border       : none;
  color        : var(--vcin-muted);
  font-size    : 0.78rem;
  font-weight  : 600;
  font-family  : var(--vcin-font);
  padding      : 12px 14px;
  cursor       : pointer;
  border-bottom: 2px solid transparent;
  transition   : color 0.2s, border-color 0.2s;
  white-space  : nowrap;
}
.vcin-tab.active { color: var(--vcin-accent); border-bottom-color: var(--vcin-accent); }
.vcin-tab:hover:not(.active) { color: var(--vcin-text); }

.vcin-tab-count {
  display      : inline-block;
  background   : rgba(239,68,68,0.2);
  color        : #f87171;
  border-radius: 99px;
  padding      : 1px 7px;
  font-size    : 0.68rem;
  margin-left  : 4px;
}

.vcin-tab-panel {
  flex    : 1;
  overflow-y: auto;
  padding : 14px;
}

.vcin-empty-state { text-align: center; padding: 40px 0; font-style: italic; }

/* Operator cards */
.vcin-op-card {
  background   : var(--vcin-surface2);
  border       : 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius-sm);
  padding      : 14px;
  margin-bottom: 12px;
}
.vcin-op-card-danger { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.05); }
.vcin-op-card-warn   { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.05); }
.vcin-op-card-ack    { opacity: 0.6; }

.vcin-op-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vcin-op-card-name   { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.vcin-op-card-meta   { font-size: 0.82rem; color: var(--vcin-muted); margin-bottom: 4px; }
.vcin-op-card-hash   { font-size: 0.75rem; color: var(--vcin-muted); margin-bottom: 10px; }
.vcin-op-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vcin-op-card-warn h3 { font-size: 0.9rem; margin-bottom: 8px; }

/* Members */
.vcin-members-list { display: flex; flex-direction: column; gap: 6px; }
.vcin-member-chip {
  display      : flex;
  align-items  : center;
  gap          : 8px;
  background   : var(--vcin-surface);
  border       : 1px solid var(--vcin-border);
  border-radius: 8px;
  padding      : 8px 12px;
  font-size    : 0.85rem;
}

/* Heatmap */
.vcin-heatmap-controls {
  display      : flex;
  justify-content: space-between;
  align-items  : center;
  margin-bottom: 10px;
  font-size    : 0.8rem;
}
.vcin-heatmap-map {
  height       : 350px;
  border-radius: var(--vcin-radius-sm);
  border       : 1px solid var(--vcin-border);
  overflow     : hidden;
}
.vcin-heatmap-legend {
  display  : flex;
  gap      : 14px;
  margin-top: 10px;
  font-size: 0.75rem;
  color    : var(--vcin-muted);
}
.vcin-heatmap-popup {
  position     : absolute;
  bottom       : 48px;
  left         : 12px;
  max-width    : 320px;
  z-index      : 900;
  background   : rgba(10,18,35,0.96);
  border       : 1px solid rgba(239,68,68,0.3);
  border-radius: var(--vcin-radius-sm);
  padding      : 14px;
  box-shadow   : 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.vcin-hm-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vcin-hm-popup-city   { font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.vcin-hm-popup-desc   { font-size: 0.82rem; color: var(--vcin-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 6px rgba(59,130,246,0.3)); }
  50%       { transform: scale(1.08); filter: drop-shadow(0 0 14px rgba(59,130,246,0.6)); }
}

@keyframes sosPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4), 0 8px 32px rgba(239,68,68,0.25); }
  50%       { box-shadow: 0 0 0 18px rgba(239,68,68,0), 0 8px 32px rgba(239,68,68,0.35); }
}

@keyframes sosPulseActive {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7), 0 0 0 0 rgba(239,68,68,0.5); }
  40%       { box-shadow: 0 0 0 20px rgba(239,68,68,0.3), 0 0 0 40px rgba(239,68,68,0); }
}

@keyframes vcin-alert-pulse-kf {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.vcin-alert-pulse { animation: vcin-alert-pulse-kf 1.5s ease-in-out infinite; }

@keyframes recBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .vcin-op-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .vcin-op-map { height: 300px; }
  .vcin-op-sidebar { border-left: none; border-top: 1px solid var(--vcin-border); }
}

@media (max-width: 480px) {
  .vcin-join-card { padding: 28px 20px; }
  .vcin-otp-box { height: 56px; font-size: 1.5rem; }
  .vcin-sos-btn { width: 140px; height: 140px; }
  .vcin-sos-label { font-size: 2rem; }
  .vcin-helpline-grid { grid-template-columns: repeat(2, 1fr); }
  .vcin-stats-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ── Scrollbar ─ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--vcin-surface2); border-radius: 99px; }

/* ═══════════════════════════════════════════════════════════
   DARK THEME MAP STYLING & LEAFLET OVERRIDES
════════════════════════════════════════════════════════════ */
.leaflet-container {
  background: #0b1120 !important;
  font-family: var(--vcin-font) !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(100,116,139,0.3) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  border-radius: 12px !important;
}

.vcin-op-dual-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.vcin-map-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-radius: var(--vcin-radius-sm);
  overflow: hidden;
  border: 1px solid var(--vcin-border);
  background: var(--vcin-surface);
}

/* ═══════════════════════════════════════════════════════════
   CITIZEN DASHBOARD 4-CARD HERO GRID (Image 1)
════════════════════════════════════════════════════════════ */
.vcin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.vcin-action-card {
  position: relative;
  border-radius: 20px;
  padding: 20px 16px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
}

.vcin-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.vcin-card-icon { font-size: 2.2rem; margin-bottom: 4px; }
.vcin-card-title { font-family: var(--vcin-font-brand); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.vcin-card-sub { font-size: 0.78rem; opacity: 0.85; line-height: 1.3; }
.vcin-card-btn {
  align-self: flex-end;
  margin-top: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.vcin-card-red    { background: linear-gradient(145deg, #dc2626 0%, #991b1b 100%); }
.vcin-card-orange { background: linear-gradient(145deg, #ea580c 0%, #c2410c 100%); }
.vcin-card-blue   { background: linear-gradient(145deg, #0284c7 0%, #0369a1 100%); }
.vcin-card-green  { background: linear-gradient(145deg, #15803d 0%, #166534 100%); }

/* ═══════════════════════════════════════════════════════════
   CIVIC TRUST SCORE CARD (Image 1 & 2)
════════════════════════════════════════════════════════════ */
.vcin-trust-card {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

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

.vcin-trust-title { font-size: 0.85rem; color: var(--vcin-muted); }
.vcin-trust-score { font-family: var(--vcin-font-brand); font-size: 2rem; font-weight: 800; color: #fff; }
.vcin-trust-score small { font-size: 1rem; color: var(--vcin-muted); font-weight: 500; }
.vcin-trust-shield { font-size: 2.2rem; }

.vcin-trust-progress-bg {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.vcin-trust-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── Recent Alerts ── */
.vcin-recent-alerts-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.vcin-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--vcin-surface);
  border: 1px solid var(--vcin-border);
  border-radius: 14px;
  padding: 12px 16px;
}
.vcin-alert-icon { font-size: 1.4rem; }
.vcin-alert-item-title { font-weight: 600; font-size: 0.92rem; }
.vcin-alert-item-sub { font-size: 0.78rem; color: var(--vcin-muted); }

/* ═══════════════════════════════════════════════════════════
   LIVE SCAM MAP SECTION (Image 3)
════════════════════════════════════════════════════════════ */
.vcin-live-badge {
  font-size: 0.75rem;
  background: rgba(239,68,68,0.2);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,0.4);
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vcin-pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: logoPulse 1.5s infinite;
}

.vcin-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}

.vcin-chip-btn {
  background: var(--vcin-surface2);
  border: 1px solid var(--vcin-border);
  color: var(--vcin-muted);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.vcin-chip-btn.active {
  background: var(--vcin-accent);
  color: #fff;
  border-color: var(--vcin-accent);
}

.vcin-hex-map-box {
  height: 380px;
  border-radius: 16px;
  border: 1px solid var(--vcin-border);
  overflow: hidden;
}

.vcin-area-stats-card {
  background: var(--vcin-surface);
  border: 1px solid var(--vcin-border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
}

.vcin-area-location { font-size: 0.9rem; margin-bottom: 10px; }
.vcin-area-stats-row { display: flex; gap: 16px; margin-bottom: 12px; }
.vcin-area-stat-item {
  background: var(--vcin-surface2);
  border-radius: 10px;
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vcin-area-stat-num { font-family: var(--vcin-font-brand); font-size: 1.5rem; font-weight: 700; color: var(--vcin-accent); }
.vcin-area-stat-lbl { font-size: 0.75rem; color: var(--vcin-muted); }

.vcin-risk-levels-legend {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--vcin-muted);
  flex-wrap: wrap;
  border-top: 1px solid var(--vcin-border);
  padding-top: 10px;
}

/* ═══════════════════════════════════════════════════════════
   GOLDEN HOUR GUIDED RESCUE MODAL (Image 4)
════════════════════════════════════════════════════════════ */
.vcin-gh-modal-card {
  max-width: 480px;
  padding: 24px;
  border-radius: 24px;
}

.vcin-gh-top-banner {
  text-align: center;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
  color: #f87171;
}
.vcin-gh-top-banner p { font-size: 0.78rem; opacity: 0.9; margin-top: 2px; }

.vcin-gh-clock-box {
  background: #0f172a;
  border: 2px solid rgba(239,68,68,0.5);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 0 30px rgba(239,68,68,0.25);
  margin-bottom: 18px;
}

.vcin-gh-digital-timer {
  font-family: var(--vcin-font-brand);
  font-size: 3.6rem;
  font-weight: 800;
  color: #ef4444;
  text-shadow: 0 0 18px rgba(239,68,68,0.6);
  letter-spacing: 3px;
  line-height: 1;
}

.vcin-gh-timer-labels {
  display: flex;
  justify-content: space-around;
  font-size: 0.7rem;
  color: var(--vcin-muted);
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 1px;
}

.vcin-gh-stepper-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--vcin-muted);
  margin-bottom: 10px;
}

.vcin-gh-card-step {
  background: var(--vcin-surface2);
  border: 1px solid var(--vcin-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.vcin-step-active { border-color: var(--vcin-success); background: rgba(16,185,129,0.08); }

.vcin-step-header { display: flex; gap: 12px; align-items: flex-start; }
.vcin-step-num-badge {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--vcin-surface);
  border: 1px solid var(--vcin-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.vcin-step-active .vcin-step-num-badge { background: #10b981; color: #fff; border-color: #10b981; }

.vcin-step-header p { font-size: 0.8rem; color: var(--vcin-muted); margin-top: 2px; }

.vcin-step-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}

.vcin-gh-script-box {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}
.vcin-script-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 0.88rem; color: #60a5fa; }
.vcin-script-text { font-size: 0.85rem; line-height: 1.5; color: #e2e8f0; font-style: italic; }

.vcin-btn-icon-sm {
  background: var(--vcin-surface2);
  border: 1px solid var(--vcin-border);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   FIXED BOTTOM NAVIGATION BAR (Images 1, 2, 3, 4)
════════════════════════════════════════════════════════════ */
.vcin-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--vcin-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 8000;
  padding: 0 10px;
}

.vcin-nav-item {
  background: none;
  border: none;
  color: var(--vcin-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}
.vcin-nav-item.active { color: var(--vcin-accent); font-weight: 700; }
.vcin-nav-icon { font-size: 1.2rem; }

.vcin-nav-primary {
  background: var(--vcin-accent);
  color: #fff !important;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -20px;
  box-shadow: 0 6px 16px rgba(59,130,246,0.5);
}
.vcin-nav-primary .vcin-nav-icon { font-size: 1.4rem; }
.vcin-nav-primary span:not(.vcin-nav-icon) { display: none; }

/* Add padding to main so content isn't covered by bottom nav */
.vcin-main { padding-bottom: 80px; }

/* ═══════════════════════════════════════════════════════════
   CONFERENCE CALL INTERFACE STYLES
════════════════════════════════════════════════════════════ */

.vcin-jitsi-card {
  background   : var(--vcin-surface);
  border       : 1px solid var(--vcin-border);
  border-radius: 20px;
  width        : 94vw;
  max-width    : 1050px;
  height       : 84vh;
  max-height   : 650px;
  display      : flex;
  flex-direction: column;
  box-shadow   : var(--vcin-shadow);
  overflow     : hidden;
}

.vcin-jitsi-header {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  padding        : 14px 22px;
  background     : var(--vcin-surface2);
  border-bottom  : 1px solid var(--vcin-border);
}

.vcin-jitsi-title {
  font-weight: 700;
  font-size  : 1.05rem;
}

.vcin-call-timer {
  font-family: var(--vcin-font-brand);
  font-weight: 700;
  color      : #34d399;
  font-size  : 1.15rem;
}

.vcin-call-wrapper {
  display        : flex;
  flex-direction : column;
  height         : calc(100% - 56px);
  padding        : 16px;
  background     : #0b1120;
  gap            : 14px;
}

.vcin-call-grid {
  display              : grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap                  : 12px;
  flex                 : 1;
  min-height           : 0;
  overflow-y           : auto;
}

@media (max-width: 768px) {
  #jitsiOverlay, .vcin-overlay {
    padding: 0 !important;
  }

  .vcin-jitsi-card {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .vcin-jitsi-header {
    padding: 8px 12px !important;
    min-height: 46px !important;
  }

  .vcin-jitsi-title {
    font-size: 0.85rem !important;
  }

  .vcin-call-timer {
    font-size: 0.95rem !important;
  }

  .vcin-call-wrapper {
    padding: 6px !important;
    gap: 6px !important;
    height: calc(100vh - 46px) !important;
  }

  .vcin-call-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .vcin-video-card {
    min-height: 160px !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 10px !important;
  }

  .vcin-video-badge {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
    bottom: 6px !important;
    left: 6px !important;
  }

  .vcin-remote-status {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    top: 6px !important;
    left: 6px !important;
  }

  .vcin-call-controls {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 6px 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .vcin-call-btn {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border-radius: 20px !important;
    min-height: 38px !important;
  }
}

.vcin-video-card {
  position       : relative;
  background     : radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border         : 1px solid var(--vcin-border);
  border-radius  : 14px;
  overflow       : hidden;
  display        : flex;
  align-items    : center;
  justify-content: center;
  transition     : all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow     : inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Active Speaker Aura Ring */
.vcin-video-card.vcin-speaking {
  border-color: #10b981 !important;
  box-shadow  : 0 0 25px rgba(16, 185, 129, 0.6), inset 0 0 15px rgba(16, 185, 129, 0.3) !important;
  animation   : pulseSpeaker 1.8s infinite ease-in-out;
}

@keyframes pulseSpeaker {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.5), inset 0 0 10px rgba(16, 185, 129, 0.2); }
  50%      { box-shadow: 0 0 30px rgba(16, 185, 129, 0.85), inset 0 0 20px rgba(16, 185, 129, 0.4); }
}

/* When Video is Off / Audio Only: hide raw <video> tag so avatar placeholder is visible! */
.vcin-video-card.vcin-video-off .vcin-video-feed {
  opacity       : 0 !important;
  pointer-events: none !important;
}

.vcin-video-feed {
  position  : relative;
  z-index   : 2;
  width     : 100%;
  height    : 100%;
  object-fit: cover;
  background: #0f172a;
  transition: opacity 0.3s ease;
}

.vcin-avatar-placeholder {
  position      : absolute;
  top           : 50%;
  left          : 50%;
  transform     : translate(-50%, -50%);
  font-size     : 3.5rem;
  opacity       : 0.85;
  pointer-events: none;
  z-index       : 1;
  display       : flex;
  flex-direction: column;
  align-items   : center;
  justify-content: center;
  gap           : 8px;
  animation     : logoPulse 3s infinite;
}

.vcin-avatar-subtext {
  font-size  : 0.75rem;
  color      : #94a3b8;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.vcin-video-badge {
  position       : absolute;
  bottom         : 10px;
  left           : 10px;
  background     : rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  color          : #f8fafc;
  padding        : 5px 12px;
  border-radius  : 99px;
  font-size      : 0.78rem;
  font-weight    : 600;
  border         : 1px solid rgba(255, 255, 255, 0.12);
  z-index        : 4;
  display        : flex;
  align-items    : center;
  gap            : 6px;
  box-shadow     : 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vcin-remote-status {
  position     : absolute;
  top          : 10px;
  left         : 10px;
  background   : rgba(16, 185, 129, 0.2);
  color        : #34d399;
  border       : 1px solid rgba(16, 185, 129, 0.4);
  padding      : 4px 10px;
  border-radius: 99px;
  font-size    : 0.72rem;
  font-weight  : 600;
  z-index      : 4;
  backdrop-filter: blur(6px);
  display      : flex;
  align-items  : center;
  gap          : 5px;
}

.vcin-video-off-overlay {
  position       : absolute;
  inset          : 0;
  background     : radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  display        : flex;
  flex-direction : column;
  align-items    : center;
  justify-content: center;
  font-size      : 1.1rem;
  color          : #94a3b8;
  z-index        : 3;
}

.vcin-audio-bar {
  display        : flex;
  align-items    : center;
  justify-content: space-between;
  background     : rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(12px);
  padding        : 8px 16px;
  border-radius  : 12px;
  border         : 1px solid var(--vcin-border);
}

.vcin-call-controls {
  display        : flex;
  justify-content: center;
  align-items    : center;
  flex-wrap      : wrap;
  gap            : 10px;
}

.vcin-call-btn {
  background     : rgba(30, 41, 59, 0.9);
  color          : #f8fafc;
  border         : 1px solid var(--vcin-border);
  padding        : 9px 18px;
  border-radius  : 99px;
  font-size      : 0.85rem;
  font-weight    : 600;
  cursor         : pointer;
  transition     : all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display        : inline-flex;
  align-items    : center;
  gap            : 6px;
  backdrop-filter: blur(8px);
}

.vcin-call-btn:hover {
  background  : #334155;
  transform   : translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow  : 0 4px 14px rgba(0, 0, 0, 0.4);
}

.vcin-call-btn-active {
  background  : #b91c1c !important;
  border-color: #ef4444 !important;
  color       : #fff !important;
  box-shadow  : 0 0 12px rgba(239, 68, 68, 0.4);
}

.vcin-call-btn-danger {
  background  : #ef4444;
  border-color: #dc2626;
  color       : #fff;
  font-weight : 700;
}

.vcin-call-btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

/* ── Group Chat Drawer & Messages ────────────────────────── */
.vcin-call-body {
  display: flex;
  flex: 1;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.vcin-call-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.vcin-call-chat-panel {
  width: 330px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--vcin-border);
  border-radius: var(--vcin-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.vcin-call-chat-panel.hidden {
  display: none !important;
}

.vcin-chat-header {
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.8);
  border-bottom: 1px solid var(--vcin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vcin-chat-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vcin-chat-logs {
  flex: 1;
  padding: 10px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  min-height: 120px;
}

.vcin-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  gap: 3px;
}

.vcin-chat-msg-self {
  align-self: flex-end;
}

.vcin-chat-msg-remote {
  align-self: flex-start;
}

.vcin-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #94a3b8;
}

.vcin-chat-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  word-break: break-word;
  line-height: 1.35;
  color: #f1f5f9;
}

/* Role Accents */
.vcin-chat-msg-citizen .vcin-chat-bubble {
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.vcin-chat-msg-guardian .vcin-chat-bubble {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.vcin-chat-msg-operator .vcin-chat-bubble {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.vcin-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 99px;
}

.vcin-role-citizen { background: rgba(59, 130, 246, 0.3); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.5); }
.vcin-role-guardian { background: rgba(16, 185, 129, 0.3); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.5); }
.vcin-role-operator { background: rgba(245, 158, 11, 0.3); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.5); }

.vcin-chat-system-msg {
  align-self: center;
  background: rgba(30, 41, 59, 0.7);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #94a3b8;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  text-align: center;
  margin: 4px 0;
}

.vcin-chat-quick-chips {
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.6);
}

.vcin-quick-chip {
  white-space: nowrap;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--vcin-border);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
}

.vcin-quick-chip:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #60a5fa;
}

.vcin-chat-input-wrap {
  display: flex;
  padding: 8px 10px;
  gap: 6px;
  background: rgba(30, 41, 59, 0.9);
  border-top: 1px solid var(--vcin-border);
}

.vcin-chat-input {
  flex: 1;
  background: #0f172a;
  border: 1px solid var(--vcin-border);
  border-radius: 8px;
  color: #fff;
  padding: 6px 10px;
  font-size: 0.82rem;
  outline: none;
}

.vcin-chat-input:focus {
  border-color: #3b82f6;
}

.vcin-chat-send-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.vcin-chat-send-btn:hover {
  background: #1d4ed8;
}

.vcin-unread-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 99px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .vcin-call-body {
    flex-direction: column;
  }
  .vcin-call-chat-panel {
    width: 100%;
    height: 220px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }
}

.vcin-slider {
  -webkit-appearance: none;
  appearance: none;
  width     : 100%;
  height    : 5px;
  border-radius: 99px;
  background: #334155;
  outline   : none;
}

.vcin-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width        : 16px;
  height       : 16px;
  border-radius: 50%;
  background   : #06b6d4;
  border       : 2px solid #fff;
  cursor       : pointer;
  box-shadow   : 0 0 8px rgba(6, 182, 212, 0.6);
  transition   : transform 0.15s;
}
.vcin-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.vcin-palette-options {
  display: flex;
  gap    : 8px;
  margin-top: 4px;
}

.vcin-palette-btn {
  flex         : 1;
  height       : 18px;
  border-radius: 6px;
  border       : 2px solid transparent;
  cursor       : pointer;
  transition   : transform 0.15s, border-color 0.2s;
}
.vcin-palette-btn.active {
  border-color: #ffffff;
  box-shadow  : 0 0 8px rgba(255, 255, 255, 0.5);
  transform   : scale(1.05);
}

.vcin-hex-reset-btn {
  background   : none;
  border       : none;
  color        : #38bdf8;
  font-size    : 0.74rem;
  cursor       : pointer;
  text-align   : left;
  padding      : 0;
  text-decoration: underline;
  margin-top   : 2px;
}
.vcin-hex-reset-btn:hover { color: #7dd3fc; }

/* ── Radar beam sweep animation on map ─ */
@keyframes radarSweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vcin-radar-line {
  position: absolute;
  top: 50%; left: 50%;
  width: 250px; height: 2px;
  background: linear-gradient(90deg, rgba(6,182,212,0.8), transparent);
  transform-origin: 0% 0%;
  animation: radarSweep 8s linear infinite;
  pointer-events: none;
}

/* ==========================================================================
   UNIVERSAL NAVIGATION BAR & PROTOTYPE ROLE SWITCHER
   ========================================================================== */
.suraksha-top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.nav-logo { font-size: 1.4rem; }
.nav-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}
.nav-title small {
  font-size: 0.65rem;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-room-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  color: #e0e7ff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-room-badge:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}
.share-tag {
  font-size: 0.65rem;
  background: #6366f1;
  color: #fff;
  padding: 2px 6px;
  border-radius: 99px;
  font-weight: 700;
}

.nav-switcher-links {
  display: flex;
  gap: 8px;
}
.nav-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}
.nav-btn:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}
.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.4);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-icon-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.nav-icon-btn:hover { background: rgba(51, 65, 85, 1); transform: scale(1.05); }

/* Modal overlay */
.suraksha-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.suraksha-modal-overlay.open { display: flex; }
.suraksha-modal-card {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  color: #f8fafc;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none; border: none;
  font-size: 1.5rem; color: #94a3b8;
  cursor: pointer;
}
.modal-sub { font-size: 0.82rem; color: #94a3b8; margin: 6px 0 16px; }

.pin-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.pin-input-group input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
}

.qr-box {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 14px;
}
.qr-img { width: 180px; height: 180px; display: block; }
.qr-hint { font-size: 0.78rem; color: #64748b; margin-top: 8px; }

/* ==========================================================================
   CTS MATHEMATICAL ENGINE VISUALIZER
   ========================================================================== */
.cts-monitor-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  padding: 20px;
  color: #f8fafc;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cts-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.cts-time { font-size: 0.75rem; color: #64748b; }

.cts-score-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border-left: 6px solid #10b981;
}
.cts-score-hero.level-critical {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
.cts-score-hero.level-elevated {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

.score-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.score-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #f1f5f9;
  letter-spacing: 0.5px;
}
.score-action {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 4px;
}

.cts-formula-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-family: monospace;
  font-size: 0.8rem;
}
.formula-title { color: #64748b; font-size: 0.75rem; margin-bottom: 4px; font-family: sans-serif; }
.formula-expr { color: #38bdf8; margin-bottom: 4px; }
.formula-calc { color: #e2e8f0; }

.cts-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.metric-box {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
}
.metric-label { font-size: 0.75rem; color: #94a3b8; margin-bottom: 6px; }
.metric-bar {
  height: 6px;
  background: #1e293b;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}
.bar-fill { height: 100%; border-radius: 99px; transition: width 0.4s ease; }
.bar-fill.geo { background: #38bdf8; }
.bar-fill.audio { background: #a78bfa; }
.bar-fill.scam { background: #f59e0b; }
.bar-fill.golden { background: #ef4444; }
.metric-val { font-size: 0.8rem; font-weight: 700; color: #f8fafc; text-align: right; }

/* ==========================================================================
   GLOBAL LAYOUT & COMMON COMPONENT STYLES
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.landing-main {
  padding: 20px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.section {
  margin-top: 36px;
  margin-bottom: 36px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Base Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  white-space: nowrap;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55);
}

.btn.secondary {
  background: rgba(30, 41, 59, 0.85);
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn.secondary:hover {
  background: rgba(51, 65, 85, 1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.outline {
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn.outline:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff !important;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.btn.sm {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
}

/* Landing Footer */
.landing-footer {
  text-align: center;
  padding: 30px 20px;
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  font-size: 0.85rem;
  margin-top: 60px;
}

/* ==========================================================================
   LANDING PAGE STYLES
   ========================================================================== */
.landing-body {
  background: #090d16;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  margin: 0;
  min-height: 100vh;
}

.hero-header {
  padding: 60px 20px 40px;
  background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15), transparent 60%);
  text-align: center;
}
.hero-container { max-width: 1000px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 10px #6366f1;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}
.gradient-text {
  background: linear-gradient(135deg, #f43f5e, #f59e0b, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 780px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  text-align: left;
  margin-top: 30px;
}

.hero-qr-card, .hero-buttons-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hero-qr-card { text-align: center; }
.qr-header h3 { margin: 0 0 6px; font-size: 1.1rem; }
.qr-header p { margin: 0 0 16px; font-size: 0.85rem; color: #94a3b8; }
.qr-wrapper {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 16px;
}
.qr-wrapper img { width: 190px; height: 190px; display: block; }
.pin-badge {
  font-weight: 700;
  font-size: 0.9rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 16px;
  border-radius: 99px;
  display: inline-block;
}

.hero-buttons-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.hero-buttons-card p { margin: 0 0 20px; font-size: 0.85rem; color: #94a3b8; }

.btn.primary-lg, .btn.secondary-lg {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}
.btn.primary-lg {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}
.btn.primary-lg:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(79, 70, 229, 0.6); }

.btn.secondary-lg {
  background: rgba(30, 41, 59, 0.9);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn.secondary-lg:hover { background: rgba(51, 65, 85, 1); transform: translateY(-2px); }

.pin-changer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: #94a3b8;
}
.pin-changer-row input {
  width: 70px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.pillar-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s ease;
}
.pillar-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.85);
}
.pillar-icon { font-size: 2.2rem; margin-bottom: 12px; }
.pillar-card h3 { margin: 0 0 8px; font-size: 1.1rem; color: #f8fafc; }
.pillar-card p { margin: 0; font-size: 0.88rem; color: #94a3b8; line-height: 1.5; }

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 50px 0 10px;
}

.arch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  flex-wrap: wrap;
}
.arch-step {
  flex: 1;
  min-width: 180px;
  background: rgba(30, 41, 59, 0.6);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}
.step-num {
  display: inline-block;
  width: 28px; height: 28px;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 28px;
  margin-bottom: 8px;
}
.arch-step h4 { margin: 0 0 4px; font-size: 0.95rem; }
.arch-step p { margin: 0; font-size: 0.78rem; color: #94a3b8; }
.arch-arrow { font-size: 1.5rem; color: #6366f1; }

.landing-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS (Citizen App + Navigation)
   ========================================================================== */
@media screen and (max-width: 640px) {
  /* Top Nav Bar Mobile Polish */
  .suraksha-top-nav {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-brand { gap: 6px; }
  .nav-title { font-size: 0.95rem; }
  .nav-title small { font-size: 0.55rem; padding: 1px 4px; }

  .nav-room-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
  }
  .share-tag { font-size: 0.55rem; padding: 1px 4px; }

  .nav-switcher-links {
    width: 100%;
    justify-content: space-around;
    order: 3;
    background: rgba(15, 23, 42, 0.95);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-btn {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  /* Join Overlay Mobile */
  .vcin-join-card {
    padding: 24px 18px !important;
    max-width: 95vw !important;
    margin: 10px !important;
  }
  .vcin-otp-row {
    gap: 6px !important;
  }
  .vcin-otp-box {
    font-size: 1.4rem !important;
    height: 52px !important;
  }

  /* Main Citizen App Padding & Layout */
  #mainApp {
    padding-bottom: 90px !important; /* Spacing for bottom nav */
  }

  .vcin-container, .vcin-main {
    padding: 12px !important;
  }

  /* SOS Button Mobile Sizing */
  .vcin-sos-btn, #sosBtn {
    width: 150px !important;
    height: 150px !important;
    font-size: 1.8rem !important;
  }

  /* Helplines 2x2 Grid */
  .vcin-helpline-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .vcin-helpline-btn {
    padding: 10px 8px !important;
  }
  .vcin-helpline-num {
    font-size: 1.3rem !important;
  }

  /* Modals on Mobile */
  .vcin-modal-card, .suraksha-modal-card {
    max-width: 95vw !important;
    padding: 20px 16px !important;
    max-height: 85vh !important;
  }

  /* Bottom Navigation Bar Safe Inset */
  .vcin-bottom-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    height: auto !important;
  }
  .vcin-nav-item {
    padding: 6px 0 !important;
  }
  .vcin-nav-icon {
    font-size: 1.2rem !important;
  }
}

@media screen and (max-width: 380px) {
  .nav-btn {
    font-size: 0.65rem !important;
    padding: 5px 4px !important;
  }
  .vcin-otp-box {
    font-size: 1.2rem !important;
    height: 46px !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   15-SECOND RECURRING ALERT TOAST & GUARDIAN MAP STYLES
════════════════════════════════════════════════════════════ */
.vcin-alert-toast {
  position: fixed;
  bottom: 80px;
  right: 18px;
  max-width: 380px;
  width: calc(100vw - 36px);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.35), 0 0 20px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 14px 16px;
  z-index: 9999;
  backdrop-filter: blur(16px);
  animation: slideUpToast 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
}

@keyframes slideUpToast {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.vcin-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.vcin-toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vcin-toast-body {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.vcin-toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.vcin-toast-close:hover { color: #fff; }

/* Responsive adjustments for mobile alert toasts */
@media screen and (max-width: 600px) {
  .vcin-alert-toast {
    bottom: 74px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   RADAR MAP SCANNER & DYNAMIC UI ANIMATIONS
════════════════════════════════════════════════════════════ */

/* Map Radar Scanner Container Overlay */
.vcin-radar-scanner-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 450;
  overflow: hidden;
  border-radius: inherit;
}

/* Rotating Conical Radar Sweep Line */
.vcin-radar-sweep {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(59, 130, 246, 0) 0deg,
    rgba(59, 130, 246, 0.05) 240deg,
    rgba(59, 130, 246, 0.25) 345deg,
    rgba(59, 130, 246, 0.6) 360deg
  );
  border-radius: 50%;
  animation: radarSweep 6s linear infinite;
  transform-origin: center center;
}

@keyframes radarSweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Radar Target Crosshair & Concentric Grid */
.vcin-radar-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at center, transparent 30%, rgba(59,130,246,0.06) 31%, transparent 32%),
    radial-gradient(circle at center, transparent 60%, rgba(59,130,246,0.06) 61%, transparent 62%);
  pointer-events: none;
}

/* Sonar Ripple Pulse Animation */
.vcin-sonar-ping {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.4);
  border: 2px solid #ef4444;
  animation: sonarRipple 2s ease-out infinite;
  pointer-events: none;
}

@keyframes sonarRipple {
  0% { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Live Equalizer Audio Wave Bars */
.vcin-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-left: 6px;
}

.vcin-eq-bar {
  width: 3px;
  background: #f87171;
  border-radius: 2px;
  animation: eqWave 1.2s ease-in-out infinite alternate;
}
.vcin-eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.vcin-eq-bar:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.vcin-eq-bar:nth-child(3) { height: 60%; animation-delay: 0.5s; }

@keyframes eqWave {
  0%   { height: 20%; opacity: 0.4; }
  100% { height: 100%; opacity: 1; }
}

/* Live Counter Flash / Glow effect when updating numbers */
.vcin-num-updating {
  animation: numFlash 0.6s ease-out;
}

@keyframes numFlash {
  0%   { color: #38bdf8; text-shadow: 0 0 12px rgba(56, 189, 248, 0.9); transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   CITIZEN DASHBOARD & RESPONSIVE UI/UX FIXES
════════════════════════════════════════════════════════════ */

/* Fix Sticky Header Overlap & Bottom Nav Clearance */
.suraksha-top-nav + #mainApp .vcin-header {
  top: 52px !important;
}

.vcin-main {
  padding-bottom: 96px !important;
}

/* 4-Card Action Grid */
.vcin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
}

.vcin-action-card {
  position: relative;
  border-radius: var(--vcin-radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.vcin-action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.vcin-card-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.12) 100%), #1e293b;
  border-color: rgba(239, 68, 68, 0.4);
}
.vcin-card-orange {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(180, 83, 9, 0.12) 100%), #1e293b;
  border-color: rgba(245, 158, 11, 0.4);
}
.vcin-card-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(29, 78, 216, 0.12) 100%), #1e293b;
  border-color: rgba(59, 130, 246, 0.4);
}
.vcin-card-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(4, 120, 87, 0.12) 100%), #1e293b;
  border-color: rgba(16, 185, 129, 0.4);
}

.vcin-card-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.vcin-card-title {
  font-family: var(--vcin-font-brand);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.2;
}

.vcin-card-sub {
  font-size: 0.78rem;
  color: var(--vcin-muted);
  margin-top: 4px;
  line-height: 1.3;
}

.vcin-card-btn {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}
.vcin-action-card:hover .vcin-card-btn {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(2px);
}

/* Civic Trust Card */
.vcin-trust-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.vcin-trust-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.vcin-trust-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--vcin-muted);
  font-weight: 600;
}
.vcin-trust-score {
  font-family: var(--vcin-font-brand);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vcin-trust-score small {
  font-size: 0.9rem;
  color: var(--vcin-muted);
  font-weight: 500;
}
.vcin-trust-shield {
  font-size: 2.2rem;
  opacity: 0.9;
}
.vcin-trust-progress-bg {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
}
.vcin-trust-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* Recent Alerts List */
.vcin-recent-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vcin-alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--vcin-radius-sm);
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--vcin-border);
}
.vcin-item-danger { border-left: 4px solid #ef4444; }
.vcin-item-warn   { border-left: 4px solid #f59e0b; }
.vcin-item-info   { border-left: 4px solid #3b82f6; }
.vcin-alert-icon { font-size: 1.2rem; flex-shrink: 0; }
.vcin-alert-item-title { font-weight: 600; font-size: 0.9rem; color: #fff; }
.vcin-alert-item-sub { font-size: 0.76rem; color: var(--vcin-muted); }

/* Live Scam Map & Hex Controls */
.vcin-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.vcin-chip-btn {
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--vcin-border);
  color: var(--vcin-text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.vcin-chip-btn.active, .vcin-chip-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
}

.vcin-hex-map-box {
  height: 300px;
  width: 100%;
  border-radius: var(--vcin-radius);
  border: 1px solid var(--vcin-border);
  overflow: hidden;
}

.vcin-slider { width: 100%; accent-color: #3b82f6; }
.vcin-palette-options { display: flex; gap: 6px; margin-top: 4px; }
.vcin-palette-btn { width: 26px; height: 18px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; }
.vcin-palette-btn.active { border-color: #fff; box-shadow: 0 0 6px #fff; }
.vcin-hex-reset-btn {
  margin-top: 8px;
  width: 100%;
  padding: 4px;
  font-size: 0.7rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

/* Area Stats Card */
.vcin-area-stats-card {
  margin-top: 12px;
  background: rgba(30, 41, 59, 0.6);
  border-radius: var(--vcin-radius-sm);
  padding: 12px 14px;
  border: 1px solid var(--vcin-border);
}
.vcin-area-location { font-size: 0.84rem; color: #fff; margin-bottom: 8px; }
.vcin-area-stats-row { display: flex; gap: 16px; margin-bottom: 8px; }
.vcin-area-stat-item { flex: 1; }
.vcin-area-stat-num { font-size: 1.2rem; font-weight: 800; color: #60a5fa; display: block; }
.vcin-area-stat-lbl { font-size: 0.72rem; color: var(--vcin-muted); }
.vcin-risk-levels-legend { display: flex; gap: 10px; font-size: 0.72rem; color: var(--vcin-muted); flex-wrap: wrap; }
.vcin-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 3px; }

/* Golden Hour Modal Card Styling */
.vcin-gh-modal-card {
  max-width: 480px;
  width: 100%;
  padding: 24px;
  border-radius: 20px;
  background: #0f172a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.vcin-gh-top-banner {
  text-align: center;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
}
.vcin-gh-top-banner strong { color: #fbbf24; font-size: 0.95rem; }
.vcin-gh-top-banner p { font-size: 0.78rem; color: var(--vcin-muted); margin-top: 2px; }

.vcin-gh-clock-box {
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.vcin-gh-digital-timer {
  font-family: var(--vcin-font-brand);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}
.vcin-gh-timer-labels {
  display: flex;
  justify-content: space-around;
  font-size: 0.68rem;
  color: var(--vcin-muted);
  letter-spacing: 1px;
}

.vcin-gh-card-step {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--vcin-border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
.vcin-gh-card-step.vcin-step-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}
.vcin-step-header { display: flex; gap: 10px; align-items: flex-start; }
.vcin-step-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.vcin-step-action-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; }

.vcin-gh-script-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
}
.vcin-script-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-weight: 700; color: #34d399; font-size: 0.85rem; }
.vcin-script-text { font-size: 0.88rem; color: #e2e8f0; line-height: 1.4; }

/* ── Mobile Layout Responsiveness Media Query ── */
@media screen and (max-width: 640px) {
  .vcin-main {
    padding: 12px 12px 100px !important;
  }
  .vcin-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .vcin-action-card {
    min-height: 110px;
    padding: 14px 12px;
  }
  .vcin-card-icon {
    font-size: 1.5rem;
  }
  .vcin-card-title {
    font-size: 0.95rem;
  }
  .vcin-sos-btn {
    width: 140px;
    height: 140px;
  }
  .vcin-sos-label {
    font-size: 1.8rem;
  }
  .vcin-header {
    padding: 10px 12px;
  }
  .vcin-header-title {
    font-size: 1rem;
  }
}

/* ── Master Operator Dashboard Container ────────────────────────── */
.vcin-op-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 24px 36px 24px;
  width: 100%;
  box-sizing: border-box;
  overflow: visible !important;
}

/* ── SECTION 1: Dual Map Center (50/50 Left & Right Split) ────────── */
.vcin-op-dual-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 1100px) {
  .vcin-op-dual-map-grid {
    grid-template-columns: 1fr;
  }
}
.vcin-map-box {
  background: var(--op-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--op-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}
.vcin-op-map-header {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
}
.vcin-op-map {
  height: 540px !important;
  min-height: 540px !important;
  width: 100% !important;
  background: #090d16;
}

/* ── SECTION 3: Lower Balanced Command Deck ──────────────────────── */
.vcin-op-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}
@media (max-width: 1100px) {
  .vcin-op-lower-grid {
    grid-template-columns: 1fr;
  }
}
.vcin-op-lower-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Fast Running Live Cyber Cell Log Console ─────────────────────── */
.vcin-fast-logs-card {
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}
.vcin-fast-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
.vcin-fast-logs-stream {
  font-family: var(--op-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vcin-log-line {
  display: flex;
  gap: 8px;
  color: #34d399;
  animation: vcinLogFadeIn 0.3s ease;
}
.vcin-log-time { color: #64748b; }
.vcin-log-tag { color: #38bdf8; font-weight: 700; }
.vcin-log-msg { color: #e2e8f0; }

@keyframes vcinLogFadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Floating Controls Dropdown Menu (Non-blocking) */
.vcin-hex-dropdown-menu {
  position: absolute;
  top: 45px;
  right: 12px;
  z-index: 1000;
  background: rgba(13, 19, 33, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 12px;
  width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 12px;
}
.vcin-hex-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════════════════════════════════
   CYBER CELL COMMAND CENTER — STITCH THEME & GUARDIAN RATING SYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --op-bg: #0a0b10;
  --op-surface-glass: rgba(16, 20, 32, 0.72);
  --op-surface-card: rgba(22, 28, 44, 0.85);
  --op-border: rgba(6, 182, 212, 0.25);
  --op-border-active: rgba(16, 185, 129, 0.5);
  --op-primary: #10b981;
  --op-primary-glow: rgba(16, 185, 129, 0.35);
  --op-cyan: #06b6d4;
  --op-cyan-glow: rgba(6, 182, 212, 0.35);
  --op-amber: #f59e0b;
  --op-amber-glow: rgba(245, 158, 11, 0.35);
  --op-danger: #ef4444;
  --op-danger-glow: rgba(239, 68, 68, 0.4);
  --op-mono: 'JetBrains Mono', monospace;
}

html, body, body.vcin-op-body {
  background: var(--op-bg) radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08), transparent 70%);
  color: #f1f5f9;
  font-family: 'Inter', -apple-system, sans-serif;
  min-height: 100vh !important;
  height: auto !important;
  margin: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#mainApp {
  min-height: 100vh;
  height: auto !important;
  overflow: visible !important;
}

/* ── HUD Navigation Header ────────────────────────────────────────── */
.vcin-op-header {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--op-border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.vcin-header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vcin-header-logo-img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px var(--op-cyan-glow));
}
.vcin-header-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--op-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.vcin-header-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: var(--op-mono);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.vcin-hud-badge {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--op-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vcin-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Tactical Stats HUD Strip ─────────────────────────────────────── */
.vcin-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  padding: 16px 24px 8px 24px;
}
.vcin-stat-card {
  background: var(--op-surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.vcin-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #64748b;
}
.vcin-stat-card.vcin-stat-danger::after { background: var(--op-danger); }
.vcin-stat-card.vcin-stat-danger { border-color: rgba(239, 68, 68, 0.3); }
.vcin-stat-card.vcin-stat-danger .vcin-stat-num { color: #f87171; text-shadow: 0 0 12px var(--op-danger-glow); }

.vcin-stat-card.vcin-stat-warn::after { background: var(--op-amber); }
.vcin-stat-card.vcin-stat-warn { border-color: rgba(245, 158, 11, 0.3); }
.vcin-stat-card.vcin-stat-warn .vcin-stat-num { color: #fbbf24; text-shadow: 0 0 12px var(--op-amber-glow); }

.vcin-stat-card.vcin-stat-info::after { background: var(--op-primary); }
.vcin-stat-card.vcin-stat-info { border-color: rgba(16, 185, 129, 0.3); }
.vcin-stat-card.vcin-stat-info .vcin-stat-num { color: #34d399; text-shadow: 0 0 12px var(--op-primary-glow); }

.vcin-stat-card.vcin-stat-success::after { background: var(--op-cyan); }
.vcin-stat-card.vcin-stat-success { border-color: rgba(6, 182, 212, 0.3); }
.vcin-stat-card.vcin-stat-success .vcin-stat-num { color: #38bdf8; text-shadow: 0 0 12px var(--op-cyan-glow); }

.vcin-stat-num {
  font-family: var(--op-mono);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.vcin-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

/* ── Operator Main Layout Grid ────────────────────────────────────── */
.vcin-op-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  padding: 0 24px 24px 24px;
  align-items: start;
}

/* ── Geospatial Command Theater Workspace ─────────────────────────── */
.vcin-map-theater-card {
  background: var(--op-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--op-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.vcin-theater-header {
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.vcin-theater-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vcin-theater-title {
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: #f8fafc;
}
.vcin-theater-view-tabs {
  display: flex;
  gap: 6px;
  background: rgba(30, 41, 59, 0.6);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vcin-theater-tab {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.vcin-theater-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.vcin-theater-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.3));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.vcin-theater-panel {
  width: 100%;
}

/* Uber H3 Workspace with Side Dock */
.vcin-hex-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  min-height: 600px;
  background: #090d16;
}
@media (max-width: 1100px) {
  .vcin-hex-workspace {
    grid-template-columns: 1fr;
  }
}
.vcin-hex-canvas-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.vcin-hex-dock-panel {
  background: rgba(13, 19, 33, 0.95);
  border-left: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 14px;
}
.vcin-dock-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #38bdf8;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vcin-dock-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vcin-dock-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #cbd5e1;
}
.vcin-res-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}
.vcin-res-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 5px 2px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.vcin-res-btn:hover { color: #fff; border-color: #38bdf8; }
.vcin-res-btn.active {
  background: rgba(6, 182, 212, 0.25);
  border-color: #38bdf8;
  color: #38bdf8;
}
.vcin-dock-telemetry {
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.72rem;
  color: #94a3b8;
}
.vcin-dock-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vcin-op-map-header {
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
}
.vcin-op-map {
  width: 100%;
  background: #090d16;
}
.vcin-map-large {
  height: 580px;
}

/* ── Sidebar & Tabs ───────────────────────────────────────────────── */
.vcin-op-sidebar {
  background: var(--op-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.vcin-tabs {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  overflow-x: auto;
}
.vcin-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.vcin-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}
.vcin-tab.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(16, 185, 129, 0.2));
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.vcin-tab-count {
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 99px;
  font-family: var(--op-mono);
}

/* ── Guardian Fleet Tab & Cards ───────────────────────────────────── */
.vcin-fleet-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vcin-fleet-card {
  background: rgba(22, 28, 44, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.vcin-fleet-card:hover {
  border-color: var(--op-primary);
  box-shadow: 0 4px 18px var(--op-primary-glow);
}
.vcin-fleet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.vcin-fleet-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vcin-fleet-cts-wrap {
  text-align: right;
}
.vcin-fleet-cts-num {
  font-family: var(--op-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--op-primary);
}
.vcin-cts-badge-tier {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
}
.vcin-tier-guardian {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.vcin-tier-verified {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}
.vcin-tier-standard {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.vcin-tier-flagged {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.vcin-fleet-meta {
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.vcin-fleet-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.vcin-btn-rate {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.vcin-btn-rate:hover {
  background: var(--op-amber);
  color: #000;
  box-shadow: 0 0 14px var(--op-amber-glow);
}

/* ── Interactive Star Rating Component ────────────────────────────── */
.vcin-star-rating {
  display: inline-flex;
  gap: 6px;
  font-size: 1.5rem;
  cursor: pointer;
}
.vcin-star {
  color: #475569;
  transition: color 0.15s, transform 0.15s;
}
.vcin-star.active, .vcin-star.hover {
  color: #fbbf24;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  transform: scale(1.15);
}

/* ── Rating Modal (Operator & Victim) ─────────────────────────────── */
.vcin-rating-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: vcinFadeIn 0.2s ease-out;
}
.vcin-rating-modal {
  background: #0f1523;
  border: 1px solid var(--op-border);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px var(--op-cyan-glow);
  position: relative;
}
.vcin-modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcin-modal-close-btn:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.vcin-rating-hero-header {
  text-align: center;
  margin-bottom: 18px;
}
.vcin-rating-hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}
.vcin-rating-target-name {
  color: var(--op-cyan);
  font-weight: 700;
}
.vcin-stars-container {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

/* Rating Performance Tag Chips */
.vcin-rating-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.vcin-tag-chip {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s;
}
.vcin-tag-chip.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--op-cyan);
  color: #38bdf8;
  box-shadow: 0 0 8px var(--op-cyan-glow);
}
.vcin-tag-chip.negative.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--op-danger);
  color: #f87171;
  box-shadow: 0 0 8px var(--op-danger-glow);
}

/* Bayesian Calculation Preview */
.vcin-cts-calc-preview {
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 18px;
  font-family: var(--op-mono);
  font-size: 0.76rem;
}
.vcin-calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.vcin-calc-delta-plus { color: #4ade80; font-weight: 700; }
.vcin-calc-delta-minus { color: #f87171; font-weight: 700; }

.vcin-rating-submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--op-primary-glow);
  transition: all 0.2s;
}
.vcin-rating-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--op-primary-glow);
}

/* Animation */
@keyframes vcinFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════
   CYBER COMMAND ADVANCED ENGINE VISUALIZERS & LIGHTHOUSE
════════════════════════════════════════════════════════════ */

/* 1. Tactical SOS Lighthouse */
.vcin-lh-card {
  background: var(--op-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.vcin-lh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.vcin-lh-beacon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
  animation: vcinPulseGlow 1.8s infinite;
}
.vcin-lh-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
.vcin-lh-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--op-mono);
}
.vcin-lh-status {
  font-family: var(--op-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.vcin-lh-alert-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
  animation: vcinPulseGlow 1.2s infinite;
  z-index: 10;
}
.vcin-lh-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  font-size: 0.78rem;
}
.vcin-lh-stat strong {
  color: #38bdf8;
  font-family: var(--op-mono);
}

/* 2. CTS Pedestrian Scanner Gate */
.vcin-scanner-deck {
  background: var(--op-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.vcin-scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.vcin-scanner-icon { font-size: 1.4rem; }
.vcin-scanner-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
.vcin-scanner-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--op-mono);
}
.vcin-scanner-badge {
  font-family: var(--op-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.vcin-scanner-zone-label {
  position: absolute;
  top: 8px;
  font-family: var(--op-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
}
.vcin-scanner-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
}
.vcin-sc-group label {
  display: block;
  font-size: 0.75rem;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.vcin-sc-group label strong { color: #38bdf8; font-family: var(--op-mono); }

/* 3. IRS Quantum Threat Engine Deck */
.vcin-irs-deck {
  background: var(--op-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.vcin-irs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.vcin-irs-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.5px;
}
.vcin-irs-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--op-mono);
}
.vcin-irs-body-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.vcin-irs-gauge-card {
  background: rgba(10, 14, 26, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.vcin-irs-radial-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vcin-irs-svg-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.vcin-gauge-track {
  fill: none;
  stroke: rgba(30, 41, 59, 0.8);
  stroke-width: 10;
}
.vcin-gauge-bar {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease, stroke 0.5s ease;
}
.vcin-gauge-inner {
  position: absolute;
  text-align: center;
}
.vcin-gauge-num {
  font-family: var(--op-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.vcin-gauge-label {
  font-size: 0.65rem;
  font-family: var(--op-mono);
  color: #94a3b8;
  margin-top: 2px;
}
.vcin-irs-rec-box {
  margin-top: 10px;
  font-size: 0.74rem;
  color: #cbd5e1;
  line-height: 1.3;
}
.vcin-irs-formula-card {
  background: rgba(10, 14, 26, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}
.vcin-irs-section-lbl {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 2px;
}
.vcin-irs-expr {
  font-family: var(--op-mono);
  font-size: 0.82rem;
  color: #38bdf8;
  margin: 4px 0;
}
.vcin-irs-calc-line {
  font-size: 0.8rem;
  color: #e2e8f0;
  font-family: var(--op-mono);
}
.vcin-irs-sliders-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
}
.vcin-irs-slider-box {
  background: rgba(10, 14, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
}
.vcin-irs-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}
.vcin-irs-slider-header strong {
  font-family: var(--op-mono);
  color: #38bdf8;
}

/* 4. Guardian Dispatch Pipeline Loop */
.vcin-pipeline-deck {
  background: var(--op-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.vcin-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.vcin-pipeline-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
}
.vcin-pipeline-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: var(--op-mono);
}
.vcin-pipeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090d16;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 16px 14px;
}
.vcin-pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.3s;
  flex: 1;
}
.vcin-pipe-step.active {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}
.vcin-pipe-circle {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.vcin-pipe-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f8fafc;
}
.vcin-pipe-desc {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: var(--op-mono);
}
.vcin-pipe-connector {
  width: 24px;
  height: 2px;
  background: rgba(56, 189, 248, 0.3);
  position: relative;
}
.vcin-pipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  position: absolute;
  top: -2px;
  left: 0;
  animation: vcinMoveDot 2.4s infinite linear;
}
@keyframes vcinMoveDot {
  0% { left: 0%; opacity: 0.2; }
  50% { opacity: 1.0; }
  100% { left: 100%; opacity: 0.2; }
}

/* 5. Live Regional News & Cyber Intelligence Radar */
.vcin-news-radar-card {
  background: var(--op-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--op-border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}
.vcin-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}
.vcin-news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.vcin-news-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-left: 4px solid #38bdf8;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.76rem;
  transition: all 0.25s ease;
  margin-bottom: 10px;
  cursor: pointer;
  align-items: center;
}
.vcin-news-item:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(52, 211, 153, 0.4);
  border-left-color: #34d399;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}
.vcin-news-thumb-wrap {
  width: 105px;
  height: 75px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.vcin-news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.vcin-news-item:hover .vcin-news-thumb {
  transform: scale(1.1);
}
.vcin-news-img-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.vcin-news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vcin-news-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
  font-family: var(--op-mono);
  font-size: 0.68rem;
  color: #94a3b8;
  flex-wrap: wrap;
}
.vcin-news-city { color: #38bdf8; font-weight: 700; }
.vcin-news-headline { color: #f8fafc; line-height: 1.3; font-size: 0.8rem; font-weight: 600; }
.vcin-news-read-btn {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.vcin-news-read-btn:hover {
  background: #0284c7;
  color: #fff;
}
.vcin-news-audio-btn {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.vcin-news-audio-btn:hover {
  background: #10b981;
  color: #fff;
}

/* Responsive Grid adjustments */
@media screen and (max-width: 1200px) {
  .vcin-irs-body-grid { grid-template-columns: 1fr; }
  .vcin-irs-sliders-grid { grid-template-columns: 1fr 1fr; }
  .vcin-scanner-controls { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 900px) {
  .vcin-op-layout { grid-template-columns: 1fr; }
  .vcin-irs-sliders-grid { grid-template-columns: 1fr; }
  .vcin-scanner-controls { grid-template-columns: 1fr; }
  .vcin-pipeline-track { flex-direction: column; gap: 8px; }
  .vcin-pipe-connector { display: none; }
}
/* Docked Floating Video Overlay Mode for Operator Dashboard */
#jitsiOverlay.docked-widget-mode {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  width: 360px !important;
  height: 280px !important;
  z-index: 99999 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: auto !important;
  padding: 0 !important;
}
#jitsiOverlay.docked-widget-mode .vcin-jitsi-card {
  width: 100% !important;
  height: 100% !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px rgba(56,189,248,0.4) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  border-radius: 14px !important;
}

/* ==========================================================================
   QR CODE HUB & CAMERA SCANNER SIMULATOR STYLES
   ========================================================================== */
.qr-primary-hero-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.1);
}

.qr-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 820px) {
  .qr-hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.qr-code-main-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-wrapper-hero {
  background: #ffffff;
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.qr-wrapper-hero:hover {
  transform: scale(1.03);
}
.qr-wrapper-hero img {
  width: 210px;
  height: 210px;
  display: block;
}

.qr-pin-badge-lg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 8px 20px;
  border-radius: 99px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.qr-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #34d399;
}
.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.pin-input-inline-btn {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 380px;
}
.pin-input-inline-btn input {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}
.pin-input-inline-btn input:focus {
  border-color: #38bdf8;
  outline: none;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.qr-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Scanner Simulator */
.scanner-sim-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(16px);
}
.scanner-sim-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 850px) {
  .scanner-sim-grid { grid-template-columns: 1fr; }
}

.viewfinder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.viewfinder-frame {
  width: 260px;
  height: 260px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}
.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #38bdf8;
  border-style: solid;
}
.corner-tl { top: 12px; left: 12px; border-width: 3px 0 0 3px; }
.corner-tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; }
.corner-bl { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; }
.corner-br { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; }

.laser-beam {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ef4444, #f59e0b, #ef4444, transparent);
  box-shadow: 0 0 12px #ef4444;
  opacity: 0;
}
.laser-beam.active {
  opacity: 1;
  animation: laserScan 1.4s ease-in-out infinite alternate;
}
@keyframes laserScan {
  0% { top: 15px; }
  100% { top: 240px; }
}

.viewfinder-content {
  text-align: center;
  padding: 20px;
  z-index: 2;
}
.viewfinder-icon { font-size: 2.5rem; margin-bottom: 8px; }
.viewfinder-prompt { font-size: 0.82rem; color: #94a3b8; line-height: 1.4; }

.scanner-btn-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* Console & Presets */
.payload-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.preset-chip {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.preset-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}
.preset-chip.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.scan-result-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 18px;
}
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 10px;
}
.result-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}
.result-badge.standby { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.result-badge.scanning { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); }
.result-badge.success { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }

.result-time { font-size: 0.78rem; color: #64748b; font-family: monospace; }
.result-body { margin-bottom: 16px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}
.r-label { color: #64748b; }
.r-val { color: #f1f5f9; font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; word-break: break-all; }

.disabled-link {
  opacity: 0.5;
  pointer-events: none;
}

/* Dedicated Target Grid */
.qr-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.qr-target-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.qr-target-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.target-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 16px;
}
.target-card-header .t-icon { font-size: 1.8rem; }
.target-card-header h3 { margin: 0; font-size: 1.1rem; color: #f8fafc; }
.target-card-header p { margin: 2px 0 0; font-size: 0.8rem; color: #94a3b8; }

.target-qr-body {
  background: #fff;
  padding: 12px;
  border-radius: 14px;
  display: inline-block;
  margin: 0 auto 16px;
}
.target-qr-body img { width: 170px; height: 170px; display: block; }
.target-card-footer { display: flex; justify-content: center; }

/* ==========================================================================
   2D STICKMAN SVG ANIMATION LOOP & OVERVIEW LANDING STYLES
   ========================================================================== */
.stickman-anim-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 30px;
  margin: 30px 0 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15);
  position: relative;
  overflow: hidden;
}

.stickman-stage-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.stickman-svg-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
}

/* Stickman Animations */
.beacon-pulse {
  animation: beaconRipple 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  transform-origin: 120px 150px;
}
@keyframes beaconRipple {
  0% { r: 10px; opacity: 1; stroke-width: 4px; }
  100% { r: 75px; opacity: 0; stroke-width: 1px; }
}

.wave-bar {
  transform-origin: bottom;
  animation: audioWave 1.2s ease-in-out infinite alternate;
}
.wave-bar.wb-1 { animation-delay: 0.1s; }
.wave-bar.wb-2 { animation-delay: 0.3s; }
.wave-bar.wb-3 { animation-delay: 0.5s; }

@keyframes audioWave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.3); }
}

.dash-flow {
  stroke-dasharray: 10;
  animation: signalFlowDash 1.2s linear infinite;
}
@keyframes signalFlowDash {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}

.stickman-runner-leg1 {
  animation: stickLegSwing 0.6s ease-in-out infinite alternate;
  transform-origin: 520px 170px;
}
.stickman-runner-leg2 {
  animation: stickLegSwing 0.6s ease-in-out infinite alternate-reverse;
  transform-origin: 520px 170px;
}
@keyframes stickLegSwing {
  0% { transform: rotate(-25deg); }
  100% { transform: rotate(25deg); }
}

.stickman-runner-arm {
  animation: stickArmSwing 0.6s ease-in-out infinite alternate;
  transform-origin: 520px 130px;
}
@keyframes stickArmSwing {
  0% { transform: rotate(30deg); }
  100% { transform: rotate(-30deg); }
}

/* Fact Pillars Grid */
.fact-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.fact-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s ease;
}
.fact-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.fact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.fact-card-header .f-icon {
  font-size: 1.8rem;
  background: rgba(56, 189, 248, 0.1);
  padding: 10px;
  border-radius: 12px;
}
.fact-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #f8fafc;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}
.fact-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 14px;
}
.fact-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

/* 4-Step Pipeline Flow */
.pipeline-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.pipe-step-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  position: relative;
}
.pipe-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #38bdf8;
  opacity: 0.8;
  margin-bottom: 8px;
}
.pipe-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}
.pipe-step-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   VISUAL EXPLANATION INFOGRAPHIC GALLERY
   ========================================================================== */
.visual-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

@media (max-width: 540px) {
  .visual-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.visual-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.visual-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.15);
}

.visual-card-img-wrapper {
  width: 100%;
  position: relative;
  background: #020617;
  overflow: hidden;
}

.visual-card-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.visual-card:hover .visual-card-img-wrapper img {
  transform: scale(1.02);
}

.visual-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visual-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 12px;
  width: fit-content;
}

.visual-card-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 10px;
}

.visual-card-body p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   BIG ANIMATIONS & ULTRA-PREMIUM UI/UX STYLES
   ========================================================================== */
.hero-header {
  position: relative;
  overflow: hidden;
}

#heroParticleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.gradient-text {
  background: linear-gradient(135deg, #f43f5e 0%, #f59e0b 35%, #38bdf8 70%, #a78bfa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 5s linear infinite;
}

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Interactive Stickman Stage Controls & Event Logger */
.stickman-control-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.sim-stage-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sim-stage-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.sim-stage-btn.active {
  background: linear-gradient(135deg, #4f46e5, #0284c7);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.45);
}

.stickman-event-logger {
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logger-status-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: ledPulse 1.2s ease-in-out infinite alternate;
}
@keyframes ledPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0.6; }
}
.logger-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  color: #38bdf8;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logger-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #64748b;
}

/* Lightbox Modal for Infographic Zoom */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox-modal.open {
  display: flex;
  animation: lightboxFadeIn 0.3s ease-out;
}
@keyframes lightboxFadeIn {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
.lightbox-content {
  position: relative;
  max-width: 1050px;
  width: 100%;
  max-height: 90vh;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
}
.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}
.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   AMERICAN MARVEL / DC NOIR LIGHT COMIC STYLE SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* Google Fonts for Comics */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Bungee&family=Oswald:wght@500;600;700&family=Permanent+Marker&display=swap');

.landing-body, .comic-noir-body {
  background-color: #f7f4ed !important;
  background-image: radial-gradient(#111116 1.3px, transparent 1.3px) !important;
  background-size: 16px 16px !important;
  color: #111116 !important;
  font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
}

/* Comic Headlines */
.comic-font-head {
  font-family: 'Bangers', 'Oswald', sans-serif !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.comic-font-sub {
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Universal Top Nav Comic Overrides */
.suraksha-top-nav {
  background: #111116 !important;
  border-bottom: 4px solid #ffd600 !important;
  box-shadow: 0 4px 0 #111116 !important;
}
.suraksha-top-nav .nav-title {
  font-family: 'Bangers', sans-serif !important;
  font-size: 1.5rem !important;
  letter-spacing: 1.5px !important;
  color: #ffd600 !important;
  text-shadow: 2px 2px 0 #000;
}
.suraksha-top-nav .nav-btn {
  border: 2px solid #ffffff !important;
  border-radius: 6px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.suraksha-top-nav .nav-btn:hover {
  background: #ffd600 !important;
  color: #111116 !important;
  transform: translateY(-2px) !important;
  box-shadow: 3px 3px 0 #000 !important;
}
.suraksha-top-nav .nav-btn.active {
  background: #ff2e55 !important;
  color: #ffffff !important;
  border-color: #ffd600 !important;
  box-shadow: 3px 3px 0 #111116 !important;
}

/* Hero Header - Marvel/DC Comic Noir Light Style */
.comic-hero {
  position: relative;
  padding: 65px 20px 50px;
  background: #ffffff;
  border-bottom: 5px solid #111116;
  background-image: 
    radial-gradient(#111116 1.4px, transparent 1.4px),
    linear-gradient(135deg, rgba(255, 214, 0, 0.15) 0%, rgba(0, 240, 255, 0.15) 100%);
  background-size: 18px 18px, 100% 100%;
  overflow: hidden;
}

.comic-badge-starburst {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffd600;
  color: #111116;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 18px;
  border: 3px solid #111116;
  box-shadow: 4px 4px 0 #111116;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  margin-bottom: 20px;
}

.comic-hero-title {
  font-family: 'Bangers', cursive, sans-serif;
  font-size: 3.6rem;
  line-height: 1.08;
  color: #111116;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-shadow: 4px 4px 0px #ffd600, 7px 7px 0px #111116;
}

.comic-hero-title .highlight-red {
  color: #ff2e55;
  background: #ffd600;
  padding: 0 10px;
  border: 3px solid #111116;
  display: inline-block;
  transform: rotate(1deg);
  box-shadow: 3px 3px 0 #111116;
  text-shadow: none;
}

.comic-hero-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #262626;
  max-width: 820px;
  margin: 0 auto 28px;
  background: #ffffff;
  padding: 16px 24px;
  border: 3px solid #111116;
  box-shadow: 5px 5px 0 #111116;
  line-height: 1.5;
  position: relative;
}

.comic-hero-subtitle::before {
  content: 'DAILY PLANET CRIME WIRE';
  position: absolute;
  top: -12px;
  left: 16px;
  background: #111116;
  color: #ffd600;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  letter-spacing: 1px;
}

/* Comic Action Buttons */
.comic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Bangers', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 3.5px solid #111116;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.comic-btn-crimson {
  background: #ff2e55;
  color: #ffffff;
  box-shadow: 5px 5px 0 #111116;
}
.comic-btn-crimson:hover {
  background: #e61c38;
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #111116;
}

.comic-btn-yellow {
  background: #ffd600;
  color: #111116;
  box-shadow: 5px 5px 0 #111116;
}
.comic-btn-yellow:hover {
  background: #e6c200;
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #111116;
}

.comic-btn-cyan {
  background: #00e5ff;
  color: #111116;
  box-shadow: 5px 5px 0 #111116;
}
.comic-btn-cyan:hover {
  background: #00cce6;
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 #111116;
}

/* Comic Room Code Box */
.comic-pin-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  background: #fdfbf7;
  padding: 12px 20px;
  border: 3px solid #111116;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #111116;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.comic-pin-box label {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #111116;
}
.comic-pin-box input {
  font-family: 'Bangers', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  width: 90px;
  text-align: center;
  background: #ffffff;
  border: 2.5px solid #111116;
  border-radius: 4px;
  padding: 4px 8px;
  color: #ff2e55;
}

/* Comic Cards & Panels */
.comic-panel {
  background: #ffffff;
  border: 4px solid #111116;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #111116;
  position: relative;
  padding: 24px;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.comic-panel:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 #111116;
}

/* Comic Panel Header Banner */
.comic-panel-banner {
  position: absolute;
  top: -16px;
  left: 20px;
  background: #ffd600;
  color: #111116;
  font-family: 'Bangers', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 4px 14px;
  border: 2.5px solid #111116;
  box-shadow: 2px 2px 0 #111116;
  text-transform: uppercase;
}

.comic-panel-banner.red {
  background: #ff2e55;
  color: #ffffff;
}

.comic-panel-banner.cyan {
  background: #00e5ff;
  color: #111116;
}

/* 2D Stickman Comic Strip Stage Overrides */
.stickman-anim-card {
  background: #ffffff !important;
  border: 4.5px solid #111116 !important;
  border-radius: 14px !important;
  box-shadow: 8px 8px 0 #111116 !important;
  padding: 28px !important;
  margin-top: 40px !important;
  position: relative;
}

.stickman-stage-title {
  font-family: 'Bangers', cursive, sans-serif !important;
  font-size: 1.9rem !important;
  letter-spacing: 1.5px !important;
  color: #111116 !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
}

.stickman-control-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sim-stage-btn {
  background: #fdfbf7 !important;
  color: #111116 !important;
  border: 3px solid #111116 !important;
  border-radius: 8px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  box-shadow: 3px 3px 0 #111116 !important;
  transition: all 0.15s ease !important;
}
.sim-stage-btn:hover {
  background: #ffd600 !important;
  transform: translate(-2px, -2px) !important;
  box-shadow: 5px 5px 0 #111116 !important;
}
.sim-stage-btn.active {
  background: #ff2e55 !important;
  color: #ffffff !important;
  border-color: #111116 !important;
  box-shadow: 4px 4px 0 #111116 !important;
}

.stickman-svg-container {
  background: #f5f2ea;
  border: 3px solid #111116;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.08);
}

.stickman-event-logger {
  background: #111116 !important;
  border: 3px solid #ffd600 !important;
  color: #ffd600 !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  margin-top: 18px !important;
  box-shadow: 4px 4px 0 #111116 !important;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logger-status-led {
  width: 12px;
  height: 12px;
  background: #ff2e55;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff2e55;
  animation: comicPulse 1s infinite alternate;
}
@keyframes comicPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* Visual Gallery Cards (Comic Issue Covers) */
.visual-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.visual-card {
  background: #ffffff !important;
  border: 4px solid #111116 !important;
  border-radius: 12px !important;
  box-shadow: 6px 6px 0 #111116 !important;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
}
.visual-card:hover {
  transform: translate(-3px, -4px) !important;
  box-shadow: 10px 10px 0 #111116 !important;
}

.visual-card-img-wrapper {
  height: 220px;
  overflow: hidden;
  border-bottom: 3.5px solid #111116;
  background: #111116;
  position: relative;
}
.visual-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.visual-card:hover .visual-card-img-wrapper img {
  transform: scale(1.06);
}

.visual-card-body {
  padding: 20px;
  background: #ffffff;
}

.visual-card-badge {
  display: inline-block;
  background: #ffd600;
  color: #111116;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border: 2px solid #111116;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.visual-card-body h3 {
  font-family: 'Bangers', sans-serif;
  font-size: 1.45rem;
  color: #111116;
  letter-spacing: 1px;
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.visual-card-body p {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.5;
}

/* Fact Sheet Pillars Grid */
.fact-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.fact-card {
  background: #ffffff !important;
  border: 3.5px solid #111116 !important;
  border-radius: 10px !important;
  box-shadow: 5px 5px 0 #111116 !important;
  padding: 20px !important;
  transition: all 0.2s ease !important;
  position: relative;
}
.fact-card:hover {
  transform: translate(-3px, -3px) !important;
  box-shadow: 8px 8px 0 #111116 !important;
}

.fact-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.fact-card-header h3 {
  font-family: 'Bangers', sans-serif !important;
  font-size: 1.35rem !important;
  color: #111116 !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
}

.fact-card p {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.92rem !important;
  color: #2b2b2b !important;
  margin-bottom: 12px !important;
}

.fact-tag {
  display: inline-block;
  background: #f0ede4;
  color: #111116;
  border: 2px solid #111116;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

/* Interactive Math Engines Section */
.vcin-engine-section {
  background: #ffffff !important;
  border: 4.5px solid #111116 !important;
  border-radius: 14px !important;
  box-shadow: 8px 8px 0 #111116 !important;
  padding: 30px !important;
  margin-top: 40px !important;
}


/* ═══════════════════════════════════════════════════════════
   MARVEL & DC NOIR COMIC MEME ANIMATIONS ARENA
   ═══════════════════════════════════════════════════════════ */

.meme-arena-card {
  background: #ffffff !important;
  border: 4.5px solid #111116 !important;
  border-radius: 16px !important;
  box-shadow: 8px 8px 0 #111116 !important;
  padding: 30px !important;
  margin-top: 45px !important;
  position: relative;
  overflow: hidden;
  background-image: 
    radial-gradient(#111116 1.4px, transparent 1.4px),
    linear-gradient(135deg, rgba(255, 46, 85, 0.08) 0%, rgba(255, 214, 0, 0.12) 100%) !important;
  background-size: 16px 16px, 100% 100% !important;
}

.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.meme-card {
  background: #ffffff;
  border: 4px solid #111116;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #111116;
  padding: 24px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.meme-card:hover {
  transform: translate(-4px, -4px) rotate(-0.5deg);
  box-shadow: 10px 10px 0 #111116;
}

.meme-badge-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: #ffd600;
  color: #111116;
  font-family: 'Bangers', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 3px 14px;
  border: 2.5px solid #111116;
  box-shadow: 3px 3px 0 #111116;
  text-transform: uppercase;
}
.meme-badge-tag.red { background: #ff2e55; color: #fff; }
.meme-badge-tag.cyan { background: #00e5ff; color: #111; }

.meme-stage-canvas {
  width: 100%;
  height: 180px;
  background: #fdfbf7;
  border: 3px solid #111116;
  border-radius: 10px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes memeShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-4px, 4px) rotate(-3deg); }
  40% { transform: translate(4px, -4px) rotate(3deg); }
  60% { transform: translate(-4px, -4px) rotate(-2deg); }
  80% { transform: translate(4px, 4px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes dogeSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

@keyframes gigachadGlow {
  0% { filter: drop-shadow(0 0 5px #ffd600); transform: scale(1); }
  50% { filter: drop-shadow(0 0 25px #ff2e55); transform: scale(1.1); }
  100% { filter: drop-shadow(0 0 5px #ffd600); transform: scale(1); }
}

.anim-shake { animation: memeShake 0.4s ease; }
.anim-doge-spin { animation: dogeSpin 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.anim-chad-glow { animation: gigachadGlow 1.2s infinite alternate; }

.comic-sound-board {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.comic-sound-btn {
  background: #ffd600;
  color: #111116;
  font-family: 'Bangers', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1px;
  padding: 10px 22px;
  border: 3px solid #111116;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #111116;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.comic-sound-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #111116;
  background: #00e5ff;
}
.comic-sound-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #111116;
}

/* ═══════════════════════════════════════════════════════════
   SPOTLIGHT GUIDED TUTORIAL & STICKMAN MASCOT SYSTEM
   ═══════════════════════════════════════════════════════════ */




/* Floating Meme Action Text Overlay */
.floating-meme-pop {
  position: fixed;
  pointer-events: none;
  font-family: 'Bangers', sans-serif;
  font-size: 2.5rem;
  color: #ffd600;
  -webkit-text-stroke: 2px #111116;
  text-shadow: 4px 4px 0 #ff2e55, 6px 6px 0 #111116;
  z-index: 99999;
  animation: memePopUp 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes memePopUp {
  0% { opacity: 0; transform: scale(0.3) translateY(0) rotate(-10deg); }
  40% { opacity: 1; transform: scale(1.4) translateY(-30px) rotate(5deg); }
  100% { opacity: 0; transform: scale(1.1) translateY(-90px) rotate(-5deg); }
}


/* Section Title Override */
.section-title {
  font-family: 'Bangers', cursive, sans-serif !important;
  font-size: 2.3rem !important;
  letter-spacing: 1.5px !important;
  color: #111116 !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  text-shadow: 2px 2px 0 #ffd600;
}

/* Lightbox Comic Modal */
.lightbox-modal {
  background: rgba(17, 17, 22, 0.92) !important;
  backdrop-filter: blur(8px);
}

.lightbox-content {
  background: #ffffff !important;
  border: 5px solid #111116 !important;
  box-shadow: 12px 12px 0 #ffd600, 16px 16px 0 #111116 !important;
  border-radius: 14px !important;
}

.lightbox-caption {
  background: #ffffff !important;
  border-top: 3.5px solid #111116 !important;
}

.lightbox-caption h3 {
  font-family: 'Bangers', sans-serif !important;
  font-size: 1.6rem !important;
  color: #111116 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.lightbox-caption p {
  color: #262626 !important;
  font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════
   GUARDIAN CONFERENCE ADMISSION POPUP MODAL STYLES
════════════════════════════════════════════════════════════ */
.vcin-admit-modal-card {
  background: #0f172a !important;
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35), 0 25px 60px rgba(0, 0, 0, 0.9) !important;
  border-radius: 20px !important;
  padding: 26px 24px !important;
  max-width: 480px !important;
  width: 92% !important;
  color: #f8fafc !important;
  position: relative !important;
  animation: vcinPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vcinPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.vcin-admit-header {
  text-align: center;
  margin-bottom: 18px;
}

.vcin-admit-icon-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  background: rgba(56, 189, 248, 0.15);
  border: 2px solid #38bdf8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  animation: pulseSpeaker 2s infinite ease-in-out;
}

.vcin-admit-title {
  font-family: var(--vcin-font-brand);
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.vcin-admit-guardian-info {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.vcin-admit-avatar {
  font-size: 2.2rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1.5px solid #10b981;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vcin-admit-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vcin-admit-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.vcin-admit-dist {
  font-size: 0.8rem;
  color: #94a3b8;
}

.vcin-admit-cts {
  font-size: 0.78rem;
  color: #cbd5e1;
}

.vcin-admit-incident-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.vcin-admit-btn-row {
  display: flex;
  gap: 10px;
}

.vcin-btn-admit-accept {
  flex: 1.3;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.vcin-btn-admit-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  filter: brightness(1.1);
}

.vcin-btn-admit-deny {
  flex: 0.9;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vcin-btn-admit-deny:hover {
  background: rgba(239, 68, 68, 0.28);
  color: #fff;
  border-color: #ef4444;
}

.vcin-op-card-landmark {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   LIVE SCAM MAP — NEWS PANEL, MAP HINT & FALLBACK TILES
═══════════════════════════════════════════════════════════ */

/* Fallback OSM tiles: desaturate so they blend with the dark theme */
.leaflet-container .vcin-osm-fallback-tiles {
  filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9) saturate(0.6);
}

/* Floating interaction hint on the map */
.vcin-map-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 500;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--vcin-border);
  color: var(--vcin-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Live Area News Panel ── */
.vcin-news-panel {
  margin-top: 12px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--vcin-border);
  border-radius: 16px;
  padding: 14px;
}

.vcin-news-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.vcin-news-panel-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--vcin-font-brand);
}

.vcin-news-count {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.vcin-news-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
}

.vcin-news-empty {
  font-size: 0.8rem;
  color: var(--vcin-muted);
  text-align: center;
  padding: 18px 8px;
}

.vcin-news-item {
  background: var(--vcin-surface2);
  border: 1px solid var(--vcin-border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  border-left: 3px solid transparent;
}
.vcin-news-item:hover,
.vcin-news-item:focus-visible {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: rgba(37, 99, 235, 0.12);
  outline: none;
}
.vcin-news-item.vcin-news-high { border-left-color: #ef4444; }
.vcin-news-item.vcin-news-warn { border-left-color: #f97316; }
.vcin-news-item.vcin-news-mod  { border-left-color: #eab308; }

.vcin-news-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.vcin-news-type {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 7px;
  border-radius: 99px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcin-news-time {
  font-size: 0.68rem;
  color: var(--vcin-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.vcin-news-title {
  margin: 0 0 5px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vcin-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.7rem;
  color: var(--vcin-muted);
  margin-bottom: 6px;
}

.vcin-news-link {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.vcin-news-link:hover { background: #1d4ed8; }

/* ── Responsive: scam map on small screens ── */
@media (max-width: 640px) {
  .vcin-hex-map-box { height: 320px; }
  .vcin-map-hint { font-size: 0.6rem; bottom: 8px; left: 8px; }
  .vcin-news-list { max-height: 280px; }
  .vcin-area-stats-row { flex-wrap: wrap; }
  .vcin-area-stat-item { min-width: 100px; }
}


