/* ============================================================
   EthicsUI — Custom Design System for EthicsComputer
   Version: 2.0 | Light Theme Premium SaaS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-white:       #FFFFFF;
  --bg-soft:        #FAFAFA;
  --bg-light:       #F5F7FA;
  --bg-border:      #EEF2F7;

  /* Text */
  --text-dark:      #0F172A;
  --text-secondary: #1E293B;
  --text-muted:     #475569;
  --text-light:     #64748B;
  --text-placeholder:#94A3B8;

  /* Brand */
  --blue:           #2563EB;
  --blue-light:     #3B82F6;
  --blue-dark:      #1D4ED8;
  --cyan:           #0EA5E9;
  --blue-cyber:     #06B6D4;

  /* Accents */
  --purple:         #7C3AED;
  --emerald:        #10B981;
  --orange:         #F59E0B;
  --red:            #EF4444;
  --pink:           #EC4899;

  /* Gradients */
  --gradient-blue:  linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  --gradient-purple:linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --gradient-hero:  linear-gradient(135deg, #EFF6FF 0%, #F0F9FF 50%, #F5F3FF 100%);
  --gradient-card:  linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.9) 100%);

  /* Shadows */
  --shadow-xs:      0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:      0 2px 8px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:      0 4px 24px rgba(15,23,42,0.08), 0 2px 8px rgba(15,23,42,0.04);
  --shadow-lg:      0 8px 40px rgba(15,23,42,0.12), 0 4px 16px rgba(15,23,42,0.06);
  --shadow-xl:      0 20px 60px rgba(15,23,42,0.15), 0 8px 24px rgba(15,23,42,0.08);
  --shadow-blue:    0 8px 32px rgba(37,99,235,0.25);
  --shadow-hover:   0 12px 48px rgba(15,23,42,0.14);

  /* Border Radius */
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-2xl:     36px;
  --radius-full:    9999px;

  /* Spacing */
  --space-section: 96px;

  /* Typography */
  --font-primary:  'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-secondary:'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition:     all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-modal-bg:   300;
  --z-modal:      400;
  --z-toast:      500;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { color: var(--text-muted); line-height: 1.75; }

a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-dark); }

/* ─── Layout Helpers ────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section-sm {
  padding: 64px 0;
}

/* ─── Section Headers ───────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.08);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37,99,235,0.15);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-title span {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.ec-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ec-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(37,99,235,0.12);
}

.ec-card-glass {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.ec-card-flat {
  background: var(--bg-soft);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(37,99,235,0.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1.5px solid rgba(15,23,42,0.12);
}

.btn-secondary:hover {
  background: var(--bg-light);
  border-color: rgba(37,99,235,0.3);
  color: var(--blue);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(37,99,235,0.2);
}

.btn-ghost:hover {
  background: rgba(37,99,235,0.06);
  border-color: var(--blue);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
}

.btn-sm { font-size: 0.875rem; padding: 8px 18px; border-radius: var(--radius-sm); }
.btn-lg { font-size: 1.0625rem; padding: 16px 32px; border-radius: var(--radius-md); }
.btn-xl { font-size: 1.125rem; padding: 18px 40px; border-radius: var(--radius-lg); }

/* ─── Inputs / Forms ────────────────────────────────────────── */
.ec-input, .ec-select, .ec-textarea {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid rgba(15,23,42,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
}

.ec-input:focus, .ec-select:focus, .ec-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
  background: var(--bg-white);
}

.ec-input::placeholder { color: var(--text-placeholder); }

.ec-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-group { margin-bottom: 20px; }

.ec-input-icon { position: relative; }
.ec-input-icon input { padding-left: 44px; }
.ec-input-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.ec-textarea { resize: vertical; min-height: 120px; }

/* Input states */
.ec-input.error { border-color: var(--red); }
.ec-input.success { border-color: var(--emerald); }
.field-error { font-size: 0.8125rem; color: var(--red); margin-top: 4px; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 38px; /* sits below 38px announce bar */
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  height: 70px;
  display: flex;
  align-items: center;
  transition: top 0.3s ease, box-shadow var(--transition-slow), background var(--transition-slow);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.98);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}

.navbar-logo img { height: 38px; width: auto; }
.navbar-logo span { color: var(--blue); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--blue);
  background: rgba(37,99,235,0.06);
}

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: var(--transition);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-dropdown-item:hover {
  background: rgba(37,99,235,0.06);
  color: var(--blue);
}

