:root {
  --brand-tag: #rgba(255, 102, 222, 0);
  --brand-yellow: #FFD700;
  --brand-blue: #1976d2;
  --brand-blue2: #00b0ff;
  --brand-green: #34a853;
  --brand-green2: #0f9d58;
  --brand-black: #000000;
  --bg: #ffffff;
  --text: #212529;
  --card-bg: #e2f6fa;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.dark {
  --bg: #01011a;
  --text: #ffffff;
  --card-bg: #0f0f0f;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  background: var(--bg);
  color: var(--text);
}

body.dark .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.dark .text-dark,
body.dark .text-black {
  color: var(--text) !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

.hero {
  background: linear-gradient(135deg, #f86402, var(--brand-yellow));
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  /* text-shadow: 0 1px 2px rgb(14, 13, 13) */
}

.hero h1,
.hero h3,
.hero h4,
.hero h5 {
  letter-spacing: .2px
}

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(6px);
}

.feature-box {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Hero right-side redesigned feature cards */
.feature-grid .feature-card {
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-grid .feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 20px;
}

.feature-delivery {
  background: linear-gradient(135deg, #ff8a00, #ffcd3c);
}

.feature-secure {
  background: linear-gradient(135deg, #0f9d58, #34a853);
}

.feature-always {
  background: linear-gradient(135deg, #1976d2, #00b0ff);
}

.feature-networks {
  background: linear-gradient(135deg, #8e24aa, #d81b60);
}

@media (max-width: 767.98px) {
  .hero .feature-grid {
    margin-top: 14px;
  }
}

.btn-hero {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  transition: transform .15s ease, filter .15s ease, background-color .25s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  display: none;
}

.btn-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.35) 0%, rgba(255, 215, 0, 0) 60%);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease;
  pointer-events: none;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.btn-hero:active {
  transform: translateY(1px);
}

.btn-hero-primary {
  background: #000;
  border-color: #000;
  color: #fff;
}

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

.btn-hero-secondary {
  background: transparent;
  border: 2px solid #000;
  color: #000;
}

.btn-hero-secondary:hover {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #000;
}

body.dark .btn-hero-primary {
  background: #fff;
  border-color: #fff;
  color: #000;
}

body.dark .btn-hero-primary:hover {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #000;
}

body.dark .btn-hero-secondary {
  border-color: #fff;
  color: #fff;
}

body.dark .btn-hero-secondary:hover {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #000;
}

.btn-hero-shop {
  border-color: #000;
}

.btn-hero-shop:hover {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #000;
}

.btn-hero-track {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: transparent;
}

.btn-hero-track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue2));
  transform: translateX(-30%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  display: block;
  pointer-events: none;
  color: black;
  z-index: -1;
}

.btn-hero-track:hover {
  color: black;
  box-shadow: 0 10px 22px rgba(25, 118, 210, 0.3);
}

.btn-hero-track:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.btn-hero-buy {
  border-color: #000;
  color: #fff;
  background: #000;
}

.btn-hero-buy:hover {
  background: linear-gradient(135deg, var(--brand-green2), var(--brand-green));
  border-color: var(--brand-green);
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px rgba(15, 157, 88, 0.35);
}

.btn-hero-buy::after {
  background: radial-gradient(circle, rgba(52, 168, 83, 0.35) 0%, rgba(52, 168, 83, 0) 60%);
}

.section-title {
  font-weight: 700;
}

.network-card {
  border-radius: 12px;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  overflow: hidden;
}

.network-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.network-card.animated::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .25), transparent);
  animation: shine 2.2s infinite;
}

.network-card.card-mtn {
  background: #FCC601 !important;
  color: #000;
  box-shadow: none;
}

.network-card.card-telecel {
  background: #e60000 !important;
  color: #fff;
  box-shadow: none;
}

