/* ================================================================
   SOFT ENLIGHTENED — Design System
   Premium Dark Navy Theme · Gold & Blue Accents
   Inspired by Commerce Studio
   ================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette — Dark Navy (Default) */
  --bg-primary:    #0a0f1a;
  --bg-secondary:  #0f1729;
  --bg-tertiary:   #151d30;
  --bg-card:       rgba(15, 23, 42, 0.65);
  --bg-glass:      rgba(15, 23, 42, 0.55);
  --bg-glass-hover:rgba(15, 23, 42, 0.75);

  --text-primary:  #f8fafc;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --accent-primary:   #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-tertiary:  #ffd700;
  --accent-gold:      #ffd700;

  --gradient-primary: linear-gradient(135deg, #1e3a8a, #2563eb, #3b82f6);
  --gradient-hero:    linear-gradient(135deg, #0a0f1a 0%, #1e3a8a 25%, #2563eb 60%, #3b82f6 80%, #60a5fa 100%);
  --gradient-warm:    linear-gradient(135deg, #ffd700, #ffef8a);
  --gradient-glass:   linear-gradient(135deg, rgba(96,165,250,0.08), rgba(59,130,246,0.04));
  --gradient-gold-blue: linear-gradient(135deg, #ffd700, #60a5fa);

  --border-color:  rgba(148, 163, 184, 0.2);
  --border-glow:   rgba(96, 165, 250, 0.4);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg:  0 16px 48px rgba(15,23,42,0.45);
  --shadow-glow:0 0 40px rgba(59,130,246,0.15);
  --shadow-blue:0 20px 45px rgba(30, 58, 138, 0.35);
  --shadow-card:0 18px 40px rgba(15, 23, 42, 0.35);
  --shadow-gold:0 15px 40px rgba(255, 215, 0, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Theme Override ───────────────────────────────────────── */
[data-theme="light"] {
  --bg-primary:    #f7f9fc;
  --bg-secondary:  #eef2f7;
  --bg-tertiary:   #e3e9f0;
  --bg-card:       rgba(255,255,255,0.82);
  --bg-glass:      rgba(255,255,255,0.6);
  --bg-glass-hover:rgba(255,255,255,0.85);

  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #94a3b8;

  --gradient-glass: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(96,165,250,0.04));

  --border-color:  rgba(148, 163, 184, 0.22);
  --border-glow:   rgba(59,130,246,0.3);

  --shadow-sm:  0 2px 8px rgba(59,130,246,0.06);
  --shadow-md:  0 8px 32px rgba(59,130,246,0.08);
  --shadow-lg:  0 16px 48px rgba(59,130,246,0.1);
  --shadow-glow:0 0 40px rgba(59,130,246,0.08);
  --shadow-blue:0 12px 30px rgba(30, 58, 138, 0.12);
  --shadow-card:0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-gold:0 8px 24px rgba(255, 215, 0, 0.1);
}

/* Light navbar */
[data-theme="light"] .navbar {
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(148,163,184,0.22);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 24px rgba(30,58,138,0.06);
}
[data-theme="light"] .nav-toggle span {
  background: #0f172a;
}
[data-theme="light"] .nav-menu.open {
  background: rgba(255,255,255,0.98);
}
[data-theme="light"] .dropdown-menu {
  background: #fff;
}
[data-theme="light"] .hero-visual-float {
  background: rgba(255,255,255,0.92);
}
[data-theme="light"] .hero-visual-card {
  border-color: rgba(59,130,246,0.15);
  box-shadow: 0 8px 32px rgba(30,58,138,0.08);
}
[data-theme="light"] .hero-bg {
  opacity: 0.4;
}
[data-theme="light"] .hero-grid-lines {
  opacity: 0.03;
}
[data-theme="light"] ::selection {
  background: rgba(59,130,246,0.2);
  color: #0f172a;
}
[data-theme="light"] .card {
  background: rgba(255,255,255,0.82);
  box-shadow: 0 2px 12px rgba(30,58,138,0.06);
}
[data-theme="light"] .glass-panel {
  background: rgba(255,255,255,0.78);
  box-shadow: 0 2px 12px rgba(30,58,138,0.06);
  color: #0f172a;
}
[data-theme="light"] .glass-panel h3 { color: #0f172a; }
[data-theme="light"] .card-icon {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.12);
  color: var(--accent-primary);
}
[data-theme="light"] .feature-icon {
  box-shadow: 0 8px 24px rgba(255,215,0,0.12);
}
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] body {
  background: var(--bg-primary);
}
[data-theme="light"] .site-footer {
  background: #0a0f1a;
  color: #f8fafc;
}

/* Theme icon toggling */
[data-theme="dark"]  #themeIconLight { display: inline-block; }
[data-theme="dark"]  #themeIconDark  { display: none; }
[data-theme="light"] #themeIconLight { display: none; }
[data-theme="light"] #themeIconDark  { display: inline-block; }

/* ── Theme Toggle Button ─────────────────────────────────────── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-glass); color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover {
  color: var(--accent-gold); border-color: var(--accent-gold);
  background: var(--bg-glass-hover);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: linear-gradient(135deg, #0a0f1a 0%, #1e3a8a 45%, #3b82f6 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--accent-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-gold); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(96,165,250,0.3); color: #f8fafc; }

/* ── Container ────────────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent-gold);
  margin-bottom: 1rem; font-family: var(--font);
}
.section-label::before {
  content: ''; width: 2rem; height: 2px;
  background: var(--gradient-gold-blue); border-radius: 2px;
}

.gradient-text {
  background: var(--gradient-gold-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border: none; border-radius: 16px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue), 0 25px 50px -12px rgba(37,99,235,0.35); color: #fff; }

.btn-secondary {
  background: linear-gradient(135deg, #ffd700 0%, #ffef4e 100%);
  color: #0f172a;
  box-shadow: var(--shadow-gold);
  font-weight: 600;
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold), 0 20px 40px rgba(255,215,0,0.2); color: #0f172a; }

.btn-outline {
  background: transparent; color: #e2e8f0;
  border: 2px solid rgba(148, 163, 184, 0.4);
}
.btn-outline:hover { background: rgba(148,163,184,0.1); transform: translateY(-2px); color: #f8fafc; }

[data-theme="light"] .btn-outline {
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.35);
}

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--accent-gold); }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

.btn-danger { background: #ef4444; color: #fff; }
.btn-success { background: #0f766e; color: #fff; }

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 15, 26, 0.98);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: var(--text-primary);
}
.brand-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--gradient-gold-blue); color: #0f172a;
  font-weight: 800; font-size: 0.9rem; letter-spacing: -0.02em;
}
.brand-logo {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  object-fit: cover;
}
.brand-text {
  font-size: 1.25rem; font-weight: 700;
  color: #e2e8f0;
}
.brand-accent {
  background: var(--gradient-gold-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

[data-theme="light"] .brand-text { color: #0f172a; }
[data-theme="light"] .brand-accent {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500; color: #e2e8f0;
  transition: all var(--transition); text-decoration: none;
  position: relative; font-family: var(--font);
}
.nav-link::after {
  content: '';
  position: absolute; left: 1rem; right: 1rem; bottom: 0.25rem;
  height: 2px; background: var(--gradient-gold-blue);
  transform: scaleX(0); opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1); opacity: 1;
}
.nav-link:hover, .nav-link.active {
  color: #f8fafc;
}

[data-theme="light"] .nav-link { color: var(--text-secondary); }
[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  color: #e2e8f0; transition: all var(--transition);
  text-decoration: none;
}
.nav-cart:hover { color: #f8fafc; background: rgba(148,163,184,0.1); }

[data-theme="light"] .nav-cart { color: var(--text-secondary); }
[data-theme="light"] .nav-cart:hover { color: var(--text-primary); background: var(--bg-glass); }

.cart-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 18px; height: 18px; border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(15,23,42,0.35);
}

.nav-user-dropdown { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem; border: 1px solid var(--border-color);
  border-radius: var(--radius-full); background: rgba(15,23,42,0.6);
  color: #e2e8f0; font-size: 0.85rem;
  cursor: pointer; font-family: var(--font); transition: all var(--transition);
}
.nav-user-btn:hover { border-color: rgba(96,165,250,0.5); color: #f8fafc; }

[data-theme="light"] .nav-user-btn {
  background: var(--bg-glass); color: var(--text-secondary);
}
[data-theme="light"] .nav-user-btn:hover { border-color: var(--accent-primary); color: var(--text-primary); }

.dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; padding: 0.5rem;
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: var(--radius-xl); box-shadow: 0 22px 44px rgba(15,23,42,0.45);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: rgba(226,232,240,0.92);
  transition: all var(--transition); text-decoration: none;
}
.dropdown-item:hover { background: rgba(59,130,246,0.12); color: #f8fafc; }

[data-theme="light"] .dropdown-item { color: var(--text-secondary); }
[data-theme="light"] .dropdown-item:hover { background: var(--bg-glass); color: var(--text-primary); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 1003; position: relative;
}
.nav-toggle span {
  width: 24px; height: 2.5px; background: #e2e8f0;
  border-radius: 2px; transition: all 0.3s ease;
  display: block;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5.5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5.5px);
}
[data-theme="light"] .nav-toggle span {
  background: #0f172a;
}

/* ── Flash Messages ───────────────────────────────────────────── */
.flash-message {
  padding: 0.75rem 0; font-size: 0.9rem;
  position: relative; z-index: 900; margin-top: var(--nav-height);
}
.flash-message .container { display: flex; align-items: center; justify-content: space-between; }
.flash-success { background: rgba(15,118,110,0.18); color: #34d399; border-bottom: 1px solid rgba(15,118,110,0.25); }
.flash-error   { background: rgba(239,68,68,0.18); color: #fca5a5; border-bottom: 1px solid rgba(239,68,68,0.25); }
.flash-info    { background: rgba(59,130,246,0.15); color: #93c5fd; border-bottom: 1px solid rgba(59,130,246,0.2); }
.flash-close { background: none; border: none; color: inherit; font-size: 1.3rem; cursor: pointer; padding: 0 0.5rem; }

[data-theme="light"] .flash-success { background: rgba(0,184,148,0.12); color: #059669; }
[data-theme="light"] .flash-error   { background: rgba(231,76,60,0.12); color: #dc2626; }
[data-theme="light"] .flash-info    { background: rgba(59,130,246,0.1); color: #2563eb; }

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,15,26,0.9) 0%, rgba(30,58,138,0.8) 35%, rgba(37,99,235,0.65) 65%, rgba(96,165,250,0.4) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 70%, var(--bg-primary));
}

.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    linear-gradient(rgba(148,163,184,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.2) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: orbFloat 15s ease-in-out infinite;
}
.hero-orb-1 { width: 400px; height: 400px; background: rgba(30,58,138,0.3); top: 10%; left: -5%; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(59,130,246,0.2); bottom: 10%; right: -5%; animation-delay: -7s; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Slider */
.hero-slider { position: relative; z-index: 1; width: 100%; }
.hero-slides { position: relative; }

.hero-slide {
  display: none; animation: fadeSlide 0.8s ease forwards;
}
.hero-slide.active { display: flex; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  min-height: calc(100vh - var(--nav-height));
  padding: 4rem 0;
}

.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  background: rgba(96,165,250,0.18);
  border: 1px solid rgba(148,163,184,0.25);
  font-size: 0.75rem; font-weight: 600; color: #bfdbfe;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.5rem; font-family: var(--font);
}

[data-theme="light"] .hero-badge {
  background: var(--bg-glass); border-color: var(--border-color);
  color: var(--accent-primary);
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700; line-height: 1.05;
  margin-bottom: 1.5rem; letter-spacing: -0.02em;
  color: #f8fafc;
}

[data-theme="light"] .hero-title { color: var(--text-primary); }

.hero-desc {
  font-size: 1.2rem; color: rgba(255,255,255,0.85);
  line-height: 1.8; margin-bottom: 2.5rem;
}

[data-theme="light"] .hero-desc { color: var(--text-secondary); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-visual-card {
  width: 100%; max-width: 480px; aspect-ratio: 4/3;
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 28px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 35px 70px rgba(2,6,23,0.45);
}
.hero-visual-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.12), transparent 60%);
}
.hero-visual-icon {
  font-size: 6rem; opacity: 0.5;
  background: var(--gradient-gold-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-product-img {
  width: 100%; height: 100%; object-fit: cover;
  position: relative; z-index: 1;
  border-radius: inherit;
}
.hero-visual-float {
  position: absolute; padding: 0.75rem 1.25rem;
  background: rgba(15,23,42,0.78); backdrop-filter: blur(14px);
  border: 1px solid rgba(148,163,184,0.28); border-radius: 16px;
  font-size: 0.8rem; color: #e2e8f0;
  box-shadow: 0 16px 32px rgba(2,6,23,0.35);
  animation: float 6s ease-in-out infinite;
}
.hero-visual-float.f1 { top: 10%; right: -10%; animation-delay: -2s; }
.hero-visual-float.f2 { bottom: 15%; left: -10%; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Slider Controls */
.hero-controls {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 3rem; position: relative; z-index: 2;
}

.hero-dots { display: flex; gap: 0.5rem; }
.hero-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(148,163,184,0.4); border: none; cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active {
  background: var(--accent-gold);
  transform: scale(1.2);
}

.hero-arrows { display: flex; gap: 0.5rem; }
.hero-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(15,23,42,0.65); border: 1px solid rgba(148,163,184,0.3);
  color: #e2e8f0; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all var(--transition);
  font-size: 1rem;
}
.hero-arrow:hover { background: rgba(37,99,235,0.65); transform: scale(1.05); }

[data-theme="light"] .hero-arrow {
  background: var(--bg-glass); border-color: var(--border-color); color: var(--text-secondary);
}
[data-theme="light"] .hero-arrow:hover { border-color: var(--accent-primary); color: var(--text-primary); }

/* ── Cards (Products, Services) ───────────────────────────────── */
.card {
  background: rgba(15,23,42,0.65);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: var(--radius-xl); padding: 2.25rem;
  transition: all var(--transition); position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient-gold-blue); opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(96,165,250,0.4);
  box-shadow: 0 24px 50px rgba(30,58,138,0.32);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 64px; height: 64px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(96,165,250,0.9), rgba(192,132,252,0.85));
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #f8fafc;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(226,232,240,0.25);
}

/* Feature-specific gold icon style */
.feature-icon {
  width: 82px; height: 82px; border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #ffd700, #ffef8a);
  color: #0f172a;
}

.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; font-family: var(--font); }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.card-price {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-gold-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
.card-features {
  list-style: none; margin-bottom: 1.5rem;
}
.card-features li {
  padding: 0.3rem 0; font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.5rem;
}
.card-features li::before {
  content: '✓'; color: var(--accent-gold); font-weight: 700; font-size: 0.75rem;
}
.card-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Product image card */
.card-img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 1.5rem;
  background: var(--bg-tertiary);
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  padding: 5rem 0; position: relative;
  background: rgba(10, 15, 26, 0.92);
}
.section:nth-child(even) {
  background: linear-gradient(180deg, rgba(10,15,26,0.92), rgba(15,23,42,0.95));
}

[data-theme="light"] .section {
  background: var(--bg-primary);
}
[data-theme="light"] .section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 3rem;
}
.section-header p {
  color: var(--text-muted); font-size: 1.05rem; margin-top: 1rem;
}

/* Grid layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Stats Bar ────────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 3rem 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-size: 2.5rem; font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.2; font-family: var(--font);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; font-family: var(--font); }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: rgba(255,255,255,0.82); margin-bottom: 0.5rem;
  font-family: var(--font);
}

[data-theme="light"] .form-label { color: var(--text-secondary); }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 12px; color: #f8fafc;
  font-family: var(--font); font-size: 0.9rem;
  transition: all var(--transition);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: var(--bg-glass);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: rgba(96,165,250,0.8);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Glass Card (for forms & panels) ──────────────────────────── */
.glass-panel {
  background: linear-gradient(160deg, rgba(10,15,26,0.96), rgba(30,58,138,0.88));
  border: 1px solid rgba(148,163,184,0.35);
  border-radius: var(--radius-xl); padding: 2.5rem;
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 70px rgba(2,6,23,0.58);
  color: #f8fafc;
}

/* ── Category Tabs / Filters ──────────────────────────────────── */
.filter-tabs {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 3rem; justify-content: center;
}
.filter-tab {
  padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
  background: rgba(15,23,42,0.6); border: 1px solid rgba(148,163,184,0.25);
  color: #e2e8f0; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  font-family: var(--font);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--accent-primary); color: #fff; border-color: var(--accent-primary);
}

[data-theme="light"] .filter-tab {
  background: var(--bg-glass); border-color: var(--border-color); color: var(--text-secondary);
}

/* ── Shop Grid ────────────────────────────────────────────────── */
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ── Cart ──────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }

.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 1.5rem; align-items: center;
  padding: 1.5rem; border-bottom: 1px solid var(--border-color);
}
.cart-item-img {
  width: 80px; height: 60px; border-radius: var(--radius-sm);
  background: var(--bg-tertiary); object-fit: cover;
}
.cart-item-name { font-weight: 600; margin-bottom: 0.25rem; font-family: var(--font); color: var(--text-primary); }
.cart-item-price { color: var(--text-secondary); font-size: 0.9rem; }
.cart-item-total { font-weight: 700; font-size: 1.1rem; text-align: right; color: var(--text-primary); }