/* Mobile menu */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}

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

/* Hero Background Elements */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
}

.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2563EB 0%, transparent 70%);
  top: -100px; right: -100px;
}

.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
  bottom: -50px; left: -50px;
}

.hero-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
  top: 40%; right: 30%;
}

/* Hero Grid Pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ─── Service Cards ─────────────────────────────────────────── */
.service-card {
  background: var(--bg-white);
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-blue);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: transparent;
}

.service-card:hover::before { opacity: 0.03; }

.service-card > * { position: relative; z-index: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(37,99,235,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-blue);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Stats ─────────────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 32px 24px;
}

.stat-number {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number .gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ─── KPI Dashboard Cards ───────────────────────────────────── */
.kpi-card {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.kpi-icon.blue   { background: rgba(37,99,235,0.1); color: var(--blue); }
.kpi-icon.green  { background: rgba(16,185,129,0.1); color: var(--emerald); }
.kpi-icon.orange { background: rgba(245,158,11,0.1); color: var(--orange); }
.kpi-icon.purple { background: rgba(124,58,237,0.1); color: var(--purple); }
.kpi-icon.red    { background: rgba(239,68,68,0.1); color: var(--red); }
.kpi-icon.cyan   { background: rgba(6,182,212,0.1); color: var(--blue-cyber); }

.kpi-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 8px;
}

.kpi-change.up { color: var(--emerald); }
.kpi-change.down { color: var(--red); }

/* ─── Dashboard Sidebar ─────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg-white);
  border-right: 1px solid var(--bg-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  overflow-y: auto;
  transition: var(--transition-slow);
}

.sidebar.collapsed { width: 72px; min-width: 72px; }

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  overflow: hidden;
}

.sidebar-logo img { width: 32px; height: 32px; flex-shrink: 0; }

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar-group { margin-bottom: 24px; }

.sidebar-group-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 8px;
  margin-bottom: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(37,99,235,0.06);
  color: var(--blue);
}

.sidebar-link.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.sidebar-link .link-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-link .badge {
  margin-left: auto;
  background: rgba(37,99,235,0.1);
  color: var(--blue);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sidebar-link.active .badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--bg-border);
}

/* ─── Dashboard Topbar ───────────────────────────────────────── */
.topbar {
  height: 70px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky) - 10;
}

.dashboard-main {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-light);
  transition: var(--transition-slow);
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-main.expanded { margin-left: 72px; }

.page-content {
  padding: 28px;
}

/* ─── Tables ────────────────────────────────────────────────── */
.ec-table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-border);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.ec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ec-table thead {
  background: var(--bg-light);
  border-bottom: 1px solid var(--bg-border);
}

.ec-table thead th {
  padding: 14px 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  white-space: nowrap;
}

.ec-table tbody tr {
  border-bottom: 1px solid rgba(15,23,42,0.04);
  transition: var(--transition);
}

.ec-table tbody tr:last-child { border-bottom: none; }

.ec-table tbody tr:hover {
  background: rgba(37,99,235,0.025);
}

.ec-table tbody td {
  padding: 14px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

/* ─── Badges / Tags ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.badge-blue    { background: rgba(37,99,235,0.1);  color: var(--blue); }
.badge-green   { background: rgba(16,185,129,0.1); color: var(--emerald); }
.badge-orange  { background: rgba(245,158,11,0.1); color: var(--orange); }
.badge-red     { background: rgba(239,68,68,0.1);  color: var(--red); }
.badge-purple  { background: rgba(124,58,237,0.1); color: var(--purple); }
.badge-gray    { background: rgba(100,116,139,0.1);color: var(--text-light); }
.badge-cyan    { background: rgba(6,182,212,0.1);  color: var(--blue-cyber); }

/* ─── Modals ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition);
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1000px; }

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

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}

.modal-close:hover {
  background: rgba(239,68,68,0.1);
  color: var(--red);
}

.modal-body { padding: 24px 28px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid var(--bg-border);
}

/* ─── Toasts ────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 320px;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left-color: var(--emerald); }
.toast.error   { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--orange); }
.toast.info    { border-left-color: var(--blue); }

.toast-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 1px; }
.toast.success .toast-icon { color: var(--emerald); }
.toast.error   .toast-icon { color: var(--red); }
.toast.warning .toast-icon { color: var(--orange); }
.toast.info    .toast-icon { color: var(--blue); }

.toast-content { flex: 1; }
.toast-title { font-size: 0.875rem; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.toast-message { font-size: 0.8125rem; color: var(--text-muted); }

.toast-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 1rem;
  padding: 2px; line-height: 1;
  transition: var(--transition);
  flex-shrink: 0;
}

.toast-close:hover { color: var(--text-dark); }

/* ─── Skeleton Loading ──────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-border) 25%, var(--bg-light) 50%, var(--bg-border) 75%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text    { height: 14px; border-radius: 4px; margin-bottom: 8px; }
.skeleton-title   { height: 24px; border-radius: 6px; margin-bottom: 12px; }
.skeleton-avatar  { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-card    { height: 200px; border-radius: var(--radius-xl); }

/* ─── Alerts ────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 16px;
}

.alert-info    { background: rgba(37,99,235,0.06);  border-color: rgba(37,99,235,0.2);  color: var(--blue); }
.alert-success { background: rgba(16,185,129,0.06); border-color: rgba(16,185,129,0.2); color: var(--emerald); }
.alert-warning { background: rgba(245,158,11,0.06); border-color: rgba(245,158,11,0.2); color: var(--orange); }
.alert-error   { background: rgba(239,68,68,0.06);  border-color: rgba(239,68,68,0.2);  color: var(--red); }

/* ─── Tabs ──────────────────────────────────────────────────── */
.ec-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-light);
  padding: 4px;
  border-radius: var(--radius-md);
  width: fit-content;
}

