/* ============================================================
   EYECO Design System v2 — Premium, Glassmorphic, Modern
   Apple Human Interface + Material Design 3 inspired
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Core palette */
  --primary:          #2563EB;
  --primary-hover:    #1D4ED8;
  --primary-light:    #EFF6FF;
  --primary-glow:     rgba(37, 99, 235, 0.18);

  /* Backgrounds — gradient hero + soft white body */
  --bg-app:           #FFFFFF;
  --bg-app-alt:       #F8FAFC;
  --surface:          #FFFFFF;
  --surface-soft:     #F1F5F9;
  --card-bg:          rgba(255, 255, 255, 0.88);
  --card-border:      rgba(0, 0, 0, 0.06);
  --glass-border:     rgba(255, 255, 255, 0.7);

  /* Hero gradient */
  --hero-gradient:    linear-gradient(180deg,
                        rgba(37,99,235,0.06) 0%,
                        rgba(59,130,246,0.03) 40%,
                        transparent 100%);

  /* Text */
  --text-main:        #1E293B;
  --text-dark:        #0F172A;
  --text-muted:       #64748B;
  --text-gray:        #94A3B8;
  --text-secondary:   #64748B;
  --text-primary:     #0F172A;

  /* Borders */
  --border:           rgba(0, 0, 0, 0.07);
  --border-focus:     rgba(37, 99, 235, 0.35);

  /* Status */
  --error:            #EF4444;
  --error-bg:         #FEF2F2;
  --success:          #10B981;
  --success-bg:       #ECFDF5;
  --warning:          #F59E0B;
  --warning-bg:       #FFFBEB;
  --info:             #06B6D4;
  --info-bg:          #ECFEFF;
  --danger:           #EF4444;
  --danger-bg:        #FEF2F2;

  /* Spacing */
  --space:            28px;
  --space-4:  4px;  --space-6:  6px;  --space-8:   8px;
  --space-10: 10px; --space-12: 12px; --space-14: 14px;
  --space-16: 16px; --space-18: 18px; --space-20: 20px;
  --space-22: 22px; --space-24: 24px; --space-28: 28px;
  --space-32: 32px; --space-36: 36px; --space-40: 40px;
  --space-48: 48px; --space-56: 56px; --space-64: 64px;

  /* Radii */
  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-xl:        20px;
  --radius-pill:      50px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.02);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.02);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.03);
  --shadow-glass: 0 2px 12px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.03);
  --shadow-primary: 0 4px 16px rgba(37, 99, 235, 0.25);

  /* Transitions */
  --anim-fast:       150ms cubic-bezier(0.4, 0, 0.2, 1);
  --anim-base:       200ms cubic-bezier(0.4, 0, 0.2, 1);
  --anim-slow:       300ms cubic-bezier(0.4, 0, 0.2, 1);
  --anim-spring:     400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-height:      60px;
  --nav-blur:        20px;
  --sidebar-width:   240px;

  /* Typography Scale */
  --font-3xs:        0.65rem;   /* 10.4px - micro badges, rec dots */
  --font-2xs:        0.72rem;   /* 11.5px - captions, timestamps, micro labels */
  --font-xs:         0.78rem;   /* 12.5px - filter labels, table subtext, secondary tags */
  --font-sm:         0.85rem;   /* 13.6px - badges, table body, standard controls */
  --font-base:       0.9rem;    /* 14.4px - body text, buttons, form inputs */
  --font-md:         1rem;      /* 16px   - sub-titles, section subheaders, card titles */
  --font-lg:         1.15rem;   /* 18.4px - section titles, H3 */
  --font-xl:         1.35rem;   /* 21.6px - page titles, H2 */
  --font-2xl:        1.6rem;    /* 25.6px - main page hero titles, H1 */
  --font-3xl:        2rem;      /* 32px   - hero brand headers */
}

/* ── Dark Mode ─────────────────────────────────────────────── */
body.dark-mode {
  --primary:          #60A5FA;
  --primary-hover:    #93BBFC;
  --primary-light:    rgba(96, 165, 250, 0.12);
  --primary-glow:     rgba(96, 165, 250, 0.25);

  --bg-app:           #0B1120;
  --bg-app-alt:       #0F172A;
  --surface:          #1E293B;
  --surface-soft:     rgba(30, 41, 59, 0.6);
  --card-bg:          rgba(30, 41, 59, 0.85);
  --card-border:      rgba(148, 163, 184, 0.08);
  --glass-border:     rgba(148, 163, 184, 0.08);

  --hero-gradient:    linear-gradient(180deg,
                        rgba(59,130,246,0.05) 0%,
                        transparent 100%);

  --text-main:        #E2E8F0;
  --text-dark:        #F1F5F9;
  --text-muted:       #94A3B8;
  --text-gray:        #64748B;
  --text-secondary:   #94A3B8;
  --text-primary:     #F1F5F9;

  --border:           rgba(148, 163, 184, 0.1);
  --border-focus:     rgba(96, 165, 250, 0.45);

  --error:            #F87171;
  --error-bg:         rgba(248, 113, 113, 0.08);
  --success:          #34D399;
  --success-bg:       rgba(52, 211, 153, 0.08);
  --warning:          #FBBF24;
  --warning-bg:       rgba(251, 191, 36, 0.08);
  --info:             #38BDF8;
  --info-bg:          rgba(56, 189, 248, 0.08);
  --danger:           #F87171;
  --danger-bg:        rgba(248, 113, 113, 0.08);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.25), 0 4px 8px rgba(0,0,0,0.1);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.1);
  --shadow-glass: 0 2px 12px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.1);
  --shadow-primary: 0 4px 16px rgba(96, 165, 250, 0.25);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  min-height: 100vh;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #F0F4FF url('/assets/bg-light.jpg') fixed center / cover;
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--anim-base), color var(--anim-base);
  position: relative;
}
body.dark-mode {
  background: #0B1120 url('/assets/bg-dark.jpg') fixed center / cover;
}

/* ── Background decorative blobs (Select Workspace style) ──── */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  transition: background var(--anim-base);
}
.blob-1 { width: 560px; height: 560px; background: #2563EB; top: -120px; left: -120px; }
.blob-2 { width: 420px; height: 420px; background: #7C3AED; bottom: -80px; right: -80px; }
body.dark-mode .blob-1 { background: #3B82F6; opacity: 0.1; }
body.dark-mode .blob-2 { background: #8B5CF6; opacity: 0.08; }

/* ── Subtle noise overlay ──────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Auth page ──────────────────────────────────────────────── */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* ═══════════════════════════════════════════
   PAGE TRANSITION
   ═══════════════════════════════════════════ */
@keyframes pageEnter {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}
.page-enter {
  animation: pageEnter 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ═══════════════════════════════════════════
   GLASS CARD (primary card style)
   ═══════════════════════════════════════════ */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--nav-blur));
  -webkit-backdrop-filter: blur(var(--nav-blur));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: var(--space);
  transition:
    transform var(--anim-base),
    box-shadow var(--anim-base),
    background var(--anim-base);
}
.glass-card:hover {
  box-shadow: var(--shadow-lg);
}
body.dark-mode .glass-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.1);
  border-color: rgba(148, 163, 184, 0.08);
}

/* Auth card */
.glass-card.auth-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 36px 30px;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space);
  transition: box-shadow var(--anim-base), transform var(--anim-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

/* ── Brand ──────────────────────────────────────────────────── */
.brand {
  text-align: center;
  margin-bottom: 28px;
}
.brand h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.brand h1 svg { width: 32px; height: 32px; stroke: var(--primary); }
.brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}
.brand-logo i { width: 22px; height: 22px; }
.brand-logo-img { height: 36px; width: auto; display: block; }

/* Auth / brand logo images */
.auth-logo-img { height: 48px; width: auto; display: block; margin: 0 auto 8px; }
.ws-logo-img { height: 28px; width: auto; display: block; vertical-align: middle; }
.sa-logo-img { height: 32px; width: auto; display: block; }
.nav-logo-img { height: 28px; width: auto; display: inline-block; vertical-align: middle; margin-right: 4px; }
.news-logo-img { height: 24px; width: auto; display: inline-block; vertical-align: middle; margin-right: 4px; }

/* ═══════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-group-inline { display: flex; align-items: center; gap: 8px; }
.form-label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); }
.form-label .required { color: var(--danger); }

.form-control {
  width: 100%;
  height: 44px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0 var(--space-16);
  outline: none;
  transition: border-color var(--anim-base), box-shadow var(--anim-base);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Input Control ──────────────────────────────────────────── */
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-wrapper > i[data-lucide], .input-wrapper > svg {
  position: absolute; left: 14px; width: 17px; height: 17px;
  color: var(--text-muted); pointer-events: none;
}
.input-wrapper .input-control { padding-left: 42px; }

.input-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--anim-base), box-shadow var(--anim-base);
}
.input-control::placeholder { color: var(--text-gray); }
.input-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
select.input-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
textarea.input-control { min-height: 90px; resize: vertical; line-height: 1.5; padding-top: 12px; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--anim-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn i, .btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-ghost {
  background: transparent;
  color: var(--text-main);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); }
body.dark-mode .btn-ghost:hover { background: rgba(255,255,255,0.05); }

.btn-soft {
  background: var(--surface-soft);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-soft:hover { background: var(--border); }

.btn-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.8);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
body.dark-mode .btn-glass {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(148, 163, 184, 0.1);
  color: var(--text-main);
}
.btn-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
body.dark-mode .btn-glass:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.7);
}

.btn-rounded { border-radius: var(--radius-pill); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-sm i, .btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-primary);
  transition: all var(--anim-base);
  line-height: 1;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary svg, .btn-primary i { width: 18px; height: 18px; }
.btn-primary.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-primary.btn-rounded { border-radius: var(--radius-pill); }
.btn-primary.btn-block { width: 100%; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-base);
}
.btn-outline:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--error);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--anim-base);
}
.btn-danger:hover { background: var(--error-bg); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--anim-base);
}
.btn-icon:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon svg, .btn-icon i { width: 15px; height: 15px; }

