:root {
  --navy-dark: #0c1a32;
  --navy-secondary: #11294a;
  --navy-medium: #1a3a5c;
  --navy-light: #2a4f78;
  --gold: #f0b429;
  --gold-hover: #d4941a;
  --gold-glow: rgba(240,180,41,0.25);
  --accent: #06b6d4;
  --accent-hover: #0891b2;
  --accent-glow: rgba(6,182,212,0.25);
  --accent-light: rgba(6,182,212,0.08);
  --gradient-hero: linear-gradient(135deg, #0c1a32 0%, #11294a 40%, #1a3a5c 70%, #0c1a32 100%);
  --gradient-gold: linear-gradient(135deg, #f0b429 0%, #d4941a 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-footer: linear-gradient(135deg, #050d18 0%, #0c1a32 50%, #11294a 100%);
  --gradient-section: linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
  --text-light: #dce5f0;
  --text-muted: #8892b0;
  --text-dark: #0f1724;
  --bg-light: #f0f4f9;
  --white: #ffffff;
  --danger: #ef4444;
  --success: #10b981;
  --whatsapp: #25d366;
  --card-bg: #ffffff;
  --section-bg: #ffffff;
  --section-alt: #f0f4f9;
  --border-color: #e2edf2;
  --hero-overlay: rgba(12,26,50,0.65);
  --hero-overlay2: rgba(17,41,74,0.5);
  --hero-overlay3: rgba(26,58,92,0.4);
  --shadow: rgba(12,26,50,0.06);
  --shadow-hover: rgba(12,26,50,0.14);
  --header-bg: rgba(12, 26, 50, 0.95);
  --footer-bg: #050d18;
  --contact-bg: #0c1a32;
  --carousel-bg: #f0f4f9;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --navy-dark: #080d17;
  --navy-secondary: #0f1722;
  --navy-medium: #1a2332;
  --navy-light: #2d3a4f;
  --gold: #f0b429;
  --gold-hover: #d4941a;
  --gold-glow: rgba(240,180,41,0.15);
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-glow: rgba(34,211,238,0.15);
  --accent-light: rgba(34,211,238,0.06);
  --gradient-hero: linear-gradient(135deg, #080d17 0%, #0f1722 40%, #1a2332 70%, #080d17 100%);
  --gradient-gold: linear-gradient(135deg, #f0b429 0%, #d4941a 100%);
  --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  --gradient-footer: linear-gradient(135deg, #030712 0%, #080d17 50%, #0f1722 100%);
  --gradient-section: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  --gradient-card: linear-gradient(135deg, #1e293b 0%, #1a2332 100%);
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #f1f5f9;
  --bg-light: #0f172a;
  --white: #1e293b;
  --danger: #ef4444;
  --success: #22c55e;
  --card-bg: #1e293b;
  --section-bg: #0f172a;
  --section-alt: #1a2332;
  --border-color: #334155;
  --hero-overlay: rgba(8,13,23,0.82);
  --hero-overlay2: rgba(15,23,34,0.75);
  --hero-overlay3: rgba(26,35,50,0.65);
  --shadow: rgba(0,0,0,0.3);
  --shadow-hover: rgba(0,0,0,0.5);
  --header-bg: rgba(8, 13, 23, 0.97);
  --footer-bg: #030712;
  --contact-bg: #080d17;
  --carousel-bg: #1a2332;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  color: var(--text-light);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-shadow: 0 0 20px var(--gold-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--text-light);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
  font-size: 0.95rem;
  position: relative;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--gold);
}

.login-link {
  background: var(--gradient-gold);
  color: #0a192f !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 2px 12px var(--gold-glow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.login-link::after {
  display: none !important;
}

.login-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
}

/* Hamburger */
/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--text-light);
  transition: color 0.3s, background 0.3s;
}

.theme-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

html:not([data-theme="dark"]) .theme-toggle .moon-icon,
[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

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

.cart-btn {
  background: var(--gradient-gold);
  color: #0a192f;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px var(--gold-glow);
}

.cart-btn svg {
  width: 22px;
  height: 22px;
}

.cart-btn:hover {
  transform: scale(1.12) translateY(-1px);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ===== HERO 3D ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(12,26,50,0.78) 0%, rgba(17,41,74,0.6) 50%, rgba(26,58,92,0.45) 100%),
    radial-gradient(circle at 20% 50%, rgba(240,180,41,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6,182,212,0.06) 0%, transparent 50%),
    url('https://images.unsplash.com/photo-1581093588401-fbb62a02f120?w=1400&h=800&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  text-align: center;
  padding: 140px 20px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(240,180,41,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(6,182,212,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(240,180,41,0.06) 0%, transparent 40%);
  pointer-events: none;
  animation: heroMesh 8s ease-in-out infinite alternate;
}

@keyframes heroMesh {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  transform: translateZ(40px);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: var(--text-light);
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
  transform: translateZ(60px);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  transform: translateZ(30px);
}

.hero .btn {
  transform: translateZ(50px);
}

/* Floating 3D particles */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle 6s infinite ease-in-out;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  50% { transform: translateY(-30px) scale(1.4); opacity: 0.7; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--gradient-gold);
  color: #0a192f;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px var(--gold-glow);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-accent {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--gradient-gold);
  color: #0a192f;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-outline-accent {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn-outline-accent:hover {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}

.btn-danger:hover {
  box-shadow: 0 8px 32px rgba(239,68,68,0.45);
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== PRODUCTS ===== */
.products {
  padding: 80px 0;
  background: var(--section-bg);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), background 0.3s;
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-10px) rotateX(3deg) scale(1.02);
  box-shadow: 0 20px 60px var(--shadow-hover);
  border-color: var(--gold);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(12,26,50,0.3));
  pointer-events: none;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-info {
  padding: 24px;
  transform: translateZ(10px);
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.product-info .desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-info .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.add-btn {
  width: 100%;
  background: var(--gradient-gold);
  color: #0a192f;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.add-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.specs-btn {
  width: 100%;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}

.specs-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

/* ===== CAROUSEL 3D ROTATORIO ===== */
.carousel-section {
  padding: 80px 0;
  background: var(--carousel-bg);
  transition: background 0.3s;
  position: relative;
}

.carousel-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.carousel-3d-wrapper,
.coverflow-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.carousel-3d,
.coverflow {
  width: 100%;
  height: 480px;
  position: relative;
  perspective: 1400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--section-bg);
  border: 1px solid var(--border-color);
}

.carousel-3d-stage,
.coverflow-stage {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-3d-stage {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card {
  position: absolute;
  width: 300px;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 8px 30px var(--shadow);
  cursor: pointer;
  transition: filter 0.4s;
}

.carousel-card:hover {
  filter: brightness(1.08);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-card .carousel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}

/* Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 0 0 0 var(--gold-glow);
}

.carousel-btn:hover {
  background: var(--gold);
  color: #0a192f;
  box-shadow: 0 0 20px var(--gold-glow);
}

.carousel-btn:active {
  transform: scale(0.92);
}

.carousel-play-btn {
  font-size: 1rem;
}

.carousel-counter {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 48px;
  text-align: center;
}

/* ===== COVERFLOW 3D ===== */
.coverflow-stage {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.coverflow-stage .carousel-card {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid var(--border-color);
}

.coverflow-stage .carousel-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow), 0 8px 30px var(--shadow-hover);
}

/* ===== FEATURES ===== */
.features {
  padding: 80px 0;
  background: var(--gradient-section);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  transition: transform var(--transition), box-shadow var(--transition), background 0.3s;
  border: 1px solid var(--border-color);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

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

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

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,180,41,0.1), transparent);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-hover);
  border-color: var(--gold);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  transform: translateZ(20px);
  transition: transform 0.3s, background 0.3s;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(240,180,41,0.12); }
.feature-card:nth-child(2) .feature-icon { background: rgba(6,182,212,0.1); }
.feature-card:nth-child(3) .feature-icon { background: rgba(16,185,129,0.1); }
.feature-card:nth-child(4) .feature-icon { background: rgba(240,180,41,0.08); }

.feature-card:hover .feature-icon {
  transform: translateZ(30px) scale(1.1);
}

.feature-card h3 {
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 80px 0;
  background: var(--gradient-hero);
  color: var(--text-light);
  position: relative;
  transition: background 0.3s;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 80%, var(--gold-glow) 0%, transparent 50%),
    radial-gradient(circle at 70% 20%, var(--accent-glow) 0%, transparent 50%);
  pointer-events: none;
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.contact h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.contact-form input,
.contact-form textarea {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255,255,255,0.06);
  color: var(--text-light);
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.contact-form .btn {
  align-self: flex-start;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-footer);
  color: var(--text-muted);
  text-align: center;
  padding: 32px 0;
  font-size: 0.9rem;
  transition: background 0.3s;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p {
  position: relative;
  display: inline-block;
}

.footer p::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 8px auto 0;
  border-radius: 2px;
  opacity: 0.5;
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transform: translateY(-50%);
}

