/* EXESTORE — Main Stylesheet */
/* Dark theme: #000 background, #FF0000 red accents */

:root {
  --bg:        #000000;
  --bg2:       #0a0a0a;
  --bg3:       #111111;
  --border:    #1e1e1e;
  --red:       #FF0000;
  --red-dark:  #cc0000;
  --red-glow:  rgba(255,0,0,0.15);
  --text:      #e8e8e8;
  --text-muted:#777;
  --white:     #ffffff;
  --font-main: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --radius:    4px;
  --transition:0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

img { max-width: 100%; display: block; }

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--red); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links li a {
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.nav-links li a:hover { color: var(--white); background: var(--bg3); }

.cart-link { position: relative; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

.btn-red {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius) !important;
}
.btn-red:hover { background: var(--red-dark) !important; }

.btn-outline {
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.btn-outline:hover { border-color: var(--red) !important; color: var(--red) !important; }

.btn-admin {
  background: transparent !important;
  border: 1px solid var(--red) !important;
  color: var(--red) !important;
}
.btn-admin:hover { background: var(--red) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

/* ========== FLASH ========== */
.flash {
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.5px;
}
.flash-success { background: #0a2e0a; color: #4ade80; border-bottom: 1px solid #166534; }
.flash-error   { background: #2e0a0a; color: #f87171; border-bottom: 1px solid #991b1b; }
.flash-info    { background: #0a1a2e; color: #60a5fa; border-bottom: 1px solid #1e3a5f; }

/* ========== MAIN ========== */
.site-main { flex: 1; }

/* ========== HERO ========== */
.hero {
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255,0,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--red);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--red); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: 0 0 20px var(--red-glow); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-full { width: 100%; text-align: center; }

/* ========== PRODUCT GRID ========== */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 2rem;
}
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-top: 6px;
}

.products-section { padding: 3rem 2rem; max-width: 1400px; margin: 0 auto; }

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

.product-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,0,0,0.1);
}
.product-card.out-of-stock { opacity: 0.5; pointer-events: none; }
.product-card.out-of-stock::after {
  content: 'OUT OF STOCK';
  position: absolute;
  top: 12px; right: 12px;
  background: #333;
  color: #999;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 2px 8px;
  border-radius: 2px;
}

.product-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--bg2);
}
.product-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--red);
  letter-spacing: 4px;
}

.product-body { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.product-price {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
}
.product-footer .btn { flex-shrink: 0; }

/* ========== PRODUCT DETAIL ========== */
.product-detail { max-width: 1100px; margin: 3rem auto; padding: 0 2rem; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-detail-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 4/3;
  background: var(--bg3);
}
.product-detail-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.product-detail-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--red);
  margin-bottom: 1.5rem;
}
.product-detail-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.product-detail-desc h1,.product-detail-desc h2,.product-detail-desc h3 { color: var(--white); margin: 1rem 0 0.5rem; }
.product-detail-desc ul,.product-detail-desc ol { padding-left: 1.5rem; }
.product-detail-desc li { margin-bottom: 0.25rem; }
.product-detail-desc strong { color: var(--white); }

/* ========== FORMS ========== */
.form-page {
  max-width: 440px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}
