/* ===========================
   POKEVENTURE SHOP — Styles
   =========================== */

.shop-page { background: var(--dark); }

/* ===== HERO ===== */
.shop-hero {
  position: relative;
  padding: 130px 0 60px;
  overflow: hidden;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(246,224,94,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(229,62,62,0.1) 0%, transparent 60%),
    linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
}

.shop-hero-content {
  position: relative;
  text-align: center;
}

.shop-hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(24px, 4vw, 48px);
  color: var(--white);
  margin: 16px 0 12px;
  line-height: 1.3;
}

.shop-hero-content p {
  color: var(--gray);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

.active-nav {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  box-shadow: 0 0 20px rgba(246,224,94,0.4) !important;
}

/* ===== MAIN ===== */
.shop-main {
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== STEP BOX ===== */
.shop-step-box {
  background: var(--dark3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 36px 40px;
  position: relative;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.shop-step-box.locked {
  opacity: 0.4;
  pointer-events: none;
  filter: blur(1px);
}

.shop-step-num {
  position: absolute;
  top: -18px;
  left: 40px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--white);
  box-shadow: 0 0 16px rgba(229,62,62,0.5);
}

.shop-step-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.shop-step-desc {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ===== CHAR INPUT ===== */
.char-input-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.char-input-wrap input {
  flex: 1;
  min-width: 200px;
  background: var(--dark4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 14px 22px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.char-input-wrap input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(246,224,94,0.15);
}

.char-input-wrap input::placeholder { color: var(--gray); }

.char-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
  transition: all 0.3s ease;
}

.char-status.success { color: #22c55e; }
.char-status.error   { color: #f87171; }
.char-status.loading { color: var(--gray); }

/* ===== TABS ===== */
.shop-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.shop-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.shop-tab:hover {
  border-color: rgba(246,224,94,0.4);
  color: var(--white);
}

.shop-tab.active {
  background: rgba(246,224,94,0.12);
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ===== ITEMS GRID ===== */
.shop-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.shop-item-card {
  background: var(--dark4);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
}

.shop-item-card:hover {
  border-color: rgba(246,224,94,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(246,224,94,0.1);
}

.shop-item-card.selected {
  border-color: var(--yellow);
  background: rgba(246,224,94,0.08);
  box-shadow: 0 0 0 3px rgba(246,224,94,0.2), 0 8px 24px rgba(246,224,94,0.15);
}

.shop-item-card.popular {
  border-color: rgba(229,62,62,0.4);
}

.shop-item-card.popular:hover,
.shop-item-card.popular.selected {
  border-color: var(--red);
  box-shadow: 0 8px 24px rgba(229,62,62,0.2);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.item-icon   { font-size: 36px; margin-bottom: 8px; }
.item-name   { font-size: 13px; color: var(--gray); margin-bottom: 6px; }
.item-amount { font-family: var(--font-pixel); font-size: 16px; color: var(--white); margin-bottom: 8px; }
.item-price  { font-size: 20px; font-weight: 900; color: var(--yellow); margin-bottom: 14px; }

.btn-buy {
  width: 100%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 0;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(229,62,62,0.3);
}

.btn-buy:hover {
  box-shadow: 0 4px 18px rgba(229,62,62,0.5);
  transform: translateY(-1px);
}

/* ===== ORDER SUMMARY ===== */
.order-summary {
  background: var(--dark4);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
}

.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-row span { color: var(--gray); }
.summary-row strong { color: var(--white); }
.summary-price { color: var(--yellow) !important; font-size: 20px; }

#paypal-button-container {
  max-width: 400px;
  margin-bottom: 16px;
}

.paypal-note {
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== MODAL ===== */
.shop-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.shop-modal.open {
  opacity: 1;
  pointer-events: all;
}

.shop-modal-box {
  background: var(--dark3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: modalPop 0.3s ease;
}

.shop-modal-box.error { border-color: rgba(239,68,68,0.3); }

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.modal-icon { font-size: 56px; margin-bottom: 16px; }

.shop-modal-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.shop-modal-box p {
  color: var(--gray-light);
  font-size: 16px;
  margin-bottom: 16px;
}

.modal-note {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .shop-step-box { padding: 28px 20px; }
  .shop-items-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-modal-box { padding: 32px 20px; }
}