.ec-tab {
  padding: 8px 18px;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
}

.ec-tab.active {
  background: var(--bg-white);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.ec-tab:hover:not(.active) {
  color: var(--text-secondary);
}

/* ─── Dropdowns ─────────────────────────────────────────────── */
.dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: var(--transition);
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(37,99,235,0.06);
  color: var(--blue);
}

.dropdown-item.danger:hover {
  background: rgba(239,68,68,0.06);
  color: var(--red);
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--bg-border);
  margin: 4px 0;
}

/* ─── Progress Bars ─────────────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--bg-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-blue);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* ─── Loaders ───────────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--bg-border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── Page Loader (Premium) ──────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: #050d1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.pl-exit {
  opacity: 0;
  visibility: hidden;
}

/* ── Ambient floating particles ── */
.pl-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pl-p {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.9) 0%, rgba(14,165,233,0.4) 60%, transparent 100%);
  animation: pl-particle-float var(--dr, 4s) var(--d, 0s) ease-in-out infinite alternate;
  filter: blur(0.5px);
}

@keyframes pl-particle-float {
  0%   { transform: translateY(0)   scale(1);   opacity: 0.3; }
  50%  { opacity: 0.8; }
  100% { transform: translateY(-28px) scale(1.3); opacity: 0.15; }
}

/* ── Glow rings ── */
.pl-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pl-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59,130,246,0.15);
  animation: pl-ring-pulse 3s ease-in-out infinite;
}

.pl-ring-1 { width: 200px; height: 200px; animation-delay: 0s; }
.pl-ring-2 { width: 320px; height: 320px; animation-delay: 0.6s; border-color: rgba(14,165,233,0.1); }
.pl-ring-3 { width: 460px; height: 460px; animation-delay: 1.2s; border-color: rgba(124,58,237,0.08); }

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

/* ── Core content column ── */
.pl-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: pl-core-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pl-core-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Shield SVG icon ── */
.pl-icon-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.pl-shield {
  width: 68px;
  height: 76px;
  position: relative;
  z-index: 1;
}

.pl-shield-body {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  fill: rgba(37,99,235,0.08);
  animation: pl-draw-shield 1.1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.pl-shield-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: pl-draw-check 0.5s 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pl-draw-shield {
  to { stroke-dashoffset: 0; }
}

@keyframes pl-draw-check {
  to { stroke-dashoffset: 0; }
}

.pl-icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 70%);
  animation: pl-glow-pulse 2s 1.2s ease-in-out infinite;
  filter: blur(8px);
}

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

/* ── Brand wordmark ── */
.pl-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0;
  animation: pl-fade-up 0.5s 0.9s ease forwards;
}

