/* ==================== TONY BLANCHE - WHITE THEME ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;
  --secondary: #8B5CF6;
  --bg: linear-gradient(135deg, #FAFBFF 0%, #F0F0F8 50%, #E8E4F0 100%);
  --bg-flat: #F8F7FC;
  --bg-secondary: #EFEFF5;
  --bg-card: rgba(255,255,255,0.9);
  --bg-glass: rgba(124, 58, 237, 0.06);
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

html, body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
background: var(--bg);
background-attachment: fixed;
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
min-height: 100vh;
padding-bottom: 200px;
background: transparent;
  position: relative;
}

/* Interactive Animated Background */
.bg-animation {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  transition: transform 0.3s ease-out, opacity 0.3s ease;
}

.bg-orb-1 {
  --mx: 0px; --my: 0px;
  width: 350px; height: 350px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(139, 92, 246, 0.2));
  top: -100px; right: -80px;
  animation: float1 20s ease-in-out infinite;
  transform: translate(var(--mx), var(--my));
}

.bg-orb-2 {
  --mx: 0px; --my: 0px;
  width: 280px; height: 280px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(251, 146, 60, 0.15));
  bottom: -80px; left: -60px;
  animation: float2 25s ease-in-out infinite;
  transform: translate(var(--mx), var(--my));
}

.bg-orb-3 {
  --mx: 0px; --my: 0px;
  width: 200px; height: 200px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(16, 185, 129, 0.15));
  top: 40%; left: 50%;
  animation: float3 18s ease-in-out infinite;
  transform: translate(calc(-50% + var(--mx)), var(--my));
}

@keyframes float1 {
  0%, 100% { top: -100px; right: -80px; }
  25% { top: -60px; right: -110px; }
  50% { top: -20px; right: -130px; }
  75% { top: -50px; right: -100px; }
}

@keyframes float2 {
  0%, 100% { bottom: -80px; left: -60px; }
  33% { bottom: -30px; left: -20px; }
  66% { bottom: -50px; left: 10px; }
}

@keyframes float3 {
  0%, 100% { top: 40%; opacity: 0.5; }
  50% { top: 35%; opacity: 0.7; }
}

/* ==================== LOADER ==================== */
.loader-screen {
position: fixed; inset: 0; z-index: 9999;
background: linear-gradient(135deg, #FAFBFF 0%, #F0F0F8 50%, #E8E4F0 100%);
display: flex; flex-direction: column;
align-items: center; justify-content: center;
gap: 24px;
  overflow: hidden;
}

/* Animated gradient orbs behind loader */
.loader-screen::before,
.loader-screen::after {
content: '';
position: absolute;
  border-radius: 50%;
  filter: blur(80px);
opacity: 0.6;
animation: loaderOrb 4s ease-in-out infinite;
}
.loader-screen::before {
  width: 300px; height: 300px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(139, 92, 246, 0.2));
top: -100px; left: -100px;
animation-delay: 0s;
}
.loader-screen::after {
width: 250px; height: 250px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(251, 146, 60, 0.15));
  bottom: -80px; right: -80px;
  animation-delay: -2s;
}
@keyframes loaderOrb {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(30px, 30px) scale(1.1); opacity: 0.7; }
}

/* Logo container with rings */
.loader-logo-container {
  position: relative;
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}
.loader-ring-1 {
  width: 100%; height: 100%;
  border-top-color: var(--primary);
  border-right-color: var(--primary-light);
  animation: ringRotate 2s linear infinite;
}
.loader-ring-2 {
  width: 85%; height: 85%;
  border-bottom-color: var(--secondary);
  border-left-color: rgba(139, 92, 246, 0.5);
  animation: ringRotate 2.5s linear infinite reverse;
}
.loader-ring-3 {
  width: 70%; height: 70%;
  border-top-color: rgba(236, 72, 153, 0.6);
  animation: ringRotate 3s linear infinite;
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.loader-logo {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
  animation: logoPulse 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(124, 58, 237, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 50px rgba(124, 58, 237, 0.5); }
}

.loader-title {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary), #EC4899);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  letter-spacing: -0.5px;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.loader-dots {
  display: flex; gap: 8px;
}
.loader-dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotBounce 1.4s ease-in-out infinite;
}
.loader-dot:nth-child(1) { animation-delay: 0s; }
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ==================== HEADER ==================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,251,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  border-bottom: 1px solid rgba(229,231,235,0.5);
}
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.header-title { 
  font-size: 22px; 
  font-weight: 700; 
  color: var(--primary);
  display: flex; 
  align-items: center; 
  gap: 10px;
  letter-spacing: -0.5px;
}
.header-logo { 
  width: 36px; height: 36px; 
  border-radius: 50%; 
  object-fit: cover; 
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.header-icons { display: flex; gap: 8px; }
.header-icon {
  width: 40px; height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.header-icon:hover { background: var(--bg-glass); border-color: var(--primary); }
.header-icon .badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--danger);
  color: white;
  font-size: 10px; font-weight: 600;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Search */
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}
.search-box:focus-within { 
  border-color: var(--primary); 
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.search-box span { color: var(--text-secondary); }
.search-box input {
  flex: 1; border: none; background: transparent;
  color: var(--text); font-size: 15px; outline: none;
}
.search-box input::placeholder { color: var(--text-light); }

/* ==================== CATEGORIES ==================== */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 16px;
}
.category-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,247,252,0.9) 50%, rgba(240,238,248,0.85) 100%);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 20px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(139, 92, 246, 0.06) 50%, rgba(236, 72, 153, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.category-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
}
.category-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-6px) scale(1.02);
}
.category-card:hover::before { opacity: 1; }
.category-card:hover::after { opacity: 1; transform: scale(1); }
.category-card:active { transform: translateY(-2px) scale(0.98); }
.category-card .cat-emoji {
  font-size: 44px;
  margin-bottom: 12px;
  display: block;
  position: relative;
  z-index: 1;
  animation: catFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}