/* ── Feedback Messages ──────────────────────────────────────── */
.error-msg, .success-msg {
  display: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  animation: msgIn var(--anim-base);
}
.error-msg {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.success-msg {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Links ──────────────────────────────────────────────────── */
.links { text-align: center; margin-top: 20px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; }
.links a { color: var(--primary); text-decoration: none; font-weight: 600; }
.links a:hover { color: var(--primary-hover); text-decoration: underline; }
.links .divider { width: 30px; height: 1px; background: var(--border); margin: 6px auto; }

/* ── Spinner ────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; display: inline-block; }

/* ═══════════════════════════════════════════
   APP LAYOUT
   ═══════════════════════════════════════════ */
.layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.viewport-viewport {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  padding: 24px 20px 40px;
}

/* ═══════════════════════════════════════════
   NAVBAR — Premium Floating Header
   ═══════════════════════════════════════════ */
.header-floating {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 8px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background var(--anim-base);
}
body.dark-mode .header-floating {
  background: rgba(11, 17, 32, 0.6);
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.header-left-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex: 0 1 auto;
  flex-shrink: 0;
}

/* ── Brand in navbar ── */
.header-floating .brand-logo {
  font-size: 1.15rem;
  gap: 7px;
}
.header-floating .brand-logo i { width: 20px; height: 20px; }

/* ── Nav Tabs — Sliding indicator (macOS-style) ── */
.nav-tabs-capsule {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.nav-tabs {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.nav-indicator {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), width 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 0;
  pointer-events: none;
}
.nav-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms ease;
  white-space: nowrap;
}
.nav-tab i { width: 16px; height: 16px; }

/* Active state: teks putih, background dari indicator di belakang */
.nav-tab.active {
  color: #fff;
}

/* Inactive hover: subtle lift */
.nav-tab:hover:not(.active) {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}
body.dark-mode .nav-tab:hover:not(.active) {
  background: rgba(96, 165, 250, 0.08);
}

/* ── Header Right ── */
.header-right-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 1 auto;
  flex-shrink: 0;
  flex-shrink: 0;
}

.btn-icon-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--anim-base);
}
.btn-icon-toggle:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text-dark);
}
body.dark-mode .btn-icon-toggle:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-main);
}
.btn-icon-toggle i { width: 17px; height: 17px; }

.header-export-btn { display: none; }
.header-export-btn.visible { display: flex; }

/* ── Notification Bell ── */
.notification-bell-wrapper { position: relative; }
.bell-badge-count {
  position: absolute; top: 1px; right: 1px;
  background: var(--error); color: #fff;
  font-size: 0.55rem; font-weight: 700;
  padding: 1px 4px; border-radius: 8px;
  border: 2px solid var(--bg-app);
  line-height: 1; min-width: 16px; height: 16px;
  display: none; align-items: center; justify-content: center;
}
.bell-badge-count.show { display: inline-flex; }

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px); right: -16px;
  width: 340px;
  border-radius: var(--radius-lg);
  display: none; opacity: 0;
  transform: translateY(-8px);
  transition: all var(--anim-slow);
  overflow: hidden;
  z-index: 2000;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xl);
}
.notification-dropdown.active { display: block; opacity: 1; transform: translateY(0); }
.notification-dropdown-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.notification-dropdown-header .caption-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.notification-list-container { max-height: 360px; overflow-y: auto; }

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 10px;
  transition: background var(--anim-fast);
  cursor: default;
}
.notif-item:hover { background: rgba(37,99,235,0.02); }
.notif-item:last-child { border-bottom: none; }
.notif-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-content { flex: 1; font-size: 0.85rem; }
.notif-title { font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.notif-desc { color: var(--text-muted); font-size: 0.8rem; line-height: 1.4; }
.notif-time { font-size: 0.7rem; color: var(--text-gray); margin-top: 6px; }
.notif-actions { display: flex; gap: 8px; margin-top: 8px; }
.notif-actions button {
  padding: 6px 14px; font-size: 0.75rem;
  border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; border: none;
}
.notif-btn-accept { background: var(--primary); color: #fff; }
.notif-btn-decline { background: var(--error-bg); color: var(--error); }
.notif-empty { padding: 30px 20px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.notif-empty i { margin-bottom: 10px; opacity: 0.5; width: 32px; height: 32px; }

/* ── Profile Dropdown ── */
.profile-dropdown-wrapper { position: relative; }
.profile-trigger-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
  border-radius: var(--radius-pill);
  transition: background var(--anim-base);
  max-width: 100%;
}
.profile-trigger-btn:hover { background: rgba(0,0,0,0.04); }
body.dark-mode .profile-trigger-btn:hover { background: rgba(255,255,255,0.04); }
.profile-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: #fff;
  font-weight: 700; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: max-content;
  min-width: 230px;
  max-width: 280px;
  padding: 10px 8px;
  border-radius: var(--radius-lg);
  display: none; opacity: 0;
  transform: translateY(-8px);
  transition: all var(--anim-slow);
  z-index: 2000;
  background: var(--surface);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  box-sizing: border-box;
}
.profile-dropdown-menu.active { display: block; opacity: 1; transform: translateY(0); }
.dropdown-user-info {
  padding: 6px 10px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.user-info-name {
  font-weight: 700;
  font-size: var(--font-base);
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-all;
  display: block;
}
.user-info-role {
  font-size: var(--font-2xs);
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
.divider-line { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-item-btn {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: none; background: none;
  border-radius: var(--radius-md);
  font-size: var(--font-base); font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background var(--anim-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
}
.dropdown-item-btn:hover { background: rgba(0,0,0,0.04); }
body.dark-mode .dropdown-item-btn:hover { background: rgba(255,255,255,0.04); }
.dropdown-item-btn.text-danger { color: var(--error); }
.dropdown-item-btn.text-danger:hover { background: var(--error-bg); }

/* ── Legacy Profile Menu ── */
.profile-menu { position: relative; display: inline-block; }
.profile-btn { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 12px; border-radius: var(--radius-md); transition: background var(--anim-base); border: none; background: transparent; }
.profile-btn:hover { background: var(--primary-light); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--anim-slow), transform var(--anim-slow), visibility var(--anim-slow);
  z-index: 2000;
}
.dropdown-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.dropdown-header strong { display: block; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 2px; }
.dropdown-header span { display: block; font-size: 0.8rem; color: var(--text-muted); }
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  font-size: 0.88rem; color: var(--text-dark);
  text-decoration: none; cursor: pointer;
  transition: background var(--anim-base);
}
body.dark-mode .dropdown-item { color: var(--text-main); }
.dropdown-item:hover { background: var(--primary-light); }
.dropdown-item svg, .dropdown-item i { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-item:hover svg, .dropdown-item:hover i { color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ═══════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.stat-icon-wrapper {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon-wrapper i { width: 20px; height: 20px; }
.stat-icon-wrapper.blue   { background: var(--info-bg); color: var(--info); }
.stat-icon-wrapper.amber  { background: var(--warning-bg); color: var(--warning); }
.stat-icon-wrapper.teal   { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.stat-icon-wrapper.emerald{ background: var(--success-bg); color: var(--success); }
.stat-icon-wrapper.red    { background: var(--danger-bg); color: var(--danger); }
.stat-icon-wrapper.green  { background: var(--success-bg); color: var(--success); }

.stat-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.stat-label { font-size: var(--font-2xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.stat-subtext { font-size: var(--font-2xs); color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* ═══════════════════════════════════════════
   CCTV GRID (Admin)
   ═══════════════════════════════════════════ */
.cctv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cctv-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.cctv-card-alert {
  border-color: var(--danger);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.08);
}
.cctv-media-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0a0a0a;
  overflow: hidden;
}
.cctv-feed-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--anim-slow);
}
.cctv-card:hover .cctv-feed-img { transform: scale(1.04); }
.cctv-overlay-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}
.cctv-static-screen {
  position: absolute; inset: 0;
  background: #111;
  display: flex; align-items: center; justify-content: center;
}
.static-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 800;
  color: #334455; letter-spacing: 2px;
}
.rec-dot { width: 6px; height: 6px; background: #ef4444; border-radius: 50%; animation: blinkRec 1s step-end infinite; }
@keyframes blinkRec { 50% { opacity: 0; } }
@keyframes macSpin { to { transform: rotate(360deg); } }
/* ── Newly-connected CCTV green glow ── */
.cctv-card-new {
  animation: cctvSpawn 2s ease-out forwards;
}
@keyframes cctvSpawn {
  0%   { box-shadow: 0 0 0 3px rgba(34,197,94,0.5), 0 0 30px rgba(34,197,94,0.25), 0 0 80px rgba(34,197,94,0.08); }
  60%  { box-shadow: 0 0 0 10px rgba(34,197,94,0.08), 0 0 50px rgba(34,197,94,0.04), 0 0 140px rgba(34,197,94,0.01); }
  100% { box-shadow: var(--card-shadow); }
}

.cctv-info-body { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.cctv-status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 800; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--success); }
.status-alert { color: var(--danger); }
.status-offline { color: var(--text-muted); }
.status-connecting { color: var(--warning); }

/* ═══════════════════════════════════════════
   BADGES & TAGS
   ═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.badge-high      { background: #fef2f2; color: var(--danger); }
.badge-medium    { background: var(--warning-bg); color: var(--warning); }
.badge-low       { background: #fefce8; color: #ca8a04; }
.badge-none      { background: #F1F5F9; color: #64748B; border: 1px solid rgba(100,116,139,0.12); }
.badge-blue      { background: #DBEAFE; color: #1D4ED8; }
.badge-green     { background: #D1FAE5; color: #065F46; }
.badge-gray      { background: var(--surface-soft); color: var(--text-main); }
.badge-orange    { background: #FEF3C7; color: #92400E; }
.badge-red       { background: var(--error-bg); color: var(--error); }
.badge-white     { background: rgba(255,255,255,0.85); color: var(--text-dark); }

.status-badge { display: inline-flex; font-size: 0.7rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; }
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.15); }
.status-valid   { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.15); }
.status-ignored { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.15); }
.status-waiting { background: rgba(245, 158, 11, 0.08); color: var(--warning); }
.status-assigned { background: rgba(37, 99, 235, 0.08); color: var(--primary); }
.status-onsite { background: rgba(6, 182, 212, 0.08); color: var(--info); }
.status-resolved { background: rgba(16, 185, 129, 0.08); color: var(--success); }

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 24px;
  text-align: center;
}
.empty-state i { width: 48px; height: 48px; opacity: 0.35; }
.empty-state h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin: 0; }
.empty-state p { font-size: 0.88rem; color: var(--text-muted); max-width: 360px; line-height: 1.5; margin: 0; }

/* ═══════════════════════════════════════════
   DETAIL PAGE
   ═══════════════════════════════════════════ */
.lifecycle-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: white;
  background: var(--text-muted);
  position: relative; z-index: 5;
}
.lifecycle-dot.completed { background: var(--success); }
.lifecycle-dot.active {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.lifecycle-line {
  position: absolute; left: 10px; top: 22px;
  width: 2px; height: 38px;
  background: var(--border);
  z-index: 1;
}
.lifecycle-line.completed { background: var(--success); }

/* ── Toggle Switch ── */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc; transition: var(--anim-slow); border-radius: 20px;
}
.slider:before {
  position: absolute; content: "";
  height: 16px; width: 16px;
  left: 2px; bottom: 2px;
  background: white; transition: var(--anim-slow); border-radius: 50%;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(16px); }
.caption-label { font-size: 0.7rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  z-index: 900;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: overlayIn var(--anim-base);
}
.modal-overlay.active { display: flex; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  animation: modalIn var(--anim-slow);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.15rem; font-weight: 700; color: var(--text-dark); }
.close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: var(--surface-soft);
  color: var(--text-muted); cursor: pointer;
  transition: background var(--anim-base);
}
.close-btn:hover { background: var(--border); color: var(--text-dark); }
.close-btn svg, .close-btn i { width: 16px; height: 16px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Toast ── */
.toast-container {
  position: fixed;
  top: 72px; right: 16px;
  z-index: 9999;
  display: flex; flex-direction: column;
  gap: 8px;
}
@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; top: 64px; }
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 500;
  color: #1E293B;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  transform: translateX(110%);
  transition: transform 0.5s cubic-bezier(0.32,0.72,0,1);
}
.toast.visible { transform: translateX(0); }
body.dark-mode .toast {
  color: #E2E8F0;
  background: rgba(30,41,59,0.92);
  border-color: rgba(148,163,184,0.1);
}
@media (max-width: 480px) {
  .toast { min-width: 0; width: 100%; }
}
.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon, .toast.danger .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--primary); }
.toast svg, .toast i { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════
   TABLE / CARD TABLE
   ═══════════════════════════════════════════ */
.card-table-section {
  display: flex; flex-direction: column; gap: 0;
  overflow: hidden; padding: 0;
  margin-bottom: var(--space-24);
}
.card-header-clean {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.card-table { display: flex; flex-direction: column; }
.card-table-row {
  display: grid;
  grid-template-columns: 80px 1fr 130px 110px auto;
  align-items: center; gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--anim-fast);
}
.card-table-row:hover { background: rgba(37,99,235,0.01); }
.card-table-row:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .card-table-row {
    grid-template-columns: 66px 1fr;
    gap: 12px; padding: 14px 16px;
  }
  .card-table-row .col-badge,
  .card-table-row .col-actions { grid-column: 1 / -1; }
}