.whatsapp-float .whatsapp-tooltip {
  background: var(--white);
  color: var(--text-dark);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(16px);
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  order: 1;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--whatsapp), #1da851);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 50%;
  animation: whatsappFloat 3s ease-in-out infinite;
  order: 2;
}

.whatsapp-float:hover .whatsapp-icon {
  animation: none;
  transform: scale(1.15);
  box-shadow: 0 10px 44px rgba(37,211,102,0.6);
}

.whatsapp-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes whatsappFloat {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 6px 28px rgba(37,211,102,0.45); }
  50% { transform: translateY(-12px) scale(1.06); box-shadow: 0 14px 44px rgba(37,211,102,0.55); }
}

/* ===== CART MODAL ===== */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--card-bg);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

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

.modal-header h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  color: var(--text-dark);
}

.cart-item-price {
  color: var(--gold);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: var(--border-color);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  color: var(--text-dark);
}

.qty-btn:hover {
  background: var(--text-muted);
  color: #ffffff;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
  margin-left: 12px;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: #c0392b;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.cart-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* ===== SPECS MODAL ===== */
.specs-modal-body {
  text-align: center;
}

.specs-modal-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.specs-modal-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.specs-modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.specs-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
}

.specs-list li {
  padding: 10px 14px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

@media (max-width: 768px) {
  .specs-list {
    grid-template-columns: 1fr;
  }
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080f1e;
  padding: 24px;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  font-family: inherit;
}

.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(240,180,41,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(6,182,212,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(240,180,41,0.02) 0%, transparent 60%);
}

.login-card {
  background: rgba(16, 27, 48, 0.94);
  backdrop-filter: blur(24px);
  border-radius: 20px;
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(240,180,41,0.07),
    0 0 0 1px rgba(255,255,255,0.03) inset;
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
  position: relative;
  border: 1px solid rgba(255,255,255,0.04);
}

.login-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  line-height: 1;
  transition: all 0.2s;
  z-index: 5;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.login-close:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
  transform: scale(1.1);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--gold), transparent);
  border-radius: 20px 20px 0 0;
  z-index: 2;
}