.pl-brand-e { color: #fff; }
.pl-brand-c {
  background: linear-gradient(90deg, #3B82F6 0%, #0EA5E9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pl-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.6);
  margin: 0 0 32px;
  opacity: 0;
  animation: pl-fade-up 0.5s 1.05s ease forwards;
}

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

/* ── Progress bar ── */
.pl-progress-track {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: visible;
  position: relative;
  opacity: 0;
  animation: pl-fade-up 0.4s 1.2s ease forwards;
}

.pl-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563EB 0%, #0EA5E9 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.pl-progress-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 10px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(37,99,235,0.5) 0%, rgba(14,165,233,0.5) 100%);
  filter: blur(6px);
  border-radius: 99px;
  opacity: 0.7;
}

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.breadcrumb-item a { color: var(--text-light); }
.breadcrumb-item a:hover { color: var(--blue); }
.breadcrumb-item.active { color: var(--text-secondary); font-weight: 500; }
.breadcrumb-sep { color: var(--text-placeholder); }

/* ─── Pagination ────────────────────────────────────────────── */
.btn-page, .btn-page-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--bg-border);
  background: var(--bg-white);
  color: var(--text-muted);
  text-decoration: none;
}

.btn-page:hover { border-color: var(--blue); color: var(--blue); }
.btn-page-active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ─── Floating CTA ──────────────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-dropdown);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1.25rem;
  color: #fff;
}

.floating-btn:hover { transform: scale(1.1) translateY(-2px); box-shadow: var(--shadow-xl); }

.floating-btn.whatsapp { background: #25D366; }
.floating-btn.chat { background: var(--gradient-blue); }

/* ─── Feature/Value Lists ───────────────────────────────────── */
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.feature-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─── Testimonials ──────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-stars { color: #FBBF24; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }

.testimonial-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-border);
}

.testimonial-name { font-weight: 700; color: var(--text-dark); font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-light); }

/* ─── FAQ Accordion ─────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--bg-border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--blue); }

.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 1px solid var(--bg-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--text-light);
}

.faq-item.open .faq-icon {
  background: rgba(37,99,235,0.1);
  color: var(--blue);
  border-color: rgba(37,99,235,0.2);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ─── Pricing Cards ─────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-white);
  border: 2px solid var(--bg-border);
  border-radius: var(--radius-2xl);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 8px 48px rgba(37,99,235,0.15);
  transform: scale(1.02);
}

.pricing-card.featured .pricing-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-plan { font-size: 0.9rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.pricing-price { font-size: 3rem; font-weight: 900; color: var(--text-dark); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 1.125rem; font-weight: 500; color: var(--text-muted); }
.pricing-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-feature { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.pricing-feature svg { color: var(--emerald); flex-shrink: 0; }

/* ─── Search Bar ────────────────────────────────────────────── */
.ec-search {
  position: relative;
  max-width: 320px;
}

.ec-search input {
  width: 100%;
  background: var(--bg-light);
  border: 1.5px solid var(--bg-border);
  border-radius: var(--radius-full);
  padding: 9px 16px 9px 40px;
  font-size: 0.875rem;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}

.ec-search input:focus {
  background: var(--bg-white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.ec-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 0.9rem;
}

/* ─── Charts Container ──────────────────────────────────────── */
.chart-container {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.chart-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); }

/* ─── Empty State ───────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.empty-title { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.empty-desc { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 24px; }

/* ─── User Avatar ───────────────────────────────────────────── */
.user-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-border);
  flex-shrink: 0;
}

.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 40px; height: 40px; }
.avatar-lg { width: 52px; height: 52px; }
.avatar-xl { width: 72px; height: 72px; }

.avatar-group { display: flex; }
.avatar-group .user-avatar { border: 2px solid var(--bg-white); margin-left: -8px; }
.avatar-group .user-avatar:first-child { margin-left: 0; }

/* ─── Page Header ───────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); letter-spacing: -0.02em; }
.page-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Status Indicator ──────────────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active  { background: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.status-dot.inactive{ background: var(--text-placeholder); }
.status-dot.pending { background: var(--orange); box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.status-dot.danger  { background: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,0.2); }

/* ─── Dividers ──────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--bg-border);
  margin: 24px 0;
}

/* ─── Footer (Website) ──────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
}

.footer-top { padding: 80px 0 48px; }

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.footer-brand span { color: var(--cyan); }

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}

.footer-link:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
}

.social-links { display: flex; gap: 10px; }

.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ─── Chat Widget ───────────────────────────────────────────── */
.chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  display: flex;
  gap: 10px;
  max-width: 75%;
}

.chat-bubble.own {
  flex-direction: row-reverse;
  margin-left: auto;
}

.chat-bubble-content {
  background: var(--bg-light);
  border: 1px solid var(--bg-border);
  border-radius: 20px 20px 20px 4px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-dark);
  max-width: 100%;
  word-break: break-word;
}

