/* Premium Gaming Storefront - React design colors and effects */
/* Scoped under .storefront */

/* Single page, no scroll - content fits in iframe (e.g. 900px) */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#ppcoins {
  box-sizing: border-box;
}

.storefront {
  --store-bg: #080808;
  --store-card: #111111;
  --store-card-gradient: linear-gradient(165deg, #111111 0%, #0d0d0d 100%);
  --store-pink: #ff2d78;
  --store-pink-glow: rgba(255, 45, 120, 0.5);
  --store-pink-dim: rgba(255, 45, 120, 0.25);
  --store-pink-light: #ff6eb4;
  --store-yellow: #ffd700;
  --store-yellow-glow: rgba(255, 215, 0, 0.5);
  --store-yellow-light: #ffed4a;
  --store-gold: #ffd700;
  --store-text: #f5f5f5;
  --store-muted: #888888;
  --store-border: rgba(255, 45, 120, 0.4);
  --store-border-standard: #2a2a2a;
  --store-border-yellow: rgba(255, 215, 0, 0.5);
  --store-dark: #080808;

  background: var(--store-bg);
  color: var(--store-text);
  padding-bottom: 3rem;
  position: relative;
}

/* Desktop: comfortable density, allow scroll if needed */
@media (min-width: 769px) {
  .storefront {
    padding-bottom: 1.5rem;
  }
}

/* Grid overlay - React: 60px, #ff2d78 at 3% */
.storefront::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image:
    linear-gradient(#ff2d78 1px, transparent 1px),
    linear-gradient(90deg, #ff2d78 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

/* Animated background orbs - React design */
.storefront::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 300px 300px at 25% 10%, rgba(255, 45, 120, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 300px 300px at 75% 90%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 250px 250px at 50% 50%, rgba(255, 110, 180, 0.05) 0%, transparent 55%);
  filter: blur(60px);
  animation: storefront-orbs-pulse 6s ease-in-out infinite;
  z-index: 0;
}

@keyframes storefront-orbs-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* Header - React: title #f5f5f5, HUBS #ffd700, subtitle #888888 */
.storefront .storefront-header {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  position: relative;
  z-index: 1;
}

.storefront .storefront-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--store-text);
  margin: 0;
  line-height: 1.2;
  filter: drop-shadow(0 0 30px rgba(255, 45, 120, 0.3));
}

.storefront .storefront-title-highlight {
  color: var(--store-yellow);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.storefront .storefront-subtitle {
  font-size: 0.95rem;
  color: var(--store-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Desktop: balanced header size */
@media (min-width: 769px) {
  .storefront .storefront-header {
    padding: 1rem 1rem 0.75rem;
  }

  .storefront .storefront-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    letter-spacing: 0.12em;
  }

  .storefront .storefront-subtitle {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    letter-spacing: 0.09em;
  }
}

/* Packages grid container */
.storefront .storefront-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.storefront .storefront-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 769px) {
  .storefront .storefront-grid {
    padding: 0 1rem;
  }

  .storefront .storefront-row {
    gap: 1rem;
    margin-bottom: 1rem;
  }
}

/* Section divider - standard: gradient lines, no dots */
.storefront .storefront-divider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .storefront .storefront-divider-row {
    margin-bottom: 0.6rem;
    gap: 0.6rem;
  }

  .storefront .storefront-divider-row--standard .storefront-divider-text,
  .storefront .storefront-divider-row--premium .storefront-divider-text {
    font-size: 0.72rem;
  }
}

.storefront .storefront-divider-line {
  flex: 1;
  height: 1px;
  min-width: 0;
}

.storefront .storefront-divider-row--standard .storefront-divider-line {
  background: linear-gradient(to right, var(--store-border-standard), transparent);
}

.storefront .storefront-divider-row--standard .storefront-divider-line:last-child {
  background: linear-gradient(to left, var(--store-border-standard), transparent);
}