.login-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(240,180,41,0.15), rgba(240,180,41,0.04));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(240,180,41,0.12);
}

.login-card-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.login-card-header p {
  color: rgba(255,255,255,0.4);
  font-size: 0.88rem;
  margin-top: 5px;
}

.login-error-msg {
  display: none;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: rgba(239,68,68,0.1);
  color: #f87171;
  border-radius: 10px;
  font-size: 0.84rem;
  border: 1px solid rgba(239,68,68,0.18);
  align-items: center;
  gap: 9px;
}

.login-error-msg.visible {
  display: flex;
}

.login-error-msg svg {
  flex-shrink: 0;
}

.login-field {
  margin-bottom: 18px;
}

.login-input-wrap {
  position: relative;
}

.login-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.2);
  pointer-events: none;
  z-index: 2;
  transition: color 0.3s;
}

.login-input-wrap:focus-within .login-field-icon {
  color: var(--gold);
}

.login-input {
  width: 100%;
  padding: 15px 14px 15px 46px;
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  font-size: 0.93rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  font-family: inherit;
  outline: none;
  position: relative;
}

.login-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,180,41,0.08);
  background: rgba(255,255,255,0.05);
}

.login-label {
  position: absolute;
  left: 46px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.25);
  font-size: 0.93rem;
  pointer-events: none;
  transition: all 0.2s ease;
  padding: 0 4px;
  z-index: 1;
}

