/* ============================================================================
   HIYRO MANGA — points.css
   تنسيق متجر النقاط، التحويل، التبرع
   ============================================================================ */

.points-balance-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.points-balance-banner__label {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.points-balance-banner__value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.buy-points-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
}

.buy-points-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.buy-points-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.buy-points-row .form-field {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.buy-points-price-display {
  text-align: center;
  padding: 10px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

.buy-points-price-display strong {
  display: block;
  font-size: 20px;
  color: var(--accent-secondary);
}

.buy-points-price-display span {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- شبكة منتجات المتجر --- */

.store-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.store-product-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.store-product-card__image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
}

.store-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-product-card__type {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(15,10,30,0.75);
  color: var(--accent-secondary);
}

.store-product-card__body {
  padding: 14px;
}

.store-product-card__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.store-product-card__desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.store-product-card__duration {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.store-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.store-product-card__price {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--accent-secondary);
}

.store-product-card__footer .btn {
  padding: 8px 14px;
  font-size: 12.5px;
}

/* --- صفحة تحويل النقاط --- */

.transfer-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-width: 480px;
}

.transfer-user-result {
  margin-top: 8px;
  font-size: 13px;
}

.transfer-user-result.found { color: var(--success); }
.transfer-user-result.not-found { color: var(--danger); }

/* --- صفحة التبرع (ملصقات) --- */

.stickers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0;
}

.sticker-option {
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sticker-option.selected {
  border-color: var(--accent-secondary);
}

.sticker-option img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.sticker-option .sticker-name {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
}

.sticker-option .sticker-price {
  font-size: 11.5px;
  color: var(--accent-secondary);
  font-weight: 700;
}

@media (max-width: 900px) {
  .store-products-grid { grid-template-columns: repeat(3, 1fr); }
  .stickers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .store-products-grid { grid-template-columns: repeat(2, 1fr); }
  .stickers-grid { grid-template-columns: repeat(2, 1fr); }
  .buy-points-row { flex-direction: column; align-items: stretch; }
}
