body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #f9f9fb;
  color: #1d1d1f;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
}
.logo {
  font-size: 17px;
  font-weight:630;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.buy {
  background: #0071e3;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius:20px;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Main Form */
.main {
  text-align: center;
  padding: 30px 20px;
}
.form-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 400px;
  margin: 20px auto;
}
.form-card input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}
.form-card button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #0071e3;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}
.form-card small {
  display: block;
  margin-bottom: 15px;
  font-size: 13px;
}
.form-card small a {
  color: #0071e3;
  text-decoration: underline;
}
.card_image {
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card_image img {
  width: 100%;
  height: auto;
  max-width: 400px; /* optional: limit max size */
  border-radius: 12px; /* keep styling consistent */
}

/* Old Gift Card */
.old-card {
  text-align: center;
  margin: 50px 0;
}
.old-card a{
text-decoration: none;
color: #0071e3;
font-size: 20px;
}
.gift-images {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 20px;
}
.gift-images img {
  width: 140px;
  border-radius: 12px;
}

/* Usage Icons */
.usage {
  text-align: center;
  padding: 40px 20px;
}
 h2{
font-size: 20px;
}
.icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  text-align: center;
}

.icons div img {
  width: 50px; /* adjust size as needed */
  height: auto;
  margin-bottom: 5px;
}
.icons div {
  text-align: center;
}
.icons img {
  width: 50px;
  height: 50px;
}
.icons p {
  margin-top: 8px;
  font-size: 14px;
}

/* Footer */
.footer {
  background: #f5f5f7;
  padding: 20px;
  font-size: 14px;
  color: #555;
}
.footer-section {
  margin-bottom: 10px;
}
.footer-toggle {
  background: none;
  border: none;
  font-size: 16px;
  text-align: left;
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
}
.footer-list {
  list-style: none;
  padding: 0;
  display: none;
}
.footer-list.active {
  display: block;
}
.footer-list li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

/* Smooth menu slide */
.nav-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-links.active {
  max-height: 300px; /* enough to show all links */
}

/* Smooth footer accordion */
.footer-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.footer-list.active {
  max-height: 500px; /* enough to expand */
}

/* Alerts */
.alert {
  padding: 0.8rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.alert.error {
  background: #ffe4e4;
  color: #b00020;
  border: 1px solid #ffb3b3;
}

.alert.success {
  background: #e6f8ec;
  color: #1a7f37;
  border: 1px solid #9be5b2;
}
/* Balance Section */
.balance-section {
  background: #fff;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
}

.balance-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1d1d1f;
}

.balance-amount {
  font-size: 34px;
  font-weight: 700;
  margin: 15px 0;
  color: #1d1d1f;
}

.card-ending {
  font-size: 15px;
  color: #6e6e73;
  margin-bottom: 12px;
}

.checked-time {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 20px;
}

.check-another {
  display: inline-block;
  font-size: 15px;
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
}

.check-another:hover {
  text-decoration: underline;
}

/* Preloader full-screen background */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: whitesmoke;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Logo in the middle */
#preloader-logo {
  width: 200px;   /* made it bigger (adjust as needed) */
  max-width: 50%; /* responsive */
  animation: pulse 2s infinite;
}

/* Fade-out effect */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Pulse animation for logo */
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    border-top: 1px solid #ddd;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