.login-input:focus ~ .login-label,
.login-input:not(:placeholder-shown) ~ .login-label {
  top: -10px;
  left: 12px;
  font-size: 0.7rem;
  color: var(--gold);
  background: rgba(16, 27, 48, 0.95);
  padding: 0 6px;
  transform: translateY(0);
  z-index: 3;
}

.login-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.login-pw-toggle:hover {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
}

.login-pw-toggle.visible {
  color: var(--gold);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  display: none;
}

.login-checkmark {
  width: 17px;
  height: 17px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  position: relative;
}

.login-checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #0a1528;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s;
  position: absolute;
  top: 1px;
}

.login-remember input:checked + .login-checkmark {
  background: var(--gold);
  border-color: var(--gold);
}

.login-remember input:checked + .login-checkmark::after {
  transform: rotate(45deg) scale(1);
}

.login-forgot {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.login-forgot:hover {
  color: var(--gold);
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.97rem;
  font-weight: 600;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #d4941a);
  color: #0a192f;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 18px rgba(240,180,41,0.22);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.login-btn:hover::before {
  opacity: 1;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,180,41,0.3);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn.loading .login-btn-text {
  opacity: 0;
}

.login-btn.loading .login-btn-spinner {
  opacity: 1;
}

.login-btn-spinner {
  opacity: 0;
  position: absolute;
  animation: loginSpin 0.8s linear infinite;
}

@keyframes loginSpin {
  to { transform: rotate(360deg); }
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.login-divider span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  white-space: nowrap;
}

.login-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.login-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  color: rgba(255,255,255,0.4);
}

.login-social-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.login-social-btn.github:hover {
  color: #ffffff;
}

.login-card-footer {
  text-align: center;
}

.login-card-footer p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.3);
}

.login-card-footer a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.login-card-footer a:hover {
  color: #d4941a;
}

/* ===== DASHBOARD ===== */
.dashboard-page {
  display: flex;
  min-height: 100vh;
  background: var(--bg-light);
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--navy-dark) 0%, #081524 100%);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

/* Sidebar collapsed */
.sidebar-collapsed .dashboard-sidebar {
  width: 72px;
}

.sidebar-collapsed .sidebar-logo-text,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .sidebar-nav-label,
.sidebar-collapsed .sidebar-user-info,
.sidebar-collapsed .theme-btn-label {
  display: none;
}

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

.sidebar-collapsed .sidebar-user-avatar {
  margin: 0;
}

.sidebar-collapsed .sidebar-theme-btn {
  justify-content: center;
  padding: 10px;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 14px 0;
  margin: 2px 12px;
  border-radius: 8px;
  border-left: none;
}

.sidebar-collapsed .nav-item.active {
  background: rgba(240,180,41,0.12);
  border-left: none;
}

.sidebar-collapsed .nav-item:hover {
  background: rgba(255,255,255,0.06);
}

.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding: 20px 8px;
}

.sidebar-collapsed .sidebar-logo-icon {
  width: 32px;
  height: 32px;
}

.sidebar-collapsed .sidebar-collapse-btn {
  display: none;
}

.sidebar-collapsed .dashboard-main {
  margin-left: 0;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-logo-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.sidebar-logo-text {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sidebar-collapse-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.sidebar-collapse-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
}

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

.sidebar-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 20px 24px 8px;
  white-space: nowrap;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  position: relative;
  white-space: nowrap;
}

.nav-item::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 20px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(240,180,41,0.08), transparent);
  color: var(--gold);
  border-left-color: var(--gold);
}

.nav-item.active::after {
  transform: translateY(-50%) scaleY(1);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-text {
  font-weight: 500;
  font-size: 0.9rem;
}

/* ===== SIDEBAR FOOTER ===== */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 12px 0;
  flex-shrink: 0;
}

.sidebar-theme-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s;
  white-space: nowrap;
}

.sidebar-theme-btn:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
}