.mini-thumbnail {
  width: 66px; height: 50px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-soft);
  position: relative;
}
.mini-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.col-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-location-title {
  font-weight: 700; font-size: 0.9rem;
  color: var(--text-dark);
  display: flex; align-items: center; gap: 6px;
}
.row-location-title i { width: 15px; height: 15px; }
.row-timestamp-subtitle { font-size: 0.76rem; color: var(--text-muted); }

.col-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pagination-container {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.page-info { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); }

/* Stats + Chart layout (Laporan page) */
.stats-chart-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-20);
  margin-bottom: var(--space-20);
}
@media (max-width: 900px) {
  .stats-chart-layout { grid-template-columns: 1fr; }
}

.stats-vertical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.validation-chart-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-20) !important;
}
.chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: var(--space-16);
  height: 200px;
  padding: var(--space-16) 0 0;
}
.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.chart-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}
.chart-bar {
  width: 100%;
  max-width: 48px;
  border-radius: 6px 6px 0 0;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 4px;
}
.chart-bar.pending { background: linear-gradient(180deg, #F59E0B, #D97706); }
.chart-bar.valid { background: linear-gradient(180deg, #10B981, #059669); }
.chart-bar.ignored { background: linear-gradient(180deg, #EF4444, #DC2626); }
.chart-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════ */
.filters-section {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.7);
}
body.dark-mode .filters-section {
  background: rgba(30,41,59,0.45);
  border-color: rgba(148,163,184,0.15);
}
body.dark-mode .cctv-header-clean,
body.dark-mode .section-row-header,
body.dark-mode .page-header {
  background: rgba(30,41,59,0.45) !important;
  border-color: rgba(148,163,184,0.15) !important;
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
@media (max-width: 480px) {
  .filters-grid { grid-template-columns: 1fr 1fr; }
}
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-label { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }

/* Compact single-row filter layout */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.filter-item-compact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.filter-item-compact .filter-control {
  height: 34px;
  font-size: 0.78rem;
}
.filter-item-compact select.filter-control {
  min-width: 110px;
}
.filter-item-compact input[type="date"] {
  min-width: 120px;
}
.search-item-compact { flex: 1; min-width: 100px; }
.search-item-compact .filter-control { min-width: 80px; }
.filter-my-reports-compact { flex-shrink: 0; }
.reset-btn-compact { flex-shrink: 0; }
.toggle-switch-inline { height: 34px; align-items: center !important; padding: 0 4px; }
@media (max-width: 768px) {
  .filters-row { gap: 6px; }
  .filter-item-compact { min-width: calc(50% - 6px); }
  .filter-item-compact select.filter-control { min-width: 0; width: 100%; }
  .search-item-compact { flex: none; width: 100%; }
  .reset-btn-compact { width: 100%; }
  .reset-btn-compact button { width: 100%; justify-content: center; }
}

.filter-control {
  width: 100%; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding: 0 12px;
  outline: none;
  transition: border-color var(--anim-base), box-shadow var(--anim-base);
}
.filter-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input-wrapper { position: relative; display: flex; }
.search-input-wrapper .filter-control { padding-right: 36px; width: 100%; }
.btn-search-icon {
  position: absolute; right: 2px; top: 2px; bottom: 2px;
  width: 34px; border: none; background: none;
  cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}

.filter-actions-row {
  display: flex; justify-content: flex-end;
  border-top: 1px solid var(--border); padding-top: 14px;
}

/* ── Global Headings & Proportional Scale System ────────────── */
h1, .h1, .page-title, .hero-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: var(--font-2xl);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}
h2, .h2, .page-header-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: var(--font-xl);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-dark);
  letter-spacing: -0.015em;
}
h3, .h3, .section-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: var(--font-lg);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
h4, .h4, .card-subtitle, .sub-section-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: var(--font-xs);
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.section-header {
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: var(--font-xl);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

/* ── Upload Container ───────────────────────── */
.upload-container-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 140px);
  animation: pageEnter 0.3s ease forwards;
}
@media (max-width: 900px) {
  .upload-container-layout { grid-template-columns: 1fr; }
}

.upload-card { padding: var(--space-28); display: flex; flex-direction: column; flex: 1; }
.history-card { padding: var(--space-24); }

.drag-drop-zone {
  min-height: 200px;
  flex: 1;
  border: 2px dashed rgba(37,99,235,0.2);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--anim-base);
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.drag-drop-zone:hover {
  border-color: var(--primary);
  background: rgba(37,99,235,0.02);
}
body.dark-mode .drag-drop-zone {
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
body.dark-mode .drag-drop-zone:hover {
  border-color: var(--primary);
  background: rgba(96,165,250,0.06);
}

/* ── History Item ──────────────────────────── */
.history-item {
  padding: 14px;
  display: flex; gap: 14px;
  align-items: center; cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--anim-base);
}
.history-item:hover {
  background: rgba(37,99,235,0.02);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.history-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: #000; flex-shrink: 0;
}
.history-info { flex: 1; min-width: 0; }
.history-location {
  font-weight: 700; font-size: 0.88rem;
  color: var(--text-dark);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-date { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.history-badges { display: flex; gap: 6px; margin-top: 6px; }

/* ── Sidebar ───────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100vh; position: fixed;
  top: 0; left: 0; z-index: 200;
  transition: transform var(--anim-slow);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 1.3rem; color: var(--primary);
}
.sidebar-logo svg, .sidebar-logo i { width: 26px; height: 26px; }
.nav-menu {
  flex: 1; padding: 14px 10px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500; font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--anim-base);
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.nav-item svg, .nav-item i { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

/* 320px — Small phones */
@media (max-width: 380px) {
  :root { --nav-height: 56px; }
  .header-floating { padding: 6px 10px; }
  .brand-logo { font-size: 1rem; }
  .brand-logo i { width: 18px; height: 18px; }
  .viewport-viewport { padding: 12px 10px 30px; }
  .glass-card { padding: 18px; border-radius: var(--radius-lg); }
  .btn { padding: 8px 14px; font-size: 0.82rem; }
  .btn-primary { padding: 10px 18px; }
  .input-control { padding: 10px 14px; font-size: 0.88rem; }
  .cctv-grid { grid-template-columns: 1fr; }
  .upload-container-layout { grid-template-columns: 1fr; }
}

/* 360px — Standard small phone */
@media (min-width: 381px) and (max-width: 480px) {
  .header-floating { padding: 6px 12px; }
  .viewport-viewport { padding: 14px 12px 30px; }
  .glass-card { padding: 20px; }
  .cctv-grid { grid-template-columns: 1fr; }
  .upload-container-layout { grid-template-columns: 1fr; }
}

/* 412px — Large phone / small phablet */
@media (max-width: 480px) {
  .nav-tabs-capsule {
    position: static; transform: none;
    flex: 1;
    display: flex; justify-content: center;
    min-width: 0;
  }
  .nav-tabs { gap: 1px; }
  .nav-tab .nav-text { display: none; }
  .nav-tab { padding: 6px 10px; font-size: 0; gap: 0; }
  .nav-tab i { width: 16px; height: 16px; }
  .profile-trigger-btn .profile-avatar { width: 28px; height: 28px; font-size: 0.7rem; }
  .header-right-group .btn-icon-toggle { width: 30px; height: 30px; }
  .header-right-group .btn-icon-toggle i { width: 15px; height: 15px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filters-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .notification-dropdown { width: calc(100vw - 24px); right: -60px; }
  .empty-state { padding: 40px 16px; }
  .history-card { display: none; }
  .modal { padding: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn-primary { width: 100%; }
}

/* 768px — Tablet */
@media (min-width: 481px) and (max-width: 900px) {
  .header-floating { padding: 8px 16px; }
  .nav-tabs-capsule {
    position: static; transform: none;
    flex: 1;
    display: flex; justify-content: center;
    min-width: 0;
  }
  .nav-tab .nav-text { display: none; }
  .nav-tab { padding: 6px 10px; font-size: 0; gap: 0; }
  .nav-tab i { width: 16px; height: 16px; }
  .viewport-viewport { padding: 16px 16px 32px; }
  .cctv-grid { grid-template-columns: repeat(2, 1fr); }
  .upload-container-layout { grid-template-columns: 1fr; }
}

/* 1200px+ Desktop */
@media (min-width: 901px) {
  .layout-container { padding-top: 0; }
}

/* ═══════════════════════════════════════════
   SHIMMER / SKELETON
   ═══════════════════════════════════════════ */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.shimmer-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.shimmer-line {
  height: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0.03) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}
body.dark-mode .shimmer-line {
  background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
}
.shimmer-line.title { width: 40%; height: 18px; }
.shimmer-line.subtitle { width: 60%; height: 10px; }

/* ═══════════════════════════════════════════
   CITIZEN HOME PAGE (Beranda)
   ═══════════════════════════════════════════ */
.citizen-home-container {
  animation: pageEnter 0.3s ease forwards;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Utility ────────────────────────────────── */
.d-flex            { display: flex; }
.align-center      { align-items: center; }
.justify-between   { justify-content: space-between; }
.gap-8             { gap: 8px; }
.gap-12            { gap: 12px; }
.gap-16            { gap: 16px; }
.mt-16             { margin-top: 16px; }
.mt-24             { margin-top: 24px; }
.mb-16             { margin-bottom: 16px; }
.mb-24             { margin-bottom: 24px; }
.text-muted        { color: var(--text-muted); }
.text-center       { text-align: center; }
.text-danger       { color: var(--error) !important; }
.text-success      { color: var(--success) !important; }
.text-primary      { color: var(--primary) !important; }
.text-sm           { font-size: 0.82rem; }
.text-xs           { font-size: 0.72rem; }
.font-bold         { font-weight: 700; }
.font-black        { font-weight: 800; }
.w-full            { width: 100%; }

/* ═══════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════ */
.profile-page-container {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pageEnter 0.3s ease forwards;
  padding: 8px 0;
}
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
}
.profile-avatar-large {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37,99,235,0.2);
}
.profile-header-info { flex: 1; min-width: 0; }
.profile-header-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 2px;
}
.profile-username {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.profile-info-card,
.profile-security-card {
  padding: 28px 32px;
}
.profile-info-card h3,
.profile-security-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.profile-info-card h3 i,
.profile-security-card h3 i { width: 18px; height: 18px; color: var(--primary); }
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.profile-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-info-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.profile-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}
.profile-info-value.mono {
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.profile-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.profile-back-link {
  text-align: center;
  padding: 8px 0;
}
@media (max-width: 480px) {
  .profile-header-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .profile-info-grid { grid-template-columns: 1fr; }
  .profile-info-card, .profile-security-card { padding: 20px; }
  .profile-security-actions { flex-direction: column; }
  .profile-security-actions button { width: 100%; }
}

/* ═══════════════════════════════════════════
   LANDING PAGE V4 — (see end of file)
   ═══════════════════════════════════════════ */

/* ── General Section ── */
.landing-section {
  padding: 80px 0 40px;
  animation-delay: 0.1s;
}
@media (max-width: 480px) {
  .landing-section { padding: 48px 0 24px; }
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(37,99,235,0.06);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0F172A;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
body.dark-mode .section-title { color: #F1F5F9; }
.section-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748B;
  margin: 0 0 36px;
  max-width: 560px;
}
body.dark-mode .section-desc { color: #94A3B8; }
.section-row-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: gap 0.2s ease;
}
.section-link:hover { gap: 10px; }
.section-link i { width: 16px; height: 16px; }

/* ── About Grid ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.25s ease;
}
body.dark-mode .about-card {
  background: rgba(30,41,59,0.55);
  border-color: rgba(148,163,184,0.06);
}
.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.04);
}
.about-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.about-icon i { width: 22px; height: 22px; }
.about-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px;
}
body.dark-mode .about-card h3 { color: #F1F5F9; }
.about-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}
body.dark-mode .about-card p { color: #94A3B8; }

/* ── Steps ── */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 768px) {
  .steps-grid { flex-direction: column; gap: 16px; }
  .step-connector { transform: rotate(90deg); }
}
.step-card {
  flex: 1;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}
body.dark-mode .step-card {
  background: rgba(30,41,59,0.55);
  border-color: rgba(148,163,184,0.06);
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.04); }
.step-number {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37,99,235,0.06);
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.step-icon i { width: 24px; height: 24px; }
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
}
body.dark-mode .step-card h3 { color: #F1F5F9; }
.step-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #64748B;
  margin: 0;
}
body.dark-mode .step-card p { color: #94A3B8; }
.step-connector {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563EB;
  flex-shrink: 0;
}
.step-connector i { width: 20px; height: 20px; }

/* ── Benefits ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
.benefit-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
}
body.dark-mode .benefit-card {
  background: rgba(30,41,59,0.55);
  border-color: rgba(148,163,184,0.06);
}
.benefit-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.04); }
.benefit-icon { width: 28px; height: 28px; margin-bottom: 12px; }
.benefit-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
}
body.dark-mode .benefit-card h3 { color: #F1F5F9; }
.benefit-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748B;
  margin: 0;
}
body.dark-mode .benefit-card p { color: #94A3B8; }

/* ── Reports Grid ── */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .reports-grid { grid-template-columns: 1fr; }
}
.report-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: cardFadeIn 0.4s ease forwards;
  animation-fill-mode: both;
}
body.dark-mode .report-card {
  background: rgba(30,41,59,0.55);
  border-color: rgba(148,163,184,0.06);
}
.report-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.04); }
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.report-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #E2E8F0;
}
.report-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.report-card:hover .report-card-img img { transform: scale(1.05); }
.report-card-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.report-card-body { padding: 14px 16px; }
.report-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dark-mode .report-card-location { color: #F1F5F9; }
.report-card-location i { width: 14px; height: 14px; color: #2563EB; flex-shrink: 0; }
.report-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 600;
}
.report-card-conf {
  color: #2563EB;
  font-weight: 700;
}
.reports-skeleton {
  display: contents;
}
.skeleton-card {
  height: 200px;
  background: rgba(0,0,0,0.03);
  border-radius: 16px;
  animation: shimmer 1.5s ease-in-out infinite;
}
body.dark-mode .skeleton-card {
  background: rgba(255,255,255,0.03);
}
.reports-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #94A3B8;
}
.reports-empty i { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.4; }
.reports-empty p { font-size: 0.9rem; margin: 0; }

