/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #020617;
  color: #e5e7eb;
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* NAVBAR */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background: #0f0101;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 30px;
  font-weight: 700;
}

.logo span {
  color: #22c55e;
}

.navbar input {
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  outline: none;
  width: 100%;
  max-width: 300px;
  font-size: 14px;
  margin: 10px 0;
}

.navbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.navbar nav a {
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.3s;
}

/* Sosial Media Buttons */
.btn-wa {
  background: url(images/logowapng.jpg) center/cover no-repeat;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  /* Lebar tombol */
  height: 50px;
  /* Tinggi tombol */
  border-radius: 12px;
  /* Bisa diubah lingkaran atau kotak bulat */
}

.btn-ig {
  background: url(images/logoIG.jpg) center/cover no-repeat;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  /* Lebar tombol */
  height: 50px;
  /* Tinggi tombol */
  border-radius: 12px;
  /* Bisa diubah lingkaran atau kotak bulat */
}

.btn-fb {
  background: url(images/logoFb.jpg) center/cover no-repeat;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  /* Lebar tombol */
  height: 50px;
  /* Tinggi tombol */
  border-radius: 12px;
  /* Bisa diubah lingkaran atau kotak bulat */
}

.btn-tw {
  background: url(images/logoTwitter.jpg) center/cover no-repeat;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  /* Lebar tombol */
  height: 50px;
  /* Tinggi tombol */
  border-radius: 12px;
  /* Bisa diubah lingkaran atau kotak bulat */
}

.btn-tl {
  background: url(images/logoTelegram.jpg) center/cover no-repeat;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  /* Lebar tombol */
  height: 50px;
  /* Tinggi tombol */
  border-radius: 12px;
  /* Bisa diubah lingkaran atau kotak bulat */
}

/* Hover efek */
.navbar nav a:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* HERO */
.hero {
  min-height: 400px;
  height: 85vh;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(images/ikonL2.jpg) center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  color: #94a3b8;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: auto;
  z-index: 1;
}

.hero h1 span {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  opacity: 0.9;
  margin-top: 8px;
}

.tagline {
  font-size: 1.1rem;
  margin: 20px 0;
  opacity: 0.95;
}

.rating {
  margin-bottom: 30px;
  font-size: 1rem;
}

.rating span {
  font-weight: bold;
  margin-right: 8px;
}

.hero-action {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-action a {
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #ffd700;
  color: #000;
}

.btn-primary:hover {
  background: #ffcc00;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 2px solid #fff;
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* PRODUK */
.produk {
  padding: 60px 30px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(images/) center/cover;
}

.produk h2 {
  text-align: center;
  margin-bottom: 30px;
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
  justify-items: center;
}

.card {
  background: #020617;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid #1e293b;
  width: 100%;
  max-width: 240px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.card h3 {
  min-height: 5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card button {
  margin-top: 15px;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.card button:hover {
  background: #1d4ed8;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal.active {
  display: flex;
}

.modal-box {
  background: #020617;
  padding: 30px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  position: relative;
  border: 1px solid #1e293b;
}

.modal-box h2 {
  margin-bottom: 15px;
  text-align: center;
}

.modal-box .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-box form label {
  display: block;
  margin: 10px 0 5px;
  font-size: 0.9rem;
}

.modal-box form input,
.modal-box form select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  margin-bottom: 10px;
}

.modal-box form button {
  width: 100%;
  padding: 12px;
  background: #22c55e;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.modal-box form button:hover {
  background: #16a34a;
}

/* Tentang */
.tentang {
  background: #0d0d0d;
  color: #f0f0f0;
  padding: 80px 20px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.tentang h2 {
  font-size: 2.5rem;
  color: #00ffff;
  margin-bottom: 20px;
  text-shadow: 0 0 8px #00ffff;
}

.tentang h2 span {
  color: #ff00ff;
  text-shadow: 0 0 12px #ff00ff;
}

.tentang .desc {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
  color: #ccc;
}

.tentang-highlight {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}

.tentang-highlight .item {
  background: rgba(0, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  width: 250px;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.tentang-highlight .item span {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.tentang-highlight .item h4 {
  font-size: 1.2rem;
  color: #00ffff;
  margin-bottom: 10px;
}

.tentang-highlight .item p {
  font-size: 0.95rem;
  color: #ccc;
}

.tentang-highlight .item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

.tentang-note {
  font-size: 1rem;
  font-weight: bold;
  color: #faf8fa;
  text-shadow: 0 0 6px #ff00ff;
}

/* FOOTER */
footer {
  padding: 15px;
  text-align: center;
  color: #94a3b8;
}

/* RESPONSIVE */
@media(max-width:768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

@media(max-width:480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .card button {
    padding: 8px;
    font-size: 14px;
  }

  .navbar input {
    font-size: 12px;
  }

  @media(max-width:768px) {
    .navbar {
      flex-direction: column;
      gap: 10px;
      align-items: flex-start;
    }

    .navbar input {
      width: 100%;
    }

    .hero h1 {
      font-size: 2rem;
    }
  }
}

/* Enhanced Product Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  margin: 2% auto;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid #334155;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #64748b;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #22c55e;
}

.product-details h2 {
  color: #22c55e;
  margin-bottom: 25px;
  font-size: 24px;
  text-align: center;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.nominal-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.nominal-card,
.payment-card {
  background: linear-gradient(145deg, #334155, #1e293b);
  border: 2px solid #475569;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nominal-card:hover,
.payment-card:hover {
  border-color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2);
}

.nominal-card.selected,
.payment-card.selected {
  border-color: #22c55e;
  background: linear-gradient(145deg, #166534, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.nominal-name,
.payment-name {
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 5px;
  font-size: 14px;
}

.nominal-price,
.payment-fee {
  color: #22c55e;
  font-weight: 700;
  font-size: 13px;
}

.order-summary {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
}

.order-summary h3 {
  color: #22c55e;
  margin-bottom: 15px;
  text-align: center;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #334155;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-item.total {
  font-weight: bold;
  font-size: 18px;
  color: #22c55e;
  border-top: 2px solid #22c55e;
  padding-top: 15px;
  margin-top: 15px;
}

#processPayment {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#processPayment:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

#processPayment:disabled {
  background: #475569;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Toast Notifications */
.toast {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* User Action Button Styles */
#userAction .user-button {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#userAction .user-button:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
    max-height: 85vh;
  }

  .nominal-grid,
  .payment-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }

  .nominal-card,
  .payment-card {
    padding: 10px;
  }

  .product-details h2 {
    font-size: 20px;
  }

  #processPayment {
    font-size: 16px;
    padding: 14px;
  }
}