.theme-icon-sun,
.theme-icon-moon {
  flex-shrink: 0;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.theme-btn-label {
  font-weight: 500;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-medium), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== MAIN CONTENT ===== */
.dashboard-main {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TOP BAR ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 1px 4px var(--shadow);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.top-bar-greeting {
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.top-bar-greeting strong {
  color: var(--text-dark);
}

.top-bar-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.3s;
  align-items: center;
  justify-content: center;
}

.top-bar-hamburger:hover {
  background: var(--accent-light);
  color: var(--text-dark);
}

.top-bar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px;
  flex: 1;
  max-width: 380px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.top-bar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.top-bar-search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.top-bar-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-dark);
  width: 100%;
  font-family: inherit;
}

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

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.notification-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  background: var(--accent-light);
  color: var(--text-dark);
}

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

.top-bar-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s;
}

.top-bar-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.top-bar-right .logout-btn {
  width: auto;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
}

.top-bar-right .logout-btn:hover {
  background: var(--danger);
  color: #ffffff;
}

/* ===== PAGE HEADER ===== */
.dashboard-header {
  margin-bottom: 28px;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 700;
}

.dashboard-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===== SECTIONS ===== */
.dashboard-section {
  display: none;
  animation: sectionFadeIn 0.35s ease;
}

.dashboard-section.active {
  display: block;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow-hover);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.stat-card .stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.15;
}

.stat-card .stat-icon svg {
  width: 22px;
  height: 22px;
}

/* ===== CHART ===== */
.chart-container {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px var(--shadow);
}

.chart-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-wrapper canvas {
  max-width: 280px;
  max-height: 280px;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 160px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dark);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.chart-legend-item:hover {
  background: var(--accent-light);
}

.chart-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ===== TABLES ===== */
.table-container {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow);
}

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

.table-container .table-header h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 600;
}

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

.data-table thead {
  background: var(--bg-light);
}

.data-table th {
  padding: 12px 24px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-dark);
}

.data-table tbody tr {
  transition: background 0.2s;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(6,182,212,0.02);
}

.data-table tbody tr:hover {
  background: var(--accent-light);
}

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

.data-table .status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.status-badge.completed {
  background: rgba(16,185,129,0.1);
  color: var(--success);
}

.status-badge.pending {
  background: rgba(230,126,34,0.1);
  color: #e67e22;
}

.status-badge.cancelled {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}

.status-badge.active {
  background: rgba(52,152,219,0.1);
  color: #3498db;
}

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

.table-actions .btn-sm {
  padding: 5px 12px;
  font-size: 0.78rem;
  border-radius: 5px;
}

