.topup-container {
  max-width: 550px;
  /* margin: 0px auto; */
  text-align: center;
}

.topup-header h3 {
  font-family: "Cinzel", serif;
  font-size: 2.2rem;
  color: #1a3a5a;
  margin-bottom: 5px;
}

.exchange-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
}

/* LARGE INPUT STYLING */
.input-group-large label {
  display: block;
  font-family: "Cinzel", serif;
  font-weight: 700;
  color: #888;
  margin-bottom: 15px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-symbol {
  font-size: 2rem;
  font-weight: 900;
  color: #d4af37;
  margin-right: 10px;
}

#amount {
  width: 200px;
  border: none;
  border-bottom: 3px solid #eee;
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  color: #1a3a5a;
  transition: border-color 0.3s;
}

#amount:focus {
  outline: none;
  border-bottom-color: #d4af37;
}

/* Remove arrows from number input */
#amount::-webkit-inner-spin-button,
#amount::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.validation-hint {
  display: block;
  margin-top: 10px;
  color: #bbb;
  font-size: 0.8rem;
}

/* CONVERSION PREVIEW */
.conversion-preview {
  margin: 30px 0;
  padding: 15px;
  background: #fdfaf0;
  border-radius: 10px;
  font-family: "Cinzel", serif;
  font-size: 1.2rem;
  color: #b5942e;
  font-weight: 800;
}

/* 3D SUBMIT BUTTON */
.btn-topup-submit {
  width: 100%;
  padding: 18px;
  background: #1a3a5a;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 0px #0d2135;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}

.btn-topup-submit:hover {
  transform: translateY(-2px);
  background-color: #234c75;
  box-shadow: 0 8px 0px #0d2135;
}

/* Compact 3D Filter Button */
.btn-topup-filter {
    display: inline-block;
    width: 100%;
    padding: 8px 16px; /* Reduced vertical padding */
    background: #1a3a5a;
    color: white !important;
    border: none;
    border-radius: 8px; /* Slightly tighter corners */
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 0.9rem; /* Smaller font */
    cursor: pointer;
    box-shadow: 0 4px 0px #0d2135; /* Shorter shadow (from 6px to 4px) */
    transition: all 0.1s;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-topup-filter:hover {
    transform: translateY(-1px);
    background-color: #234c75;
    box-shadow: 0 5px 0px #0d2135;
}

.btn-topup-filter:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0px #0d2135;
}

/* Compact 3D Clear Button */
.btn-clear-admin {
    display: inline-block;
    width: 100%;
    padding: 8px 16px;
    background: #e0e0e0;
    color: #444 !important;
    border: none;
    border-radius: 8px;
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 0px #999;
    transition: all 0.1s;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-clear-admin:hover {
    transform: translateY(-1px);
    background-color: #eee;
    box-shadow: 0 5px 0px #999;
}

.btn-clear-admin:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0px #999;
}

/* Action Container for better alignment */
.action-container {
    display: flex;
    gap: 10px;
    flex: 1.5;
    align-items: flex-end; /* Aligns buttons with the bottom of inputs */
}

@media screen and (max-width: 768px) {
    .action-container {
        flex-direction: row; /* Keep them side-by-side on mobile if they are slim */
        width: 100%;
    }
}
.payment-methods {
  margin-top: 30px;
  font-size: 2rem;
  color: #ccc;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.topup-disclaimers {
  margin-top: 40px;
  padding: 25px;
  background: rgba(26, 58, 90, 0.03); /* Very light blue-grey tint */
  border: 1px dashed #d4af37; /* Dashed border for a 'tear-off' feel */
  border-radius: 12px;
  text-align: left;
}

.disclaimer-item {
  margin-bottom: 20px;
}

.disclaimer-item h4 {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  color: #1a3a5a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.disclaimer-item h4 i {
  color: #d4af37;
  font-size: 1rem;
}

.disclaimer-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.disclaimer-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
  text-align: center;
}

.disclaimer-footer p {
  font-size: 0.75rem;
  color: #999;
}

.disclaimer-footer a {
  color: #d4af37;
  text-decoration: underline;
  font-weight: bold;
}

.disclaimer-footer a:hover {
  color: #1a3a5a;
}

/* DISABLED STATE FOR TOP UP BUTTON */
.btn-topup-submit:disabled {
  background: #cccccc !important;
  color: #888888 !important;
  cursor: not-allowed !important;

  /* Remove 3D depth when disabled */
  transform: translateY(4px) !important;
  box-shadow: 0 2px 0px #aaaaaa !important;

  /* Remove hover glows */
  filter: grayscale(1);
  opacity: 0.7;
}

/* Ensure the span inside also looks disabled */
.btn-topup-submit:disabled span {
  text-shadow: none;
}

/* --- TABLE WRAPPER --- */
.transaction-history-wrapper {
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.table-title {
  font-family: "Cinzel", serif;
  color: #1a3a5a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border-bottom: 2px solid #d4af37;
  display: inline-block;
  padding-bottom: 5px;
}

/* --- THE TABLE --- */
.custom-transaction-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px; /* Creates the 'floating row' effect */
}