.storefront .storefront-divider-row--standard .storefront-divider-text {
  color: var(--store-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Section divider - premium: pink/gold lines + pulsing dots */
.storefront .storefront-divider-row--premium .storefront-divider-line {
  background: linear-gradient(to right, transparent, rgba(255, 45, 120, 0.3), transparent);
}

.storefront .storefront-divider-row--premium .storefront-divider-line:last-child {
  background: linear-gradient(to left, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.storefront .storefront-divider-row--premium .storefront-divider-text {
  color: var(--store-pink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.storefront .storefront-divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: storefront-divider-dot-pulse 2s ease-in-out infinite;
}

.storefront .storefront-divider-dot--pink {
  background: var(--store-pink);
}

.storefront .storefront-divider-dot--gold {
  background: var(--store-yellow);
}

@keyframes storefront-divider-dot-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Card - base and standard tier (React: border #2a2a2a, bg #111111) */
.storefront .storefront-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--store-card);
  border: 2px solid var(--store-border-standard);
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 1;
}

.storefront .storefront-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(255, 45, 120, 0.3);
}

.storefront .storefront-card:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.storefront .storefront-card-selected {
  border-color: var(--store-pink);
  box-shadow: 0 0 28px var(--store-pink-glow);
}

/* Standard card title */
.storefront .storefront-card .storefront-card-title {
  color: var(--store-pink-light);
}

.storefront .storefront-card-img-wrap {
  padding-top: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  position: relative;
}

.storefront .storefront-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

.storefront .storefront-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  text-align: center;
}

.storefront .storefront-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.storefront .storefront-card-divider {
  height: 1px;
  width: 100%;
  margin: 0.5rem 0 0.75rem;
}

@media (min-width: 769px) {
  .storefront .storefront-card {
    border-radius: 14px;
  }

  .storefront .storefront-card-img-wrap {
    padding: 0.4rem 0.5rem 0;
  }

  .storefront .storefront-card img {
    border-radius: 10px;
    max-height: 110px;
    object-fit: contain;
    object-position: center;
  }

  .storefront .storefront-card-body {
    padding: 0.75rem 0.75rem 1rem;
  }

  .storefront .storefront-card-title {
    font-size: 0.78rem;
    margin: 0 0 0.35rem;
    letter-spacing: 0.09em;
  }

  .storefront .storefront-card-divider {
    margin: 0.35rem 0 0.5rem;
  }

  .storefront .storefront-card-contains {
    font-size: 0.68rem;
    margin-bottom: 0.25rem;
  }

  .storefront .storefront-card-hubs {
    font-size: 1.4rem;
    margin: 0 0 0.6rem;
  }

  .storefront .storefront-btn {
    padding: 0.6rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .storefront .storefront-badge {
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    padding: 0.28rem 0.55rem;
  }
}

.storefront .storefront-card .storefront-card-divider {
  background: linear-gradient(to right, transparent, var(--store-border-standard), transparent);
}

.storefront .storefront-card-contains {
  font-size: 0.7rem;
  color: var(--store-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.storefront .storefront-card-hubs {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--store-yellow);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}

.storefront .storefront-card-hubs i {
  margin-right: 0.25rem;
  opacity: 0.9;
}

/* Premium cards - React: border pink/50%, glow pulse */
.storefront .storefront-card-premium {
  border-color: rgba(255, 45, 120, 0.5);
  background: var(--store-card);
  box-shadow: 0 0 30px rgba(255, 45, 120, 0.15);
  animation: storefront-premium-glow 3s ease-in-out infinite;
}

.storefront .storefront-card-premium .storefront-card-title {
  color: var(--store-pink);
  filter: drop-shadow(0 0 10px rgba(255, 45, 120, 0.5));
}

.storefront .storefront-card-premium .storefront-card-divider {
  background: linear-gradient(to right, transparent, rgba(255, 45, 120, 0.5), transparent);
}

.storefront .storefront-card-premium:hover {
  box-shadow: 0 0 60px rgba(255, 45, 120, 0.3);
}

@keyframes storefront-premium-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 45, 120, 0.1), 0 0 40px rgba(255, 45, 120, 0.05); }
  50% { box-shadow: 0 0 40px rgba(255, 45, 120, 0.2), 0 0 80px rgba(255, 45, 120, 0.1); }
}

/* Best value / legendary card - overrides premium */
.storefront .storefront-card-best {
  border-width: 2px;
  border-color: rgba(255, 215, 0, 0.5);
  background: var(--store-card);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.2);
  animation: storefront-legendary-glow 3s ease-in-out infinite;
}

.storefront .storefront-card-best .storefront-card-title {
  color: var(--store-yellow);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.storefront .storefront-card-best .storefront-card-divider {
  background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.5), transparent);
}

.storefront .storefront-card-best:hover {
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.4);
}

@keyframes storefront-legendary-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.15), 0 0 60px rgba(255, 215, 0, 0.05); }
  50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.25), 0 0 100px rgba(255, 215, 0, 0.1); }
}

/* CTA Button - standard: solid pink, hover lighten + glow */
.storefront .storefront-btn {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
  color: #fff;
  background: var(--store-pink);
  box-shadow: 0 0 20px var(--store-pink-dim);
}

.storefront .storefront-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: storefront-btn-shine 3s ease-in-out infinite;
  pointer-events: none;
}

.storefront .storefront-card:hover .storefront-btn {
  background: #ff4d91;
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.4);
}

.storefront .storefront-btn:hover {
  transform: scale(1.05);
}

.storefront .storefront-btn:active {
  transform: scale(0.95);
}

.storefront .storefront-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--store-pink-dim), 0 0 24px var(--store-pink-glow);
}