/* ===== EMPTY STATE ===== */
.empty-section {
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-section svg {
  opacity: 0.3;
}

.empty-section p {
  font-size: 0.95rem;
}

/* ===== MODAL ===== */
.modal-form {
  max-width: 560px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--card-bg);
  color: var(--text-dark);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

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

.recent-sales {
  margin-top: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    padding: 100px 20px;
    min-height: 60vh;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 8px 0;
  }

  .header .container {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .logo {
    font-size: 1rem;
    margin-right: auto;
  }

  .hamburger {
    display: flex;
    order: -1;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 105;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.2rem;
    margin: 0;
    padding: 12px 24px;
  }

  .nav a::after {
    bottom: 0;
  }

  .login-link {
    padding: 10px 32px;
    font-size: 1rem;
    margin-left: 0;
  }

  .cart-btn {
    width: 38px;
    height: 38px;
  }

  .cart-btn svg {
    width: 18px;
    height: 18px;
  }

  .cart-count {
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
  }

  .hero {
    padding: 60px 16px;
    min-height: 50vh;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }

  .products, .gallery, .features, .contact {
    padding: 48px 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }

  .carousel-3d, .coverflow {
    height: 320px;
  }

  .carousel-card {
    width: 200px;
    height: 260px;
  }

  .carousel-controls {
    gap: 10px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 16px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-info .price {
    font-size: 1.2rem;
  }

  .product-info .desc {
    font-size: 0.8rem;
  }

  .add-btn {
    padding: 10px;
    font-size: 0.85rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.85rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 0.9rem;
  }

  .whatsapp-float {
    right: 12px;
  }

  .whatsapp-icon {
    width: 48px;
    height: 48px;
  }

  .whatsapp-icon svg {
    width: 22px;
    height: 22px;
  }

  .whatsapp-float .whatsapp-tooltip {
    display: none;
  }

  .modal {
    border-radius: 12px;
    max-width: 95%;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

  /* ===== DASHBOARD TABLET ===== */
  .dashboard-page {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100% !important;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  .sidebar-nav {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 4px 0;
  }

  .sidebar-nav.open {
    display: block;
  }

  .sidebar-nav-label {
    font-size: 0.6rem;
    padding: 10px 16px 4px;
    letter-spacing: 0.8px;
  }

  .nav-item {
    padding: 10px 16px;
    gap: 10px;
    font-size: 0.82rem;
    border-left-width: 3px;
  }

  .sidebar-footer {
    display: none;
  }

  .sidebar-footer.open {
    display: block;
  }

  .top-bar-hamburger {
    display: flex;
  }

  .top-bar-greeting {
    display: none;
  }

  .dashboard-main {
    padding: 16px 20px;
  }

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

  .stat-card {
    padding: 16px;
  }

  .stat-card .stat-value {
    font-size: 1.3rem;
  }

  .data-table th,
  .data-table td {
    padding: 10px 14px;
  }

  .dashboard-header h1 {
    font-size: 1.3rem;
  }
}

/* ===== DASHBOARD MOBILE (<768px) ===== */
@media (max-width: 767px) {
  .dashboard-page {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100% !important;
    height: auto;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .sidebar-header {
    padding: 10px 14px;
  }

  .sidebar-logo-text {
    font-size: 1rem;
  }

  .sidebar-logo-icon {
    width: 24px;
    height: 24px;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  .sidebar-nav {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 4px 0;
  }

  .sidebar-nav.open {
    display: block;
  }

  .sidebar-nav-label {
    font-size: 0.6rem;
    padding: 10px 16px 4px;
    letter-spacing: 0.8px;
  }

  .nav-item {
    padding: 10px 16px;
    gap: 10px;
    font-size: 0.82rem;
    border-left-width: 3px;
  }

  .nav-item.active {
    border-left-color: var(--gold);
  }

  .nav-icon {
    width: 18px;
    height: 18px;
  }

  .sidebar-footer {
    display: none;
  }

  .sidebar-footer.open {
    display: block;
  }

  .sidebar-footer .sidebar-theme-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    gap: 10px;
  }

  .sidebar-footer .sidebar-user {
    padding: 8px 16px;
    gap: 10px;
  }

  .sidebar-user-avatar {
    width: 30px;
    height: 30px;
  }

  .sidebar-user-name {
    font-size: 0.78rem;
  }

  .sidebar-user-role {
    font-size: 0.65rem;
  }

  .top-bar-hamburger {
    display: flex;
  }

  .top-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
  }

  .top-bar-left {
    width: 100%;
    gap: 8px;
  }

  .top-bar-greeting {
    font-size: 0.75rem;
    display: none;
  }

  .top-bar-search {
    flex: 1;
    max-width: 100%;
    padding: 6px 10px;
  }

  .top-bar-search input {
    font-size: 0.78rem;
  }

  .top-bar-search-icon {
    width: 14px;
    height: 14px;
  }

  .top-bar-right {
    width: 100%;
    justify-content: flex-end;
    gap: 6px;
  }

  .notification-btn {
    padding: 6px;
  }

  .notification-btn svg {
    width: 18px;
    height: 18px;
  }

  .notification-badge {
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
    top: 2px;
    right: 2px;
  }

  .top-bar-link {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  .top-bar-right .logout-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  .dashboard-main {
    padding: 10px;
  }

  .dashboard-header {
    margin-bottom: 16px;
  }

  .dashboard-header h1 {
    font-size: 1.1rem;
  }

  .dashboard-header p {
    font-size: 0.8rem;
  }

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

  .stat-card {
    padding: 12px;
  }

  .stat-card .stat-icon {
    width: 32px;
    height: 32px;
    top: 10px;
    right: 10px;
  }

  .stat-card .stat-icon svg {
    width: 16px;
    height: 16px;
  }

  .stat-card .stat-label {
    font-size: 0.65rem;
    margin-bottom: 4px;
  }

  .stat-card .stat-value {
    font-size: 1.1rem;
  }

  .chart-container {
    flex-direction: column;
    align-items: center;
    padding: 12px;
    gap: 16px;
    margin-bottom: 16px;
  }

  .chart-wrapper canvas {
    max-width: 180px;
    max-height: 180px;
  }

  .chart-legend-item {
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  .chart-legend-color {
    width: 10px;
    height: 10px;
  }

  .table-container {
    overflow-x: auto;
    margin-bottom: 14px;
  }

  .table-container .table-header {
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .table-container .table-header h3 {
    font-size: 0.9rem;
  }

  .table-container .table-header .btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .data-table {
    min-width: 500px;
  }

  .data-table th {
    padding: 8px 10px;
    font-size: 0.65rem;
  }

  .data-table td {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .data-table .status-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  .table-actions {
    flex-direction: column;
    gap: 4px;
  }

  .table-actions .btn-sm {
    padding: 4px 8px;
    font-size: 0.65rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .recent-sales {
    margin-top: 16px;
  }

  .modal {
    max-width: 96%;
    margin: 10px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 14px;
  }

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

  .modal-form .form-group label {
    font-size: 0.8rem;
  }

  .modal-form .form-group input,
  .modal-form .form-group select {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .modal-footer .btn {
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .empty-section {
    padding: 40px 16px;
  }

  .empty-section svg {
    width: 36px;
    height: 36px;
  }

  .empty-section p {
    font-size: 0.82rem;
  }
}

/* ===== DASHBOARD SMALL PHONE (<480px) ===== */
@media (max-width: 480px) {
  .sidebar-header {
    padding: 8px 12px;
  }

  .sidebar-logo-text {
    font-size: 0.9rem;
  }

  .sidebar-logo-icon {
    width: 22px;
    height: 22px;
  }

  .nav-item {
    padding: 8px 14px;
    font-size: 0.78rem;
    gap: 8px;
  }

  .nav-icon {
    width: 16px;
    height: 16px;
  }

  .sidebar-nav-label {
    font-size: 0.55rem;
    padding: 8px 14px 3px;
  }

  .dashboard-main {
    padding: 8px;
  }

  .top-bar {
    padding: 8px 10px;
    gap: 6px;
  }

  .top-bar-search {
    padding: 5px 8px;
  }

  .top-bar-search input {
    font-size: 0.72rem;
  }

  .top-bar-right .logout-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .top-bar-link {
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .stats-grid {
    gap: 6px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-card .stat-icon {
    width: 28px;
    height: 28px;
    top: 8px;
    right: 8px;
  }

  .stat-card .stat-icon svg {
    width: 14px;
    height: 14px;
  }

  .stat-card .stat-label {
    font-size: 0.6rem;
  }

  .stat-card .stat-value {
    font-size: 1rem;
  }

  .dashboard-header h1 {
    font-size: 1rem;
  }

  .dashboard-header p {
    font-size: 0.75rem;
  }

  .chart-container {
    padding: 10px;
  }

  .chart-wrapper canvas {
    max-width: 150px;
    max-height: 150px;
  }

  .chart-legend-item {
    font-size: 0.7rem;
  }

  .data-table {
    min-width: 400px;
  }

  .data-table th {
    padding: 6px 8px;
    font-size: 0.6rem;
  }

  .data-table td {
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .table-container .table-header {
    padding: 8px 10px;
  }

  .table-container .table-header h3 {
    font-size: 0.82rem;
  }

  .table-container .table-header .btn {
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .data-table .status-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .table-actions .btn-sm {
    font-size: 0.6rem;
    padding: 3px 6px;
  }

  .modal {
    max-width: 98%;
    margin: 6px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 10px;
  }

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

  .modal-form .form-group input,
  .modal-form .form-group select {
    font-size: 0.8rem;
    padding: 6px 8px;
  }

  .modal-footer .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .empty-section {
    padding: 30px 12px;
  }

  .empty-section svg {
    width: 28px;
    height: 28px;
  }
}

.sidebar-collapsed .sidebar-footer {
  display: none;
}

.sidebar-collapsed .sidebar-nav-label {
  display: none;
}

.sidebar-collapsed .sidebar-user {
  border-top: none;
  padding: 8px 0;
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.3rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav a {
    font-size: 0.75rem;
    margin: 0 4px;
  }
}