.chat-bubble.own .chat-bubble-content {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  border-radius: 20px 20px 4px 20px;
}

.chat-time { font-size: 0.6875rem; color: var(--text-placeholder); margin-top: 4px; text-align: right; }

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--bg-border);
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-fade-in  { animation: fadeIn 0.5s ease; }
.animate-slide-up { animation: slideInUp 0.5s ease; }
.animate-float    { animation: float 3s ease-in-out infinite; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0 !important; }
}

@media (max-width: 768px) {
  :root { --space-section: 64px; }
  .navbar-nav { display: none; }
  .nav-mobile-toggle { display: flex; }
  .navbar-cta { display: none; }
  .hero-actions { flex-direction: column; }
  .toast-container { right: 12px; left: 12px; min-width: unset; max-width: unset; }
  .page-content { padding: 20px 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  .btn-xl { padding: 14px 28px; font-size: 1rem; }
}

/* ─── Print Styles ──────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .navbar, .floating-cta, .toast-container { display: none !important; }
  .dashboard-main { margin-left: 0 !important; }
  body { background: #fff; }
}

/* ─── Dark Mode (Optional, toggle via JS) ───────────────────── */
.dark-mode {
  --bg-white:  #0F172A;
  --bg-soft:   #1E293B;
  --bg-light:  #1E293B;
  --bg-border: #334155;
  --text-dark: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ENHANCEMENTS v3.0 — Enterprise SaaS Level UI
═══════════════════════════════════════════════════════════════ */

/* ─── Premium Card Variants ──────────────────────────────────── */
.ec-card-premium {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.04);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}

.ec-card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ec-card-premium:hover {
  border-color: rgba(37,99,235,0.15);
  box-shadow: 0 4px 6px rgba(15,23,42,0.04), 0 20px 60px rgba(15,23,42,0.08);
  transform: translateY(-6px);
}

.ec-card-premium:hover::before { opacity: 1; }

/* ─── Glow Effects ───────────────────────────────────────────── */
.glow-blue  { box-shadow: 0 0 40px rgba(37,99,235,0.15); }
.glow-purple{ box-shadow: 0 0 40px rgba(124,58,237,0.15); }
.glow-cyan  { box-shadow: 0 0 40px rgba(6,182,212,0.15); }

/* ─── Gradient Borders ───────────────────────────────────────── */
.gradient-border {
  position: relative;
  background: #fff;
  border-radius: 20px;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(37,99,235,0.4), rgba(124,58,237,0.3), rgba(6,182,212,0.4));
  z-index: -1;
}

/* ─── Animated Gradient Text ─────────────────────────────────── */
.text-gradient-animated {
  background: linear-gradient(270deg, #2563EB, #7C3AED, #06B6D4, #2563EB);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

/* ─── Premium Section Badge ──────────────────────────────────── */
.section-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.06));
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid rgba(37,99,235,0.2);
  margin-bottom: 16px;
}

/* ─── Hero Visual Enhancement ────────────────────────────────── */
.hero-visual {
  position: relative;
}

.hero-visual .ec-card {
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 4px 6px rgba(15,23,42,0.04), 0 40px 80px rgba(15,23,42,0.08);
}

/* ─── Noise Texture Overlay ──────────────────────────────────── */
.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  border-radius: inherit;
}

/* ─── Stats Section Premium ──────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat-item-premium {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.stat-item-premium:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

/* ─── Service Grid Enhancement ───────────────────────────────── */
.services-grid .service-card {
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.services-grid .service-card:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 8px 40px rgba(37,99,235,0.12);
}

/* ─── Portfolio Card Enhancement ─────────────────────────────── */
.portfolio-item {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid rgba(15,23,42,0.06);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(15,23,42,0.12);
  border-color: rgba(37,99,235,0.15);
}

/* ─── Cyber Grid Pattern ─────────────────────────────────────── */
.cyber-grid {
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ─── Premium Loading Dots ───────────────────────────────────── */
.loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.loading-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: loading-bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loading-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ─── Marquee ────────────────────────────────────────────────── */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  animation: marquee 30s linear infinite;
  display: flex;
  gap: 24px;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

/* ─── Glassmorphism Surface ──────────────────────────────────── */
.glass-surface {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
}

.glass-surface-dark {
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
}

/* ─── Typewriter Cursor ──────────────────────────────────────── */
.typewriter-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--blue);
  margin-left: 1px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── Premium Image Frames ───────────────────────────────────── */