.form-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
}
.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}
.form-card .form-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== CART ========== */
.cart-page { max-width: 900px; margin: 3rem auto; padding: 0 2rem; }
.cart-page h1 { font-size: 1.5rem; color: var(--white); letter-spacing: 1px; margin-bottom: 2rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.cart-table tr:last-child td { border: none; }

.cart-summary {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 2rem;
  max-width: 360px;
  margin-left: auto;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.cart-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.cart-summary-row.total span:last-child { color: var(--red); font-family: var(--font-mono); }

.coupon-row { display: flex; gap: 0.75rem; margin: 1rem 0; }
.coupon-row input { flex: 1; }

/* ========== ORDERS ========== */
.orders-page { max-width: 900px; margin: 3rem auto; padding: 0 2rem; }
.order-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.order-card-header { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.5rem; }
.order-id { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.order-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
}
.status-paid    { background: #052e16; color: #4ade80; }
.status-pending { background: #431407; color: #fb923c; }
.status-failed  { background: #450a0a; color: #f87171; }

/* ========== REVIEWS ========== */
.reviews-section { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.reviews-section h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 1.5rem; }
.review-form { margin-bottom: 2rem; }
.stars-input { display: flex; gap: 0.4rem; margin-bottom: 0.75rem; cursor: pointer; }
.stars-input span { font-size: 1.4rem; color: var(--border); transition: color var(--transition); }
.stars-input span.active,.stars-input span:hover { color: var(--red); }
.review-list { display: flex; flex-direction: column; gap: 1rem; }
.review-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.review-header { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; }
.review-user { font-weight: 700; color: var(--white); font-size: 0.9rem; }
.review-stars { color: var(--red); font-size: 0.9rem; }
.review-date { color: var(--text-muted); font-size: 0.8rem; margin-left: auto; }
.review-comment { color: var(--text-muted); font-size: 0.92rem; }

/* ========== FOOTER ========== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 2.5rem 2rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem 3rem;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-logo span { color: var(--red); }
.footer-tagline { font-size: 0.82rem; color: var(--text-muted); }
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #5865F2;
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.discord-btn:hover { background: #4752c4; color: #fff; }
.vouches-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin-top: 0.75rem;
  text-align: center;
}
.vouches-count {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--red);
}
.vouches-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.footer-credit { text-align: right; }
.footer-credit p { font-size: 0.85rem; color: var(--text-muted); }
.credit-link { color: var(--red); font-weight: 700; }
.credit-link:hover { color: var(--white); }
.footer-copy { font-size: 0.78rem; margin-top: 0.25rem; }

/* ========== ADMIN ========== */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--white);
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.admin-logo span { color: var(--red); }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.admin-nav a:hover,.admin-nav a.active { color: var(--white); background: var(--bg3); border-left: 2px solid var(--red); padding-left: calc(1.25rem - 2px); }
.admin-content { flex: 1; padding: 2rem; overflow: auto; }
.admin-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}
.admin-table tr:hover td { background: var(--bg3); }
.btn-danger { background: #7f1d1d; color: #fca5a5; border: 1px solid #991b1b; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-edit { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border); }
.btn-edit:hover { border-color: var(--red); color: var(--red); }
.admin-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}
.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--red);
  font-weight: 700;
}
.stat-card .stat-label {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 999; padding: 1rem;
}
.modal {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; color: var(--white); font-weight: 700; letter-spacing: 1px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; }
.modal-body { padding: 1.5rem; }

/* ========== STRIPE CHECKOUT ========== */
.checkout-page { max-width: 540px; margin: 4rem auto; padding: 0 1.5rem; }
#stripe-form { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; }
#card-element { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem; margin: 0.75rem 0 1.25rem; }
#card-errors { color: #f87171; font-size: 0.85rem; min-height: 1.2em; }

/* ========== EMPTY STATES ========== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 0.75rem 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; }

  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-credit { text-align: center; }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; padding-bottom: 0; }
  .cart-table { font-size: 0.85rem; }
  .cart-summary { max-width: 100%; }
}

/* ========== CATEGORY FILTERS ========== */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 1.75rem;
}
.cat-pill {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition);
}
.cat-pill:hover { border-color: var(--red); color: var(--red); }
.cat-pill.active { background: var(--red); border-color: var(--red); color: #fff; }

/* ========== PRODUCT CATEGORY LABEL ========== */
.product-cat-label {
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

/* ========== FOLLOWERS BADGES ========== */
.followers-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #172554;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

/* ========== FOLLOWERS NOTICE BOX ========== */
.followers-notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: #0d1b2a;
  border: 1px solid #1e3a5f;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.followers-notice-icon { font-size: 1.5rem; flex-shrink: 0; }
.followers-notice strong { color: #93c5fd; font-size: 0.95rem; display: block; margin-bottom: 0.3rem; }
.followers-notice p { color: #7fb3d3; font-size: 0.85rem; line-height: 1.5; margin: 0; }

/* ========== ORDER SUCCESS PAGE ========== */
.success-banner {
  text-align: center;
  padding: 3rem 2rem;
}
