/* ============================================================
   ZhaFX2.O  |  Nexus Theme  —  Main Stylesheet
   Template: Nexus  |  Logo: Signal Ring  |  Palette: Deep Blue
   ============================================================ */

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

:root {
  --bg-primary:    #05080f;
  --bg-secondary:  #080c14;
  --bg-card:       rgba(8, 18, 36, 0.75);
  --bg-glass:      rgba(10, 22, 44, 0.6);

  --blue-primary:  #378ADD;
  --blue-light:    #60a0e0;
  --blue-dark:     #1a4a7a;
  --blue-deeper:   #0d2a50;
  --blue-glow:     rgba(55, 138, 221, 0.35);

  --text-primary:  #e8f4ff;
  --text-secondary:#8ab4d4;
  --text-muted:    #4a6a88;

  --neon-blue:     #00b4ff;
  --neon-cyan:     #00e5ff;
  --neon-purple:   #8b5cf6;

  --border-card:   rgba(55, 138, 221, 0.2);
  --border-glow:   rgba(55, 138, 221, 0.5);

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p  { color: var(--text-secondary); line-height: 1.75; }
a  { color: var(--blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-primary); }

.text-blue   { color: var(--blue-primary); }
.text-glow   { color: var(--blue-primary); text-shadow: 0 0 20px var(--blue-glow); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb        { background: var(--blue-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--blue-primary); }

/* ── Particles Canvas ────────────────────────────────────── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* ── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.navbar-logo canvas { width: 40px; height: 40px; }
.navbar-logo-text { line-height: 1; }
.navbar-logo-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 2px;
}
.navbar-logo-sub {
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--blue-primary);
  transition: width 0.3s ease;
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--blue-primary); }
.navbar-links a:hover::after,
.navbar-links a.active::after { width: 100%; }

.navbar-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-primary);
  transition: var(--transition);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(55, 138, 221, 0.3);
}
.btn-primary:hover {
  background: #4a9ae0;
  color: #fff;
  box-shadow: 0 0 30px rgba(55, 138, 221, 0.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 1px solid var(--blue-primary);
}
.btn-outline:hover {
  background: rgba(55, 138, 221, 0.1);
  color: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 34px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 2rem 80px;
  overflow: hidden;
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(55, 138, 221, 0.08) 0%,
    transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(55, 138, 221, 0.1);
  border: 1px solid rgba(55, 138, 221, 0.3);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  animation: pulse 2s infinite;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 span { color: var(--blue-primary); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-primary);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2.5s infinite;
}
.scroll-hint-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue-primary), transparent);
}

/* ── Section Layout ─────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-sm { padding: 60px 0; position: relative; z-index: 1; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--blue-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background: rgba(55, 138, 221, 0.08);
  border: 1px solid rgba(55, 138, 221, 0.2);
  padding: 4px 14px;
  border-radius: 20px;
}
.section-header p {
  max-width: 540px;
  margin: 1rem auto 0;
}

/* ── Glass Cards ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(55, 138, 221, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(55, 138, 221, 0.12);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(55, 138, 221, 0.1);
  border: 1px solid rgba(55, 138, 221, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue-primary);
  margin-bottom: 1.2rem;
}
.card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.card p  { font-size: 0.9rem; }

/* ── Neon Dashboard Cards ────────────────────────────────── */
@keyframes neon-border-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.neon-card {
  background: rgba(5, 14, 30, 0.85);
  border: 1px solid var(--blue-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  --spin-color: #00e5ff;
  --spin-glow: #ffffff;
}
/* Spinning conic-gradient beam — sits outside the inner cover */
.neon-card::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 260%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(
    from 0deg,
    transparent    0deg,
    var(--spin-color) 20deg,
    var(--spin-glow)  40deg,
    #ffffff           50deg,
    var(--spin-glow)  60deg,
    var(--spin-color) 80deg,
    transparent    110deg,
    transparent    360deg
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
/* Inner cover — leaves a 3px visible border strip */
.neon-card::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: rgba(5, 12, 28, 0.97);
  border-radius: calc(var(--radius-lg) - 2px);
  z-index: 1;
  pointer-events: none;
}
.neon-card > * { position: relative; z-index: 2; }
.neon-card:hover::before { opacity: 1; animation: neon-border-spin 2s linear infinite; }
.neon-card:hover { transform: translateY(-4px); }
.neon-card[data-href] { cursor: pointer; }
/* Per-color spin beam colors */
.neon-card--blue   { border-color: rgba(55,138,221,0.4);  --spin-color: #00e5ff; --spin-glow: #ffffff; }
.neon-card--cyan   { border-color: rgba(0,229,255,0.35);  --spin-color: #ffffff; --spin-glow: #00e5ff; }
.neon-card--purple { border-color: rgba(139,92,246,0.35); --spin-color: #e0aaff; --spin-glow: #ffffff; }
.neon-card--green  { border-color: rgba(0,230,118,0.35);  --spin-color: #00ffcc; --spin-glow: #ffffff; }
.neon-card--yellow { border-color: rgba(251,191,36,0.35); --spin-color: #ffe066; --spin-glow: #ffffff; }
.neon-card--blue:hover   { box-shadow: 0 8px 40px rgba(0,229,255,0.35),   0 0 80px rgba(0,229,255,0.12); }
.neon-card--cyan:hover   { box-shadow: 0 8px 40px rgba(0,229,255,0.3),    0 0 80px rgba(0,229,255,0.10); }
.neon-card--purple:hover { box-shadow: 0 8px 40px rgba(224,170,255,0.3),  0 0 80px rgba(139,92,246,0.10); }
.neon-card--green:hover  { box-shadow: 0 8px 40px rgba(0,255,204,0.3),    0 0 80px rgba(0,230,118,0.10); }
.neon-card--yellow:hover { box-shadow: 0 8px 40px rgba(255,224,102,0.3),  0 0 80px rgba(251,191,36,0.10); }

.neon-stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.neon-stat-label {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.neon-stat-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 8px;
}
.badge-blue   { background: rgba(55,138,221,0.15);  color: var(--blue-light);   border: 1px solid rgba(55,138,221,0.3); }
.badge-cyan   { background: rgba(0,229,255,0.1);    color: #00e5ff;             border: 1px solid rgba(0,229,255,0.3); }
.badge-purple { background: rgba(139,92,246,0.1);   color: #a78bfa;             border: 1px solid rgba(139,92,246,0.3); }
.badge-green  { background: rgba(0,230,118,0.1);    color: #00e676;             border: 1px solid rgba(0,230,118,0.3); }
.badge-red    { background: rgba(244,63,94,0.1);    color: #fb7185;             border: 1px solid rgba(244,63,94,0.3); }
.badge-yellow { background: rgba(251,191,36,0.1);   color: #fbbf24;             border: 1px solid rgba(251,191,36,0.3); }

/* ── Progress Bar ────────────────────────────────────────── */
.progress-wrap { margin-top: 12px; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s ease;
}
.progress-fill--blue   { background: linear-gradient(90deg, var(--blue-dark), var(--blue-primary)); }
.progress-fill--cyan   { background: linear-gradient(90deg, #006080, #00e5ff); }
.progress-fill--purple { background: linear-gradient(90deg, #4c1d95, #a78bfa); }
.progress-fill--green  { background: linear-gradient(90deg, #064e3b, #00e676); }

/* ── Services Grid ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(55,138,221,0.15);
  color: var(--blue-light);
  border: 1px solid rgba(55,138,221,0.3);
  margin-bottom: 0.75rem;
}

/* ── Stats Strip ─────────────────────────────────────────── */
.stats-strip { position: relative; z-index: 1;
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
}
.stats-strip-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
}
.stat-item { text-align: center; }
.stat-item-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(55,138,221,0.4);
}
.stat-item-label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── About Grid ─────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-card);
}
.about-visual canvas { width: 100%; height: 100%; }
.about-features { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: rgba(55,138,221,0.1);
  border: 1px solid rgba(55,138,221,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--blue-primary);
  margin-top: 2px;
}
.feature-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.feature-item p  { font-size: 0.85rem; }

/* ── Contact Form ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(55,138,221,0.1);
  border: 1px solid rgba(55,138,221,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--blue-primary);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(8, 18, 36, 0.8);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(55,138,221,0.12);
  background: rgba(10, 24, 48, 0.9);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}
.form-msg.success { background: rgba(0,230,118,0.1); border: 1px solid rgba(0,230,118,0.3); color: #00e676; display: block; }
.form-msg.error   { background: rgba(244,63,94,0.1);  border: 1px solid rgba(244,63,94,0.3);  color: #fb7185; display: block; }

/* ── Tables ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}
.data-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.data-table tr:hover td { background: rgba(55,138,221,0.04); }
.data-table .td-name { color: var(--text-primary); font-weight: 500; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
}
.status-active   { background: rgba(0,230,118,0.1); color: #00e676; border: 1px solid rgba(0,230,118,0.25); }
.status-active::before { background: #00e676; }
.status-inactive { background: rgba(251,191,36,0.1); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.status-inactive::before { background: #fbbf24; }
.status-suspended{ background: rgba(244,63,94,0.1); color: #fb7185; border: 1px solid rgba(244,63,94,0.25); }
.status-suspended::before { background: #fb7185; }
.status-open     { background: rgba(55,138,221,0.1); color: var(--blue-light); border: 1px solid rgba(55,138,221,0.25); }
.status-open::before { background: var(--blue-primary); }
.status-resolved { background: rgba(0,230,118,0.1); color: #00e676; border: 1px solid rgba(0,230,118,0.25); }
.status-resolved::before { background: #00e676; }
.status-new      { background: rgba(139,92,246,0.1); color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.status-new::before { background: #a78bfa; }

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

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: rgba(5, 10, 20, 0.95);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 2px;
}
.sidebar-logo-sub {
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sidebar-nav {
  flex: 1;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 0.75rem 0.75rem 0.35rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}
.sidebar-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar-link:hover {
  background: rgba(55,138,221,0.08);
  color: var(--blue-light);
  border-color: rgba(55,138,221,0.15);
}
.sidebar-link.active {
  background: rgba(55,138,221,0.12);
  color: var(--blue-primary);
  border-color: rgba(55,138,221,0.25);
  box-shadow: 0 0 10px rgba(55,138,221,0.08);
}
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--blue-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Dashboard main */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-primary);
}
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,8,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  padding: 0 2rem;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(55,138,221,0.2);
  border: 1px solid rgba(55,138,221,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-primary);
}
.topbar-name { font-size: 0.875rem; color: var(--text-secondary); }

.dashboard-content { padding: 2rem; }
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.page-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 2rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue-primary); }
.breadcrumb-sep { color: var(--border-card); }
.breadcrumb-current { color: var(--text-secondary); }

/* ── Alert/Notification ──────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.alert-info    { background: rgba(55,138,221,0.1); border: 1px solid rgba(55,138,221,0.25); color: var(--blue-light); }
.alert-success { background: rgba(0,230,118,0.1);  border: 1px solid rgba(0,230,118,0.25);  color: #00e676; }
.alert-warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25); color: #fbbf24; }
.alert-danger  { background: rgba(244,63,94,0.1);  border: 1px solid rgba(244,63,94,0.25);  color: #fb7185; }

/* ── Page Header Strip ───────────────────────────────────── */
.page-header-strip {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.page-header-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(55,138,221,0.07) 0%, transparent 70%);
}
.page-header-strip h1 { margin-bottom: 0.5rem; }

/* ── Blog Cards ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card-tag {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.blog-card-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }
.blog-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card h4 a { color: var(--text-primary); }
.blog-card h4 a:hover { color: var(--blue-primary); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { position: relative; z-index: 1;
  background: rgba(3, 6, 12, 0.98);
  border-top: 1px solid var(--border-card);
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; margin-top: 1rem; max-width: 280px; }
.footer h5 {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { font-size: 0.875rem; color: var(--text-secondary); }
.footer-links li a:hover { color: var(--blue-primary); padding-left: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(55,138,221,0.08);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover {
  background: rgba(55,138,221,0.2);
  color: var(--blue-primary);
  border-color: rgba(55,138,221,0.4);
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Login Page ──────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(8,16,32,0.9);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 40px rgba(55,138,221,0.1);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  justify-content: center;
}
.login-card h2 { text-align: center; font-size: 1.4rem; margin-bottom: 0.4rem; }
.login-card .subtitle { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 2rem; }
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-card);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(55,138,221,0.2); }
  50%       { box-shadow: 0 0 25px rgba(55,138,221,0.5), 0 0 50px rgba(55,138,221,0.15); }
}

.animate-in { animation: fadeInUp 0.6s ease both; }
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }

/* ── Utility ─────────────────────────────────────────────── */
.flex         { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.divider-line { height: 1px; background: var(--border-card); margin: 1.5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .about-grid   { grid-template-columns: 1fr; }
  .about-visual { height: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dashboard-main { margin-left: 0 !important; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease, width .25s ease; }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99; }
  .sidebar-overlay.active { display: block; }
}

/* ── Sidebar Collapse ────────────────────────────────────── */
.sidebar       { transition: width .25s ease; overflow: hidden; }
.dashboard-main{ transition: margin-left .25s ease; }

.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .sidebar-logo-name,
.sidebar.collapsed .sidebar-logo-sub     { display: none; }
.sidebar.collapsed .sidebar-section-label {
  visibility: hidden; height: 0; padding: 0; overflow: hidden; margin: 0;
}
.sidebar.collapsed .sidebar-link {
  font-size: 0;
  padding: 10px;
  justify-content: center;
  gap: 0;
}
.sidebar.collapsed .sidebar-link i    { font-size: 1.1rem; width: auto; }
.sidebar.collapsed .sidebar-link .badge-count { display: none; }
.sidebar.collapsed .sidebar-logo      { justify-content: center; padding: 1.2rem 0.5rem; gap: 0; }
.sidebar.collapsed .sidebar-logo canvas { margin: 0 auto; }

/* Collapsed state shifts main content */
.sidebar.collapsed + .dashboard-main,
.dashboard-main.sb-collapsed { margin-left: 64px; }

/* Tooltip on hover in collapsed mode */
.sidebar.collapsed .sidebar-link { position: relative; }
.sidebar.collapsed .sidebar-link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #141925;
  color: var(--text-primary);
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-card);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 200;
}
.sidebar.collapsed .sidebar-link:hover::after { opacity: 1; }

/* Collapse toggle button */
.sidebar-collapse-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin: 0 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-card);
  background: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  width: calc(100% - 1.5rem);
}
.sidebar-collapse-btn:hover {
  color: var(--blue-primary);
  border-color: rgba(55,138,221,0.35);
  background: rgba(55,138,221,0.06);
}
.sidebar.collapsed .sidebar-collapse-btn {
  justify-content: center;
  font-size: 0;
  padding: 9px;
  margin: 0 auto 1rem;
  width: 40px;
}
.sidebar.collapsed .sidebar-collapse-btn i { font-size: 1rem; }

/* Topbar menu button (modern, theme-tinted) */
.sidebar-hamburger-btn,
.topbar-menu-btn {
  background: rgba(55,138,221,0.06);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.sidebar-hamburger-btn:hover,
.topbar-menu-btn:hover {
  color: var(--blue-primary);
  border-color: var(--border-glow);
  background: rgba(55,138,221,0.12);
  box-shadow: 0 0 14px var(--blue-glow);
}
/* Desktop relies on the floating edge toggle, so hide the topbar button there */
.topbar-menu-btn { display: none; }

/* Animated hamburger → X (built by sidebar.js, mobile only) */
.topbar-menu-btn .hb { position: relative; width: 20px; height: 14px; display: block; }
.topbar-menu-btn .hb-line {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.topbar-menu-btn .hb-line:nth-child(1) { top: 0; }
.topbar-menu-btn .hb-line:nth-child(2) { top: 6px; }
.topbar-menu-btn .hb-line:nth-child(3) { top: 12px; }
.topbar-menu-btn.is-open { color: var(--blue-light); border-color: var(--border-glow); background: rgba(55,138,221,0.12); }
.topbar-menu-btn.is-open .hb-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar-menu-btn.is-open .hb-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.topbar-menu-btn.is-open .hb-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Retire the legacy in-sidebar toggles entirely */
.sidebar-top-toggle,
.sidebar-collapse-btn { display: none !important; }

/* ════════════════════════════════════════════════════════════
   NEW MODEL — Floating edge toggle (the "close/open" control)
   Sits docked on the sidebar's edge, glows in the brand blue,
   chevron spins 180° when the rail collapses.
   ════════════════════════════════════════════════════════════ */
.sidebar-edge-toggle {
  position: fixed;
  top: 26px;
  left: 245px;                       /* sidebar width (260) − half button */
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  box-shadow: 0 0 0 4px var(--bg-primary),          /* knockout ring vs page */
              0 0 0 5px var(--border-glow),
              0 6px 16px rgba(55,138,221,0.45);
  cursor: pointer;
  z-index: 130;
  transition: left .3s cubic-bezier(.4,0,.2,1),
              transform .25s cubic-bezier(.4,0,.2,1),
              box-shadow .3s ease;
}
.sidebar-edge-toggle:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--bg-primary),
              0 0 0 5px var(--border-glow),
              0 0 22px var(--blue-glow),
              0 8px 22px rgba(55,138,221,0.6);
}
.sidebar-edge-toggle:active { transform: scale(0.94); }
.sidebar-edge-toggle i {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sidebar-edge-toggle.is-collapsed       { left: 49px; }   /* collapsed rail (64) − half */
.sidebar-edge-toggle.is-collapsed i     { transform: rotate(180deg); }

/* In-sidebar close (×) — only meaningful on mobile */
.sidebar-close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: none;                     /* shown on mobile via media query */
  align-items: center; justify-content: center;
  border: 1px solid var(--border-card);
  border-radius: 50%;
  background: rgba(55,138,221,0.08);
  color: var(--text-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}
.sidebar-close-btn:hover {
  color: #fb7185;
  border-color: rgba(251,113,133,0.5);
  background: rgba(251,113,133,0.1);
}

/* Backdrop scroll-lock for the mobile drawer */
body.sb-noscroll { overflow: hidden; }

/* ── Mobile: hide the edge toggle, reveal the drawer close (×) ── */
@media (max-width: 768px) {
  .sidebar-edge-toggle { display: none; }
  .topbar-menu-btn     { display: flex; }
  /* Keep the top bar — and its morphing X — above the open drawer */
  .dashboard-topbar    { z-index: 120; }
  /* Drawer + backdrop slide in beneath the fixed top bar so the X stays tappable */
  .sidebar             { top: 64px; }
  .sidebar-overlay {
    top: 64px;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
}