.cart-qty {
  display: inline-flex; align-items: center; gap: 0; margin-top: 0.5rem;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
}
.cart-qty button {
  width: 32px; height: 32px; background: none; border: none;
  color: var(--text-secondary); cursor: pointer; font-size: 1rem;
  transition: color var(--transition);
}
.cart-qty button:hover { color: var(--accent-gold); }
.cart-qty span {
  width: 40px; text-align: center; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary);
}

.cart-summary {
  position: sticky; top: calc(var(--nav-height) + 2rem);
}
.cart-summary-row {
  display: flex; justify-content: space-between; padding: 0.75rem 0;
  font-size: 0.95rem; color: var(--text-secondary);
}
.cart-summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem; margin-top: 0.5rem;
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
}

/* Light mode cart improvements */
[data-theme="light"] .cart-item-name { color: #0f172a; }
[data-theme="light"] .cart-item-total { color: #0f172a; }
[data-theme="light"] .cart-item-price { color: #475569; }
[data-theme="light"] .cart-summary h3 { color: #0f172a; }
[data-theme="light"] .cart-summary-row { color: #475569; }
[data-theme="light"] .cart-summary-row.total { color: #0f172a; }
[data-theme="light"] .cart-qty span { color: #0f172a; }
[data-theme="light"] .cart-qty button { color: #475569; }

/* ── About Page ───────────────────────────────────────────────── */
.about-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-img-wrap {
  aspect-ratio: 1/1; border-radius: var(--radius-xl);
  background: rgba(15,23,42,0.7); border: 1px solid rgba(148,163,184,0.2);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}

[data-theme="light"] .about-img-wrap {
  background: var(--gradient-glass); border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { text-align: center; }
.value-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: var(--radius-full); background: rgba(96,165,250,0.18);
  border: 1px solid rgba(148,163,184,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--accent-gold);
}

[data-theme="light"] .value-icon {
  background: var(--gradient-glass); border-color: var(--border-color); color: var(--accent-primary);
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.team-card { text-align: center; }
.team-avatar {
  width: 120px; height: 120px; border-radius: var(--radius-full);
  margin: 0 auto 1.25rem; background: rgba(96,165,250,0.15);
  border: 2px solid rgba(148,163,184,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--accent-secondary);
}

[data-theme="light"] .team-avatar {
  background: var(--gradient-glass); border-color: var(--border-color); color: var(--accent-primary);
}

.team-name { font-size: 1.1rem; font-weight: 700; font-family: var(--font); }
.team-role { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ── Contact Page ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-card {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; border-radius: var(--radius-md);
  background: rgba(15,23,42,0.6); border: 1px solid rgba(148,163,184,0.2);
  margin-bottom: 1rem;
}

[data-theme="light"] .contact-info-card {
  background: var(--bg-glass); border-color: var(--border-color);
}

.contact-info-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: var(--radius-sm);
  background: rgba(96,165,250,0.18); border: 1px solid rgba(148,163,184,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-gold);
}

[data-theme="light"] .contact-info-icon {
  background: var(--gradient-glass); border-color: var(--border-color); color: var(--accent-primary);
}

.contact-info-text h4 { font-size: 0.95rem; margin-bottom: 0.25rem; font-family: var(--font); }
.contact-info-text p { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Vacancies ────────────────────────────────────────────────── */
.vacancy-card {
  padding: 2rem; background: rgba(15,23,42,0.65);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: var(--radius-lg); transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.vacancy-card:hover {
  border-color: rgba(96,165,250,0.4);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(30,58,138,0.3);
}

[data-theme="light"] .vacancy-card {
  background: var(--bg-card); border-color: var(--border-color); box-shadow: var(--shadow-sm);
}
[data-theme="light"] .vacancy-card:hover {
  border-color: var(--border-glow); box-shadow: var(--shadow-glow);
}

.vacancy-meta {
  display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.75rem 0 1rem;
}
.vacancy-tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  background: rgba(96,165,250,0.12); border: 1px solid rgba(148,163,184,0.2);
  font-size: 0.75rem; color: var(--text-muted);
}

[data-theme="light"] .vacancy-tag {
  background: var(--bg-glass); border-color: var(--border-color);
}

/* ── Auth Pages ───────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 1rem 2rem;
}
.auth-card {
  width: 100%; max-width: 440px;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.auth-header p { color: var(--text-secondary); font-size: 0.95rem; }
.auth-divider {
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
  margin: 1.5rem 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 1.5rem); height: 1px; background: var(--border-color);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ── Page Header ──────────────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center; position: relative;
  background: rgba(10,15,26,0.92);
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(30,58,138,0.2) 0%, transparent 60%);
}

[data-theme="light"] .page-header {
  background: transparent;
}
[data-theme="light"] .page-header::before {
  background: radial-gradient(ellipse at center top, rgba(59,130,246,0.06) 0%, transparent 60%);
}

/* ── Product Detail ───────────────────────────────────────────── */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  padding-top: 2rem; align-items: start;
}
.product-img-wrap {
  aspect-ratio: 4/3; border-radius: var(--radius-xl);
  background: rgba(15,23,42,0.55); border: 1px solid rgba(148,163,184,0.2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: var(--shadow-card);
}

[data-theme="light"] .product-img-wrap {
  background: var(--gradient-glass); border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.product-info h1 { font-size: 2.2rem; margin-bottom: 0.75rem; }
.product-info .card-price { font-size: 2rem; margin-bottom: 1.5rem; }
.product-info .card-desc { font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }

/* ── Featured Ribbon ──────────────────────────────────────────── */
.section-divider {
  height: 1px; background: var(--border-color); margin: 0;
}
.glow-line {
  height: 1px;
  background: var(--gradient-gold-blue);
  opacity: 0.4;
}

/* ── CTA Section ──────────────────────────────────────────────── */
.cta-section {
  text-align: center; padding: 6rem 0;
  position: relative;
  background: rgba(5,10,26,0.95);
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(30,58,138,0.2) 0%, transparent 60%);
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-secondary); max-width: 500px; margin: 0 auto 2rem; }

[data-theme="light"] .cta-section {
  background: var(--bg-secondary);
}
[data-theme="light"] .cta-section::before {
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.04) 0%, transparent 60%);
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  position: relative; padding: 5rem 0 0;
  border-top: 1px solid rgba(148,163,184,0.2);
  background: rgba(5, 8, 18, 0.96);
  color: #f8fafc;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(148,163,184,0.2);
  --bg-glass: rgba(15,23,42,0.55);
  --accent-primary: #60a5fa;
}
.footer-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 400px; height: 1px;
  background: var(--gradient-gold-blue); filter: blur(1px);
}

.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
}

.footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; color: #f8fafc;
  margin-bottom: 1rem;
}
.site-footer .brand-text { color: #f8fafc; }
.site-footer .brand-accent {
  background: var(--gradient-gold-blue);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }

.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: var(--radius-full);
  background: var(--bg-glass); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 1rem;
  transition: all var(--transition); text-decoration: none;
}
.footer-socials a:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.footer-col h4 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem;
  color: var(--text-primary); font-family: var(--font);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: var(--text-secondary);
  transition: color var(--transition); text-decoration: none;
}
.footer-col ul li a:hover { color: var(--accent-gold); }

.footer-contact li {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem;
  color: var(--text-secondary);
}
.footer-contact li i { color: var(--accent-gold); font-size: 0.9rem; }

.footer-bottom {
  padding: 1.5rem 0; border-top: 1px solid var(--border-color);
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ── Admin Layout ─────────────────────────────────────────────── */
.admin-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 100vh; padding-top: var(--nav-height);
}

.admin-sidebar {
  background: rgba(15,23,42,0.95); border-right: 1px solid var(--border-color);
  padding: 2rem 0; position: sticky; top: var(--nav-height);
  height: calc(100vh - var(--nav-height)); overflow-y: auto;
}

[data-theme="light"] .admin-sidebar {
  background: var(--bg-secondary);
}

.admin-sidebar-nav { list-style: none; }
.admin-sidebar-nav li a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1.5rem; font-size: 0.9rem;
  color: var(--text-secondary); transition: all var(--transition);
  text-decoration: none;
}
.admin-sidebar-nav li a:hover, .admin-sidebar-nav li a.active {
  color: var(--text-primary); background: rgba(96,165,250,0.12);
  border-right: 2px solid var(--accent-primary);
}

[data-theme="light"] .admin-sidebar-nav li a:hover,
[data-theme="light"] .admin-sidebar-nav li a.active {
  background: var(--bg-glass);
}

.admin-main { padding: 2rem 2.5rem; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-header h1 { font-size: 1.6rem; }

/* Admin Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.admin-table th {
  padding: 0.9rem 1rem; text-align: left; font-weight: 600;
  color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font);
}
.admin-table td {
  padding: 0.9rem 1rem; border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}
.admin-table tr:hover td { background: rgba(96,165,250,0.05); }

[data-theme="light"] .admin-table tr:hover td { background: var(--bg-glass); }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-success { background: rgba(15,118,110,0.2); color: #34d399; }
.badge-warning { background: rgba(245,158,11,0.2); color: #fbbf24; }
.badge-danger  { background: rgba(239,68,68,0.2); color: #fca5a5; }
.badge-info    { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-neutral { background: var(--bg-glass); color: var(--text-muted); }

[data-theme="light"] .badge-success { background: rgba(0,184,148,0.12); color: #059669; }
[data-theme="light"] .badge-warning { background: rgba(245,158,11,0.12); color: #d97706; }
[data-theme="light"] .badge-danger  { background: rgba(231,76,60,0.12); color: #dc2626; }
[data-theme="light"] .badge-info    { background: rgba(59,130,246,0.08); color: #2563eb; }

/* Admin stats */
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  margin-bottom: 2rem;
}
.admin-stat-card {
  padding: 1.5rem; background: rgba(15,23,42,0.6);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}

[data-theme="light"] .admin-stat-card {
  background: var(--bg-card); border-color: var(--border-color); box-shadow: var(--shadow-sm);
}

.admin-stat-card .stat-label { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.admin-stat-card .stat-number {
  font-size: 1.8rem; font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font);
}

/* ── Modal ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 2rem;
  transform: translateY(20px); transition: transform var(--transition);
}
.modal-overlay.show .modal { transform: translateY(0); }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-header h2 { font-size: 1.3rem; }
.modal-close {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: var(--bg-glass); border: 1px solid var(--border-color);
  color: var(--text-secondary); cursor: pointer; display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text-primary); border-color: var(--accent-secondary); }

/* ── Loading Spinner ──────────────────────────────────────────── */
.spinner {
  width: 24px; height: 24px; border: 2px solid var(--border-color);
  border-top-color: var(--accent-primary); border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--bg-primary); display: flex;
  align-items: center; justify-content: center;
}

/* ── Scroll Animations ────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Portfolio ─────────────────────────────────────────────────── */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}
.portfolio-card {
  background: rgba(15,23,42,0.72); border: 1px solid rgba(148,163,184,0.2);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: all var(--transition); box-shadow: var(--shadow-card);
}
.portfolio-card:hover {
  border-color: rgba(96,165,250,0.4);
  transform: translateY(-10px);
  box-shadow: 0 26px 52px rgba(37,99,235,0.32);
}