@keyframes catFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-2deg); }
  75% { transform: translateY(-3px) rotate(2deg); }
}
.category-card .cat-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.category-card .cat-count {
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.category-card .cat-count::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.05));
  border-radius: 20px;
  z-index: -1;
}
.categories-scroll { 
  display: flex; gap: 8px; 
  padding: 0 16px 16px; 
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { 
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
  font-weight: 600;
}

/* ==================== PRODUCTS GRID ==================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.product-card:hover { 
  box-shadow: var(--shadow); 
  transform: translateY(-2px);
  border-color: var(--primary);
}
.product-card:active { transform: scale(0.98); }
.product-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}
.product-fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.product-fav:hover { transform: scale(1.1); }
.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-secondary);
}
.product-media-indicator {
  position: absolute; bottom: 70px; right: 8px;
  display: flex; gap: 4px;
  font-size: 11px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
}
.product-info { padding: 12px; }
.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

/* ==================== MODAL ==================== */
.modal-overlay {
position: fixed; inset: 0; z-index: 99999;
background: rgba(0,0,0,0.5);
backdrop-filter: blur(4px);
display: flex; align-items: flex-end; justify-content: center;
opacity: 0; visibility: hidden;
transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  width: 100%; max-width: 500px;
  max-height: 90vh;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.modal-close:hover { background: var(--bg-secondary); }

/* Gallery Scroll */
.modal-gallery-scroll {
  position: relative;
  padding: 16px 0;
  background: var(--bg-secondary);
}
.gallery-scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-scroll-container::-webkit-scrollbar { display: none; }
.gallery-scroll-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.gallery-scroll-item img,
.gallery-scroll-item video {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.gallery-scroll-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
}
.scroll-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--border);
  transition: all 0.3s ease;
  cursor: pointer;
}
.scroll-dot.active { width: 24px; background: var(--primary); }

