/* NoxLabs v2 — Dark + Ultraviolet Theme */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --surface: #16161f;
  --border: #2a2a3a;
  --text: #e4e4ef;
  --text-muted: #8888a0;
  --accent: #8b5cf6;
  --accent-bright: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --accent-glow-strong: rgba(139, 92, 246, 0.3);
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; }
p { color: var(--text-muted); }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.accent { color: var(--accent-bright); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: all 0.2s ease; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-bright); box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-1px); text-decoration: none;
}
.btn-primary:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none;
}
.btn-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-crypto {
  background: linear-gradient(135deg, #f7931a, #ffad03); color: #000;
}
.btn-crypto:hover { transform: translateY(-1px); text-decoration: none; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--text); font-weight: 700; font-size: 1.2rem;
}
.logo-icon { color: var(--accent); font-size: 1.4rem; }
.logo-text .accent { color: var(--accent-bright); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn-nav { background: var(--accent); color: #fff !important; padding: 8px 20px; border-radius: var(--radius-sm); }
.btn-nav:hover { background: var(--accent-bright); }

/* Hero */
.hero {
  padding: 160px 0 100px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: var(--accent-glow); border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.hero h1 { margin-bottom: 24px; }
.hero-sub { font-size: 1.15rem; max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Section */
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; font-size: 1.05rem; max-width: 500px; margin: 0 auto 60px; }

/* Offers */
.offers { padding: 100px 0; background: var(--surface); }
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.offer-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all 0.25s ease;
}
.offer-card:hover {
  background: var(--bg-card-hover); border-color: var(--accent);
  transform: translateY(-4px); box-shadow: 0 8px 40px var(--accent-glow);
}
.offer-icon { font-size: 2rem; margin-bottom: 16px; }
.offer-card h3 { margin-bottom: 12px; color: var(--text); }
.offer-card > p { font-size: 0.95rem; margin-bottom: 20px; }

/* About */
.about { padding: 100px 0; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-text p { margin-top: 20px; font-size: 1rem; line-height: 1.8; }
.about-values { display: flex; flex-direction: column; gap: 24px; }
.value {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.value:hover { border-color: var(--accent); }
.value-icon { font-size: 1.5rem; flex-shrink: 0; }
.value h4 { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.value p { font-size: 0.85rem; }

/* Contact */
.contact { padding: 100px 0; text-align: center; background: var(--surface); }
.contact h2 { margin-bottom: 16px; }
.contact > .container > p { font-size: 1.1rem; margin-bottom: 40px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ===================== SHOP PAGE ===================== */
.shop { padding: 100px 0 60px; min-height: 100vh; }
.shop-header { text-align: center; margin-bottom: 48px; }
.shop-header h1 { margin-bottom: 12px; }

/* Search + Filters */
.shop-controls {
  display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; align-items: center;
}
.search-box {
  flex: 1; min-width: 250px; position: relative;
}
.search-box input {
  width: 100%; padding: 12px 16px 12px 44px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.95rem; outline: none; transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-muted); }
.search-box .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 1.1rem; pointer-events: none;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
}
.filter-pill:hover { border-color: var(--accent); color: var(--text); }
.filter-pill.active {
  background: var(--accent-glow); border-color: var(--accent); color: var(--accent-bright);
}

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all 0.25s ease; cursor: pointer; position: relative;
  display: flex; flex-direction: column;
}
.product-card:hover {
  background: var(--bg-card-hover); border-color: var(--accent);
  transform: translateY(-3px); box-shadow: 0 8px 30px var(--accent-glow);
}
.product-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.product-card-icon { font-size: 2rem; }
.product-badge {
  padding: 3px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-popular { background: rgba(139, 92, 246, 0.2); color: var(--accent-bright); }
.badge-new { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-best { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-service { background: rgba(139, 92, 246, 0.1); color: var(--accent-bright); border: 1px solid var(--accent); }
.product-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.product-tagline { font-size: 0.9rem; margin-bottom: 16px; flex: 1; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.product-price { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.product-category-tag {
  font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
}

/* No results */
.no-results {
  text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.no-results h3 { margin-bottom: 8px; color: var(--text); }

/* ===================== PRODUCT DETAIL MODAL ===================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 28px 28px 0; display: flex; justify-content: space-between; align-items: flex-start;
}
.modal-close {
  background: none; border: none; color: var(--text-muted); font-size: 1.5rem;
  cursor: pointer; padding: 4px; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 28px 28px; }
.modal-body .product-icon { font-size: 3rem; margin-bottom: 16px; }
.modal-body h2 { margin-bottom: 8px; }
.modal-body .tagline { font-size: 1.05rem; margin-bottom: 24px; }
.modal-body .description { margin-bottom: 24px; line-height: 1.8; }
.modal-body .features { list-style: none; margin-bottom: 28px; }
.modal-body .features li {
  padding: 8px 0; padding-left: 24px; position: relative; color: var(--text-muted);
}
.modal-body .features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent-bright); font-weight: 700;
}
.modal-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border); margin-bottom: 20px;
}
.modal-price { font-size: 2rem; font-weight: 700; }
.modal-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.modal-actions .btn { width: 100%; text-align: center; }

/* Crypto payment area */
.crypto-payment { display: none; text-align: center; padding: 20px 0; }
.crypto-payment.active { display: block; }
.crypto-payment img { max-width: 200px; margin: 16px auto; }
.crypto-address {
  background: var(--bg); padding: 12px; border-radius: var(--radius-sm);
  font-family: monospace; font-size: 0.8rem; word-break: break-all;
  margin: 12px 0; border: 1px solid var(--border);
}

/* ===================== SUCCESS PAGE ===================== */
.success-page { padding: 160px 0 80px; text-align: center; min-height: 100vh; }
.success-icon { font-size: 4rem; margin-bottom: 24px; }
.success-page h1 { margin-bottom: 16px; }
.success-page p { font-size: 1.1rem; max-width: 500px; margin: 0 auto 40px; }

/* Loading spinner */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3); border-radius: 50%;
  border-top-color: #fff; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
  .about-inner { grid-template-columns: 1fr; }
  .nav-links li:nth-child(1), .nav-links li:nth-child(3) { display: none; }
  .hero { padding: 120px 0 60px; }
  .offers, .about, .contact { padding: 60px 0; }
  .shop { padding: 80px 0 40px; }
  .product-grid { grid-template-columns: 1fr; }
  .modal { margin: 10px; }
}