@keyframes storefront-btn-shine {
  0% { transform: translateX(-100%); }
  15% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Premium button gradient */
.storefront .storefront-card-premium .storefront-btn:not(.storefront-btn-best) {
  background: linear-gradient(to right, var(--store-pink), var(--store-pink-light));
}

.storefront .storefront-card-premium:hover .storefront-btn:not(.storefront-btn-best) {
  box-shadow: 0 0 30px rgba(255, 45, 120, 0.6);
}

/* Legendary / best button */
.storefront .storefront-btn-best {
  background: linear-gradient(to right, var(--store-yellow), var(--store-yellow-light));
  color: var(--store-dark);
  box-shadow: 0 0 20px rgba(255, 212, 0, 0.4);
}

.storefront .storefront-card-best:hover .storefront-btn-best {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  filter: brightness(1.1);
}

/* Badges - React: rounded-full, pulse */
.storefront .storefront-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.storefront .storefront-badge-extra {
  background: var(--store-pink);
  color: #fff;
  animation: storefront-badge-pulse-pink 2s ease-in-out infinite;
}

@keyframes storefront-badge-pulse-pink {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 45, 120, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 45, 120, 0.8); }
}

.storefront .storefront-badge-best {
  background: linear-gradient(to right, var(--store-yellow), var(--store-yellow-light));
  color: var(--store-dark);
  animation: storefront-badge-pulse-gold 2s ease-in-out infinite;
}

@keyframes storefront-badge-pulse-gold {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8); }
}

/* Instant credit note - React: #888888 at 60% */
.storefront .storefront-credit-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(136, 136, 136, 0.6);
  padding: 1.5rem 1rem 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

@media (min-width: 769px) {
  .storefront .storefront-credit-note {
    font-size: 0.75rem;
    padding: 0.5rem 1rem 0;
  }
}

/* Modal overrides for storefront */
.storefront .modal-select {
  z-index: 100;
  background: var(--store-card) !important;
  border: 1px solid var(--store-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 40px var(--store-pink-dim) !important;
}

.storefront .modal-option {
  background: var(--store-card) !important;
  border: 1px solid var(--store-border) !important;
  border-radius: 12px !important;
}

.storefront .modal-option:hover {
  border-color: var(--store-pink) !important;
  box-shadow: 0 0 20px var(--store-pink-dim) !important;
}

.storefront .modal-select-button {
  background: linear-gradient(to right, var(--store-pink), var(--store-pink-light)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

/* Checkout form section */
.storefront .storefront-checkout-box {
  background: var(--store-card) !important;
  border: 2px solid var(--store-pink) !important;
  border-radius: 12px !important;
  box-shadow: 0 0 24px var(--store-pink-dim) !important;
  padding: 1.5rem !important;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.storefront .storefront-checkout-box .form-control {
  background: rgba(17, 17, 17, 0.8) !important;
  border: 1px solid var(--store-border-standard) !important;
  color: var(--store-text) !important;
  border-radius: 8px !important;
}

.storefront .storefront-checkout-box .form-control:focus {
  border-color: var(--store-pink) !important;
  box-shadow: 0 0 12px var(--store-pink-dim) !important;
}

.storefront .storefront-checkout-box .btn-block {
  background: linear-gradient(to right, var(--store-pink), var(--store-pink-light)) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  border-radius: 10px !important;
  box-shadow: 0 0 20px var(--store-pink-dim) !important;
}

.storefront .storefront-checkout-box .btn-block:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--store-pink-dim), 0 0 24px var(--store-pink-glow) !important;
}

/* Checkout section (below grid) */
.storefront .storefront-checkout-section {
  background: transparent;
  position: relative;
  z-index: 1;
}

.storefront .storefront-checkout-section h3 {
  color: var(--store-text);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Logout button - React: border pink/30%, bg pink/10%, hover pink/20% + shadow */
.storefront .storefront-logout {
  position: absolute;
  right: 15px;
  top: 15px;
  background: rgba(255, 45, 120, 0.1) !important;
  border: 1px solid rgba(255, 45, 120, 0.3) !important;
  color: var(--store-pink) !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  z-index: 10;
}

.storefront .storefront-logout:hover {
  background: rgba(255, 45, 120, 0.2) !important;
  border-color: rgba(255, 45, 120, 0.6) !important;
  box-shadow: 0 0 20px rgba(255, 45, 120, 0.2) !important;
}

/* Alerts and modal above background layers */
.storefront .alert {
  border-radius: 10px !important;
  position: relative;
  z-index: 5;
}


/* Mobile: allow scroll, single column, comfortable touch targets */
@media (max-width: 768px) {
  .storefront {
    max-height: none;
    overflow: visible;
    padding-bottom: 3rem;
  }

  .storefront .storefront-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .storefront .storefront-title {
    font-size: 1.35rem;
    letter-spacing: 0.1em;
  }

  .storefront .storefront-card-hubs {
    font-size: 1.6rem;
  }

  .storefront .storefront-grid {
    padding: 0 0.75rem;
  }
}