.network-card.card-at {
  background: linear-gradient(135deg, #1976d2 0%, #d32f2f 100%) !important;
  color: #fff;
  box-shadow: none;
}

.network-card.card-afa {
  background: linear-gradient(135deg, #fde403 0%, #fff01c 100%) !important;
  color: #000;
  box-shadow: none;
}

/* .network-card.card-mtn,
.network-card.card-mtn * {
  /* text-shadow: 0 1px 2px rgb(253, 252, 252); 
} 
/* */

.network-card.card-mtn .btn,
.network-card.card-mtn .btn-warning,
.network-card.card-mtn .btn-dark {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

.network-card.card-mtn .btn:hover {
  filter: brightness(0.95);
}

.network-card.card-telecel,
.network-card.card-telecel * {
  color: #fff;
  /* text-shadow: 0 1px 2px rgba(8, 8, 8, 0.719); */
}

/* .network-card.card-telecel .btn {
  color: #0c0c0c;
  /* text-shadow: 0 1px 2px rgba(8, 8, 8, 0.719); 
} */

.network-card.card-telecel .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

.badge-brand {
  background: var(--brand-yellow);
  color: #000;
}

.network-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #000;
  background: #03f337;
  position: absolute;
  top: 8px;
  left: 8px;
}

.badge-mtn {
  background: #ff9900;
  color: #000;
}

.badge-telecel {
  background: #f303a3;
  color: #fff;
}

.badge-at {
  background: #d32f2f;
  color: #fff;
}

.badge-afa {
  background: #fde403;
  color: #000;
}

.nav-tabs .nav-link {
  font-weight: 600;
  border: none;
}

.nav-tabs .nav-link.active {
  background: var(--brand-yellow);
  color: #000;
  border-radius: 999px;
}

/* Navbar active highlight */
.navbar .nav-link.active {
  color: var(--brand-yellow) !important;
  position: relative;
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 24px;
  height: 2px;
  background: var(--brand-yellow);
  border-radius: 2px;
}

.quick-pill {
  display: inline-block;
  margin: 4px;
}

.quick-pill input {
  display: none;
}

.quick-pill .label {
  display: inline-block;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow);
}

.quick-pill input:checked+.label {
  background: var(--brand-yellow);
}

.fade-up {
  animation: fadeUp .4s ease both;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-dark {
  background: var(--brand-black);
  border-color: var(--brand-black);
}

.btn-dark:hover {
  background: #111111;
  border-color: #111111;
}

.btn-warning {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  color: #000;
}

.btn-warning:hover {
  filter: brightness(0.95);
}

body.dark .btn-login,
body.dark .btn-filter {
  background: linear-gradient(135deg, #28a745 0%, #1976d2 100%);
  border: none;
  color: #fff;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-content {
  background: var(--bg);
  color: var(--text);
}

/* Auth Pages Styles */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Changed from center to align higher */
  padding: 20px 20px; /* Reduced top padding */
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark .auth-card {
  background: #11112b;
}

.auth-logo-section {
  text-align: center;
  margin-top: -60px; /* Added some top margin for the logo */
  margin-bottom: 30px; /* Slightly reduced bottom margin */
}

.auth-logo-section h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 576px) {
  .mview{
    font-size: 12px;
  }
  .auth-logo-section h1 {
    font-size: 12px;
  }
  .auth-logo-section h1 .fs-5 {
    font-size: 12px !important;
  }
  .auth-logo-section h1 .badge {
    font-size: 12px;
    padding: 0.35em 0.5em;
  }
}

.auth-logo-section p {
  font-size: 14px;
  color: var(--brand-blue2);
  margin-top: 8px;
  font-weight: 500;
}

.auth-banner {
  background: rgba(15, 157, 88, 0.1);
  border: 1px solid rgba(15, 157, 88, 0.2);
  border-radius: 16px;
  padding: 15px 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #0f9d58;
  transition: all 0.3s ease;
}

body.dark .auth-banner {
  background: rgba(15, 157, 88, 0.05);
}

.auth-banner:hover {
  transform: translateY(-2px);
  background: rgba(15, 157, 88, 0.15);
  color: #0f9d58;
}

.auth-banner .banner-text {
  font-size: 13px;
}

.auth-banner .banner-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.auth-illustration {
  text-align: center;
  margin-bottom: 30px;
}

.auth-illustration img {
  max-width: 180px;
  height: auto;
}

.auth-title-section {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-title-section p {
  color: var(--text);
  opacity: 0.6;
  font-size: 15px;
}

.social-auth {
  margin-bottom: 30px;
}

.btn-google {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
}

body:not(.dark) .btn-google {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  color: var(--text);
  opacity: 0.3;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.dark) .auth-divider::before,
body:not(.dark) .auth-divider::after {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.auth-divider:not(:empty)::before {
  margin-right: 1em;
}

.auth-divider:not(:empty)::after {
  margin-left: 1em;
}

.auth-input-group {
  position: relative;
  margin-bottom: 18px;
}

.auth-input-group i:not(.password-toggle) {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text);
  opacity: 0.4;
  font-size: 18px;
}

.auth-input-group .form-control {
  padding-left: 52px;
  padding-right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--text);
  height: 54px;
  font-size: 15px;
  transition: all 0.2s ease;
}

body:not(.dark) .auth-input-group .form-control {
  background: #fff;
  border-color: #dee2e6;
}

.auth-input-group .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.password-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text);
  opacity: 0.4;
  font-size: 18px;
  padding: 5px;
  z-index: 5;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 14px;
}

.btn-auth-submit {
  width: 100%;
  background: var(--brand-yellow);
  color: #000;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
  filter: brightness(1.05);
  color: #000;
}

.btn-auth-otp {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: var(--brand-yellow);
  border-radius: 14px;
  padding: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  transition: all 0.2s ease;
}

.btn-auth-otp:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: var(--brand-yellow);
}

.auth-footer-text {
  text-align: center;
  font-size: 15px;
  color: var(--text);
  opacity: 0.7;
}

.auth-footer-text a {
  color: var(--brand-yellow);
  text-decoration: none;
  font-weight: 700;
}

.auth-bottom-help {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
}

.auth-bottom-help a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-bottom-help a:hover {
  opacity: 1;
}

/* Sticky Theme Toggle */
body.dark .auth-input-group .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.dark .auth-input-group .form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.dark .auth-input-group .form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.dark .auth-input-group .form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.sticky-top .theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition: all 0.2s ease;
}

body:not(.dark) .sticky-top .theme-toggle {
  background: #fff;
  border-color: #dee2e6;
}

.sticky-top .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