.img-premium-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(15,23,42,0.14);
  border: 1px solid rgba(15,23,42,0.06);
  position: relative;
}

.img-premium-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  border-radius: inherit;
  pointer-events: none;
}

/* ─── Premium Icon Box ───────────────────────────────────────── */
.icon-box {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: all 0.3s;
}

.icon-box:hover {
  transform: scale(1.1) rotate(-5deg);
}

.icon-box-blue   { background: rgba(37,99,235,0.1);  border: 1px solid rgba(37,99,235,0.2); }
.icon-box-purple { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); }
.icon-box-green  { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); }
.icon-box-orange { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); }
.icon-box-red    { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.2); }
.icon-box-cyan   { background: rgba(6,182,212,0.1);  border: 1px solid rgba(6,182,212,0.2); }

/* ─── Premium KPI Grid ───────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Notification Dot ───────────────────────────────────────── */
.notif-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid #fff;
  animation: pulse 2s infinite;
}

/* ─── Premium Input Groups ───────────────────────────────────── */
.input-group {
  display: flex;
  border: 1.5px solid rgba(15,23,42,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.input-group input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
}

.input-group-btn {
  background: var(--gradient-blue);
  color: #fff;
  border: none;
  padding: 0 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.input-group-btn:hover { opacity: 0.9; }

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--purple));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
}

/* ─── Scroll Reveal Utility ──────────────────────────────────── */
[data-aos] { will-change: transform, opacity; }

/* ─── Premium Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
  background: rgba(15,23,42,0.15);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.25); }

/* ─── Selection ──────────────────────────────────────────────── */
::selection {
  background: rgba(37,99,235,0.15);
  color: var(--blue-dark);
}

/* ─── Focus Ring ─────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Smooth Image Loading ───────────────────────────────────── */
img { transition: opacity 0.3s; }
img.lazy { opacity: 0; }
img.loaded { opacity: 1; }

/* ─── Premium Text Effects ───────────────────────────────────── */
.text-balance { text-wrap: balance; }

.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.subtitle {
  font-size: 0.9375rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ─── Hover Lift ─────────────────────────────────────────────── */
.hover-lift { transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ─── Interactive Border ─────────────────────────────────────── */
.border-animate {
  position: relative;
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}
.border-animate:hover { border-color: var(--blue); }

/* ─── Responsive Grid Utilities ──────────────────────────────── */
.grid-responsive-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .grid-responsive-2 { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Button Loading State ───────────────────────────────────── */
.btn.loading {
  pointer-events: none;
  opacity: 0.75;
}

.btn.loading::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
}

/* ─── Premium Alert ──────────────────────────────────────────── */
.alert-premium {
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid;
}

/* ─── Smooth Scroll Anchor Offset ───────────────────────────── */
[id] { scroll-margin-top: 112px; } /* 38px bar + 70px navbar + 4px gap */

/* ─── Mobile Optimizations ───────────────────────────────────── */
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.75rem; }
  .hero-title { font-size: 2.25rem; }
  .ec-card-premium { padding: 20px; }
}

/* ─── Ultra-wide Optimizations ───────────────────────────────── */
@media (min-width: 1600px) {
  .container { max-width: 1440px; }
  .hero-title { font-size: 4.75rem; }
}

