/* ==========================================================================
   VX AND 8B - PRO DARK MODE (STYLE "GETALITY" MINIMALISTE + 3D)
   ========================================================================== */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.25);
  
  --primary-accent: #ffffff;
  --primary-accent-text: #000000;
  --accent-green: #10b981;
  
  --text-main: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --transition: all 0.25s ease;
}

* {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.55;
  min-height: 100vh;
}

.container {
  width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 2rem;
}

/* Top Bar */
.top-announcement-bar {
  background: #000;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
.marquee-container { display: flex; width: 100%; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 4rem; animation: marqueeScroll 25s linear infinite; flex-shrink: 0; min-width: 100%; }
@keyframes marqueeScroll { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-50%, 0, 0); } }
.announcement-item { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  backdrop-filter: blur(12px);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-logo { text-decoration: none; display: flex; align-items: center; }
.brand-title { color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.discord-btn-pill {
  background: transparent; border: none; color: var(--text-muted); font-size: 1.2rem; transition: var(--transition);
}
.discord-btn-pill:hover { color: #fff; transform: scale(1.1); }

.btn-primary {
  background: var(--primary-accent);
  color: var(--primary-accent-text);
  padding: 0.7rem 1.4rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
}
.btn-primary:hover { background: #e0e0e0; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,255,255,0.2); }

.cart-count-badge { background: #000; color: #fff; padding: 0.1rem 0.5rem; border-radius: 50%; font-size: 0.7rem; }

/* Hero */
.hero { padding: 8rem 0 5rem; text-align: left; }
.hero-title { font-size: 4rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; letter-spacing: -2px; margin-bottom: 1.5rem; color: #fff; }
.hero-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.6; }

/* Main Layout Grid */
.categories-sidebar-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

/* Sidebar Filter */
.categories-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.cat-filter-btn {
  background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.02);
  color: var(--text-muted); padding: 1rem 1.5rem; text-align: left;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: var(--transition);
}
.cat-filter-btn:hover { background: rgba(255,255,255,0.03); color: #fff; }
.cat-filter-btn.active { color: #fff; border-left: 3px solid #fff; background: rgba(255,255,255,0.05); font-weight: 600; }

.products-area { flex-grow: 1; }

/* Search */
.catalog-search-wrap { margin-bottom: 2rem; }
.search-box-wrap { position: relative; width: 100%; max-width: 500px; }
.search-box-wrap input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border-color);
  padding: 0.8rem 1rem 0.8rem 2.5rem; border-radius: var(--radius-md);
  color: var(--text-main); font-size: 0.9rem; transition: var(--transition);
}
.search-box-wrap input:focus { outline: none; border-color: rgba(255,255,255,0.4); box-shadow: 0 0 10px rgba(255,255,255,0.1); }
.search-box-wrap i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; }

/* Grid & 3D Cards */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; margin-bottom: 4rem;
  perspective: 1400px; /* Essential for 3D */
}

.sell-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  
  /* 3D Properties */
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

/* 3D Depth on children wrappers */
.sell-card > div {
  transform-style: preserve-3d;
  transform: translateZ(12px);
}

/* Dynamic Hover Glow */
.sell-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient( circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 75% );
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 2;
}

.sell-card:hover::after { opacity: 1; }
.sell-card:hover { 
  border-color: var(--border-glow); 
  background: var(--bg-card-hover); 
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 255, 255, 0.05); 
}

/* Elements inside Card Depth */
.sell-card-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700; color: #fff;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  padding: 0.25rem 0.7rem; border-radius: var(--radius-full); text-transform: uppercase; margin-bottom: 1rem;
  transform: translateZ(18px);
}
.sell-card-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; transform: translateZ(22px); }
.sell-card-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; min-height: 2.5rem; transform: translateZ(15px); }
.sell-card-features { list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; transform: translateZ(12px); }
.sell-card-features li { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }
.sell-card-features li i { color: #fff; font-size: 0.7rem; }

.sell-card-price-row {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1rem;
  transform: translateZ(18px);
}
.sell-price { font-size: 1.5rem; font-weight: 800; color: #fff; }

.btn-buy {
  width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 0.7rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: var(--transition);
  transform: translateZ(25px);
}
.btn-buy:hover { 
  background: #fff; color: #000; 
  transform: translateZ(28px) translateY(-2px); 
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* FAQ */
.faq-section { margin: 4rem 0; max-width: 850px; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 1.5rem; transition: var(--transition);
}
.faq-item:hover { border-color: rgba(255,255,255,0.15); }
.faq-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: #fff; }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Modals */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.92); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-container {
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1);
  width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  border-radius: var(--radius-lg); padding: 2.25rem; position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: transparent;
  border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: 0.2s;
}
.modal-close:hover { color: #fff; }
.modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; color: #fff; }

.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cart-item-title { font-size: 0.95rem; font-weight: 600; color: #fff; }
.cart-item-price { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.cart-remove-btn { background: none; border: 1px solid rgba(255,255,255,0.1); width: 32px; height: 32px; border-radius: 50%; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.cart-remove-btn:hover { color: #000; background: #fff; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500;}
.form-input {
  width: 100%; background: #111; border: 1px solid var(--border-color);
  padding: 0.8rem; border-radius: var(--radius-sm); color: #fff; font-size: 0.95rem; transition: 0.2s;
}
.form-input:focus { outline: none; border-color: rgba(255,255,255,0.4); }

.payment-opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.payment-opt-btn {
  background: transparent; border: 1px solid var(--border-color); color: var(--text-muted);
  padding: 0.7rem; border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; transition: 0.2s; font-weight: 600;
}
.payment-opt-btn.selected, .payment-opt-btn:hover { border-color: #fff; color: #000; background: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--border-color); padding: 3rem 0; margin-top: 4rem; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 350px; margin-top: 1rem; line-height: 1.6; }
.footer-links h4 { font-size: 1rem; margin-bottom: 1rem; color: #fff; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 1.5rem; color: var(--text-dim); font-size: 0.85rem; }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; background: #fff; color: #000;
  padding: 0.9rem 1.4rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600;
  z-index: 2000; animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
@keyframes toastSlideIn { 0% { transform: translateY(30px) scale(0.95); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }

@media (max-width: 768px) {
  .categories-sidebar-wrapper { flex-direction: column; }
  .categories-filter-bar { width: 100%; flex-direction: row; flex-wrap: wrap; position: static; }
  .cat-filter-btn { flex: 1 1 30%; text-align: center; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.02); }
  .cat-filter-btn.active { border-left: none; border-bottom: 2px solid #fff; }
  .hero-title { font-size: 3rem; }
}
