/* ✅ Base Slide Section (Deposit / Withdraw / Bonus) */
.slide-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  background: #ffffff;
  border-radius: 12px;
  padding: 0 12px;
  margin-top: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Active (visible) */
.slide-section.active {
  max-height: 650px;
  opacity: 1;
  transform: translateY(0);
  padding: 18px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Back button */
.slide-section .close-slide {
  background: none;
  border: none;
  color: #0077ff;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
.slide-section .close-slide:hover {
  color: #0056b3;
}

/* Section title */
.slide-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
}

/* Subheadings */
.slide-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

/* Inputs */
.slide-section input,
.slide-section select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  background: #fafafa;
}
.slide-section input:focus {
  border-color: #0077ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.1);
}

/* Buttons */
.slide-section button,
.continue-btn,
.redeem-btn,
#withdrawBtn,
#saveBankBtn {
  background: linear-gradient(90deg, #0077ff, #005bcc);
  color: #fff;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.slide-section button:hover,
.continue-btn:hover,
.redeem-btn:hover,
#withdrawBtn:hover,
#saveBankBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 119, 255, 0.2);
}

/* Disabled button */
#withdrawBtn[disabled],
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Deposit Section ===== */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.payment-item {
  background: #f9fbff;
  border-radius: 10px;
  padding: 15px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6ecf5;
}
.payment-item img {
  height: 36px;
  width: auto;
  margin-bottom: 6px;
}
.payment-item span {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}
.payment-item:hover {
  background: #eef6ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 119, 255, 0.12);
}
.payment-item.active {
  border: 2px solid #007bff;
  background: #eef5ff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Continue Button */
.continue-btn {
  display: none;
  width: 100%;
  margin-top: 15px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.continue-btn.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===== Withdraw Section ===== */
#savedBankBox {
  display: none;
  color: #111;
  background: #f9fbff;
  border: 1px solid #e6ecf5;
  border-radius: 10px;
  padding: 15px;
  margin-top: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}
#savedBankDetails {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Bank Card */
#savedBankDetails .bank-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,248,255,0.95));
  border: 1px solid rgba(11,33,64,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#savedBankDetails .bank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
#savedBankDetails .bank-name {
  font-size: 15px;
  font-weight: 700;
  color: #0b2140;
}
#savedBankDetails .acc-holder {
  font-size: 13px;
  color: #555;
}
#savedBankDetails .bank-account {
  font-weight: 600;
  color: #0b2140;
  letter-spacing: 0.5px;
}
#savedBankDetails .bank-ifsc {
  font-size: 13px;
  color: #666;
}

/* Withdraw Box */
#withdrawBox {
  display: none;
  background: #ffffff;
  border: 1px solid #e6ecf5;
  border-radius: 10px;
  padding: 16px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
#withdrawBox h4 {
  color: #d63031;
  margin-bottom: 10px;
  font-weight: 600;
}
#withdrawMsg {
  font-size: 14px;
  margin-top: 8px;
}
#withdrawMsg.success {
  color: #2ecc71;
  background: #eafaf1;
  border: 1px solid #b6f0c5;
  padding: 8px 10px;
  border-radius: 6px;
}
#withdrawMsg.error {
  color: #d63031;
  background: #fceaea;
  border: 1px solid #f5bcbc;
  padding: 8px 10px;
  border-radius: 6px;
}

/* ===== Bonus Section ===== */
.bonus-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gift-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.gift-code-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
.redeem-message {
  font-size: 14px;
  padding: 8px;
  border-radius: 6px;
  display: none;
}
.redeem-message.success {
  display: block;
  background: #eafaf1;
  color: #2ecc71;
  border: 1px solid #b6f0c5;
}
.redeem-message.error {
  display: block;
  background: #fceaea;
  color: #d63031;
  border: 1px solid #f5bcbc;
}

/* ===== Toast Notification ===== */
.toast {
  visibility: hidden;
  min-width: 250px;
  background: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 9999;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.4s, bottom 0.4s;
}
.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
  .slide-section {
    padding: 0px;
  }
  .slide-section h3 {
    font-size: 18px;
  }
  #savedBankDetails .bank-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
