/* ─── CSS VARIABLES & RESET ─── */
:root {
  /* Brand */
  --brand-dark: #0a0a0f;
  --brand-mid: #13131a;
  --brand-surface: #1c1c28;
  --brand-border: rgba(255, 255, 255, 0.08);
  --brand-accent: #7c3aed;
  --text-primary: #f0f0f8;
  --text-secondary: #9090b0;
  --text-muted: #5a5a7a;

  /* Network Colors */
  --mtn-yellow: #ffcc00;
  --mtn-black: #000000;
  --telecel-red: #e2001a;
  --telecel-white: #ffffff;
  --at-red: #ff0000;
  --at-blue: #003da5;

  /* UI */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--brand-dark);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--brand-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-surface);
  border-radius: 3px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--brand-border);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}
.logo span {
  color: var(--mtn-yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover {
  color: var(--text-primary);
}

.btn-ghost {
  border: 1px solid var(--brand-border) !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
}
.btn-ghost:hover {
  background: var(--brand-surface) !important;
}

.btn-nav {
  background: var(--mtn-yellow) !important;
  color: #000 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.btn-nav:hover {
  background: #e6b800 !important;
}

.hamburger {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--brand-mid);
  border-bottom: 1px solid var(--brand-border);
  flex-direction: column;
  padding: 16px;
  gap: 4px;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}
.mobile-menu a:hover {
  background: var(--brand-surface);
  color: var(--text-primary);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--mtn-yellow);
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  font-family: "DM Sans", sans-serif;
}
.btn-primary:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 204, 0, 0.3);
}

.btn-primary-lg {
  display: inline-block;
  background: var(--mtn-yellow);
  color: #000;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: var(--transition);
}
.btn-primary-lg:hover {
  background: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.4);
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--brand-border);
  color: var(--text-primary);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--brand-surface);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-white {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ─── SECTION HEADER ─── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
  color: var(--text-primary);
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 360px;
}
.toast.success {
  border-left: 3px solid #22c55e;
}
.toast.error {
  border-left: 3px solid #ef4444;
}
.toast.info {
  border-left: 3px solid var(--brand-accent);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── SPINNER ─── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── FLOATING WA BUTTONS ─── */
.whatsapp-group-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 888;
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
}
.whatsapp-group-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-support-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 888;
  background: #25d366;
  color: #fff;
  height: 52px;
  padding: 0 20px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: var(--transition);
}
.whatsapp-support-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ─── INPUT STYLES ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input {
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  color: var(--text-primary);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--mtn-yellow);
  background: rgba(255, 204, 0, 0.04);
}
.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  cursor: pointer;
}

/* ─── NETWORK THEME BADGES ─── */
.net-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}
.mtn-badge {
  background: rgba(255, 204, 0, 0.15);
  color: var(--mtn-yellow);
  border: 1px solid rgba(255, 204, 0, 0.3);
}
.telecel-badge {
  background: rgba(226, 0, 26, 0.15);
  color: #ff3347;
  border: 1px solid rgba(226, 0, 26, 0.3);
}
.at-badge {
  background: rgba(0, 61, 165, 0.2);
  color: #5b8ff9;
  border: 1px solid rgba(0, 61, 165, 0.4);
}

/* ─── BUNDLE CARDS ─── */
.bundle-card {
  background: var(--brand-surface);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.bundle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
}
.bundle-card:hover {
  transform: translateY(-4px);
}

/* MTN bundle card */
.bundle-card.mtn {
  border-color: rgba(255, 204, 0, 0.2);
}
.bundle-card.mtn::before {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.08), transparent);
}
.bundle-card.mtn:hover {
  border-color: rgba(255, 204, 0, 0.5);
  box-shadow: 0 8px 32px rgba(255, 204, 0, 0.15);
}
.bundle-card.mtn:hover::before {
  opacity: 1;
}

/* Telecel bundle card */
.bundle-card.telecel {
  border-color: rgba(226, 0, 26, 0.2);
}
.bundle-card.telecel::before {
  background: linear-gradient(135deg, rgba(226, 0, 26, 0.08), transparent);
}
.bundle-card.telecel:hover {
  border-color: rgba(226, 0, 26, 0.5);
  box-shadow: 0 8px 32px rgba(226, 0, 26, 0.15);
}
.bundle-card.telecel:hover::before {
  opacity: 1;
}

/* AT bundle card */
.bundle-card.at {
  border-color: rgba(0, 61, 165, 0.3);
}
.bundle-card.at::before {
  background: linear-gradient(135deg, rgba(0, 61, 165, 0.12), transparent);
}
.bundle-card.at:hover {
  border-color: rgba(0, 61, 165, 0.6);
  box-shadow: 0 8px 32px rgba(0, 61, 165, 0.2);
}
.bundle-card.at:hover::before {
  opacity: 1;
}

.bundle-card .capacity {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.bundle-card.mtn .capacity {
  color: var(--mtn-yellow);
}
.bundle-card.telecel .capacity {
  color: #ff3347;
}
.bundle-card.at .capacity {
  color: #5b8ff9;
}

.bundle-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.bundle-card .buy-btn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: "DM Sans", sans-serif;
}
.bundle-card.mtn .buy-btn {
  background: var(--mtn-yellow);
  color: #000;
}
.bundle-card.mtn .buy-btn:hover {
  background: #e6b800;
}
.bundle-card.telecel .buy-btn {
  background: var(--telecel-red);
  color: #fff;
}
.bundle-card.telecel .buy-btn:hover {
  background: #c0001a;
}
.bundle-card.at .buy-btn {
  background: var(--at-blue);
  color: #fff;
}
.bundle-card.at .buy-btn:hover {
  background: #002d80;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

/* ─── PAGE LAYOUT ─── */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content {
  min-height: 100vh;
  padding-top: 80px;
}

/* ─── STATUS BADGE ─── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-processing {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}
.status-failed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--brand-mid);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-close {
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--text-primary);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .bundle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .bundle-grid {
    grid-template-columns: 1fr 1fr;
  }
  .whatsapp-support-btn span {
    display: none;
  }
  .whatsapp-support-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
}
