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

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #080810;
  --bg-secondary: #0f0f1a;
  --bg-card: #12121f;
  --bg-glass: rgba(255,255,255,0.04);
  --bg-glass-hover: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(124,58,237,0.5);

  --accent: #7c3aed;
  --accent-light: #9f67ff;
  --accent-glow: rgba(124,58,237,0.25);
  --accent-2: #ec4899;
  --accent-gradient: linear-gradient(135deg, #7c3aed, #ec4899);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --text-primary: #f1f1f8;
  --text-secondary: #a0a0b8;
  --text-muted: #6b6b85;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 8px 32px rgba(124,58,237,0.3);

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

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; outline: none; }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-accent { color: var(--accent-light); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GLASS CARD ===== */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}
.glass:hover { border-color: var(--border-hover); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient); color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,58,237,0.5); opacity: 0.95; }
.btn-outline {
  background: transparent; color: var(--text-primary); border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }
.btn-ghost { background: var(--bg-glass); color: var(--text-primary); }
.btn-ghost:hover { background: var(--bg-glass-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px;
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 14px;
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent); background: rgba(124,58,237,0.08);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.input-icon-wrapper { position: relative; }
.input-icon-wrapper .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-icon-wrapper input { padding-left: 42px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.navbar-logo { display: flex; align-items: center; gap: 10px; }
.navbar-logo .logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: #fff;
}
.navbar-logo .logo-text { font-size: 20px; font-weight: 800; }
.navbar-logo .logo-text span { color: var(--accent-light); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-glass); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-gradient); font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 92vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.2) 0%, transparent 60%);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="%237c3aed" opacity="0.15"/></svg>') repeat;
  animation: bgFloat 20s linear infinite;
}
@keyframes bgFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-60px); } }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  font-size: 13px; font-weight: 600; color: var(--accent-light); margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 88px); font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero p {
  font-size: 18px; color: var(--text-secondary); max-width: 560px; line-height: 1.7;
  margin-bottom: 40px; animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.3s both; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; animation: fadeInUp 0.6s ease 0.4s both; }
