:root {
  --primary-color: #0891b2;
  --secondary-color: #f97316;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #fbbf24;
  --accent-color: #06b6d4;
}

body {
  font-family: 'Poppins', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0fdfa;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.navbar {
  border-bottom: 3px solid #0891b2;
  background: linear-gradient(to right, #ffffff, #f0fdfa) !important;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1);
}

.navbar-brand {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0891b2, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section {
  min-height: 650px;
  display: flex;
  align-items: center;
  background-image: url('../uploads/banner.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.85) 0%, rgba(249, 115, 22, 0.85) 100%);
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  color: #ffffff !important;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  font-size: 3.8rem !important;
  font-weight: 900 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -1px;
}

.hero-section p, .hero-section .lead {
  color: #ffffff !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  font-size: 1.4rem !important;
  font-weight: 400 !important;
  line-height: 1.6;
}

.hero-section .col-lg-6:first-child {
  text-align: center;
}

.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  padding: 18px 35px;
  border-radius: 15px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.purchase-card {
  border-radius: 30px;
  border: 4px solid #0891b2;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(8, 145, 178, 0.25);
  position: relative;
  overflow: hidden;
}

.purchase-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.purchase-card .card-body {
  border-radius: 26px;
  padding: 2.5rem !important;
  position: relative;
}

.purchase-card .card-title {
  background: linear-gradient(135deg, #0891b2, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.purchase-card .text-center p,
.purchase-card .text-muted {
  color: #0c4a6e !important;
  font-weight: 600 !important;
}

.form-label {
  color: #0c4a6e;
  font-size: 1rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.form-control, .form-select {
  border: 3px solid #a5f3fc;
  padding: 0.9rem 1.2rem;
  font-size: 1.05rem;
  transition: all 0.3s;
  border-radius: 12px;
  background: #ecfeff;
}

.form-control:focus, .form-select:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
  transform: translateY(-2px);
  background: #ffffff;
}

.payment-display {
  background: linear-gradient(135deg, #cffafe 0%, #fed7aa 100%);
  padding: 25px;
  border-radius: 20px;
  border: 4px solid #0891b2;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.2);
  position: relative;
}

.payment-display::before {
  content: '💰';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  opacity: 0.3;
}

.payment-amount {
  font-size: 2.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0891b2, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #f97316 100%);
  border: none;
  padding: 15px 35px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.3s;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(8, 145, 178, 0.3);
  text-transform: uppercase;
  font-size: 1.1rem;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.4);
  background: linear-gradient(135deg, #f97316 0%, #0891b2 100%);
}

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

.stock-info {
  background: linear-gradient(135deg, #d1fae5, #fef3c7);
  padding: 12px;
  border-radius: 15px;
  border: 2px solid #10b981;
}

footer {
  margin-top: 50px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-top: 4px solid #0891b2;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(8, 145, 178, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 1;
}

footer h5 {
  color: #0891b2 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem !important;
  font-size: 1.1rem !important;
}

footer p {
  color: #cbd5e1 !important;
  line-height: 1.8;
  font-size: 0.95rem;
}

footer a {
  text-decoration: none;
  color: #94a3b8 !important;
  transition: all 0.3s;
  display: inline-block;
  position: relative;
}

footer a:hover {
  color: #0891b2 !important;
  transform: translateX(5px);
}

footer a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s;
  color: #f97316;
}

footer a:hover::before {
  opacity: 1;
  left: -15px;
}

footer hr {
  border-color: rgba(8, 145, 178, 0.3) !important;
  margin: 2rem 0 !important;
}

footer .fas, footer .fa {
  color: #f97316;
  margin-right: 10px;
  font-size: 1.1rem;
}

footer .text-center p {
  color: #64748b !important;
  font-size: 0.9rem;
}

.swal2-popup {
  border-radius: 25px !important;
  border: 3px solid #0891b2 !important;
}

.swal2-confirm {
  background: linear-gradient(135deg, #0891b2 0%, #f97316 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 30px !important;
  font-weight: 700 !important;
}

@media (max-width: 992px) {
  .hero-section .col-lg-6:first-child {
      margin-bottom: 2rem;
  }
  
  .navbar-brand {
      font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
      min-height: auto;
      padding: 30px 0 !important;
  }

  .hero-section h1 {
      font-size: 2.2rem !important;
  }
  
  .hero-section p, .hero-section .lead {
      font-size: 1.1rem !important;
  }

  .payment-amount {
      font-size: 1.7rem;
  }

  .discount-badge {
      font-size: 1rem;
      padding: 12px 25px;
  }
  
  .purchase-card {
      margin-top: 1rem;
  }
  
  .purchase-card .card-body {
      padding: 1.5rem !important;
  }
  
  .purchase-card .card-title {
      font-size: 1.8rem;
  }
  
  .btn-primary {
      font-size: 1rem;
      padding: 12px 25px;
  }
  
  footer h5 {
      font-size: 1rem !important;
  }
  
  footer p {
      font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
      font-size: 1.8rem !important;
  }
  
  .payment-display {
      padding: 15px;
  }
  
  .payment-amount {
      font-size: 1.4rem;
  }
  
  .form-control, .form-select {
      font-size: 0.95rem;
      padding: 0.7rem 1rem;
  }
  
  .navbar-brand {
      font-size: 1.2rem;
  }
  
  .discount-badge {
      font-size: 0.9rem;
      padding: 10px 20px;
  }
}