/* ── News Grid ── */
/* ─── NEWS CAROUSEL ─── */
.news-carousel-arrows {
  display: flex;
  gap: 8px;
}
.news-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}
.news-arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}
.news-carousel-wrap {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
  cursor: grab;
}
.news-carousel-wrap::-webkit-scrollbar { display: none; }
.news-carousel-track {
  display: flex;
  gap: 16px;
}
.news-card {
  flex: 0 0 280px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}
body.dark-mode .news-card {
  background: rgba(30,41,59,0.55);
  border-color: rgba(148,163,184,0.06);
}
.news-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.04); }
.news-img {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card .news-img i { width: 40px; height: 40px; color: rgba(255,255,255,0.7); }
.news-body { padding: 16px 20px; }
.news-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #2563EB;
  background: rgba(37,99,235,0.06);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.news-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.3;
}
body.dark-mode .news-body h3 { color: #F1F5F9; }
.news-body p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748B;
  margin: 0;
}
body.dark-mode .news-body p { color: #94A3B8; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 680px;
}
.faq-item {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
body.dark-mode .faq-item {
  background: rgba(30,41,59,0.55);
  border-color: rgba(148,163,184,0.06);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
body.dark-mode .faq-question { color: #F1F5F9; }
.faq-question:hover { color: #2563EB; }
.faq-chevron {
  width: 18px;
  height: 18px;
  color: #94A3B8;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 16px;
}
.faq-answer p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #64748B;
  margin: 0;
}
body.dark-mode .faq-answer p { color: #94A3B8; }

/* ── CTA Section ── */
.landing-cta {
  padding: 32px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.92), rgba(79,70,229,0.92));
  border-radius: 24px;
}
body.dark-mode .landing-cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.85), rgba(79,70,229,0.85));
}
@media (max-width: 480px) {
  .landing-cta { padding: 32px 0; }
}
.cta-content {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}
body.dark-mode .cta-content h2 { color: #FFFFFF; }
.cta-content p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 400px;
}
body.dark-mode .cta-content p { color: rgba(255,255,255,0.9); }

