/* =============================================
   RENDER STORE – Premium PlayStation Stylesheet
   ============================================= */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #020208;
  --bg2:        #05050f;
  --secondary:  #060c2a;
  --accent:     #1E90FF;
  --accent2:    #0a6edb;
  --accent-glow:rgba(30,144,255,0.4);
  --gold:       #c8d8f0;
  --green:      #25d366;
  --text:       #e8eef8;
  --text-muted: #6a82aa;
  --border:     rgba(30,144,255,0.2);
  --card-bg:    rgba(6,12,42,0.55);
  --radius:     14px;
  --radius-lg:  22px;
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
  --font:       'Outfit', sans-serif;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.7);
  --glow-card:   0 0 30px rgba(30,144,255,0.22), 0 4px 32px rgba(0,0,0,0.7);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ── UTILITIES ── */
.gradient-text {
  background: linear-gradient(135deg, #1E90FF, #63b8ff, #a0d0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(2,5,20,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.6); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-text {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(30,144,255,0.25);
  font-family: var(--font);
}
.logo-accent {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Logo image */
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(30, 144, 255, 0.4);
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.35);
  transition: all var(--transition);
}
.logo-img:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.7);
  transform: scale(1.05) rotate(5deg);
}
.logo-img-footer {
  width: 44px;
  height: 44px;
  opacity: 0.85;
}
.footer-logo-text {
  font-size: 1.15rem;
}

/* ===== SEARCH BAR ===== */
.nav-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin: 0 1.2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(9, 30, 87, 0.38);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  transition: all var(--transition);
  position: relative;
}
.search-bar:focus-within {
  background: rgba(6, 12, 42, 0.8);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.28);
}

.search-icon-left {
  color: var(--text-muted);
  margin-right: 0.5rem;
  flex-shrink: 0;
  transition: color var(--transition);
}
.search-bar:focus-within .search-icon-left {
  color: var(--accent);
}

.search-bar input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
}
.search-bar input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-kkey {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  pointer-events: none;
}

/* SEARCH DROPDOWN */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: rgba(6, 13, 36, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 1010;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(30, 144, 255, 0.1);
  display: none; /* Controlled by JS */
  padding: 0.5rem;
}
.search-dropdown.open {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}
.search-item:hover {
  background: rgba(30, 144, 255, 0.12);
}

.search-item-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.search-item-info {
  flex: 1;
  min-width: 0;
}
.search-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}
.search-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.search-no-results {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Nav links */
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-link {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(89,162,235,0.1);
}

/* Admin btn */
.btn-admin {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--secondary), #1a3a80);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-admin:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 99px; transition: all var(--transition); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.5rem 1.5rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(6,12,42,0.7) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(89,162,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.orb1 { width: 400px; height: 400px; background: rgba(30,144,255,0.07); top: -100px; left: -100px; }
.orb2 { width: 300px; height: 300px; background: rgba(30,100,255,0.06); bottom: -50px; right: -50px; animation-delay: -3s; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

.hero-content { position: relative; z-index: 1; max-width: 780px; }

.ps-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  background: rgba(89,162,235,0.12);
  border: 1px solid rgba(89,162,235,0.3);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 0.9rem;
}

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 0.95rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 22px; background: var(--border); }

/* =============================================
   STORE SECTION
   ============================================= */
.store-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: rgba(9,30,87,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 0.65rem 1.5rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  line-height: 1.2;
}
.tab-btn:hover { background: rgba(89,162,235,0.08); }
.tab-btn.active {
  background: linear-gradient(135deg, var(--secondary), #1a3a80);
  border: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(89,162,235,0.15);
}

/* "PlayStation" — small muted label */
.tab-ps {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
/* Category name — bold prominent */
.tab-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
}

.tab-btn:hover .tab-ps,
.tab-btn:hover .tab-label { color: var(--accent); }
.tab-btn.active .tab-ps { color: rgba(89,162,235,0.7); }
.tab-btn.active .tab-label { color: var(--accent); }

/* Section Header */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-sub { color: var(--text-muted); font-size: 0.95rem; }

/* Product Grid */
.product-grid { display: none; }
.product-grid.active-grid { display: block; }

.products-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* =============================================
   PRODUCT CARD
   ============================================= */
.product-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(89,162,235,0.06) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(89,162,235,0.5);
  box-shadow: var(--glow-card), 0 0 0 1px rgba(89,162,235,0.2);
}
.product-card:hover::before { opacity: 1; }

