/* ============================================================
   Usman Aqil Designs — Main Stylesheet
   Design System: Minimal, Premium, Apple/Stripe/Vercel-inspired
   ============================================================ */

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

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Colors */
  --clr-white:       #ffffff;
  --clr-black:       #0a0a0a;
  --clr-gray-50:     #f9fafb;
  --clr-gray-100:    #f3f4f6;
  --clr-gray-200:    #e5e7eb;
  --clr-gray-300:    #d1d5db;
  --clr-gray-400:    #9ca3af;
  --clr-gray-500:    #6b7280;
  --clr-gray-600:    #4b5563;
  --clr-gray-700:    #374151;
  --clr-gray-800:    #1f2937;
  --clr-gray-900:    #111827;

  /* Accent */
  --clr-blue:        #2563eb;
  --clr-blue-dark:   #1d4ed8;
  --clr-blue-light:  #3b82f6;
  --clr-blue-muted:  #dbeafe;

  /* Status */
  --clr-success:     #10b981;
  --clr-warning:     #f59e0b;
  --clr-danger:      #ef4444;
  --clr-info:        #06b6d4;

  /* Semantic (light mode) */
  --bg:              var(--clr-white);
  --bg-secondary:    var(--clr-gray-50);
  --bg-card:         var(--clr-white);
  --border:          var(--clr-gray-200);
  --text:            var(--clr-gray-900);
  --text-muted:      var(--clr-gray-500);
  --text-subtle:     var(--clr-gray-400);
  --accent:          var(--clr-blue);
  --accent-hover:    var(--clr-blue-dark);
  --shadow-sm:       0 1px 2px rgba(0,0,0,.05);
  --shadow:          0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.12);
  --radius-sm:       6px;
  --radius:          10px;
  --radius-lg:       16px;
  --radius-xl:       24px;
  --transition:      0.2s ease;
  --font:            'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Dark Mode ──────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:              #0d0d0d;
  --bg-secondary:    #141414;
  --bg-card:         #1a1a1a;
  --border:          #2a2a2a;
  --text:            #f0f0f0;
  --text-muted:      #888;
  --text-subtle:     #555;
  --shadow-sm:       0 1px 2px rgba(0,0,0,.3);
  --shadow:          0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:       0 12px 40px rgba(0,0,0,.6);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

.text-gradient {
  background: linear-gradient(135deg, var(--clr-blue) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm { max-width: 780px; }
.container-lg { max-width: 1400px; }

section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header p { max-width: 540px; margin: 16px auto 0; font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--clr-blue-muted);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

[data-theme="dark"] .eyebrow {
  background: rgba(37,99,235,.15);
}

/* ─── Grid ───────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 12px 16px;
}
.btn-ghost:hover { background: var(--clr-blue-muted); color: var(--accent); }

.btn-danger {
  background: var(--clr-danger);
  color: #fff;
  border-color: var(--clr-danger);
}
.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

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

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-sm { padding: 20px; border-radius: var(--radius); }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .glass {
  background: rgba(20, 20, 20, 0.7);
  border-color: rgba(255,255,255,.08);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-control::placeholder { color: var(--text-subtle); }
.form-error { font-size: 0.8125rem; color: var(--clr-danger); margin-top: 4px; }
.form-hint  { font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; }

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

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
}
.badge-blue    { background: var(--clr-blue-muted);            color: var(--clr-blue); }
.badge-green   { background: rgba(16,185,129,.12);             color: var(--clr-success); }
.badge-yellow  { background: rgba(245,158,11,.12);             color: var(--clr-warning); }
.badge-red     { background: rgba(239,68,68,.12);              color: var(--clr-danger); }
.badge-gray    { background: var(--bg-secondary);              color: var(--text-muted); }

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(13,13,13,.9);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.navbar-logo span { color: var(--accent); }

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

.navbar-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--text);
  background: var(--bg-secondary);
}

.navbar-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 900px) {
  .navbar-nav { display: none; }
  .hamburger { display: flex; }

  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(124,58,237,.04) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: var(--clr-blue-muted);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-blue);
  margin-bottom: 24px;
  cursor: default;
}

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

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

.hero h1 { margin-bottom: 24px; }
.hero p   { font-size: 1.2rem; max-width: 540px; margin-bottom: 40px; }

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { }
.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Services ───────────────────────────────────────────── */
.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: all 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px;
  background: var(--clr-blue-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
[data-theme="dark"] .service-icon { background: rgba(37,99,235,.15); }

.service-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.service-card p  { font-size: 0.9rem; }

/* ─── Portfolio Grid ─────────────────────────────────────── */
.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--clr-blue-muted);
}
[data-theme="dark"] .filter-btn.active, [data-theme="dark"] .filter-btn:hover {
  background: rgba(37,99,235,.15);
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.portfolio-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}
.portfolio-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }
.portfolio-info { padding: 24px; }
.portfolio-info h3 { font-size: 1rem; margin-bottom: 8px; }
.portfolio-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* ─── Pricing ────────────────────────────────────────────── */
.pricing-card {
  padding: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  transition: all 0.3s ease;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 16px 0;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 8px; }
