@font-face {
  font-family: 'Pinar';
  font-style: normal;
  font-weight: 500;
  font-display: auto;
  src: url('https://iran.carkoshte.ir/wp-content/uploads/2023/11/Pinar-FD-SemiBold.woff2') format('woff2'),
       url('https://iran.carkoshte.ir/wp-content/uploads/2023/11/Pinar-FD-SemiBold.woff') format('woff');
}

/* کارت بانکی کلاسیک */
.flip-card {
  background-color: transparent;
  width: 260px;
  height: 160px;
  perspective: 1000px;
  color: white;
  margin: auto;
  font-family: 'Pinar', sans-serif !important;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  box-shadow: 0 8px 14px rgba(0,0,0,0.2);
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  background-color: #171717;
  font-family: 'Pinar', sans-serif !important;
}

.flip-card-back {
  transform: rotateY(180deg);
}

.heading_8264 {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #ffa726;
}

.logo {
  position: absolute;
  top: 10px;
  right: 20px;
}

.wallet-balance {
  position: absolute;
  top: 40px;
  left: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #ffa726;
}

.number {
  position: absolute;
  bottom: 50px;
  left: 20px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
}

.valid_thru {
  position: absolute;
  bottom: 30px;
  left: 20px;
  font-size: 10px;
  opacity: 0.6;
}

.date_8264 {
  position: absolute;
  bottom: 30px;
  left: 100px;
  font-size: 12px;
  font-weight: bold;
  color: #ffa726;
}

.name {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 12px;
  font-weight: bold;
}

.strip {
  position: absolute;
  top: 20px;
  width: 100%;
  height: 20px;
  background: repeating-linear-gradient(45deg, #303030, #303030 10px, #202020 10px, #202020 20px);
}

.mstrip {
  position: absolute;
  top: 60px;
  left: 20px;
  width: 100px;
  height: 10px;
  background-color: white;
  border-radius: 3px;
}

.sstrip {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 60px;
  height: 10px;
  background-color: white;
  border-radius: 3px;
}

.code {
  text-align: center;
  font-weight: bold;
  color: black;
  margin-top: 2px;
}

/* فرم شارژ */
.wallet-topup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 100px;
  padding: 0 20px;
}

.wallet-topup-form input[type="number"] {
  padding: 8px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  text-align: center;
}

.wallet-topup-form button {
  background-color: #ffa726;
  color: #171717;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.wallet-topup-form button:hover {
  background-color: #ffb74d;
  color: #000;
}

/* جدول تاریخچه با طراحی تاریک */
.wallet-history-table-wrapper {
  margin: 40px auto;
  max-width: 600px;
  padding: 20px;
  background-color: #111;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

.wallet-history-table-wrapper h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #ffa726;
  text-align: center;
}

.wallet-history-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
}

.wallet-history-table th,
.wallet-history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #fff;
  text-align: right;
  font-size: 14px;
  color: #ffa726;
}

.wallet-history-table th {
  background-color: #222;
  color: #ffa726;
  font-weight: bold;
}

.wallet-history-table tr:last-child td {
  border-bottom: none;
}

.wallet-history-table tr:hover td {
  background-color: #1c1c1c;
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .flip-card {
    width: 90%;
    height: 160px;
  }

  .wallet-history-table-wrapper {
    padding: 15px;
  }

  .wallet-history-table th,
  .wallet-history-table td {
    font-size: 13px;
    padding: 10px;
  }

  .wallet-topup-form input[type="number"],
  .wallet-topup-form button {
    font-size: 13px;
    padding: 8px;
  }

  .wallet-balance {
    font-size: 16px;
    top: 35px;
  }
}