/* Header Styling */
.custom-transaction-table thead th {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  text-align: left;
}

/* Row Styling */
.custom-transaction-table tbody tr {
  background-color: #fcfcfc;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.custom-transaction-table tbody tr:hover {
  transform: scale(1.01);
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

/* Cell Styling */
.custom-transaction-table td {
  padding: 15px 20px;
  color: #444;
  font-size: 0.9rem;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

/* Rounded Corners for Floating Rows */
.custom-transaction-table td:first-child {
  border-left: 3px solid #d4af37; /* Gold accent on the left */
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.custom-transaction-table td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* --- SPECIAL COLUMN STYLES --- */
.amount-gold {
  font-weight: 800;
  color: #b5942e !important;
  font-family: "Cinzel", serif;
}

/* Status Badges */
.badge-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.badge-status.pending {
  background: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffe0b2;
}

/* Responsive Table */
@media (max-width: 768px) {
  .custom-transaction-table thead {
    display: none;
  }
  .custom-transaction-table td {
    display: block;
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  .custom-transaction-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #999;
  }
}

.btn-balance-slim {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px; /* Tight vertical padding */
  background: rgba(26, 58, 90, 0.95);
  border: 1px solid #d4af37; /* Thinner border */
  border-radius: 20px; /* Pill shape */
  text-decoration: none !important;
  gap: 8px;
  transition: all 0.2s ease;
  height: 34px; /* Explicit slim height */
  box-sizing: border-box;
}

/* Icon scaling */
.btn-balance-slim > i {
  color: #d4af37;
  font-size: 0.85rem;
}

.balance-label {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-value {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
}

/* The small plus icon at the end */
.balance-add {
  color: #d4af37;
  font-size: 0.8rem;
  margin-left: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

/* Hover State */
.btn-balance-slim:hover {
  background: #1a3a5a;
  border-color: #f1d371;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.btn-balance-slim:hover .balance-add {
  opacity: 1;
}

/* Mobile: Keep it slim but centered */
@media (max-width: 768px) {
  .btn-balance-slim {
    width: auto;
    max-width: 200px;
    margin: 5px auto;
  }
}

.topup-module-card {
  max-width: 450px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px !important;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-top: 5px solid #d4af37;
  text-align: center;
}

.topup-module-card {
  max-width: 450px;
  width: 95%; /* Responsive safety margin */
  margin: 20px auto;
  background: #ffffff;
  padding: 30px !important;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-top: 5px solid #d4af37;
  /* Remove any default float/alignment from FluxCP */
  float: none !important;
  overflow: hidden; /* Prevents internal elements from spilling out */
}

.topup-module-card {
  max-width: 600px; /* Widened from 450px to 600px */
  width: 90%;
  margin: 60px auto;
  background: #ffffff;
  padding: 50px !important; /* Increased padding for more white space */
  border-radius: 15px;
  box-shadow: 0 10px 0px rgba(212, 175, 55, 0.1),
    /* Subtle gold base shadow */ 0 20px 40px rgba(0, 0, 0, 0.15);
  border-top: 6px solid #d4af37;
  float: none !important;
  box-sizing: border-box; /* Crucial for width calculations */
}

.topup-module-card h3 {
  font-family: "Cinzel", serif;
  font-weight: 900;
  color: #1a3a5a;
  margin-bottom: 10px;
}

/* @media (max-width: 650px) {
    .topup-module-card {
        width: 95%;
        padding: 25px !important;
    }
} */

.topup-history-module-card {
  /* max-width: 600px; Widened from 450px to 600px */
  /* width: 90%;  */
  margin: 60px auto;
  background: #ffffff;
  padding: 50px !important; /* Increased padding for more white space */
  border-radius: 15px;
  box-shadow: 0 10px 0px rgba(212, 175, 55, 0.1),
    /* Subtle gold base shadow */ 0 20px 40px rgba(0, 0, 0, 0.15);
  border-top: 6px solid #d4af37;
  float: none !important;
  box-sizing: border-box; /* Crucial for width calculations */
  text-align: center;
}

.topup-history-module-card h3 {
  font-family: "Cinzel", serif;
  font-weight: 900;
  color: #1a3a5a;
  margin-bottom: 10px;
}

@media (max-width: 650px) {
  .topup-history-module-card {
    width: 95%;
    padding: 25px !important;
  }
}

.review-mode {
  border-top: 6px solid #1a3a5a;
}
.review-icon {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 10px;
}
.cost-subtext {
  font-size: 0.9rem;
  color: #666;
  font-family: sans-serif;
  margin-top: 5px;
}

.btn-cancel {
  /* display: block; */
  margin-top: 15px;
  color: #888;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

.btn-cancel:hover {
  color: #dc3545;
}

.post-payment-notice {
    margin-top: 25px;
    padding: 15px;
    background: rgba(26, 58, 90, 0.05); /* Light navy tint */
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.post-payment-notice i {
    color: #1a3a5a;
    font-size: 1.1rem;
    margin-top: 2px;
}

.post-payment-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    font-family: sans-serif; /* Clean font for readability */
}

.post-payment-notice strong {
    color: #1a3a5a;
}


.review-actions {
  text-align: center !important;
}