[data-theme="light"] .portfolio-card {
  background: var(--bg-card); border-color: var(--border-color); box-shadow: var(--shadow-sm);
}
[data-theme="light"] .portfolio-card:hover {
  box-shadow: 0 12px 40px rgba(59,130,246,0.1);
}

.portfolio-card-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: rgba(15,23,42,0.4);
}

[data-theme="light"] .portfolio-card-img { background: var(--bg-glass); }

.portfolio-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.portfolio-card:hover .portfolio-card-img img { transform: scale(1.05); }
.portfolio-card-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(148,163,184,0.3);
}
.portfolio-card-overlay {
  position: absolute; inset: 0;
  background: rgba(10,15,26,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }
.portfolio-card-body { padding: 1.5rem; }
.portfolio-card-cat {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #93c5fd; font-weight: 600; margin-bottom: 0.5rem; display: block;
  font-family: var(--font);
}

[data-theme="light"] .portfolio-card-cat { color: var(--accent-primary); }

.portfolio-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; font-family: var(--font); }
.portfolio-card-desc {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.6; margin-bottom: 0.75rem;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.portfolio-card-client {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem;
}
.portfolio-card-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-tag {
  padding: 0.2rem 0.6rem; font-size: 0.7rem; border-radius: var(--radius-full);
  background: rgba(96,165,250,0.12); color: #93c5fd;
  border: 1px solid rgba(96,165,250,0.2);
}

[data-theme="light"] .tech-tag {
  background: rgba(59,130,246,0.08); color: var(--accent-primary);
  border-color: rgba(59,130,246,0.15);
}

/* ── Clients / Trusted By ─────────────────────────────────────── */
.clients-section {
  padding: 3rem 0; border-top: 1px solid var(--border-color);
  background: rgba(10,15,26,0.95);
}

[data-theme="light"] .clients-section {
  background: linear-gradient(180deg, transparent, rgba(59,130,246,0.03));
}

.clients-label {
  text-align: center; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted); font-weight: 600;
  margin-bottom: 2rem; font-family: var(--font);
}
.clients-track { overflow: hidden; position: relative; }
.clients-track::before, .clients-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.clients-track::before { left: 0; background: linear-gradient(90deg, rgba(10,15,26,0.95), transparent); }
.clients-track::after { right: 0; background: linear-gradient(-90deg, rgba(10,15,26,0.95), transparent); }

