/* 🌐 Global */
body {
  margin: 0;
  background: #f3f3f3;
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 100px;
}

/* 🔝 Header */
.main-header {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 80px;
  padding: 0 20px;
  background: linear-gradient(90deg, #003a6f, #DFB830);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 999;
}
.header-logo { max-height: 120px; }
.header-right { color: #fff; font-size: 14px; font-weight: bold; }

/* 📌 Title */
h1 {
  color: #006582; font-size: 28px; margin: 20px 0 10px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.gas-icon { height: 40px; }
.gas-price-under-title {
  text-align: center; font-size: 15px; color: #006582;
  font-weight: bold; margin-bottom: 20px;
}

/* ✏️ Calculator Card */
.calc-card {
  background: #fff; border-radius: 16px; max-width: 420px;
  margin: 20px auto; padding: 25px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  box-sizing: border-box;
}
.enter-label {
  font-size: 16px; font-weight: bold; display: flex;
  align-items: center; gap: 8px; margin-bottom: 10px; color: #333;
}
.icon-label { height: 26px; }
.calc-card input[type=number] {
  width: 100%; padding: 14px 16px; font-size: 16px;
  border-radius: 10px; border: 1.5px solid #ccc;
  margin-bottom: 20px; box-sizing: border-box;
}
.calc-card input[type=number]:focus {
  outline: none; border-color: #006582;
  box-shadow: 0 0 5px rgba(0,101,130,0.3);
}

/* 📄 Result */
.result-display {
  background: #f9f9f9; border-radius: 10px;
  padding: 15px; font-size: 15px; line-height: 1.6;
}
.result-display .line { margin-bottom: 8px; }

/* 💳 Payment Info */
.payment-info {
  margin-top: 20px; background: #fff8e1;
  border: 1px solid #f0d68c; border-radius: 10px;
  padding: 15px; font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.payment-info h3 { color: #006582; margin: 0 0 10px 0; }
.payment-info .final-pay {
  margin-top: 10px; color: #c62828; font-size: 16px; font-weight: bold;
}
.qr-wrapper { margin-top: 15px; text-align: center; }
.qr-img {
  width: 180px; height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.qr-wrapper button {
  margin-top: 8px; background: #006582; color: #fff;
  border: none; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; cursor: pointer;
}
.qr-wrapper button:hover { background: #004d5e; }

/* 🎁 Gift Info */
.gift-info {
  margin-top: 20px; background: #e8f5e9;
  border: 1px solid #a5d6a7; border-radius: 10px;
  padding: 15px; font-size: 15px; line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.gift-info h3 {
  margin-top: 0; margin-bottom: 10px;
  color: #2e7d32; font-size: 18px;
}
.gift-info ul { padding-left: 20px; margin: 8px 0 0 0; }
.gift-info li { margin: 4px 0; font-weight: bold; color: #1b5e20; }

/* 🔥 Redeem Guide Button */
.redeem-guide {
  margin-top: 20px; text-align: center;
}
.redeem-guide button {
  background: #1976d2; color: #fff;
  border: none; padding: 10px 18px; border-radius: 8px;
  font-size: 15px; cursor: pointer;
}
.redeem-guide button:hover { background: #0d47a1; }

/* 🛒 Recommend Section */
.recommend-section {
  margin: 30px auto; max-width: 800px; text-align: center;
}
.recommend-section h3 { color: #006582; margin-bottom: 15px; }
.recommend-cards {
  display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
}
.pack-card {
  background: #fff; border-radius: 12px; padding: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  width: 100px; display: flex; flex-direction: column; align-items: center;
}
.pack-card img { height: 60px; margin-bottom: 8px; }
.pack-card button {
  background: #006582; color: #fff;
  border: none; padding: 8px 12px;
  border-radius: 8px; font-size: 14px; cursor: pointer;
}
.pack-card.recommended { border: 2px solid #DFB830; }
.pack-card .count { margin-top: 6px; font-weight: bold; color: #006582; }

/* ⚙️ Modal (Popup Redeem Guide) */
.modal {
  display: none; position: fixed; z-index: 9999;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: #fff; margin: 8% auto; padding: 20px;
  border-radius: 12px; max-width: 500px; position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.modal-content h2 { margin-top: 0; color: #006582; }
.modal-content ol { padding-left: 20px; }
.modal-content .guide-img {
  width: 100%; margin-top: 15px;
  border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.close {
  position: absolute; right: 15px; top: 10px;
  font-size: 24px; color: #333; cursor: pointer;
}
.close:hover { color: red; }

/* 📌 Footer */
footer {
  margin-top: 30px; background: #343944; color: #fff;
  padding: 10px; text-align: center; font-size: 14px;
}
footer a { color: #DFB830; text-decoration: none; }

/* 📱 Responsive */
@media (max-width: 600px) {
  .calc-card { width: 90%; padding: 20px 15px; }
  .calc-card input[type=number] { font-size: 14px; padding: 12px 14px; }
}