.modal-body { padding: 20px; }
.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Variants */
.variants-section { margin-bottom: 20px; }
.variants-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.variants-grid { display: flex; flex-direction: column; gap: 8px; }
.variant-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.variant-pill:hover { border-color: var(--primary-light); }
.variant-pill.selected { 
  border-color: var(--primary); 
  background: rgba(124, 58, 237, 0.05);
}
.variant-pill .emoji { font-size: 20px; }
.variant-pill .label { flex: 1; font-weight: 500; color: var(--text); }
.variant-pill .price { font-weight: 700; color: var(--primary); }
.variant-pill .check {
  width: 22px; height: 22px;
  background: var(--primary);
  border-radius: 50%;
  color: white;
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* Quantity */
.quantity-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 20px;
}
.quantity-label { font-weight: 600; color: var(--text); }
.quantity-controls { display: flex; align-items: center; gap: 16px; }
.qty-btn {
  width: 36px; height: 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-value { font-size: 18px; font-weight: 700; min-width: 30px; text-align: center; }

.add-cart-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.add-cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.add-cart-btn:active { transform: scale(0.98); }

.modal-body {
  padding-bottom: 30px;
}

/* ==================== CART ==================== */
.page { display: none; padding: 16px 16px 120px 16px; position: relative; z-index: 1; }
.page.active { display: block; }
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.cart-item-image {
  width: 70px; height: 70px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--bg-secondary);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-variant { font-size: 13px; color: var(--text-secondary); }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item-price { font-weight: 700; color: var(--primary); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  width: 28px; height: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.cart-item-qty span { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  padding: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.cart-item-remove:hover { opacity: 1; }

/* Cart Summary */
.cart-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 16px;
  margin: 20px 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--text-secondary);
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.summary-row.discount { color: var(--success); }

/* Promo */
.promo-section { margin: 16px 0; }
.promo-row { display: flex; gap: 10px; }
.promo-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}
.promo-input:focus { outline: none; border-color: var(--primary); }
.promo-btn {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.promo-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: 10px;
  margin-top: 10px;
  color: var(--success);
  font-weight: 500;
}

.whatsapp-order-btn {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 16px;
background: #25D366;
color: white;
border: none;
border-radius: 14px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
  margin-bottom: 60px;
}
.whatsapp-order-btn:hover { background: #1da851; }

/* ==================== ORDER TEMPLATE MODAL ==================== */
.order-template-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.order-template-modal.active { opacity: 1; visibility: visible; }
.order-template-content {
  width: 100%; max-width: 400px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.order-template-header {
  padding: 20px;
  background: var(--bg-secondary);
  text-align: center;
}
.order-template-header h3 { font-size: 20px; color: var(--text); margin-bottom: 4px; }
.order-template-header p { color: var(--text-secondary); font-size: 14px; }
.order-template-body { padding: 20px; }
.order-template-text {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  font-family: monospace;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
  color: var(--text);
}
.order-template-actions { display: flex; flex-direction: column; gap: 10px; }
.copy-order-btn {
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy-order-btn:hover { border-color: var(--primary); }
.send-whatsapp-btn {
  padding: 14px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ==================== ACCOUNT ==================== */
.account-header {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: white;
}
.account-avatar {
  width: 80px; height: 80px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow);
}
.account-name { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.account-level { font-size: 14px; opacity: 0.9; }

.points-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.points-value { font-size: 36px; font-weight: 700; color: var(--primary); }
.points-label { color: var(--text-secondary); margin-bottom: 12px; }
.progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.menu-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s ease;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--bg-secondary); }
.menu-icon {
  width: 44px; height: 44px;
  background: var(--bg-glass);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.menu-text { flex: 1; }
.menu-text .title { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.menu-text .subtitle { font-size: 13px; color: var(--text-secondary); }
.menu-arrow { color: var(--text-light); font-size: 20px; }

/* ==================== ADMIN ==================== */
.admin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.admin-tab:hover { border-color: var(--primary); }
.admin-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.admin-section { display: none; }
.admin-section.active { display: block; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Admin Forms */
.admin-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* Variants Builder */
.variants-builder { margin-bottom: 16px; }
.variant-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.variant-row .emoji-input { width: 60px; text-align: center; }
.variant-row .price-input { width: 80px; }
.remove-variant {
  width: 36px; height: 36px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.add-variant-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-glass);
  border: 2px dashed var(--border);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.add-variant-btn:hover { border-color: var(--primary); background: rgba(124, 58, 237, 0.1); }

/* Media Upload */
.media-upload-section { margin-bottom: 16px; }
.media-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-secondary);
}
.media-upload-area:hover { border-color: var(--primary); background: var(--bg-glass); }
.media-upload-area .icon { font-size: 36px; margin-bottom: 8px; }
.media-upload-area p { color: var(--text-secondary); font-size: 14px; }
.media-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.media-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.media-preview-item img, .media-preview-item video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.media-preview-item .remove {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
}
.media-preview-item .type-badge {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* Sort Controls */
.sort-btn {
  padding: 4px 8px;
  font-size: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}
.sort-btn:hover:not(:disabled) { 
  background: var(--primary); 
  color: white; 
  border-color: var(--primary);
}
.sort-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.sort-order-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-secondary); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

/* ==================== NAVIGATION ==================== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(248,247,252,0.98), rgba(248,247,252,0.9));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 22px;
  z-index: 9998;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  pointer-events: auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 22px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 16px;
}
.nav-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.08));
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item:hover { color: var(--primary); }
.nav-item:hover::before { opacity: 0.5; transform: scale(1); }
.nav-item:active { transform: scale(0.95); }
.nav-item.active { color: var(--primary); }
.nav-item.active::before { opacity: 1; transform: scale(1); }
.nav-item .icon {
  font-size: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-item.active .icon {
  transform: translateY(-2px) scale(1.1);
  animation: iconPop 0.4s ease-out;
}
@keyframes iconPop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.2); }
  100% { transform: translateY(-2px) scale(1.1); }
}
.nav-item span:last-child {
  font-size: 11px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.nav-item.active span:last-child {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-item .badge {
  position: absolute; top: 4px; right: 12px;
  background: linear-gradient(135deg, #EF4444, #F97316);
  color: white;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ==================== UTILITIES ==================== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.back-btn:hover { opacity: 0.8; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state .icon { font-size: 60px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}