/* ── Footer ── */
.landing-footer {
  padding: 40px 0 16px;
  text-align: center;
  border-top: 1px solid rgba(0,0,0,0.04);
}
body.dark-mode .landing-footer { border-color: rgba(148,163,184,0.06); }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 8px;
}
body.dark-mode .footer-brand { color: #60A5FA; }
.footer-brand i { width: 20px; height: 20px; color: #2563EB; }
.footer-desc {
  font-size: 0.82rem;
  color: #94A3B8;
  margin: 0 0 16px;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #94A3B8;
  flex-wrap: wrap;
}
.footer-links a {
  color: #64748B;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover { color: #2563EB; }
.footer-dot { opacity: 0.4; }

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Chart Statistics ───────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
  margin-top: var(--space-24);
}
@media (max-width: 768px) {
  .chart-grid { grid-template-columns: 1fr; }
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 120px;
  flex-shrink: 0;
}
.chart-bar-track {
  flex: 1;
  height: 12px;
  background: rgba(0,0,0,0.04);
  border-radius: 6px;
  overflow: hidden;
}
.chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chart-bar-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 30px;
  text-align: right;
}

/* ── Profile Page ────────────────────────────────────────── */
.profile-page-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}
.profile-header-card {
  display: flex;
  align-items: center;
  gap: var(--space-24);
  padding: var(--space-28);
}
.profile-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #4F46E5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  flex-shrink: 0;
}
.profile-header-info h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
}
.profile-username {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0 8px;
}
.profile-badges {
  display: flex;
  gap: 8px;
}
.profile-info-card,
.profile-security-card,
.profile-sessions-card {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.profile-info-card h3,
.profile-security-card h3,
.profile-sessions-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
}
@media (max-width: 520px) {
  .profile-info-grid { grid-template-columns: 1fr; }
}
.profile-info-item {
  background: rgba(0,0,0,0.02);
  padding: var(--space-12) var(--space-14);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-info-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.profile-info-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-info-value.mono {
  font-family: monospace;
  font-size: 0.78rem;
}
.profile-security-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--anim-base);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--anim-base);
}
.btn-danger:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
}

/* ── Modal Overlay ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 9999;
  padding: 20px;
}
.modal-container {
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-20);
}
.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: all var(--anim-fast);
}
.btn-close-modal:hover {
  background: var(--surface-soft);
  color: var(--text-primary);
}
.modal-body {
  padding: 0;
}
.form-group {
  margin-bottom: var(--space-16);
}
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal-actions-row {
  display: flex;
  gap: 12px;
}
.session-logout-btn:hover {
  background: var(--danger-bg) !important;
}

/* ── Spacing Fix: Landing Page ────────────────────────────── */
/* (V4 handles landing spacing at end of file — removed overrides) */

/* ── Dark mode adjustments ───────────────────────────────── */
body.dark-mode .chart-bar-track {
  background: rgba(255,255,255,0.06);
}
body.dark-mode .profile-info-item {
  background: rgba(255,255,255,0.03);
}
body.dark-mode .btn-outline {
  border-color: rgba(255,255,255,0.1);
  color: var(--text-main);
}
body.dark-mode .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ═══════════════════════════════════════════
   DASHBOARD ADMIN SPACING — PREMIUM LAYOUT
   ═══════════════════════════════════════════ */

/* ── Command Center HUD ── */
.cc-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--space-14) var(--space-20);
  gap: var(--space-8) var(--space-16);
  margin-bottom: var(--space-20);
  min-height: 44px;
}
.cc-hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cc-hud-metrics {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}
.cc-hud-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}

/* ── Control Panel ── */
.control-panel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: var(--space-14) var(--space-24);
  gap: var(--space-12);
  margin-bottom: var(--space-24) !important;
}
.control-left {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}
.control-right {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  position: relative;
}

/* ── Primary: Incident Queue + Operational Summary ── */
.command-center-primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-20);
  margin-bottom: var(--space-20);
}
.incident-queue-panel {
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}
.operational-summary-panel {
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* ═══ DASHBOARD V2 REDESIGN — Premium KPI Strip + Chart/Ops row ═══ */
.dash-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-14);
  margin-bottom: var(--space-20);
}
@media (max-width: 900px) {
  .dash-kpi-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .dash-kpi-strip { grid-template-columns: 1fr; }
}
.dash-kpi {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.dash-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-kpi-icon i { width: 24px; height: 24px; }
.dash-kpi-icon.yellow { background: rgba(245,158,11,0.12); color: #F59E0B; }
.dash-kpi-icon.blue { background: rgba(59,130,246,0.12); color: #3B82F6; }
.dash-kpi-icon.green { background: rgba(16,185,129,0.12); color: #10B981; }
.dash-kpi-icon.red { background: rgba(239,68,68,0.12); color: #EF4444; }
.dash-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.dash-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-kpi-value {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}
.dash-chart-ops-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-20);
  margin-bottom: var(--space-20);
}
@media (max-width: 900px) {
  .dash-chart-ops-row { grid-template-columns: 1fr; }
}
.dash-chart-panel {
  padding: var(--space-24);
  display: flex;
  flex-direction: column;
}
.dash-ops-panel {
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* ── Incident Queue Item ── */
.incident-queue-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-10) var(--space-12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 0;
}
.incident-queue-item:hover {
  background: rgba(47, 107, 255, 0.04);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ── Operational Summary Metrics ── */
.ops-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
}
.ops-metric-card {
  background: rgba(0,0,0,0.02);
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-md);
  text-align: center;
}
.ops-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.ops-metric-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Secondary: CCTV ── */
.command-center-secondary {
  margin-bottom: var(--space-24);
}
.cctv-section-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}
.cctv-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}
.cctv-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Incident Filters ── */
.incident-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.incident-filter-input {
  padding: 8px 12px;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,0.5);
  color: var(--text-primary);
  outline: none;
  min-width: 120px;
  flex: 1;
}
.incident-filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
@media (max-width: 600px) {
  .incident-filter-row { flex-direction: column; }
}
.incident-filter-input {
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  padding: 0 10px;
  outline: none;
  transition: border-color var(--anim-base);
}
.incident-filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.ops-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin: var(--space-16) 0;
}
.ops-metric-card {
  background: rgba(0,0,0,0.02);
  padding: var(--space-12);
  border-radius: var(--radius-md);
  text-align: center;
}
.ops-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.ops-metric-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.officer-live-panel {
  margin-top: var(--space-12);
}
@media (max-width: 480px) {
  .ops-metric-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── YOLO BOUNDING BOX OVERLAY ─── */
.yolo-box{position:absolute;border:2px solid;border-radius:4px;pointer-events:none;z-index:10;box-sizing:border-box;transition:opacity .2s;display:flex;align-items:flex-start;justify-content:flex-end;flex-direction:column}
.yolo-box-label{position:absolute;bottom:100%;left:-1px;font-size:10px;font-weight:800;color:#fff;padding:1px 6px;border-radius:3px 3px 0 0;white-space:nowrap;line-height:1.4;letter-spacing:.2px}
.yolo-person{border-color:#EF4444}.yolo-person .yolo-box-label{background:#EF4444}
.yolo-trash{border-color:#F59E0B}.yolo-trash .yolo-box-label{background:#F59E0B}
.yolo-boat{border-color:#3B82F6}.yolo-boat .yolo-box-label{background:#3B82F6}
.yolo-default{border-color:#6B7280}.yolo-default .yolo-box-label{background:#6B7280}

/* ─── NEWS MARQUEE (infinite scroll + swipe) ─── */
.news-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 2%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2%, black 100%);
  padding: 12px 0;
}
.news-marquee-row {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: grab;
}
.news-marquee-row.dragging {
  cursor: grabbing;
}
.news-marquee-row.paused {
  animation-play-state: paused;
}
.landing-section#news {
  padding-bottom: 12px;
}
.landing-section#news .section-desc {
  text-align: center;
  max-width: none;
}
.landing-section#news .news-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.news-mcard {
  flex: 0 0 300px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.news-mcard:active {
  cursor: grabbing;
}
.news-mcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.12);
}
body.dark-mode .news-mcard {
  background: rgba(30,41,59,0.65);
  border-color: rgba(148,163,184,0.06);
}
body.dark-mode .news-mcard:hover {
  border-color: rgba(96,165,250,0.15);
  box-shadow: 0 16px 48px rgba(96,165,250,0.06);
}
.news-mcard-img {
  width: 100%;
  height: 130px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.news-mcard-img img {
  -webkit-user-drag: none;
  user-select: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.news-mcard-img i {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,0.7);
}
.news-mcard-body {
  padding: 16px 20px;
}
.news-mcard-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: #2563EB;
  background: rgba(37,99,235,0.06);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
body.dark-mode .news-mcard-tag {
  color: #60A5FA;
  background: rgba(96,165,250,0.08);
}
.news-mcard-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.dark-mode .news-mcard-body h3 {
  color: #E2E8F0;
}
.news-mcard-body p {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
body.dark-mode .news-mcard-body p {
  color: #94A3B8;
}
@media (max-width: 640px) {
  .news-mcard {
    flex: 0 0 260px;
  }
  .news-mcard-img {
    height: 100px;
  }
  .news-mcard-body {
    padding: 12px 16px;
  }
  .news-marquee {
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 100%);
  }
}

/* ==========================================================================
   ENHANCED LIVE CCTV GRID & VMS COMMAND CENTER (FULLSCREEN & 4-CHANNEL MODE)
   ========================================================================== */

/* Main CCTV Grid Layout (4 columns on desktop) */
.cctv-section-compact .cctv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1280px) {
  .cctv-section-compact .cctv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cctv-section-compact .cctv-grid {
    grid-template-columns: 1fr;
  }
}

