/* MMO11 — IAP Satın Alım Sihirbazı Modalı (In-Window Panel Kuralı §4.2) */

.iap-wizard-modal {
  position: absolute;
  inset: 0;
  z-index: 20000;
  background: rgba(4, 10, 24, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5%, 30px);
}

.iap-wizard-card {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(145deg, #0f1c34, #080f20);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  max-height: 100%;
  animation: iapModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iapModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.iap-wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.iap-wizard-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iap-wizard-badge {
  background: #f59e0b;
  color: #040b18;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.iap-wizard-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #f8fafc;
  margin: 0;
}

.iap-wizard-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.iap-wizard-close-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.iap-wizard-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.iap-test-mode-notice {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #38bdf8;
}

.iap-item-preview-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iap-item-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iap-item-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #f8fafc;
}

.iap-item-price {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #f59e0b;
}

.iap-grants-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.iap-grant-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.iap-grant-pill strong {
  color: #38bdf8;
}

.iap-order-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.iap-wizard-footer {
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.iap-btn-cancel {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}

.iap-btn-cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.iap-btn-confirm {
  flex: 1.6;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: none;
  color: #040b18;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.iap-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

.iap-btn-confirm:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