/* ─── Print Enhancements ─────────────────────────────────────── */
@media print {
  .btn, .floating-cta, .toast-container { display: none !important; }
  .ec-card { box-shadow: none !important; border: 1px solid #ddd !important; }
  a { color: inherit !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM ENTERPRISE v4.0 — Visibility Fixes + UI Enhancements
═══════════════════════════════════════════════════════════════ */

/* ─── AOS Visibility Safety Net ──────────────────────────────── */
/* Ensures elements never stay permanently invisible if AOS CDN
   fails or IntersectionObserver doesn't fire in time.           */
[data-aos] {
  pointer-events: auto !important;
}
[data-aos]:not([data-aos-delay]) {
  transition-delay: 0ms !important;
}

/* ─── Announcement Bar ───────────────────────────────────────── */
.announce-bar {
  background: linear-gradient(90deg, #0F172A 0%, #1D4ED8 50%, #7C3AED 100%);
  background-size: 200% 100%;
  animation: announce-shift 8s ease infinite;
  color: rgba(255,255,255,0.92);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 9px 0;
  position: relative;
  z-index: calc(var(--z-sticky) + 1);
  overflow: hidden;
}

@keyframes announce-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.announce-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.announce-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announce-bar .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.announce-bar .pill:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.announce-marquee {
  overflow: hidden;
  flex: 1;
  display: flex;
}

.announce-track {
  display: flex;
  gap: 48px;
  animation: marquee 25s linear infinite;
  width: max-content;
  white-space: nowrap;
}

/* ─── Premium Stats Section ──────────────────────────────────── */
.stats-section {
  position: relative;
  overflow: hidden;
}

.stat-card-premium {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #06B6D4, #7C3AED);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card-premium:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(37,99,235,0.2);
}

.stat-card-premium:hover::before { opacity: 1; }

.stat-number-premium {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label-premium {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
}

/* ─── Testimonials Premium ───────────────────────────────────── */
.testimonial-section-wrap {
  position: relative;
}

.testimonial-card-premium {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.07);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05), 0 4px 16px rgba(15,23,42,0.04);
}

.testimonial-card-premium::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 5rem;
  line-height: 1;
  color: rgba(37,99,235,0.08);
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-card-premium:hover {
  border-color: rgba(37,99,235,0.15);
  box-shadow: 0 8px 48px rgba(15,23,42,0.1);
  transform: translateY(-5px);
}

.tc-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.tc-star {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: #FBBF24;
  font-size: 1.125rem;
  line-height: 1;
  flex-shrink: 0;
  /* Explicit fill ensures emoji star is always rendered */
  -webkit-text-fill-color: #FBBF24;
  text-fill-color: #FBBF24;
}

.tc-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--bg-border);
  padding-top: 20px;
  margin-top: auto;
}

.tc-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  flex-shrink: 0;
  letter-spacing: 0;
}

.tc-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.tc-role {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ─── Case Studies Premium ───────────────────────────────────── */
.case-study-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}

.case-study-header .section-title {
  margin-bottom: 0;
}

.case-study-header .view-all-btn {
  flex-shrink: 0;
  align-self: flex-end;
}

.portfolio-card-premium {
  --cs-accent: #2563EB;
  --cs-grad: linear-gradient(135deg,#2563EB,#06B6D4);
  --cs-glow: rgba(37,99,235,0.45);
  --cs-soft: rgba(37,99,235,0.10);
  position: relative;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease, border-color .4s ease;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
  display: flex;
  flex-direction: column;
}
.portfolio-card-premium::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cs-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  z-index: 3;
}
.portfolio-card-premium::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--cs-soft);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 0;
}
.portfolio-card-premium:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -22px var(--cs-glow);
  border-color: var(--cs-accent);
}
.portfolio-card-premium:hover::before { transform: scaleX(1); }
.portfolio-card-premium:hover::after { opacity: 1; }

.portfolio-card-premium.cat-purple  { --cs-accent:#7C3AED; --cs-grad:linear-gradient(135deg,#7C3AED,#2563EB); --cs-glow:rgba(124,58,237,0.45); --cs-soft:rgba(124,58,237,0.10); }
.portfolio-card-premium.cat-emerald { --cs-accent:#059669; --cs-grad:linear-gradient(135deg,#059669,#10B981); --cs-glow:rgba(16,185,129,0.45); --cs-soft:rgba(16,185,129,0.10); }
.portfolio-card-premium.cat-amber   { --cs-accent:#D97706; --cs-grad:linear-gradient(135deg,#D97706,#F59E0B); --cs-glow:rgba(245,158,11,0.45); --cs-soft:rgba(245,158,11,0.10); }
.portfolio-card-premium.cat-red     { --cs-accent:#EF4444; --cs-grad:linear-gradient(135deg,#EF4444,#F97316); --cs-glow:rgba(239,68,68,0.45); --cs-soft:rgba(239,68,68,0.10); }
.portfolio-card-premium.cat-cyan    { --cs-accent:#0EA5E9; --cs-grad:linear-gradient(135deg,#0EA5E9,#2563EB); --cs-glow:rgba(14,165,233,0.45); --cs-soft:rgba(14,165,233,0.10); }

.portfolio-thumb {
  height: 200px;
  background: var(--cs-grad);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,0,0,0.15), transparent 55%);
}
.portfolio-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,0.45) 100%);
}
.portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
  z-index: 1;
}
.portfolio-card-premium:hover .portfolio-thumb img { transform: scale(1.08); }