.pricing-price .period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; margin: 24px 0; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--clr-success); flex-shrink: 0; }
.pricing-features .cross { color: var(--text-subtle); flex-shrink: 0; }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}
.testimonial-stars { color: #f59e0b; margin-bottom: 16px; }
.testimonial-text { font-size: 1rem; line-height: 1.7; color: var(--text); 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(--clr-blue-muted);
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-muted); }

/* ─── Process Steps ──────────────────────────────────────── */
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--clr-blue-muted);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Progress Bar ───────────────────────────────────────── */
.progress { background: var(--bg-secondary); border-radius: 100px; overflow: hidden; height: 6px; }
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.6s ease;
}

/* ─── Alert / Flash Messages ─────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.alert-success { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2); color: #047857; }
.alert-error   { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.2);  color: #b91c1c; }
.alert-info    { background: rgba(37,99,235,.08);  border-color: rgba(37,99,235,.2);  color: var(--clr-blue); }
.alert-warning { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.2); color: #92400e; }

[data-theme="dark"] .alert-success { color: #34d399; }
[data-theme="dark"] .alert-error   { color: #f87171; }
[data-theme="dark"] .alert-info    { color: #60a5fa; }
[data-theme="dark"] .alert-warning { color: #fbbf24; }

/* ─── Tables ─────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead tr { background: var(--bg-secondary); }
thead th {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: left;
  white-space: nowrap;
}
tbody tr { border-top: 1px solid var(--border); transition: background var(--transition); }
tbody tr:hover { background: var(--bg-secondary); }
tbody td { padding: 14px 16px; color: var(--text); vertical-align: middle; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--clr-gray-900);
  color: var(--clr-gray-400);
  padding: 72px 0 32px;
}
[data-theme="dark"] .footer { background: #080808; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h3 { color: #fff; margin-bottom: 12px; }
.footer-brand p  { font-size: 0.9rem; line-height: 1.6; }
.footer-title { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--clr-gray-400); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--clr-gray-800); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-gray-800);
  color: var(--clr-gray-400);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

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

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 200;
  transition: transform 0.3s ease;
}

.sidebar-logo {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sidebar-logo span { color: var(--accent); }

.sidebar-nav { padding: 16px 12px; flex: 1; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0 12px;
  margin-bottom: 6px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: all var(--transition);
  margin-bottom: 2px;
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--bg-secondary);
  color: var(--text);
}
.sidebar-link.active { color: var(--accent); }
.sidebar-link svg { flex-shrink: 0; width: 18px; height: 18px; }
.sidebar-badge {
  margin-left: auto;
  background: var(--clr-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}

.dash-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-content { flex: 1; padding: 32px; }

.dash-welcome h1 { font-size: 1.75rem; margin-bottom: 4px; }
.dash-welcome p  { color: var(--text-muted); }

/* Stats widgets */
.stat-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon-blue   { background: var(--clr-blue-muted); color: var(--clr-blue); }
.stat-icon-green  { background: rgba(16,185,129,.12); color: var(--clr-success); }
.stat-icon-yellow { background: rgba(245,158,11,.12); color: var(--clr-warning); }
.stat-icon-red    { background: rgba(239,68,68,.12); color: var(--clr-danger); }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--text); }
.stat-label2 { font-size: 0.875rem; color: var(--text-muted); margin-top: 2px; }
.stat-change { font-size: 0.8125rem; font-weight: 600; margin-top: 6px; }
.stat-change.up { color: var(--clr-success); }
.stat-change.down { color: var(--clr-danger); }

/* Mobile sidebar */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .dash-content { padding: 24px 16px; }
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 190;
  }
  .sidebar-backdrop.open { display: block; }
}

/* ─── Notification Panel ─────────────────────────────────── */
.notif-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
}

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

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.notif-item:hover { background: var(--bg-secondary); }
.notif-item.unread { background: rgba(37,99,235,.03); }
.notif-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--clr-blue-muted);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.notif-text { font-size: 0.875rem; color: var(--text); line-height: 1.4; }
.notif-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.notif-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

/* ─── Chat / Messages ────────────────────────────────────── */
.chat-layout { display: flex; height: calc(100vh - 120px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.chat-sidebar { width: 300px; border-right: 1px solid var(--border); overflow-y: auto; flex-shrink: 0; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chat-footer { padding: 16px; border-top: 1px solid var(--border); display: flex; gap: 10px; }

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
}
.message-bubble.sent { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--bg-secondary); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }

/* ─── Utilities ──────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.75rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

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

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.spinner {
  width: 24px; height: 24px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Cookie Consent ─────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
}
.cookie-banner.visible { display: block; animation: slideUp 0.4s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ─── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg-secondary); }

/* ─── Animations ─────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.5s ease forwards; }
.slide-up { animation: slideUpAnim 0.5s ease forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpAnim { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .navbar, .sidebar, .footer, .btn, .no-print { display: none !important; }
  .dash-main { margin-left: 0; }
}
