/* ==========================================
   1. RESET & VARIABLES
========================================== */
:root {
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-hover: #1f293d;
  --border-color: #1e293b;
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --alfa-color: #ef4444;
  --touch-color: #3b82f6;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Keeps footer at the bottom */
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ==========================================
   2. TYPOGRAPHY & BUTTONS
========================================== */
h1, h2, h3, h4 { color: #ffffff; }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { font-size: 2rem; }
.section-header p { color: var(--text-muted); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary { background: var(--bg-card); color: #fff; border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--primary); }

.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-alfa { background: var(--alfa-color); color: #fff; }
.btn-touch { background: var(--touch-color); color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }

.w-100 { width: 100%; }

/* ==========================================
   3. TOP BAR & NAVBAR
========================================== */
.top-bar {
  background: #030712;
  font-size: 0.8rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}
.top-bar-content { display: flex; justify-content: space-between; }

.navbar {
  position: sticky;
  top: 0;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary); letter-spacing: 1px; }
.logo span { color: #fff; }

.nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; font-weight: 600; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active-link { color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 4px; }

.nav-actions { display: flex; gap: 0.75rem; }

/* ==========================================
   4. HERO SECTION
========================================== */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: radial-gradient(circle at center, #1e1b4b 0%, var(--bg-dark) 70%);
}
.badge {
  background: rgba(245, 158, 11, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.hero h1 { font-size: 3rem; margin: 1.5rem 0; font-weight: 900; }
.highlight { color: var(--primary); }
.hero p { max-width: 600px; margin: 0 auto 2rem; color: var(--text-muted); font-size: 1.1rem; }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; }

/* ==========================================
   5. LAYOUTS, GRIDS & CARDS
========================================== */
.section { padding: 4rem 0; flex: 1; }
.bg-card { background: var(--bg-card); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Service Cards */
.service-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}
.service-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Recharge Cards */
.recharge-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.alfa-border:hover { border-color: var(--alfa-color); }
.touch-border:hover { border-color: var(--touch-color); }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.pill { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 50px; font-weight: 700; }
.pill-alfa { background: #450a0a; color: #fca5a5; }
.pill-touch { background: #172554; color: #93c5fd; }
.text-alfa { color: var(--alfa-color); }
.text-touch { color: var(--touch-color); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-control {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
}
.form-control:focus { outline: none; border-color: var(--primary); }

/* ==========================================
   6. PRODUCTS & CATALOG
========================================== */
.brand-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.brand-tab {
  padding: 0.5rem 1.25rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
}
.brand-tab.active, .brand-tab:hover { background: var(--primary); color: #000; border-color: var(--primary); }

.product-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.product-brand { font-size: 0.75rem; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.product-price { font-size: 1.3rem; font-weight: 900; color: #fff; margin-top: 0.5rem; display: block; }
.storage-select { margin-top: 10px; margin-bottom: 10px; padding: 8px; font-size: 0.85rem; }

/* ==========================================
   7. MODALS & DRAWERS
========================================== */
.modal, .drawer {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 420px;
  position: relative;
}
.modal-close, .drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer { justify-content: flex-end; }
.drawer-content {
  background: var(--bg-card);
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  position: relative;
}
.drawer-header { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; }
.drawer-footer { border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: 1rem; }

.cart-summary { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; }
.cart-item { display: flex; justify-content: space-between; background: var(--bg-dark); padding: 0.75rem; border-radius: var(--radius); margin-bottom: 0.75rem; }

/* ==========================================
   8. SLIDER & SOCIALS (HOME PAGE)
========================================== */
.deals-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.deals-slider {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none; 
  scroll-behavior: smooth;
}
.deals-slider::-webkit-scrollbar { display: none; }

.deal-card {
  min-width: 280px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.deal-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.deal-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc2626;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 900;
  z-index: 2;
}

.deal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.deal-info { padding: 1.25rem; }
.deal-info h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.deal-price { font-size: 1.2rem; font-weight: 900; color: #fff; }
.deal-price del { color: var(--text-muted); font-size: 0.9rem; font-weight: normal; margin-right: 0.5rem; }
.deal-price span { color: var(--primary); }

.slider-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slider-btn:hover { background: var(--primary); color: black; border-color: var(--primary); }
.slider-btn.left { left: -20px; }
.slider-btn.right { right: -20px; }
@media (max-width: 768px) { .slider-btn { display: none; } } 

/* Social Links */
.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-btn { padding: 0.5rem 1rem; border-radius: var(--radius); font-weight: bold; font-size: 0.85rem; transition: opacity 0.2s; color: white !important; }
.social-btn:hover { opacity: 0.8; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.facebook { background: #1877F2; }
.tiktok { background: #000000; border: 1px solid #333; }
.whatsapp { background: #25D366; color: black !important; }

/* Location Info */
.location-info { background: var(--bg-card); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border-color); }

/* ==========================================
   9. FOOTER
========================================== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-dark);
}