/* ================================================================
   Shared Shop Modal — Premium Bundles + Redeem Codes
   All classes prefixed sp-shop- to avoid collisions
   ================================================================ */

.sp-shop-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(60, 40, 60, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.sp-shop-overlay.visible { display: flex; }

.sp-shop-modal {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(200, 160, 190, 0.15);
  padding: 24px;
  max-width: 520px;
  width: 92%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(100, 60, 100, 0.18);
  text-align: center;
  font-family: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
  color: #3d3d4e;
}

.sp-shop-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #e8769f, #c9a0dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.sp-shop-bundles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.sp-shop-bundle {
  border: 1px solid rgba(200, 160, 190, 0.15);
  border-radius: 14px;
  background: rgba(254, 240, 245, 0.5);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-shop-bundle__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #e8769f;
}

.sp-shop-bundle__desc {
  font-size: 0.72rem;
  color: rgba(100, 100, 120, 0.5);
  line-height: 1.3;
}

.sp-shop-bundle__price {
  font-weight: 700;
  font-size: 0.85rem;
  color: #d4a537;
}

.sp-shop-bundle__link {
  display: inline-block;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 6px 10px;
  margin-top: auto;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8769f, #c9a0dc);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s;
  text-align: center;
  font-family: inherit;
}
.sp-shop-bundle__link:hover {
  box-shadow: 0 4px 16px rgba(232, 118, 159, 0.3);
}

.sp-shop-redeem {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 10px;
}

.sp-shop-redeem__input {
  flex: 1;
  max-width: 220px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 160, 190, 0.2);
  border-radius: 10px;
  background: rgba(254, 240, 245, 0.5);
  color: #3d3d4e;
  font-family: inherit;
  font-size: 0.85rem;
}
.sp-shop-redeem__input::placeholder { color: rgba(100, 100, 120, 0.5); }

.sp-shop-redeem__btn {
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8769f, #c9a0dc);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s;
}
.sp-shop-redeem__btn:hover {
  box-shadow: 0 4px 16px rgba(232, 118, 159, 0.3);
}

.sp-shop-status {
  font-size: 0.8rem;
  min-height: 1.2em;
  margin-bottom: 6px;
}
.sp-shop-status.success { color: #27ae60; }
.sp-shop-status.error { color: #e74c3c; }

.sp-shop-close {
  display: block;
  margin: 14px auto 0;
  padding: 8px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8769f, #c9a0dc);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.2s;
}
.sp-shop-close:hover {
  box-shadow: 0 4px 16px rgba(232, 118, 159, 0.3);
}

/* Responsive: 1-column below 480px */
@media (max-width: 480px) {
  .sp-shop-bundles { grid-template-columns: 1fr; }
  .sp-shop-modal { padding: 16px; }
}

/* ── Admin testing button (dev only) ── */
.sp-shop-admin-unlock {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.02em;
}
.sp-shop-admin-unlock:hover { background: #6d28d9; }
