/* ============================================================
   LUCKYDEVELOPER / XYRODEVELOPER - FIVEM MOD STORE STYLESHEET
   Design: Modern Cyber Dark Mode (Eye-friendly, Professional)
   ============================================================ */

:root {
  --store-bg: #0B0E14;
  --store-surface: #111622;
  --store-card: #151C2C;
  --store-card-hover: #1A2337;
  --store-border: rgba(255, 255, 255, 0.08);
  --store-border-bright: rgba(0, 242, 254, 0.3);
  --store-primary: #00f2fe;
  --store-primary-rgb: 0, 242, 254;
  --store-secondary: #4facfe;
  --store-accent: #8b5cf6;
  --store-text: #F3F4F6;
  --store-text-muted: #94A3B8;
  --store-success: #10B981;
  --store-warning: #F59E0B;
  --store-danger: #EF4444;
  --store-glow: 0 0 25px rgba(0, 242, 254, 0.15);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body.store-page {
  background-color: var(--store-bg);
  color: var(--store-text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 70%, rgba(79, 172, 254, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* --- STORE TOP BANNER & MARQUEE --- */
.store-marquee-bar {
  background: linear-gradient(90deg, #090C12, #111724, #090C12);
  border-bottom: 1px solid var(--store-border);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 900;
}
.store-marquee-track {
  display: flex;
  width: max-content;
  animation: storeMarqueeScroll 38s linear infinite;
  gap: 30px;
}
.store-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes storeMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--store-text-muted);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--store-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--store-primary);
  animation: liveBlink 1.5s infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.tag-price {
  color: var(--store-primary);
  font-weight: 700;
}
.tag-time {
  color: #64748B;
  font-size: 0.75rem;
}

/* --- STORE HERO --- */
.store-hero {
  padding: 60px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--store-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.store-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #FFFFFF;
  letter-spacing: -1px;
}
.store-title-gradient {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.store-sub {
  font-size: 1.1rem;
  color: var(--store-text-muted);
  max-width: 780px;
  margin: 0 auto 35px;
  line-height: 1.7;
}

/* --- STORE FEATURES & GUARANTEE BAR --- */
.store-features-bar {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.7), rgba(21, 28, 44, 0.8));
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 auto 35px;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.sfb-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.sfb-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.sfb-text strong {
  display: block;
  font-size: 0.95rem;
  color: #FFF;
  margin-bottom: 2px;
}
.sfb-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--store-text-muted);
  line-height: 1.4;
}

/* --- QUICK ORDER TRACKER BAR --- */
.store-tracker-bar {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 14px;
  padding: 16px 24px;
  max-width: 900px;
  margin: 0 auto 50px;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.stb-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--store-text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.stb-input-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.stb-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--store-border);
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: 0.3s;
}
.stb-input:focus {
  border-color: var(--store-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
.stb-btn {
  background: linear-gradient(135deg, var(--store-primary), var(--store-secondary));
  color: #0A0A0F;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.stb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.4);
}

/* --- FILTER CONTROLS --- */
.store-controls {
  max-width: 1200px;
  margin: 0 auto 35px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.search-and-sort {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.search-box {
  flex: 1;
  min-width: 280px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748B;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: 12px;
  color: #FFF;
  font-size: 0.95rem;
  transition: 0.3s;
}
.search-input:focus {
  border-color: var(--store-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}
.filter-chips-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}
.filter-chip {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  color: var(--store-text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.25s;
}
.filter-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFF;
}
.filter-chip.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--store-primary);
  color: var(--store-primary);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

/* --- MOD GRID & CARDS --- */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
@media (max-width: 480px) {
  .mods-grid {
    grid-template-columns: 1fr;
  }
}
.mod-card {
  background: var(--store-card);
  border: 1px solid var(--store-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.mod-card:hover {
  transform: translateY(-5px);
  border-color: var(--store-border-bright);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 242, 254, 0.1);
  background: var(--store-card-hover);
}
.mod-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0A0A0F;
  overflow: hidden;
}
.mod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mod-card:hover .mod-img-wrap img {
  transform: scale(1.05);
}
.mod-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-heavy {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}
.badge-medium {
  background: rgba(245, 158, 11, 0.9);
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.badge-simple {
  background: rgba(16, 185, 129, 0.9);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}
.mod-cat-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--store-primary);
  border: 1px solid rgba(0, 242, 254, 0.2);
  font-weight: 600;
}
.mod-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mod-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}
.mod-rating .stars {
  color: #FBBF24;
}
.mod-rating .score {
  font-weight: 700;
  color: #FFF;
}
.mod-rating .sales {
  color: var(--store-text-muted);
}
.mod-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
  line-height: 1.4;
}
.mod-tagline {
  font-size: 0.88rem;
  color: var(--store-text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-features-preview {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.feature-item {
  font-size: 0.82rem;
  color: #CBD5E1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.feature-item svg {
  color: var(--store-primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.mod-footer {
  border-top: 1px solid var(--store-border);
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mod-price-box .price-lbl {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--store-text-muted);
  letter-spacing: 0.5px;
}
.mod-price-box .price-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: #00f2fe;
  font-family: var(--font-mono);
}
.mod-actions {
  display: flex;
  gap: 8px;
}
.btn-detail {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--store-border);
  color: #E2E8F0;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-detail:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}
.btn-buy {
  background: linear-gradient(135deg, var(--store-primary), var(--store-secondary));
  color: #0B0E14;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}
.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

/* --- MODALS (DETAIL & CHECKOUT) --- */
.store-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.store-modal.show {
  opacity: 1;
  visibility: visible;
}
.store-modal-content {
  background: var(--store-surface);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.1);
  position: relative;
  padding: 30px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--store-border);
  color: var(--store-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.2s;
  z-index: 10;
}
.modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: var(--store-danger);
  border-color: var(--store-danger);
}

/* --- CHECKOUT WORKFLOW & LOCK BOX --- */
.checkout-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--store-border);
}
.checkout-header img {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}
.checkout-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}
.checkout-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--store-primary);
  font-family: var(--font-mono);
}
.form-group-store {
  margin-bottom: 18px;
}
.form-group-store label {
  display: block;
  font-size: 0.85rem;
  color: var(--store-text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.form-group-store input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--store-border);
  padding: 12px 16px;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  transition: 0.3s;
}
.form-group-store input:focus {
  border-color: var(--store-primary);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Bank Info Box */
.bank-transfer-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
}
.btb-header {
  font-size: 0.85rem;
  color: var(--store-primary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}
.btb-row:last-child {
  border-bottom: none;
}
.btb-row .val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #FFF;
}

/* Status Cards (Locked vs Unlocked) */
.lock-status-card {
  border-radius: 14px;
  padding: 22px;
  margin-top: 20px;
  text-align: center;
}
.lock-status-card.locked {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.lock-status-card.unlocked {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.pill-locked {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.pill-unlocked {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-wa-confirm {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  transition: 0.3s;
  width: 100%;
  margin-top: 15px;
}
.btn-wa-confirm:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-download-unlocked {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: 0.3s;
  width: 100%;
  margin-top: 15px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}
.btn-download-unlocked:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
}

/* Floating Toast Notification */
.live-toast-box {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 14px 18px;
  border-radius: 12px;
  z-index: 1500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  max-width: 360px;
}
.live-toast-box.visible {
  opacity: 1;
  transform: translateY(0);
}
.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.15);
  color: var(--store-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.toast-text {
  font-size: 0.85rem;
}
.toast-header {
  color: #FFF;
  margin-bottom: 2px;
}
.toast-header small {
  color: #64748B;
}
.toast-desc {
  color: var(--store-text-muted);
}


/* SECURITY SHIELD & TEXT PROTECTION */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, .allow-copy, .allow-select, #displayOrderId, #unlockedToken, .bank-rek, #trackOrderInput {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}
