* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --safaricom-green: #1cb55c;
  --safaricom-green-dark: #0e8a47;
  --safaricom-green-soft: #e0f5e9;
  --safaricom-green-mid: #c2e6d4;
  --accent-gold: #f5b042;
  --gray-950: #0b2b22;
  --gray-900: #15372c;
  --gray-800: #1f4d3e;
  --gray-700: #2d6653;
  --gray-600: #46806b;
  --gray-500: #6e9b89;
  --gray-400: #9bb9ac;
  --gray-200: #e2ece6;
  --gray-100: #f0f7f2;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(28, 181, 92, 0.08);
  --shadow-md: 0 12px 28px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(28, 181, 92, 0.1);
  --shadow-lg: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 35px 55px -18px rgba(0, 0, 0, 0.2);
  --radius-3xl: 40px;
  --radius-2xl: 32px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

body {
  background: linear-gradient(135deg, #f6fbf8 0%, #ffffff 100%);
  font-family: 'Inter', 'Open Sans', system-ui, sans-serif;
  color: var(--gray-800);
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-200);
}
::-webkit-scrollbar-thumb {
  background: var(--safaricom-green);
  border-radius: 10px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(28, 181, 92, 0.2);
  padding: 14px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, var(--safaricom-green), var(--safaricom-green-dark));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(28, 181, 92, 0.25);
}

.logo-mark i {
  font-size: 1.5rem;
  color: white;
}

.logo-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--gray-900);
}

.logo-text p {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--safaricom-green);
  color: var(--safaricom-green-dark);
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.25s;
}

.btn-outline:hover {
  background: var(--safaricom-green);
  color: white;
  transform: translateY(-1px);
}

/* Toast container - slim & visible */
.toast-stack {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: auto;
  max-width: 90vw;
}

.toast-item {
  background: var(--white);
  border-radius: 40px;
  padding: 8px 18px 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(28, 181, 92, 0.25);
  backdrop-filter: blur(8px);
  animation: slideDownFade 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  pointer-events: auto;
  min-width: 260px;
  max-width: 380px;
  border-left: 3px solid var(--safaricom-green);
}

.toast-item.fade-out {
  animation: fadeUpOut 0.45s ease forwards;
}

@keyframes slideDownFade {
  0% { opacity: 0; transform: translateY(-20px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUpOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); display: none; }
}

.toast-icon {
  width: 28px;
  height: 28px;
  background: var(--safaricom-green-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--safaricom-green-dark);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.toast-text strong {
  font-size: 0.8rem;
  color: var(--gray-900);
  display: block;
  line-height: 1.3;
}
.toast-text p {
  font-size: 0.65rem;
  color: var(--gray-600);
  line-height: 1.3;
}

.toast-close {
  background: none;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  margin-left: 4px;
  transition: color 0.2s;
}
.toast-close:hover {
  color: var(--gray-600);
}

/* Main container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px 48px;
}

/* Hero - with centered big animated button */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-3xl);
  padding: 32px 48px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(28, 181, 92, 0.15);
  margin-bottom: 40px;
}

.hero-left .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--safaricom-green-soft);
  padding: 5px 18px;
  border-radius: 60px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--safaricom-green-dark);
  margin-bottom: 18px;
}

.hero-left h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 14px;
}

.gradient-text {
  background: linear-gradient(120deg, var(--safaricom-green-dark), var(--safaricom-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.4;
}

/* Big centered animated button */
.btn-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 16px;
}

.btn-primary-large {
  background: linear-gradient(95deg, var(--safaricom-green), var(--safaricom-green-dark));
  border: none;
  padding: 18px 48px;
  border-radius: 80px;
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px -8px rgba(28, 181, 92, 0.5);
  animation: pulseGlow 2s infinite ease-in-out;
}

.btn-primary-large i {
  font-size: 1.2rem;
}

.btn-primary-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 35px -10px rgba(28, 181, 92, 0.6);
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 12px 28px -8px rgba(28, 181, 92, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 18px 38px -8px rgba(28, 181, 92, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 12px 28px -8px rgba(28, 181, 92, 0.4);
  }
}

/* Animated Progress Bar - Slim & Long */
.progress-section {
  margin: 24px 0 20px;
  width: 100%;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
}

.progress-label-start {
  color: var(--safaricom-green-dark);
}

.progress-label-end {
  color: var(--safaricom-green-dark);
  font-weight: 700;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--safaricom-green), var(--safaricom-green-dark));
  border-radius: 20px;
  animation: fillProgress 2.2s ease-out forwards;
  position: relative;
  box-shadow: 0 0 8px rgba(28, 181, 92, 0.5);
}