.cctv-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.cctv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(47, 107, 255, 0.3);
}

.cctv-media-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090d16;
  overflow: hidden;
}

.cctv-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover Overlay with 6 circular action buttons (Image 4 design) */
.cctv-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.cctv-media-container:hover .cctv-hover-overlay {
  opacity: 1;
  pointer-events: auto;
}

.hover-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hover-circle-btn:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.12);
  border-color: #ffffff;
}

.hover-circle-btn.btn-danger-hover:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.hover-circle-btn svg, .hover-circle-btn i {
  width: 16px;
  height: 16px;
}

/* Bounding box styling inside feed */
.yolo-preview-box {
  position: absolute;
  border: 2px solid #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 10;
}

.yolo-preview-box.yolo-person {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.yolo-preview-box.yolo-trash {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
}

.yolo-preview-box.yolo-boat {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
}

.yolo-preview-box.yolo-default {
  border-color: #64748b;
  background: rgba(100, 116, 139, 0.15);
}

.yolo-preview-label {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 15;
}

.yolo-person .yolo-preview-label {
  background: #2563eb;
}

.yolo-trash .yolo-preview-label {
  background: #dc2626;
}

.yolo-boat .yolo-preview-label {
  background: #0891b2;
}

.yolo-default .yolo-preview-label {
  background: #64748b;
}

/* Fullscreen VMS Command Center Container (Images 2 & 3) */
.vms-fullscreen-view {
  position: fixed;
  inset: 0;
  background: #080c14;
  z-index: 99999;
  display: none;
  flex-direction: column;
  color: #ffffff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.vms-fullscreen-view.vms-visible { display: flex; }

/* VMS Header Bar */
.vms-fs-header {
  height: 52px;
  background: #0b1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.vms-fs-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vms-fs-btn-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.vms-fs-btn-back:hover {
  background: rgba(255, 255, 255, 0.18);
}

.vms-fs-cam-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-transform: uppercase;
}

.vms-fs-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vms-fs-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vms-fs-icon-btn:hover, .vms-fs-icon-btn.active {
  background: rgba(47, 107, 255, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* VMS Body Split Layout */
.vms-fs-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #04070d;
}

/* Left Video Workspace */
.vms-fs-video-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.vms-fs-screen-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 44px);
  background: #000000;
}

/* 4-Channel 2x2 Grid View (Image 2 style) */
.vms-fs-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 100%;
  background: #000000;
}

.vms-fs-grid-cell {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0a0e17;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.15s ease;
}

.vms-fs-grid-cell:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.vms-fs-grid-cell img, .vms-fs-grid-cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vms-fs-cell-tag {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}

/* Single Channel View (Image 3 style) */
.vms-fs-single-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  position: relative;
}

.vms-fs-single-container img, .vms-fs-single-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.vms-fs-timestamp-overlay {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

/* Video Player Overlay Bottom Bar */
.vms-fs-video-bar {
  height: 44px;
  background: #0a0e17;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.vms-fs-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.vms-fs-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vms-bar-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.vms-bar-btn:hover, .vms-bar-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.vms-bar-btn svg, .vms-bar-btn i {
  width: 16px;
  height: 16px;
}

/* Right VMS Sidebar Panel (Width 300px) */
.vms-fs-sidebar {
  width: 300px;
  background: #0b1120;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #ffffff;
  font-size: 0.8rem;
  overflow-y: auto;
  flex-shrink: 0;
}

.vms-fs-sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vms-fs-sidebar-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Operator Actions Grid */
.vms-fs-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vms-action-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vms-action-tile:hover {
  background: rgba(47, 107, 255, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.vms-action-tile.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.vms-action-tile svg, .vms-action-tile i {
  width: 15px;
  height: 15px;
}

/* Status Specs Table */
.vms-status-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.vms-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.vms-status-label {
  color: #94a3b8;
  font-weight: 600;
}

.vms-status-value {
  color: #ffffff;
  font-weight: 700;
}

.vms-status-value.accent-cyan {
  color: #38bdf8;
}

.vms-status-value.accent-green {
  color: #22c55e;
}

.vms-status-value.accent-red {
  color: #ef4444;
}

.vms-status-value.accent-yellow {
  color: #f59e0b;
}

/* Event Logs List */
.vms-event-logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.vms-event-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vms-event-time {
  color: #94a3b8;
  font-size: 0.65rem;
}

.vms-event-desc {
  color: #e2e8f0;
  font-weight: 600;
}

/* ===== CCTV MONITORING PAGE ===== */
.cctv-grid-section {
  min-height: 300px;
}

.cctv-preview {
  transition: filter 0.3s ease;
}

.cctv-card:hover .cctv-preview {
  filter: brightness(1.1);
}

.detection-log-entry:first-child {
  animation: slideIn 0.3s ease;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.health-badge {
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Scrollbar for detection sidebar */
#detection-log-list::-webkit-scrollbar {
  width: 4px;
}
#detection-log-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
/* ── macOS-Style Modal / Alert ─────────────────────────── */
.macos-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.2s ease-out;
}
.macos-modal {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 0 0 0.5px rgba(0,0,0,0.04);
  padding: 28px 32px 24px;
  width: 340px;
  max-width: 90vw;
  text-align: center;
  animation: modalSlideUp 0.25s cubic-bezier(0.22,1,0.36,1);
}
.macos-modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.macos-modal-icon.danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.macos-modal-icon.warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.macos-modal-icon.success { background: rgba(16,185,129,0.12); color: var(--success); }
.macos-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1d1d1f;
  margin: 0 0 6px;
}
.macos-modal-desc {
  font-size: 0.82rem;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0 0 24px;
}
.macos-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.macos-modal-actions .btn {
  flex: 1;
  height: 38px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 16px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.macos-modal-actions .btn-primary-sheet {
  background: var(--primary);
  color: #fff;
}
.macos-modal-actions .btn-primary-sheet:hover { background: var(--primary-hover); }
.macos-modal-actions .btn-danger-sheet {
  background: var(--danger);
  color: #fff;
}
.macos-modal-actions .btn-danger-sheet:hover { background: #dc2626; }
.macos-modal-actions .btn-secondary-sheet {
  background: rgba(0,0,0,0.05);
  color: #1d1d1f;
}
.macos-modal-actions .btn-secondary-sheet:hover { background: rgba(0,0,0,0.1); }

/* MacOS-style textarea inside modal */
.macos-modal textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  background: rgba(0,0,0,0.02);
  resize: vertical;
  min-height: 60px;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.15s;
  box-sizing: border-box;
}
.macos-modal textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Delete button in list — glass style */
.btn-delete-report-list {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239,68,68,0.08);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-delete-report-list:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
}
.btn-delete-report-list:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Verify buttons in list */
.btn-quick-verify {
  font-size: 0.7rem !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}

#detection-log-list::-webkit-scrollbar-track {
  background: transparent;
}

/* CCTV Discovery Scanner HUD Styles */
.scanner-hud-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.scanner-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.scanner-steps-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scanner-steps-list li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.75rem;
  color: var(--text-secondary);
  list-style-type: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.scanner-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.scanner-step-icon.success {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}
.scanner-step-icon.failed {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}
.scanner-step-icon.spinner {
  border: 2px solid rgba(37,99,235,0.1);
  border-left-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  background: transparent;
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* ═══════════════════════════════════════════
   LANDING PAGE V2 STYLES
   ═══════════════════════════════════════════ */
/* Textured Backgrounds — reduced opacity, becomes subtle accent */
body {
  background-color: #F6F8FC;
}
body.dark-mode {
  background-color: #0B1220;
}

/* Mesh Gradient Overlay */
.mesh-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
              radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.1) 0px, transparent 50%);
}
body.dark-mode .mesh-overlay {
  background: radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
              radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%);
}


/* Section Styles - Full width, alternating Glass/Solid */
.landing-v2-wrapper {
  max-width: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

.section-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  padding: 80px 60px;
  margin: 0;
  box-shadow: none;
}
body.dark-mode .section-glass {
  background: rgba(17, 24, 39, 0.4);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.section-solid {
  background: transparent;
  padding: 80px 60px;
  margin: 0;
}

/* Section separator - thin line between sections */
.section-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06), transparent);
  margin: 0;
}
body.dark-mode .section-separator {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
}

/* Typography */
.v2-headline {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1E293B 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.dark-mode .v2-headline {
  background: linear-gradient(135deg, #FFFFFF 0%, #93BBFC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.v2-subhead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-item {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode .bento-item {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.05);
}
.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}
.bento-col-2 { grid-column: span 2; }
.bento-row-2 { grid-row: span 2; }

/* Timeline Horizontal */
.workflow-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.workflow-step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.workflow-step:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.1);
}
.workflow-label {
  position: absolute;
  top: 70px;
  text-align: center;
  width: 120px;
  left: -30px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Testimonials */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testi-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.dark-mode .testi-card {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.05);
}
.testi-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Premium CTA */
.premium-cta {
  background: linear-gradient(135deg, rgba(37,99,235,0.8) 0%, rgba(79,70,229,0.8) 100%);
  backdrop-filter: blur(10px);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(37,99,235,0.3);
}
.premium-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(37,99,235,0.4);
  color: white;
}
.secondary-cta {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}
body.dark-mode .secondary-cta {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}
.secondary-cta:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-col-2, .bento-row-2 { grid-column: span 1; grid-row: span 1; }
  .workflow-timeline { flex-direction: column; gap: 40px; }
  .workflow-timeline::before { width: 2px; height: 100%; top: 0; left: 50%; right: auto; }
  .workflow-label { position: static; margin-top: 10px; width: auto; }
  .testi-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .nav-menu { display: none; }
}