[data-theme="light"] .clients-track::before { left: 0; background: linear-gradient(90deg, var(--bg-primary), transparent); }
[data-theme="light"] .clients-track::after { right: 0; background: linear-gradient(-90deg, var(--bg-primary), transparent); }

.clients-logos {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2.5rem 3rem;
}
.client-logo-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; opacity: 0.85;
  transition: all 0.3s ease; text-decoration: none;
}
.client-logo-item:hover { opacity: 1; }
.client-logo-item img { max-height: 48px; max-width: 140px; object-fit: contain; }
.client-name-text {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em; white-space: nowrap; text-align: center;
}

/* ── Subscription Plan Cards ──────────────────────────────────── */
.plan-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.plan-card {
  position: relative; padding: 1.25rem 1rem; text-align: center;
  background: rgba(15,23,42,0.6); border: 2px solid rgba(148,163,184,0.2);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--transition);
}
.plan-card:hover { background: rgba(15,23,42,0.75); border-color: rgba(96,165,250,0.3); }
.plan-card.selected, .plan-card:has(.plan-radio:checked) {
  border-color: var(--accent-primary);
  background: rgba(59,130,246,0.12);
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
}

[data-theme="light"] .plan-card { background: var(--bg-glass); border-color: var(--border-color); }
[data-theme="light"] .plan-card:hover { background: var(--bg-glass-hover); border-color: rgba(59,130,246,0.3); }