@keyframes fillProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.progress-value {
  text-align: center;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--safaricom-green-dark);
  background: var(--safaricom-green-soft);
  display: inline-block;
  padding: 4px 16px;
  border-radius: 60px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.trust-badge-item {
  background: var(--gray-100);
  padding: 5px 16px;
  border-radius: 60px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Hero right - simplified (no stat cards) */
.hero-right {
  background: linear-gradient(145deg, var(--safaricom-green-soft), #ffffff);
  border-radius: var(--radius-2xl);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(28, 181, 92, 0.2);
}

.hero-right-icon {
  font-size: 3rem;
  color: var(--safaricom-green);
  margin-bottom: 16px;
}

.hero-right h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.hero-right p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 28px;
}
.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
}
.section-header p {
  color: var(--gray-500);
  margin-top: 6px;
  font-size: 0.9rem;
}

/* Cards grid - 9 packages with instant increase tag */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.limit-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  transition: all 0.3s ease;
  border: 1px solid rgba(28, 181, 92, 0.12);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.limit-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--safaricom-green), var(--accent-gold));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.limit-card:hover::after {
  transform: scaleX(1);
}

.limit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 181, 92, 0.3);
  box-shadow: var(--shadow-md);
}

.card-header-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Instant increase tag - lightning icon */
.instant-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #fef7e0, #fff3cc);
  padding: 4px 12px;
  border-radius: 60px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #c47d2e;
  border: 1px solid rgba(244, 176, 66, 0.3);
  animation: subtlePulse 1.5s infinite ease;
}

.instant-tag i {
  font-size: 0.7rem;
  color: #f5b042;
}

@keyframes subtlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; transform: scale(0.98); }
}

.limit-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.fee-container {
  background: var(--safaricom-green-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 60px;
  margin: 14px 0;
  font-weight: 500;
  font-size: 0.8rem;
}

.fee-container strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--safaricom-green-dark);
}

.card-btn {
  width: 100%;
  background: transparent;
  border: 1.8px solid var(--safaricom-green);
  border-radius: 60px;
  padding: 10px 0;
  font-weight: 700;
  color: var(--safaricom-green-dark);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
}

.card-btn:hover {
  background: var(--safaricom-green);
  color: white;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 43, 34, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-hidden {
  display: none;
}

.modal-card-new {
  background: var(--white);
  max-width: 520px;
  width: 90%;
  border-radius: 48px;
  padding: 32px 32px 40px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-x {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray-500);
}

.summary-block {
  background: var(--gray-100);
  border-radius: 28px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.input-modern {
  width: 100%;
  padding: 14px 18px;
  border-radius: 80px;
  border: 1.5px solid var(--gray-200);
  font-size: 0.9rem;
  margin-bottom: 18px;
  transition: all 0.2s;
}

.input-modern:focus {
  border-color: var(--safaricom-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 181, 92, 0.1);
}

.helper-text {
  background: #f6faf7;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.7rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-stk {
  background: var(--safaricom-green);
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: 80px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
}

.btn-stk:hover {
  background: var(--safaricom-green-dark);
}

.footer-note {
  text-align: center;
  padding: 28px;
  color: var(--gray-500);
  font-size: 0.7rem;
  border-top: 1px solid var(--gray-200);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .navbar {
    padding: 12px 24px;
  }
  .hero-left h1 {
    font-size: 1.8rem;
  }
  .main-container {
    padding: 16px 20px 32px;
  }
  .btn-primary-large {
    padding: 14px 32px;
    font-size: 1rem;
  }
  .card-header-row {
    justify-content: center;
  }
}
