@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

:root {
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #333333;
  --muted: #7b8794;
  --primary: #198754;
  --danger: #dc3545;
  --border: #d1d7e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  font-family: 'Vazirmatn', sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding: 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.left-box, .right-box {
  background: var(--white);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  flex: 1;
  min-width: 300px;
}

.logo {
  width: 100px;
  margin-bottom: 16px;
}

.amount span {
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

hr {
  margin: 16px 0;
  border-color: var(--border);
}

.card-number {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.card-number input {
  flex: 1;
  min-width: 60px;
  max-width: calc(25% - 9px);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
  font-family: inherit;
  direction: ltr;
}

.input, .input-captcha, .expire input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  direction: ltr;
}

.row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.row > div {
  flex: 1;
  min-width: 140px;
}

.expire {
  display: flex;
  gap: 12px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.captcha-placeholder {
  width: 100px;
  height: 44px;
  background: #f1f3f5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text);
  font-size: 20px;
  user-select: none;
}

.pay, .cancel {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pay {
  background: var(--primary);
  color: white;
  margin-bottom: 12px;
}
.cancel {
  background: var(--danger);
  color: white;
}
.pay:hover { opacity: 0.92; }
.cancel:hover { opacity: 0.92; }

.bank-box {
  background: #f8fafc;
  padding: 14px;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.bank-name {
  font-size: 18px;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 700;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .row {
    flex-direction: column;
    gap: 12px;
  }
}
.credit {
  text-align: center;
  margin-top: 24px;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  font-family: 'Vazirmatn', sans-serif;
}