.hero-stat .num { font-size: 32px; font-weight: 800; }
.hero-stat .label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.hero-visual {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 55%; pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-52%) translateX(-10px); } }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); position: relative;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-accent); }
.product-img-wrapper { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.product-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrapper img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent-gradient); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}
.product-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(8,8,16,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 16px;
}
.product-wishlist:hover { color: var(--accent-2); border-color: var(--accent-2); }
.product-info { padding: 20px; }
.product-category { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 8px; }
.product-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.price-current { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.price-original { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.price-off { font-size: 12px; font-weight: 700; color: var(--success); background: rgba(16,185,129,0.1); padding: 2px 8px; border-radius: 100px; }
.product-card-actions { display: flex; gap: 8px; }

/* ===== FEATURES BANNER ===== */
.features-strip {
  background: var(--bg-glass);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { display: flex; align-items: center; gap: 16px; }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--accent-glow); border: 1px solid rgba(124,58,237,0.2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.feature-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.feature-text p { font-size: 12px; color: var(--text-muted); }

/* ===== CATEGORIES ===== */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab {
  padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-glass);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.cat-tab:hover, .cat-tab.active {
  border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow);
}

/* ===== PRODUCT DETAIL ===== */
.product-gallery { position: sticky; top: 88px; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { padding: 8px 0; }
.product-detail-name { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.2; }
.product-detail-price { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.detail-price-current { font-size: 40px; font-weight: 900; }
.detail-price-original { font-size: 20px; color: var(--text-muted); text-decoration: line-through; }
.savings-badge { font-size: 14px; font-weight: 700; color: var(--success); background: rgba(16,185,129,0.12); padding: 4px 12px; border-radius: 100px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec-item { background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.spec-key { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.spec-value { font-size: 14px; font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-btn { width: 40px; height: 40px; background: var(--bg-glass); color: var(--text-primary); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { background: var(--bg-glass-hover); }
.qty-display { width: 48px; height: 40px; text-align: center; line-height: 40px; font-weight: 700; font-size: 15px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

/* ===== CART ===== */
.cart-item { display: flex; gap: 16px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.cart-item-price { font-size: 18px; font-weight: 800; color: var(--accent-light); }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 88px; }
.cart-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; }
.summary-row.total { font-size: 18px; font-weight: 800; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 8px; }

/* ===== CHECKOUT ===== */
.checkout-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }
.checkout-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.payment-method { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 20px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.payment-method.selected { border-color: var(--accent); background: var(--accent-glow); }
.payment-method input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.payment-method-info h4 { font-size: 15px; font-weight: 700; }
.payment-method-info p { font-size: 12px; color: var(--text-muted); }

/* ===== ORDERS ===== */
.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; transition: var(--transition); }
.order-card:hover { border-color: var(--border-hover); }
.order-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.order-number { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.order-date { font-size: 13px; color: var(--text-secondary); }
.status-badge { padding: 4px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.status-processing { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }
.status-shipped { background: rgba(124,58,237,0.15); color: var(--accent-light); border: 1px solid rgba(124,58,237,0.3); }
.status-delivered { background: rgba(16,185,129,0.15); color: var(--success); border: 1px solid rgba(16,185,129,0.3); }
.status-cancelled { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.order-items-list { display: flex; gap: 12px; flex-wrap: wrap; }
.order-item-thumb { width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(124,58,237,0.15) 0%, transparent 60%); }
.auth-card { width: 100%; max-width: 460px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 48px 40px; }
.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-logo .logo-big { font-size: 28px; font-weight: 900; }
.auth-logo p { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.auth-title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 28px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--accent-light); font-weight: 600; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--bg-secondary); border-right: 1px solid var(--border);
  padding: 24px 0; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto;
  z-index: 50; transition: var(--transition);
}
.admin-sidebar-logo { padding: 0 24px 28px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); cursor: pointer;
}
.admin-nav-item:hover, .admin-nav-item.active { color: var(--text-primary); background: var(--bg-glass); border-right: 3px solid var(--accent); }
.admin-main { margin-left: 260px; flex: 1; padding: 32px; min-height: 100vh; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-title { font-size: 28px; font-weight: 800; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-card .icon { font-size: 32px; margin-bottom: 12px; }
.stat-card .value { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.stat-card .label { font-size: 13px; color: var(--text-secondary); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; }
.admin-table th { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.admin-table tr:hover td { background: var(--bg-glass); }
.table-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

/* ===== TOAST ===== */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); min-width: 280px; max-width: 380px; box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease; font-size: 14px; font-weight: 500; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.info { border-color: var(--accent); }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fadeIn 0.2s ease; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 36px; animation: scaleIn 0.2s ease; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-title { font-size: 20px; font-weight: 800; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-glass); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); transition: var(--transition); font-size: 18px; }
.modal-close:hover { color: var(--danger); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.animate-fade-up { animation: fadeInUp 0.5s ease both; }
.animate-fade-up-delay { animation: fadeInUp 0.5s ease 0.15s both; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state .icon { font-size: 64px; margin-bottom: 20px; opacity: 0.4; }
.empty-state h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.empty-state p { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; }

/* ===== FOOTER ===== */
footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 16px 0 24px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-glass); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: var(--transition); color: var(--text-secondary); }
.social-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 32px; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { color: var(--border); }

/* ===== PAGINATION ===== */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 48px; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-glass); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-secondary); }
.page-btn:hover, .page-btn.active { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }

/* ===== SEARCH BAR ===== */
.search-bar { display: flex; align-items: center; gap: 0; background: var(--bg-glass); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-bar input { flex: 1; padding: 12px 16px; background: transparent; color: var(--text-primary); font-size: 14px; border: none; }
.search-bar button { padding: 12px 18px; background: var(--accent-gradient); color: #fff; font-size: 14px; display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* ===== LOADING ===== */
.loader { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== ADMIN RESPONSIVE UTILITIES ===== */
.admin-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 90;
}
.admin-mobile-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 45;
  display: none;
}
.admin-backdrop.active {
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  /* Admin Mobile Layout Overhaul */
  .admin-mobile-header { display: flex; }
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 100;
    box-shadow: 10px 0 30px rgba(0,0,0,0.6);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 16px; min-height: calc(100vh - 65px); }
  .admin-header { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 20px; }
  .admin-header .btn { width: 100%; justify-content: center; }
  .admin-title { font-size: 22px; }

  /* Modal Responsive Overhaul */
  .modal-overlay { padding: 12px; }
  .modal {
    padding: 20px 16px;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    width: 100%;
    margin: auto;
  }
  .modal-header { margin-bottom: 16px; }
  .modal-title { font-size: 18px; }
  
  /* Admin Table Touch Scrolling */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table th, .admin-table td { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 24px; }
  .spec-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .auth-card { padding: 32px 24px; }
  .checkout-section { padding: 24px 20px; }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 150;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(37,211,102,0.7); }

/* ===== TRUST BADGES ===== */
.trust-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 8px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }

/* ===== SKELETON ===== */
.skeleton { background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.08) 50%, var(--bg-glass) 75%); background-size: 200%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== PROGRESS STEPS ===== */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 36px; }
.step { display: flex; align-items: center; flex: 1; }
.step-circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; transition: var(--transition); }
.step.active .step-circle { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }
.step.done .step-circle { border-color: var(--success); background: var(--success); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); }
.step.done .step-line { background: var(--success); }
.step-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-top: 8px; text-align: center; }