/* ===== Profile: TikTok single-page layout ===== */
.profile-tiktok {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.profile-sidebar {
  position: sticky;
  top: 90px;
  padding: 20px;
  border-radius: var(--radius-lg);
}
.profile-sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.profile-sidebar-user .profile-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--text-primary); overflow: hidden; flex-shrink: 0;
}
.profile-sidebar-meta { display: flex; flex-direction: column; min-width: 0; }
.profile-sidebar-meta strong { font-size: 0.9rem; color: var(--text-primary); }
.profile-sidebar-meta span { font-size: 0.74rem; color: var(--text-secondary); }
.profile-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.profile-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.85rem; font-weight: 600; transition: all .15s ease;
  cursor: pointer;
}
.profile-menu-item i { width: 17px; height: 17px; }
.profile-menu-item:hover { background: rgba(37,99,235,0.06); color: var(--primary); }
.profile-menu-item.active { background: var(--primary); color: #fff; }
.profile-main-content {
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0;
}
.profile-main-content .glass-card { scroll-margin-top: 90px; }
.language-option.active,
body.dark-mode .language-option.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.theme-option.active,
body.dark-mode .theme-option.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Settings: fullscreen layout ===== */
.settings-fullscreen {
  max-width: none;
  min-height: 100vh;
  padding: 24px;
  gap: 24px;
  align-items: start;
}
.settings-fullscreen .profile-sidebar {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 48px);
}
.settings-fullscreen .profile-sidebar .btn-back-route {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Search bar in navbar (settings page) */
.nav-search { flex: 1; max-width: 420px; margin: 0 auto; }
.nav-search .settings-search { width: 100%; }
.settings-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text-muted);
}
.settings-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.settings-search input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: inherit;
}
@media (max-width: 860px) {
  .settings-fullscreen { padding: 16px; }
  .settings-fullscreen .profile-sidebar { min-height: auto; }
}
@media (max-width: 860px) {
  .profile-tiktok { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; top: auto; }
  .profile-sidebar-nav { flex-direction: row; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════
   LANDING PAGE V5 — SAAS PREMIUM REDESIGN
   ══════════════════════════════════════════ */

/* 0. FULL-BLEED ESCAPE — landing escapes the 1200px viewport container */
.landing-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  overflow-x: hidden;
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}
main { display: flex; flex-direction: column; }
main > .landing-wrapper { flex: 1; }
/* Landing = full-bleed page: kill the viewport's bottom padding so the
   footer is the last element, no gap below it. */
.viewport-viewport:has(.landing-wrapper) { padding-bottom: 0; }
.landing-wrapper > section,
.landing-wrapper > footer,
.landing-wrapper > .landing-cta {
  width: 100%;
  position: relative;
}

/* 1. TEXTURED BACKGROUND — now on body background (see base body rule) */
/* (removed body::before fixed overlay — it painted over the footer gap) */

/* Global text contrast WCAG AA */
:root {
  --text-heading: #0F172A;
  --text-body: #334155;
  --text-caption: #64748B;
  --text-muted: #64748B;
}
body.dark-mode {
  --text-heading: #F8FAFC;
  --text-body: #E2E8F0;
  --text-caption: #CBD5E1;
  --text-muted: #CBD5E1;
}

/* 2. CONTENT SHELL — capped width, centered */
.landing-wrapper .hero-inner,
.landing-wrapper .section-header,
.landing-wrapper .about-grid,
.landing-wrapper .timeline,
.landing-wrapper .benefits-grid,
.landing-wrapper .reports-grid,
.landing-wrapper .chart-grid,
.landing-wrapper .news-marquee,
.landing-wrapper .cta-content,
.landing-wrapper .footer-content {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}
@media (max-width: 1440px) {
  .landing-wrapper .hero-inner,
  .landing-wrapper .section-header,
  .landing-wrapper .about-grid,
  .landing-wrapper .timeline,
  .landing-wrapper .benefits-grid,
  .landing-wrapper .reports-grid,
  .landing-wrapper .chart-grid,
  .landing-wrapper .news-marquee,
  .landing-wrapper .cta-content,
  .landing-wrapper .footer-content {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 1024px) {
  .landing-wrapper .hero-inner,
  .landing-wrapper .section-header,
  .landing-wrapper .about-grid,
  .landing-wrapper .timeline,
  .landing-wrapper .benefits-grid,
  .landing-wrapper .reports-grid,
  .landing-wrapper .chart-grid,
  .landing-wrapper .news-marquee,
  .landing-wrapper .cta-content,
  .landing-wrapper .footer-content {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 640px) {
  .landing-wrapper .hero-inner,
  .landing-wrapper .section-header,
  .landing-wrapper .about-grid,
  .landing-wrapper .timeline,
  .landing-wrapper .benefits-grid,
  .landing-wrapper .reports-grid,
  .landing-wrapper .chart-grid,
  .landing-wrapper .news-marquee,
  .landing-wrapper .cta-content,
  .landing-wrapper .footer-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 3. ALTERNATING LAYERS — thin ↔ glass */
.landing-layer-thin {
  background: rgba(255, 255, 255, 0.06) !important;
}
body.dark-mode .landing-layer-thin {
  background: rgba(11, 17, 32, 0.25) !important;
}
.landing-layer-glass {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,0.3);
}
body.dark-mode .landing-layer-glass {
  background: rgba(17, 24, 39, 0.7) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-top-color: rgba(255,255,255,0.06);
}

/* 4. SECTION SPACING — compact, ~40% tighter than V4 */
.landing-section {
  padding: 48px 0 32px;
}
@media (max-width: 900px) {
  .landing-section { padding: 40px 0 24px; }
}
.landing-cta { padding: 48px 0; }
/* Push footer to the very bottom of the flex column */
.landing-wrapper > footer { margin-top: auto; }
.landing-footer { padding: 0 0 24px; margin-bottom: 0; margin-top: auto; }
.landing-footer.landing-layer-glass { padding: 28px 0 24px; }

/* Hero & first/last sections touch viewport edges */
.landing-hero {
  padding-top: 0;
}
.landing-wrapper > section:first-of-type {
  margin-top: 0;
}
.landing-wrapper > footer {
  margin-bottom: 0;
}

/* 5. HERO — premium, dynamic */
.landing-hero {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: flex-start;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  width: 100%;
  padding-top: 16px;
}
@media (max-width: 900px) {
  .landing-hero {
    min-height: auto;
    padding: 0;
  }
  .hero-inner { padding-top: 12px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-trust-logos { justify-content: center; }
}
.hero-main { max-width: 620px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-heading);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,0.12);
}
body.dark-mode .hero-badge {
  background: rgba(30,41,59,0.7);
  border-color: rgba(59,130,246,0.15);
  color: var(--text-heading);
}
.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  color: var(--text-heading);
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 28px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .hero-actions { justify-content: center; }
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
  transition: all 0.2s ease;
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.4);
}
.hero-btn-primary i { width: 20px; height: 20px; }
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(37,99,235,0.15);
  color: #2563EB;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hero-btn-secondary:hover {
  background: #fff;
  border-color: rgba(37,99,235,0.3);
  transform: translateY(-2px);
}
body.dark-mode .hero-btn-secondary {
  background: rgba(30,41,59,0.7);
  border-color: rgba(148,163,184,0.15);
  color: #60A5FA;
}
.hero-btn-secondary i { width: 20px; height: 20px; }

/* Trust chips (compact) */
.hero-trust-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hero-trust-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-body);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 5px 11px;
  border-radius: 100px;
  white-space: nowrap;
}
body.dark-mode .trust-chip {
  background: rgba(30,41,59,0.6);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-body);
}
.trust-chip i { width: 13px; height: 13px; color: #2563EB; }

/* Hero illustration */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-illustration {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}
.illustration-bg {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.14), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: bgPulse 6s ease-in-out infinite;
}
@keyframes bgPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}
.illustration-device { position: relative; z-index: 2; }
.device-frame {
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 32px 80px -12px rgba(15,23,42,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.device-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.1), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(16,185,129,0.08), transparent 50%);
  pointer-events: none;
}
.device-camera {
  width: 100%;
  height: 12px;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.device-camera::after {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3B82F6, #1E3A8A);
  box-shadow:
    0 0 0 2px rgba(59,130,246,0.2),
    0 0 20px rgba(59,130,246,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2);
  animation: cameraPulse 2s ease-in-out infinite;
}
@keyframes cameraPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(59,130,246,0.2), 0 0 20px rgba(59,130,246,0.3), inset 0 -2px 4px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 0 0 4px rgba(59,130,246,0.1), 0 0 30px rgba(59,130,246,0.5), inset 0 -2px 4px rgba(0,0,0,0.2); }
}
.device-screen {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
}
.screen-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.detect-box {
  position: absolute;
  border: 2px solid rgba(59,130,246,0.9);
  background: rgba(59,130,246,0.1);
  border-radius: 8px;
  animation: detectPulse 2.5s ease-in-out infinite;
}
.detect-box span {
  position: absolute;
  top: -20px;
  left: -2px;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: #2563EB;
  padding: 2px 8px;
  border-radius: 4px 4px 4px 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}
.detect-box.box-1 { top: 18%; left: 10%; width: 38%; height: 32%; }
.detect-box.box-2 { top: 52%; left: 50%; width: 34%; height: 26%; animation-delay: -0.8s; }
.detect-box.box-3 { top: 70%; left: 18%; width: 28%; height: 20%; animation-delay: -1.6s; }
@keyframes detectPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(59,130,246,0); }
}
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.95), transparent);
  animation: scanMove 3s ease-in-out infinite;
  z-index: 3;
}
@keyframes scanMove {
  0%, 100% { top: 10%; }
  50% { top: 88%; }
}
.device-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.05);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981, 0 0 16px #10B981;
  animation: statusBlink 1.5s ease-in-out infinite;
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.device-status span {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}
.illustration-accent {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  animation: accentFloat 8s ease-in-out infinite;
}
.accent-1 {
  width: 160px; height: 160px;
  top: -40px; right: -40px;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent);
}
.accent-2 {
  width: 130px; height: 130px;
  bottom: -30px; left: -30px;
  background: radial-gradient(circle, rgba(16,185,129,0.12), transparent);
  animation-delay: -2.5s;
}
.accent-3 {
  width: 90px; height: 90px;
  top: 40%; right: 10%;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent);
  animation-delay: -5s;
}
@keyframes accentFloat {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.4; }
  25% { transform: translate(15px,-15px) scale(1.1); opacity: 0.6; }
  50% { transform: translate(-10px,20px) scale(0.95); opacity: 0.5; }
  75% { transform: translate(10px,-10px) scale(1.05); opacity: 0.7; }
}
@media (max-width: 900px) {
  .illustration-accent { display: none; }
}