.portfolio-thumb-icon {
  font-size: 3.5rem;
  opacity: 0.85;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.18));
  z-index: 1;
  position: relative;
  transition: transform .5s ease;
}
.portfolio-card-premium:hover .portfolio-thumb-icon { transform: scale(1.12) rotate(-6deg); }

.portfolio-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
}
.portfolio-cat-badge .badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.92);
  color: var(--cs-accent);
  box-shadow: 0 6px 16px -6px rgba(15,23,42,0.4);
  backdrop-filter: blur(6px);
}

.portfolio-view {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--cs-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  box-shadow: 0 8px 20px -8px rgba(15,23,42,0.4);
  transform: scale(.7) rotate(-45deg);
  opacity: 0;
  transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .3s ease;
}
.portfolio-card-premium:hover .portfolio-view {
  transform: scale(1) rotate(0);
  opacity: 1;
}

.portfolio-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  background: #fff;
}

.portfolio-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.portfolio-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.portfolio-tech-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tech-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--cs-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--cs-accent);
  transition: background .25s ease, border-color .25s ease;
}
.portfolio-card-premium:hover .tech-tag { border-color: var(--cs-accent); }

.portfolio-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--bg-border);
  margin-top: auto;
}
.portfolio-foot .meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portfolio-foot .meta svg { color: var(--cs-accent); }
.portfolio-foot .arrow {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cs-soft);
  color: var(--cs-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, color .3s ease, transform .3s ease, gap .3s ease;
}
.portfolio-card-premium:hover .portfolio-foot .arrow {
  background: var(--cs-grad);
  color: #fff;
  transform: translateX(4px);
}

/* ─── Ensure stat counters are readable on dark bg ───────────── */
.stats-section [data-counter] {
  display: block;
  /* fallback for browsers that don't support gradient text */
  color: #fff;
}

@supports (-webkit-background-clip: text) {
  .stats-section [data-counter] {
    color: transparent;
  }
}

/* ─── Testimonials star visibility hard-override ─────────────── */
.tc-star, .testimonial-stars {
  color: #FBBF24 !important;
  -webkit-text-fill-color: #FBBF24 !important;
}

/* ─── Hero SVG Illustration Animations ──────────────────────── */
.hero-illus-wrap { padding: 20px 0 32px; }

/* Nodes float up/down independently */
.hero-node {
  animation: hero-float 3.6s ease-in-out infinite;
  transform-origin: center;
}
.hero-node:nth-child(2) { animation-delay: 0.5s; animation-duration: 4.2s; }
.hero-node:nth-child(3) { animation-delay: 1.1s; animation-duration: 3.9s; }
.hero-node:nth-child(4) { animation-delay: 1.6s; animation-duration: 4.5s; }

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Shield glow pulse */
.hero-svg path[fill="url(#hg-blue)"] {
  filter: drop-shadow(0 0 12px rgba(37,99,235,0.35));
  animation: shield-glow 3s ease-in-out infinite alternate;
}
@keyframes shield-glow {
  from { filter: drop-shadow(0 0 10px rgba(37,99,235,0.25)); }
  to   { filter: drop-shadow(0 0 22px rgba(37,99,235,0.5)); }
}

/* Dashed connection lines draw-in on load */
.hero-svg line[stroke-dasharray] {
  stroke-dashoffset: 0;
  animation: line-dash 2.5s linear infinite;
}
@keyframes line-dash {
  from { stroke-dashoffset: 24; }
  to   { stroke-dashoffset: 0; }
}

/* Orbit ring rotate */
.hero-svg circle[stroke-dasharray="6 8"] {
  transform-origin: 260px 210px;
  animation: ring-rotate 20s linear infinite;
}
.hero-svg circle[stroke-dasharray="4 12"] {
  transform-origin: 260px 210px;
  animation: ring-rotate 30s linear infinite reverse;
}
@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Subtle entrance scale for the whole SVG */
.hero-svg {
  animation: svg-enter 0.9s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes svg-enter {
  from { opacity: 0; transform: scale(0.92) translateX(20px); }
  to   { opacity: 1; transform: scale(1) translateX(0); }
}

/* ─── Responsive fixes ───────────────────────────────────────── */
@media (max-width: 768px) {
  .announce-bar-inner .announce-right { display: none; }
  .case-study-header { flex-direction: column; align-items: flex-start; }
  .case-study-header .view-all-btn { align-self: flex-start; }
  .stat-card-premium { padding: 24px 14px; }
  .stat-number-premium { font-size: 2rem; }
  .testimonial-card-premium { padding: 24px; }
}