/* Card Badge */
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), #3d7fd4);
  color: #fff;
  box-shadow: 0 2px 12px rgba(89,162,235,0.4);
}
.card-badge.new-badge { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.card-badge.best-val { background: linear-gradient(135deg, #f4c842, #e67e22); color: #111; }

/* Card Image */
.card-image { width: 100%; height: 180px; overflow: hidden; position: relative; flex-shrink: 0; }

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Game colors */
.game1 { background: linear-gradient(135deg, #0a1628 0%, #1a0a2e 50%, #0d1f3c 100%); }
.game2 { background: linear-gradient(135deg, #1a0808 0%, #3d0c0c 50%, #0a0a1a 100%); }
.game3 { background: linear-gradient(135deg, #0a1a0a 0%, #1a3020 50%, #0a0a12 100%); }
.game4 { background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #080818 100%); }
.gift1 { background: linear-gradient(135deg, #091E57 0%, #1a3a80 100%); }
.gift2 { background: linear-gradient(135deg, #0d2b4d 0%, #1a4a80 100%); }
.gift3 { background: linear-gradient(135deg, #091E57 0%, #0d3060 100%); }
.gift4 { background: linear-gradient(135deg, #0a1028 0%, #1a2a60 100%); }
.plus1 { background: linear-gradient(135deg, #1a1040 0%, #2d1a60 100%); }
.plus2 { background: linear-gradient(135deg, #091E57 0%, #1a3a8a 100%); }
.plus3 { background: linear-gradient(135deg, #0a0a28 0%, #1a1a50 100%); }

/* Decorative mesh overlay */
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(89,162,235,0.03) 10px, rgba(89,162,235,0.03) 11px
  );
}

.game-icon { font-size: 3.2rem; z-index: 1; filter: drop-shadow(0 0 18px rgba(89,162,235,0.5)); }
.game-title-overlay {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 1;
}

.gift-value {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  z-index: 1;
  text-shadow: 0 0 30px rgba(89,162,235,0.8);
  letter-spacing: -0.02em;
}

.plus-tier {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  z-index: 1;
  text-shadow: 0 0 20px var(--accent-glow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Card Body */
.card-body { padding: 1.2rem 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }

.product-name { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.product-platform { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

/* Account Type Badges */
.account-types { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.badge {
  padding: 0.28rem 0.7rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: all var(--transition);
  cursor: default;
}

.badge-primary5 {
  background: linear-gradient(135deg, rgba(30,144,255,0.18), rgba(30,144,255,0.08));
  border-color: rgba(30,144,255,0.45);
  color: #5ab0ff;
}
.badge-primary5:hover { background: rgba(30,144,255,0.28); box-shadow: 0 0 10px rgba(30,144,255,0.35); }

.badge-primary4 {
  background: linear-gradient(135deg, rgba(100,180,255,0.18), rgba(100,180,255,0.08));
  border-color: rgba(100,180,255,0.4);
  color: #90c8ff;
}
.badge-primary4:hover { background: rgba(100,180,255,0.28); box-shadow: 0 0 10px rgba(100,180,255,0.3); }

.badge-secondary {
  background: linear-gradient(135deg, rgba(180,210,255,0.18), rgba(180,210,255,0.08));
  border-color: rgba(180,210,255,0.4);
  color: #c8d8f0;
}
.badge-secondary:hover { background: rgba(180,210,255,0.28); box-shadow: 0 0 10px rgba(180,210,255,0.3); }

/* PS Plus Features */
.plus-features { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.plus-features li { font-size: 0.8rem; color: var(--text-muted); }

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.price { font-size: 0.82rem; color: var(--text-muted); }
.price strong { font-size: 1.1rem; color: var(--text); font-weight: 700; }

/* BUY NOW BUTTON */
.btn-buy {
  padding: 0.55rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(89,162,235,0.35);
  position: relative;
  overflow: hidden;
}
.btn-buy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(89,162,235,0.5);
}
.btn-buy:hover::after { opacity: 1; }
.btn-buy:active { transform: translateY(0); }

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2,5,20,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: linear-gradient(145deg, #0b1d4a, #060d22);
  border: 1px solid rgba(89,162,235,0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7), 0 0 40px rgba(89,162,235,0.12);
  animation: modalIn 0.3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes modalIn { from { transform: scale(0.85) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.14); color: var(--text); }

.modal-icon { font-size: 2.8rem; margin-bottom: 1rem; }
.modal-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; }
.modal-product-name {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.8rem;
  background: rgba(89,162,235,0.1);
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  border: 1px solid rgba(89,162,235,0.2);
}

.modal-actions { display: flex; flex-direction: column; gap: 0.85rem; }

.modal-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #1faa58, #128c3e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.25);
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}

.cart-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(89,162,235,0.25);
}
.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(89,162,235,0.45);
}

/* ===== PRODUCT DETAILS MODAL DESIGN ===== */
.product-modal-box {
  max-width: 480px;
  width: 100%;
}
.modal-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.modal-detail-icon {
  width: 60px;
  height: 60px;
  background: rgba(30, 144, 255, 0.12);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.15);
}
.modal-detail-info {
  min-width: 0;
}
.modal-platform {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.modal-selection-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.modal-activation-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.activation-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.activation-item:hover {
  border-color: rgba(30, 144, 255, 0.45);
  background: rgba(30, 144, 255, 0.04);
}
.activation-item.active {
  border-color: var(--accent);
  background: rgba(30, 144, 255, 0.12);
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.15);
}
.act-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.act-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
}
.act-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
}
.act-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.modal-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.summary-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.summary-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== ADMIN MODAL & DASHBOARD ===== */
.admin-modal-box {
  max-width: 440px;
  width: 100%;
}
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.admin-tab-btn {
  flex: 1;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  transition: all var(--transition);
}
.admin-tab-btn:hover {
  border-color: rgba(30, 144, 255, 0.5);
  color: var(--text);
}
.admin-tab-btn.active {
  background: var(--secondary);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.15);
}
.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}
.admin-table-container {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th, .admin-table td {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  background: rgba(6, 12, 42, 0.85);
  color: var(--text);
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 2;
}
.admin-table td {
  color: var(--text-muted);
}
.admin-btn-delete {
  padding: 0.25rem 0.55rem;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 60, 60, 0.35);
  color: #ff6b6b;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition);
}
.admin-btn-delete:hover {
  background: #ff3c3c;
  color: #fff;
  border-color: #ff3c3c;
}
.admin-btn-edit {
  padding: 0.25rem 0.55rem;
  background: rgba(30, 144, 255, 0.12);
  border: 1px solid rgba(30, 144, 255, 0.35);
  color: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition);
  margin-right: 0.3rem;
}
.admin-btn-edit:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
}
.form-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}
.form-group input, .form-group select {
  padding: 0.55rem 0.8rem;
  background: rgba(9, 30, 87, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition);
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
  background: rgba(9, 30, 87, 0.45);
}
.form-row {
  display: flex;
  gap: 0.6rem;
}
.form-row .form-group {
  flex: 1;
}

/* =============================================
   TOAST
   ============================================= */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 99999;
  background: linear-gradient(135deg, #0b1d4a, #060d22);
  border: 1px solid rgba(89,162,235,0.35);
  border-radius: 12px;
  padding: 0.8rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1), opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-icon { font-size: 1.1rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  background: var(--bg2);
}
.footer-content { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); text-align: center; }

/* Card Highlight animation for search click */
@keyframes cardBlink {
  0%, 100% { border-color: var(--border); box-shadow: var(--shadow-card); }
  50% { border-color: var(--accent); box-shadow: 0 0 30px rgba(30, 144, 255, 0.6); }
}
.product-card.highlight {
  animation: cardBlink 0.6s ease-in-out 3;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav-search-wrapper {
    max-width: 200px;
    margin: 0 0.5rem;
  }
  .search-kkey { display: none; }
  .logo-text { font-size: 1.1rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(6,13,36,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { min-height: 70vh; padding: 7rem 1rem 3rem; }
  .hero-stats { gap: 1.2rem; }
  .category-tabs { flex-direction: column; }
  .tab-btn { flex: none; width: 100%; }
  .products-wrapper { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .modal-box { padding: 2rem 1.4rem; }
}

@media (max-width: 580px) {
  .logo-text { display: none; } /* Hide text on very small screens, keep only circular logo */
  .nav-search-wrapper { max-width: 100%; flex: 1; margin: 0 0.5rem; }
}

/* Two-column product grid side-by-side for mobile screens */
@media (max-width: 600px) {
  .products-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .product-card {
    border-radius: 12px;
  }
  .card-badge {
    top: 6px; left: 6px;
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
  }
  .card-image {
    height: 110px;
  }
  .game-icon {
    font-size: 2.2rem;
  }
  .gift-value {
    font-size: 1.8rem;
  }
  .plus-tier {
    font-size: 1.1rem;
  }
  .card-body {
    padding: 0.65rem;
    gap: 0.4rem;
  }
  .product-name {
    font-size: 0.78rem;
  }
  .product-platform {
    font-size: 0.68rem;
  }
  .account-types {
    gap: 0.25rem;
  }
  .badge {
    padding: 0.18rem 0.4rem;
    font-size: 0.58rem;
  }
  .plus-features {
    display: none; /* Hide plus bullet points in small grids to keep it clean */
  }
  .card-footer {
    padding-top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .price {
    font-size: 0.72rem;
    text-align: center;
  }
  .price strong {
    font-size: 0.95rem;
  }
  .btn-buy {
    padding: 0.4rem;
    font-size: 0.78rem;
    width: 100%;
    text-align: center;
  }
  .hero-stats { gap: 0.8rem; }
  .stat-divider { display: none; }
}
