/* ============================================
   DropShip Engine — Complete Stylesheet
   Theme: Teal (#14B8A6) | Fonts: DM Sans + Nunito
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Nunito:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #14B8A6;
  --primary-light: #2DD4BF;
  --primary-dark: #0D9488;
  --primary-bg: rgba(20, 184, 166, 0.08);
  --primary-bg-strong: rgba(20, 184, 166, 0.15);
  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.1);
  --purple: #8B5CF6;
  --purple-bg: rgba(139, 92, 246, 0.1);
  --pink: #EC4899;

  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);

  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --topbar-height: 64px;
  --demo-banner-height: 38px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-surface: #F1F5F9;
  --bg-input: #F8FAFC;
  --bg-sidebar: #FFFFFF;
  --bg-topbar: rgba(255,255,255,0.85);
  --text: #0F172A;
  --text-secondary: #334155;
  --text-dim: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --hover: #F1F5F9;
  --scrollbar: #CBD5E1;
  --scrollbar-hover: #94A3B8;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #0B1120;
  --bg-card: #111827;
  --bg-surface: #1E293B;
  --bg-input: #1E293B;
  --bg-sidebar: #111827;
  --bg-topbar: rgba(17,24,39,0.9);
  --text: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-dim: #64748B;
  --text-muted: #475569;
  --border: #1E293B;
  --border-light: #1E293B;
  --hover: #1E293B;
  --scrollbar: #334155;
  --scrollbar-hover: #475569;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.4);
}

/* --- 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-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Demo Banner --- */
.demo-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #94A3B8;
  text-align: center;
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-body);
  position: relative;
  z-index: 1000;
  letter-spacing: 0.02em;
  height: var(--demo-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.demo-banner a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-banner a:hover { color: #fff; }

/* --- Announcement Bar --- */
.announcement-bar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #2DD4BF);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.announcement-bar i { font-size: 0.9rem; }

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

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.btn i { font-size: 0.85em; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(20,184,166,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 16px rgba(20,184,166,0.4);
  transform: translateY(-1px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 10px 16px;
}

.btn-ghost:hover { background: var(--primary-bg); }

.btn-dim {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-dim:hover {
  background: var(--hover);
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon.btn-sm { width: 34px; height: 34px; }

/* ============================
   BADGES
   ============================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.badge-primary { background: var(--primary-bg-strong); color: var(--primary-dark); }
.badge-success { background: var(--success-bg); color: #16A34A; }
.badge-warning { background: var(--warning-bg); color: #D97706; }
.badge-danger { background: var(--danger-bg); color: #DC2626; }
.badge-info { background: var(--info-bg); color: #2563EB; }
.badge-purple { background: var(--purple-bg); color: #7C3AED; }
.badge-neutral { background: var(--bg-surface); color: var(--text-dim); border: 1px solid var(--border); }

.badge-popular {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 0.72rem;
  padding: 5px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================
   TOP NAVIGATION (Landing)
   ============================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  transition: all var(--transition);
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  flex-shrink: 0;
}

.topnav-brand:hover { color: var(--text); }

.topnav-brand svg { width: 34px; height: 34px; }

.topnav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav-links a {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-family: var(--font-heading);
}

.topnav-links a:hover,
.topnav-links a.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-dim);
  transition: all var(--transition);
  cursor: pointer;
}

.theme-btn:hover {
  background: var(--hover);
  color: var(--primary);
  border-color: var(--primary);
}

.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================
   HERO SECTION
   ============================ */
.hero {
  padding: 80px 0 60px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg-strong);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.accent {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-proof span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.hero-proof i {
  color: var(--success);
  font-size: 0.8rem;
}

/* Hero Image with Browser Frame */
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-browser-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red { background: #EF4444; }
.browser-dot.yellow { background: #F59E0B; }
.browser-dot.green { background: #22C55E; }

.browser-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 500;
  background: var(--bg-surface);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

.hero-floating-card {
  position: absolute;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

.hero-floating-card.card-1 {
  bottom: 60px;
  left: -20px;
}

.hero-floating-card.card-2 {
  top: 80px;
  right: -16px;
  animation-delay: 1.5s;
}

.hero-floating-card .fc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-floating-card .fc-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.hero-floating-card .fc-value {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text);
}

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

/* ============================
   TRUSTED BY / LOGOS
   ============================ */
.trusted-section {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.trusted-label {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trusted-logo:hover { opacity: 0.8; }

.trusted-logo i {
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.7;
}

/* ============================
   SECTIONS
   ============================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ============================
   FEATURES GRID
   ============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-bg-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

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

/* ============================
   PLATFORM INTEGRATIONS
   ============================ */
.platforms-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  transition: all var(--transition);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 140px;
}

.platform-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.platform-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.platform-icon.shopify { background: linear-gradient(135deg, #95BF47, #5E8E3E); }
.platform-icon.woo { background: linear-gradient(135deg, #9B5C8F, #7B3F6F); }
.platform-icon.aliexpress { background: linear-gradient(135deg, #E62E04, #FF6A00); }
.platform-icon.amazon { background: linear-gradient(135deg, #FF9900, #FFB84D); color: #111; }

.platform-icon i { font-size: 1.4rem; }

/* ============================
   HOW IT WORKS / STEPS
   ============================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  border-radius: 2px;
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 0 auto 20px;
  box-shadow: 0 4px 14px rgba(20,184,166,0.3);
  position: relative;
  z-index: 2;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================
   PRICING
   ============================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

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

.price-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.price-card.popular:hover { transform: scale(1.04) translateY(-4px); }

.price-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: var(--font-heading);
}

.price-card-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.price-card-amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.price-card-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
}

.price-card-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.price-card-features {
  text-align: left;
  margin-bottom: 28px;
}

.price-card-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.price-card-features li:last-child { border-bottom: none; }

.price-card-features li i {
  color: var(--primary);
  font-size: 0.8rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ============================
   TESTIMONIALS / SWIPER
   ============================ */
.testimonials-section { padding: 80px 0; }

.swiper-testimonials { padding-bottom: 60px !important; }

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  height: 100%;
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

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

.testimonial-stars i { color: #FBBF24; font-size: 0.9rem; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.swiper-pagination-bullet { background: var(--text-muted); opacity: 0.4; }
.swiper-pagination-bullet-active { background: var(--primary); opacity: 1; }

/* ============================
   STATS STRIP
   ============================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 60px 0;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-block { padding: 24px; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-txt {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2DD4BF 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cta-section .btn-primary:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.cta-section .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.cta-section .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-brand svg { width: 28px; height: 28px; }

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer ul li { margin-bottom: 10px; }

.footer ul li a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer ul li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================
   SIDEBAR LAYOUT
   ============================ */
.app-layout {
  display: flex;
  min-height: calc(100vh - var(--demo-banner-height));
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--demo-banner-height);
  left: 0;
  bottom: 0;
  z-index: 800;
  transition: width var(--transition);
  overflow: hidden;
}

.sidebar.collapsed { width: var(--sidebar-collapsed-width); }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 72px;
}

.sidebar-brand:hover { color: var(--text); }
.sidebar-brand svg { width: 32px; height: 32px; flex-shrink: 0; }

.sidebar.collapsed .brand-text { display: none; }

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

.sidebar-section { margin-bottom: 8px; }

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 12px 12px 6px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar.collapsed .sidebar-section-title {
  font-size: 0;
  padding: 8px 0;
  text-align: center;
  height: 20px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  margin-bottom: 2px;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: color var(--transition);
}

.sidebar-link:hover { background: var(--hover); color: var(--primary); }
.sidebar-link:hover i { color: var(--primary); }

.sidebar-link.active { background: var(--primary-bg-strong); color: var(--primary); }
.sidebar-link.active i { color: var(--primary); }

.link-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.sidebar.collapsed .link-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.6rem;
  padding: 1px 5px;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 12px;
}

.sidebar.collapsed .link-text { display: none; }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-name { font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.sidebar-user-email { font-size: 0.72rem; color: var(--text-dim); white-space: nowrap; }

.sidebar.collapsed .sidebar-user-info { display: none; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 790;
}

.sidebar-overlay.show { display: block; }

.sidebar-collapse-btn {
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.sidebar-collapse-btn:hover {
  background: var(--hover);
  color: var(--primary);
}

.sidebar.collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }

/* ============================
   MAIN CONTENT
   ============================ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition);
  min-height: calc(100vh - var(--demo-banner-height));
}

.sidebar.collapsed ~ .main-content,
.app-layout.sidebar-collapsed .main-content {
  margin-left: var(--sidebar-collapsed-width);
}

/* ============================
   DASHBOARD TOP BAR
   ============================ */
.dash-topbar {
  position: sticky;
  top: var(--demo-banner-height);
  z-index: 700;
  background: var(--bg-topbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-topbar-left h1 { font-size: 1.25rem; font-weight: 700; }

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-dim);
  cursor: pointer;
}

.collapse-sidebar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

.collapse-sidebar-btn:hover {
  background: var(--hover);
  color: var(--primary);
  border-color: var(--primary);
}

/* Topbar Search */
.topbar-search {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  gap: 8px;
  flex: 1;
  max-width: 360px;
}

.topbar-search i { color: var(--text-muted); font-size: 0.85rem; }

.topbar-search input {
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  width: 100%;
}

.topbar-search input::placeholder { color: var(--text-muted); }

/* Notification Bell */
.notification-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
}

.notification-btn:hover {
  background: var(--hover);
  color: var(--primary);
  border-color: var(--primary);
}

.notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

/* User Avatar */
.user-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--transition);
}

.user-avatar-btn:hover { border-color: var(--primary); }

.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   DASHBOARD CONTENT
   ============================ */
.dash-content { padding: 28px; }

/* Welcome Banner */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #2DD4BF);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  color: #fff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.welcome-banner h2 { color: #fff; font-size: 1.4rem; margin-bottom: 6px; }
.welcome-banner p { opacity: 0.9; font-size: 0.92rem; }

.welcome-stats { display: flex; gap: 32px; }
.welcome-stat { text-align: center; }
.welcome-stat .ws-value { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); }
.welcome-stat .ws-label { font-size: 0.78rem; opacity: 0.85; }

/* ============================
   KPI CARDS
   ============================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

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

.kpi-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}

.kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-icon.teal { background: var(--primary-bg-strong); color: var(--primary); }
.kpi-icon.blue { background: var(--info-bg); color: var(--info); }
.kpi-icon.green { background: var(--success-bg); color: var(--success); }
.kpi-icon.purple { background: var(--purple-bg); color: var(--purple); }
.kpi-icon.orange { background: var(--warning-bg); color: var(--warning); }

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.kpi-change {
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kpi-change.up { color: var(--success); }
.kpi-change.down { color: var(--danger); }

.kpi-sparkline { margin-top: 12px; }
.kpi-sparkline svg { width: 100%; height: 32px; }

/* ============================
   CHART CARDS
   ============================ */
.chart-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.chart-row.equal { grid-template-columns: 1fr 1fr; }

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

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

.chart-card-header h3 { font-size: 1rem; font-weight: 700; }

.chart-wrap { position: relative; height: 280px; }

/* ============================
   DATA TABLES
   ============================ */
.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.data-table-header h3 { font-size: 1rem; font-weight: 700; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-family: var(--font-heading);
}

.data-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr { transition: background var(--transition); }
.data-table tbody tr:hover { background: var(--hover); }
.data-table tbody tr:last-child td { border-bottom: none; }

th[data-sort] { cursor: pointer; user-select: none; }

th[data-sort]::after {
  content: ' \f0dc';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 4px;
}

th[data-sort].asc::after { content: ' \f0de'; color: var(--primary); }

/* Product Thumbnail */
.product-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stock Level Bar */
.stock-bar {
  width: 60px;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.stock-bar .stock-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.stock-bar .stock-fill.high { background: var(--success); }
.stock-bar .stock-fill.medium { background: var(--warning); }
.stock-bar .stock-fill.low { background: var(--danger); }

/* ============================
   PRODUCT GRID
   ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.product-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-surface);
}

.product-card-body { padding: 18px; }

.product-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text);
}

.product-card-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-card-price .price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.product-card-actions { display: flex; gap: 6px; }

/* View Toggle */
.view-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.view-toggle button {
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: all var(--transition);
  border: none;
  background: transparent;
  cursor: pointer;
}

.view-toggle button.active { background: var(--primary); color: #fff; }

/* ============================
   FILTER BAR
   ============================ */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

/* Filter Panel (collapsible) */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: none;
}

.filter-panel.open { display: block; }

.filter-panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* Bulk Actions Bar */
.bulk-bar {
  background: var(--primary-bg-strong);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bulk-bar.show { display: flex; }

.bulk-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.bulk-bar-actions { display: flex; gap: 8px; }

/* ============================
   ORDER STATUS TABS
   ============================ */
.order-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
}

.order-tab {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.order-tab:hover { color: var(--primary); }

.order-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.order-tab .tab-count {
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  margin-left: 6px;
}

.order-tab.active .tab-count {
  background: var(--primary-bg-strong);
  color: var(--primary-dark);
}

/* Order Stats Cards */
.order-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.order-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.order-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.order-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Order Detail Expandable */
.order-detail-row { display: none; }
.order-detail-row.open { display: table-row; }

.order-detail-content {
  padding: 24px;
  background: var(--bg-surface);
}

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-field { margin-bottom: 12px; }

.detail-field .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.detail-field .value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--bg-card);
}

.timeline-item.active::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.timeline-item.completed::before {
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-bg);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================
   SUPPLIER GRID
   ============================ */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.supplier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
}

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

.supplier-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.supplier-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
  overflow: hidden;
}

.supplier-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supplier-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.supplier-country {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.supplier-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.supplier-stat {
  text-align: center;
  padding: 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
}

.supplier-stat .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.supplier-stat .label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.supplier-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.supplier-rating i { color: #FBBF24; font-size: 0.85rem; }

.supplier-rating .score {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: 6px;
}

.performance-bar {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.performance-bar .perf-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  transition: width 0.8s ease;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
}

.comparison-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.comparison-table td.best {
  color: var(--success);
  font-weight: 700;
}

/* ============================
   ANALYTICS GRID
   ============================ */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

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

.analytics-card.analytics-full { grid-column: 1 / -1; }

/* Date Range Picker */
.date-range-picker {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.date-range-picker button {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-heading);
}

.date-range-picker button.active { background: var(--primary); color: #fff; }
.date-range-picker button:hover:not(.active) { background: var(--hover); color: var(--primary); }

/* Metric Rows */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.metric-row:last-child { border-bottom: none; }

.metric-label {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 600;
}

.metric-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Progress Bars */
.prog {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}

.prog-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary);
  width: 0;
  transition: width 1s ease;
}

/* Export Dropdown */
.export-dropdown { position: relative; }

.export-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  min-width: 160px;
  z-index: 100;
}

.export-menu.open { display: block; }

.export-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.export-menu button:hover { background: var(--hover); color: var(--primary); }

/* ============================
   SETTINGS LAYOUT
   ============================ */
.settings-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
}

.settings-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  position: sticky;
  top: calc(var(--demo-banner-height) + var(--topbar-height) + 28px);
  align-self: start;
}

.settings-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.settings-nav-link i {
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.settings-nav-link:hover { background: var(--hover); color: var(--primary); }
.settings-nav-link:hover i { color: var(--primary); }

.settings-nav-link.active { background: var(--primary-bg-strong); color: var(--primary); }
.settings-nav-link.active i { color: var(--primary); }

.settings-panel { min-width: 0; }

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.settings-section h3 { font-size: 1.15rem; margin-bottom: 4px; }
.settings-section > p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 24px; }

/* Setting Rows */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}

.setting-row:last-child { border-bottom: none; }

.setting-info h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.setting-info p { font-size: 0.82rem; color: var(--text-dim); }

/* Toggle Switch */
.toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: all var(--transition);
}

.toggle.on { background: var(--primary); }
.toggle.on::after { left: 23px; }

/* Notification Matrix */
.notification-matrix {
  width: 100%;
  border-collapse: collapse;
}

.notification-matrix th {
  text-align: center;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-heading);
}

.notification-matrix th:first-child { text-align: left; }

.notification-matrix td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.notification-matrix td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
}

/* Team Members */
.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.team-member:last-child { border-bottom: none; }

.team-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info { flex: 1; }
.team-name { font-weight: 700; font-size: 0.92rem; }
.team-email { font-size: 0.78rem; color: var(--text-dim); }

/* ============================
   FORMS
   ============================ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

textarea.form-input { min-height: 100px; resize: vertical; }

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.masked-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.masked-input input { flex: 1; }

/* Range Slider */
.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-surface);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(20,184,166,0.3);
}

/* Connection Status */
.connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.connection-dot.connected {
  background: var(--success);
  box-shadow: 0 0 6px rgba(34,197,94,0.4);
}

.connection-dot.disconnected { background: var(--danger); }

/* ============================
   MODALS
   ============================ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.modal-bg.show { display: flex; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: var(--shadow-xl);
}

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

.modal-header h2 { font-size: 1.2rem; }

.modal-x {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border: none;
}

.modal-x:hover { background: var(--hover); color: var(--text); }

/* Success Message */
.smsg {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.smsg.show { display: block; }

/* ============================
   ALERT ITEMS
   ============================ */
.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.alert-item:last-child { border-bottom: none; }

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alert-dot.critical { background: var(--danger); box-shadow: 0 0 6px rgba(239,68,68,0.4); }
.alert-dot.warning { background: var(--warning); box-shadow: 0 0 6px rgba(245,158,11,0.4); }

.alert-item-info { flex: 1; }
.alert-item-name { font-weight: 700; font-size: 0.88rem; }
.alert-item-stock { font-size: 0.78rem; color: var(--text-dim); }

/* ============================
   DETAIL PANEL
   ============================ */
.detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.detail-item .label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.detail-item .value {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============================
   PILL TABS
   ============================ */
.pill-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  font-family: var(--font-heading);
}

.pill:hover { color: var(--primary); border-color: var(--primary); }
.pill.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Tooltip */
.tooltip-wrap { position: relative; display: inline-flex; }

.tooltip-wrap .tooltip-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #F1F5F9;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  margin-bottom: 8px;
  z-index: 100;
}

.tooltip-wrap:hover .tooltip-text { opacity: 1; }

/* Import Preview */
.import-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
  display: none;
}

.import-preview.show { display: block; }

/* Invite Form */
.invite-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.invite-form input { flex: 1; }

/* Expandable Rows */
.expandable-row { cursor: pointer; }
.expandable-row:hover { background: var(--hover); }

.expand-icon {
  transition: transform var(--transition);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.expand-icon.rotated { transform: rotate(90deg); }

/* ============================
   UTILITY CLASSES
   ============================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-28 { margin-bottom: 28px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   SWIPER OVERRIDES
   ============================ */
.swiper { padding-bottom: 50px !important; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline { font-size: 2.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.popular { transform: none; }
  .price-card.popular:hover { transform: translateY(-4px); }
  .chart-row { grid-template-columns: 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .order-stats { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar.collapsed { width: var(--sidebar-width); }
  .main-content { margin-left: 0 !important; }
  .sidebar-toggle { display: flex; }
  .hamburger { display: flex; }

  .topnav-links {
    position: fixed;
    top: calc(var(--demo-banner-height) + var(--topbar-height));
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 800;
  }

  .topnav-links.open { display: flex; }
  .topnav-links a { padding: 12px 16px; width: 100%; }

  .welcome-banner { flex-direction: column; text-align: center; }
  .welcome-stats { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .order-stats { grid-template-columns: 1fr; }
  .supplier-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dash-content { padding: 16px; }
  .filter-bar { flex-direction: column; }
  .filter-bar .form-input { width: 100% !important; }
  .topnav { padding: 0 16px; }
  .stats-strip { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .platforms-row { gap: 16px; }
  .platform-item { min-width: 120px; padding: 16px 20px; }
  .trusted-logos { gap: 24px; }
  .hero-proof { flex-direction: column; gap: 10px; }
  .order-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .product-grid { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  .demo-banner, .sidebar, .sidebar-overlay, .dash-topbar, .topnav { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .dash-content { padding: 0 !important; }
}