/* 6. FEATURE MARQUEE — moving strip section */
.landing-marquee-section {
  width: 100%;
  overflow: hidden;
  padding: 24px 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 12s linear infinite;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  opacity: 0.8;
}
.marquee-item i { width: 20px; height: 20px; color: #2563EB; }
@media (max-width: 640px) {
  .marquee-item { font-size: 0.88rem; }
  .marquee-track { gap: 32px; }
}

/* 7. SECTION HEADER — compact, supports center/left */
.landing-wrapper .section-header {
  text-align: left;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .landing-wrapper .section-header { text-align: center; }
}
.landing-wrapper .section-header.is-centered {
  text-align: center;
  display: block;
}
.landing-wrapper .section-header.is-centered .section-desc {
  margin-left: auto;
  margin-right: auto;
}
.landing-wrapper .section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #2563EB;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(37,99,235,0.1);
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 12px;
}
body.dark-mode .landing-wrapper .section-label {
  background: rgba(59,130,246,0.15);
  color: #60A5FA;
}
.landing-wrapper .section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  display: block;
}
.landing-wrapper .section-desc {
  font-size: clamp(0.92rem, 1.4vw, 1rem);
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
  max-width: 560px;
}
.landing-wrapper .section-row-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .landing-wrapper .section-row-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s;
}
.section-link:hover { gap: 12px; }
.section-link i { width: 17px; height: 17px; }

/* 8. CHART CARDS — compact */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; }
}
.chart-card {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.04);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
}
body.dark-mode .chart-card {
  background: rgba(30,41,59,0.6);
  border-color: rgba(255,255,255,0.04);
}
.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.chart-card-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0;
}
.chart-period {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chart-bar-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.chart-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  min-width: 100px;
}
.chart-bar-track {
  height: 9px;
  background: rgba(0,0,0,0.05);
  border-radius: 5px;
  overflow: hidden;
}
body.dark-mode .chart-bar-track {
  background: rgba(255,255,255,0.06);
}
.chart-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.chart-bar-fill#chart-bar-valid { background: linear-gradient(90deg, #10B981, #059669); }
.chart-bar-fill#chart-bar-pending { background: linear-gradient(90deg, #F59E0B, #D97706); }
.chart-bar-fill#chart-bar-ignored { background: linear-gradient(90deg, #EF4444, #DC2626); }
.chart-bar-fill#chart-bar-total { background: linear-gradient(90deg, #2563EB, #4F46E5); }
.chart-bar-fill#chart-bar-ai-high { background: linear-gradient(90deg, #EF4444, #DC2626); }
.chart-bar-fill#chart-bar-ai-mid { background: linear-gradient(90deg, #F59E0B, #D97706); }
.chart-bar-fill#chart-bar-ai-low { background: linear-gradient(90deg, #3B82F6, #2563EB); }
.chart-bar-fill#chart-bar-ai-none { background: linear-gradient(90deg, #94A3B8, #64748B); }
.chart-bar-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading);
  min-width: 52px;
  text-align: right;
}

/* 9. ABOUT CARDS — compact */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) and (min-width: 901px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.about-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}
body.dark-mode .about-card {
  background: rgba(30,41,59,0.5);
  border-color: rgba(255,255,255,0.04);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: rgba(37,99,235,0.1);
}
.about-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.about-icon i { width: 23px; height: 23px; }
.about-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 8px;
}
.about-card p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}

/* 10. STEPS — horizontal workflow cards */
#how-it-works .steps-grid {
  max-width: 1100px;
  margin: 0 auto;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 47px;
  height: 2px;
  background: rgba(37,99,235,0.55);
  border-radius: 1px;
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 14px 18px;
  border-radius: var(--radius-card);
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(37,99,235,0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: timelineReveal 0.6s ease forwards;
  transition: all 0.2s;
}
body.dark-mode .step-card {
  background: rgba(30,41,59,0.45);
  border-color: rgba(148,163,184,0.1);
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 8px 24px rgba(37,99,235,0.12);
}
.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:nth-child(4) { animation-delay: 0.4s; }
.step-card:nth-child(5) { animation-delay: 0.5s; }
@keyframes timelineReveal {
  to { opacity: 1; transform: translateY(0); }
}
.step-node {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35), 0 0 0 4px rgba(37,99,235,0.15);
  position: relative;
}
.step-node::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid rgba(37,99,235,0.2);
  animation: nodePulse 3s ease-in-out infinite;
}
.step-card:nth-child(2n) .step-node::after { animation-delay: -1.5s; }
.step-card:nth-child(3n) .step-node::after { animation-delay: -0.7s; }
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 0; }
}
.step-node i { width: 24px; height: 24px; }
.step-num {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(37,99,235,0.45);
  margin: 0 0 4px;
}
.step-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 6px;
  text-align: center;
  justify-content: center;
}
.step-card p {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
  min-height: 84px;
}
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .step-node { width: 48px; height: 48px; border-radius: 15px; }
  .step-node i { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* 11. BENEFITS — compact 4-up */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s;
}
body.dark-mode .benefit-card {
  background: rgba(30,41,59,0.5);
  border-color: rgba(255,255,255,0.04);
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
  border-color: rgba(37,99,235,0.1);
}
.benefit-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}
.benefit-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 5px;
}
.benefit-card p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-body);
  margin: 0;
}

/* 12. REPORTS — compact cards */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .reports-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) and (min-width: 901px) { .reports-grid { grid-template-columns: repeat(2, 1fr); } }
.skeleton-card {
  height: 140px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
body.dark-mode .skeleton-card {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.04) 75%);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Compact report cards (override .report-card from dashboard) */
.landing-wrapper .report-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
}
.landing-wrapper .report-card-img {
  aspect-ratio: 16/8;
}
.landing-wrapper .report-card-body { padding: 10px 14px; }
.landing-wrapper .report-card-location {
  font-size: 0.82rem;
  margin-bottom: 3px;
}
.landing-wrapper .report-card-meta {
  font-size: 0.68rem;
}
.landing-wrapper .report-card-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  bottom: 6px;
  right: 6px;
}
.reports-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}
.reports-empty i { width: 34px; height: 34px; margin-bottom: 10px; opacity: 0.4; }
.reports-empty p { font-size: 0.88rem; margin: 0; }

/* 12b. AI CONFIDENCE SPLIT — stacked share bar + legend */
.conf-split-bar {
  display: flex;
  height: 14px;
  border-radius: 100px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  max-width: 720px;
  margin: 0 auto 28px;
}
body.dark-mode .conf-split-bar { background: rgba(255,255,255,0.08); }
.conf-split-bar span { height: 100%; display: block; transition: width 0.8s ease; }
.conf-split-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 640px) { .conf-split-legend { grid-template-columns: repeat(2, 1fr); } }
.conf-split-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.04);
}
body.dark-mode .conf-split-item { background: rgba(30,41,59,0.5); border-color: rgba(255,255,255,0.06); }
.conf-split-item .dot { width: 10px; height: 10px; border-radius: 50%; }
.conf-split-item strong { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text-heading); }
.conf-split-item span { font-size: 0.8rem; font-weight: 600; color: var(--text-body); }
.conf-split-item small { font-size: 0.72rem; color: var(--text-muted); }

/* 12c. IMPACT STRIP — stat band */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 900px) { .impact-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .impact-strip { grid-template-columns: 1fr; } }
.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 24px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.25s;
}
body.dark-mode .impact-item { background: rgba(30,41,59,0.4); border-color: rgba(255,255,255,0.05); }
.impact-item:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.impact-item i { width: 26px; height: 26px; color: #2563EB; margin-bottom: 6px; }
.impact-item strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.1;
}
.impact-item span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

/* 13. NEWS MARQUEE — full-bleed, enters right edge, exits left edge */
.landing-wrapper .news-marquee {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: 8px;
}
.news-marquee-row {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
.news-marquee-row:hover { animation-play-state: paused; }

/* 14. CTA — compact */
.cta-content {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.cta-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.cta-content p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 22px;
}

/* 15. FOOTER — with partner cloud, tight to previous section */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-caption);
  max-width: 440px;
  margin: 0;
}
.footer-partners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.footer-partners-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.footer-partner-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  padding: 14px 24px;
  border-radius: 20px;
  position: relative;
  /* Reverse vignette: cerah tipis di tengah supaya logo tetap keliatan di dark mode */
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,255,255,0.14), rgba(255,255,255,0.02) 70%);
}
.footer-partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.05);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s;
}
.footer-partner-chip:hover {
  border-color: rgba(37,99,235,0.25);
  background: rgba(255,255,255,0.85);
  transform: translateY(-1px);
}
body.dark-mode .footer-partner-chip {
  background: rgba(30,41,59,0.5);
  border-color: rgba(255,255,255,0.06);
  color: var(--text-body);
}
.footer-partner-chip img {
  height: 18px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  /* Reverse vignette: light glow behind logo so it stays visible on any bg */
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.85)) drop-shadow(0 0 2px rgba(255,255,255,0.9));
}
body.dark-mode .footer-partner-chip img {
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.9)) drop-shadow(0 0 3px rgba(0,0,0,0.95));
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.footer-links a {
  color: var(--text-caption);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.footer-links a:hover { color: #2563EB; }
body.dark-mode .footer-links a:hover { color: #60A5FA; }
.footer-dot { display: none; }
@media (min-width: 640px) {
  .footer-dot { display: inline; }
}

/* 16. SCROLL ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}
