/* ============================================
   MR CALL OF - css/shop.css
   استایل فروشگاه سی‌پی + شاپ اکانت + صفحه پرداخت
============================================ */

/* ---------- هدر موجودی CP ---------- */
.cp-balance-bar {
  margin: 14px 16px;
  background: linear-gradient(150deg, #fff8e6, #fbfbfc 70%);
  border: 1px solid #fff4d9;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.cp-balance-bar-bottom {
  margin-top: 6px;
  margin-bottom: 24px;
}

.cp-balance-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffb800, #ff7a00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cp-balance-label {
  font-size: 11.5px;
  color: #71727c;
  margin-bottom: 4px;
}

.cp-balance-num {
  font-size: 21px;
  font-weight: 900;
  color: #ffb800;
}
.cp-balance-num span { font-size: 12px; color: #71727c; font-weight: 600; }

/* ---------- گرید بسته‌های CP ---------- */
.cp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 16px 24px;
}

.cp-card {
  background: #fbfbfc;
  border: 1px solid #eceef1;
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cp-card .cp-tag {
  position: absolute;
  top: 10px;
  right: -28px;
  background: #ffb800;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 3px 30px;
  transform: rotate(45deg);
}

.cp-card .cp-icon { font-size: 30px; margin-bottom: 8px; }

.cp-card .cp-amount {
  font-size: 16px;
  font-weight: 900;
  color: #15161a;
  margin-bottom: 2px;
}
.cp-card .cp-amount span { font-size: 10px; color: #71727c; }

.cp-card .cp-bonus {
  display: inline-block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #17d97a;
  background: rgba(23, 217, 122, 0.12);
  border: 1px solid rgba(23, 217, 122, 0.35);
  border-radius: 8px;
  padding: 2px 8px;
}

.cp-card .cp-price {
  font-size: 12px;
  color: #ffb800;
  font-weight: 700;
  margin: 10px 0 12px;
  direction: ltr;
}

.btn-cp-buy {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 9px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  background: linear-gradient(145deg, #ffb800, #ff7a00);
  color: #ffffff;
}
.btn-cp-buy:active { transform: scale(0.95); }

/* ---------- صفحه پرداخت ---------- */
.pay-product-card {
  margin: 16px;
  background: #fbfbfc;
  border: 1px solid #eceef1;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pay-product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
  flex-shrink: 0;
}
.pay-product-icon img { width: 100%; height: 100%; object-fit: cover; }

.pay-product-title {
  font-size: 14px;
  font-weight: 800;
  color: #15161a;
  margin-bottom: 4px;
}
.pay-product-price {
  font-size: 13px;
  color: #ffb800;
  font-weight: 700;
}

.pay-step {
  padding: 6px 16px 24px;
}

.pay-step-title {
  font-size: 13px;
  font-weight: 800;
  color: #4b4c55;
  margin-bottom: 10px;
}

.card-number-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px dashed #ffb800;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}

.card-number-box .cn-text {
  flex: 1;
  font-size: 16px;
  font-weight: 900;
  color: #ffb800;
  direction: ltr;
  text-align: center;
  letter-spacing: 1px;
}

.card-owner-note {
  font-size: 11.5px;
  color: #71727c;
  margin-bottom: 18px;
  line-height: 1.9;
}
.card-owner-note b { color: #4b4c55; }

.upload-box {
  border: 1.5px dashed #e2e3e8;
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  position: relative;
  background: #fbfbfc;
}
.upload-box input[type=file] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
}
.upload-box .up-icon { font-size: 26px; margin-bottom: 8px; }
.upload-box .up-text { font-size: 12px; color: #71727c; }
.upload-box.has-file { border-color: #ffb800; }
.upload-box .up-filename {
  font-size: 12px; color: #ffb800; margin-top: 8px; font-weight: 700; word-break: break-all;
}

.btn-pay-next {
  width: 100%;
  margin-top: 16px;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
  background: linear-gradient(145deg, #ffb800, #ff7a00);
  color: #ffffff;
}
.btn-pay-next:disabled { opacity: 0.4; }
.btn-pay-next:active { transform: scale(0.97); }

/* ---------- فرم اطلاعات اکانت (فقط برای خرید CP) ---------- */
.account-info-form { display: none; }
.account-info-form.show { display: block; }

.acc-field {
  background: #ffffff;
  border: 1px solid #e9eaee;
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.acc-field .af-icon { font-size: 15px; color: #6b6d78; }
.acc-field input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #15161a; font-size: 13.5px; font-family: inherit; text-align: right;
}
.acc-field input::placeholder { color: #6b6d78; }

.security-note {
  font-size: 11px;
  color: #6b6d78;
  line-height: 1.9;
  margin: 4px 0 16px;
  background: rgba(255,184,0,.06);
  border: 1px solid rgba(255,184,0,.2);
  border-radius: 10px;
  padding: 10px 12px;
}

/* ---------- صفحه موفقیت ---------- */
.pay-success {
  display: none;
  text-align: center;
  padding: 50px 24px;
}
.pay-success.show { display: block; }
.pay-success .ps-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(72,199,142,.12);
  color: #48c78e;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; margin: 0 auto 18px;
}
.pay-success .ps-title { font-size: 16px; font-weight: 900; color: #15161a; margin-bottom: 8px; }
.pay-success .ps-sub { font-size: 12.5px; color: #71727c; line-height: 2; }

/* ---------- کارت اکانت شاپ ---------- */
.shop-acc-card { background: #ffffff; border: 1px solid #eceef1; border-radius: 16px; overflow: hidden; margin: 0 16px 14px; position: relative; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.shop-acc-thumb { width: 100%; height: 170px; background: linear-gradient(135deg, #f1f1f4, #f7f7f9); position: relative; overflow: hidden; }
.shop-acc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.shop-acc-tag { position: absolute; top: 10px; left: 10px; background: #ff3b30; color: #ffffff; font-size: 10px; font-weight: 900; padding: 4px 12px; border-radius: 8px; box-shadow: 0 3px 8px rgba(255,59,48,.35); }
.shop-acc-body { padding: 14px 15px; }
.shop-acc-title { font-size: 13.5px; font-weight: 800; color: #15161a; margin-bottom: 9px; line-height: 1.6; }
.shop-acc-price { font-size: 15px; font-weight: 900; color: #ff7a00; margin-bottom: 10px; }
.shop-acc-buy-btn { display: block; width: 100%; text-align: center; background: linear-gradient(135deg, #ffb800, #ff7a00); color: #ffffff; font-weight: 900; font-size: 12.5px; padding: 9px 0; border-radius: 10px; border: none; }

/* ---------- صفحه جزئیات اکانت ---------- */
.acc-detail-img {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, #f1f1f4, #f7f7f9);
}
.acc-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.acc-detail-body { padding: 18px; }
.acc-detail-title { font-size: 16px; font-weight: 900; color: #15161a; margin-bottom: 10px; }
.acc-detail-price { font-size: 18px; font-weight: 900; color: #ffb800; margin-bottom: 18px; }
.acc-detail-desc { font-size: 13px; color: #6c6d78; line-height: 2; margin-bottom: 24px; }

/* ---------- انتخاب تفنگ (سرویس گلد کردن) ---------- */
.weapon-pick-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 18px 8px; }
.weapon-pick-item {
  padding: 10px 16px; border-radius: 12px;
  background: #f1f1f4; border: 1.5px solid #e2e3e8;
  font-size: 13px; font-weight: 700; color: #4b4c55;
  cursor: pointer; user-select: none;
}
.weapon-pick-item.selected { border-color: #ffb800; color: #ffb800; background: #fff6df; }
.weapon-pick-item.unavailable { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