.plan-radio { position: absolute; opacity: 0; pointer-events: none; }
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700, #ffef8a); color: #0f172a;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 0.2rem 0.75rem; border-radius: 20px; letter-spacing: 0.05em;
  white-space: nowrap;
}
.plan-popular { border-color: rgba(96,165,250,0.35); }
.plan-icon {
  font-size: 1.5rem; margin-bottom: 0.5rem;
  color: var(--accent-gold); opacity: 0.8;
}
.plan-label {
  font-weight: 700; font-size: 0.95rem; color: var(--text-primary);
  margin-bottom: 0.5rem; font-family: var(--font);
}
.plan-price { margin-bottom: 0.5rem; }
.plan-amount {
  font-size: 1.4rem; font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font);
}
.plan-period { font-size: 0.8rem; color: var(--text-muted); }
.plan-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* SME Workspace helpers */
.sme-promo-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

#docItemsTable .form-input {
  min-width: 90px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-slide-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual-card { max-width: 340px; aspect-ratio: 1/1; margin: 0 auto; border-radius: 24px; }
  .hero-visual-float { display: none; }
  .hero-actions { justify-content: center; }
  .hero-controls { justify-content: center; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .sme-promo-panel { grid-template-columns: 1fr; }

  /* Tablet nav: show toggle, hide inline menu */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: 0; left: 0; right: 0;
    bottom: 0; z-index: 1002;
    background: #0a0f1a;
    flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 0;
    padding: 4.5rem 2rem 1.5rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
  }
  .nav-menu.open {
    opacity: 1; visibility: visible;
  }
  .nav-links {
    flex-direction: column; align-items: center; gap: 0.15rem;
    width: 100%; max-width: 320px;
  }
  .nav-links li { width: 100%; }
  .nav-link {
    display: block; width: 100%; text-align: center;
    font-size: 1.05rem; padding: 0.65rem 1.5rem;
    color: #e2e8f0; border-radius: 12px;
    transition: all 0.2s ease;
  }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.active {
    color: #ffd700;
    background: rgba(96,165,250,0.1);
  }
  .nav-actions {
    flex-direction: row; align-items: center; gap: 1rem;
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid rgba(148,163,184,0.15);
  }

  [data-theme="light"] .nav-menu {
    background: #ffffff;
  }
  [data-theme="light"] .nav-menu .nav-link {
    color: #0f172a;
  }
  [data-theme="light"] .nav-menu .nav-link:hover,
  [data-theme="light"] .nav-menu .nav-link.active {
    color: #3b82f6;
    background: rgba(59,130,246,0.08);
  }
  [data-theme="light"] .nav-menu .nav-actions {
    border-top-color: rgba(148,163,184,0.2);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .clients-logos { gap: 1.5rem 2rem; }
  .plan-cards { grid-template-columns: repeat(2, 1fr); }

  .hero-visual-card { max-width: 260px; }
  .hero-slide-inner { gap: 2rem; padding: 2.5rem 0; }
  .hero-title { font-size: clamp(2rem, 7vw, 2.8rem); }
  .hero-desc { font-size: 1rem; }

  #docItemsTable .form-input {
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
