/* ===== CSS VARIABLES ===== */
:root {
  --bg: #080810;
  --bg2: #0d0d1a;
  --surface: #111124;
  --surface2: #1a1a30;
  --border: rgba(255,255,255,0.07);
  --accent: #7c3aed;
  --accent2: #a855f7;
  --accent3: #06b6d4;
  --gold: #f59e0b;
  --text: #f0f0ff;
  --text2: #9898b8;
  --text3: #5f5f88;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(124,58,237,0.3);

  /* Customizable via Dashboard */
  --logo-color: #7c3aed;
  --hero-title-color: #f0f0ff;
  --primary-btn-bg: #7c3aed;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }

/* ===== NOISE ===== */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ===== CURSOR ===== */
.cursor {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent2);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background 0.2s;
  mix-blend-mode: screen;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
}
body:hover .cursor { opacity: 1; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700;
}
.logo-icon { color: var(--logo-color); font-size: 24px; }
.logo-text { letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-link {
  color: var(--text2); font-size: 15px; font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; right: 0;
  width: 0; height: 1.5px; background: var(--accent2);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cart {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px;
  cursor: pointer; transition: all 0.2s;
}
.nav-cart:hover { border-color: var(--accent); }
.cart-count {
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 32px 80px;
}
.hero-bg {
  position: absolute; inset: 0; overflow: hidden;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: float-orb 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -100px; left: 10%;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a855f7, transparent);
  top: 40%; left: 40%;
  animation-delay: -6s;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  animation: fadeUp 0.8s ease both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.35);
  color: var(--accent2); padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}
.title-line {
  display: block;
  animation: fadeUp 0.8s ease both;
  color: var(--hero-title-color);
}
.title-line:nth-child(1) { animation-delay: 0.15s; }
.title-line:nth-child(2) { animation-delay: 0.25s; color: var(--accent2); -webkit-text-stroke: 0px; }
.title-line:nth-child(3) { animation-delay: 0.35s; }
.title-line.accent {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px; color: var(--text2); line-height: 1.7;
  max-width: 520px; margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.4s both;
}
.hero-actions {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.5s both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-btn-bg);
  color: white; padding: 15px 30px; border-radius: 100px;
  font-size: 15px; font-weight: 700; font-family: 'Cairo', sans-serif;
  border: none; cursor: pointer;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(124,58,237,0.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-arrow { font-size: 18px; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow { transform: translateX(-4px); }

.hero-stats { display: flex; align-items: center; gap: 16px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 22px; font-weight: 700; color: var(--accent2); }
.stat-label { font-size: 11px; color: var(--text3); font-weight: 500; }
.stat-divider { color: var(--border); font-size: 24px; }

.hero-visual {
  position: absolute; left: 10%; top: 50%; transform: translateY(-50%);
  z-index: 2;
}
.floating-card {
  background: rgba(17,17,36,0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 14px 20px; border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--text2);
  position: absolute;
  animation: float-card 4s ease-in-out infinite;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.card-1 { top: -80px; left: 0; animation-delay: 0s; }
.card-2 { top: 20px; left: 80px; animation-delay: -1.5s; }
.card-3 { top: 120px; left: 20px; animation-delay: -3s; }
.card-icon { font-size: 20px; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0; background: var(--surface);
}
.marquee-track {
  display: flex; gap: 48px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-size: 14px; font-weight: 600;
  color: var(--text3); letter-spacing: 1px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTION SHARED ===== */
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent2); text-transform: uppercase;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.25);
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 16px;
}
.section-header {
  text-align: center; max-width: 600px;
  margin: 0 auto 60px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 12px;
}
.section-sub { color: var(--text2); font-size: 16px; }

/* ===== PRODUCTS ===== */
.products-section {
  max-width: 1280px; margin: 0 auto;
  padding: 100px 32px;
}
.filter-bar {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 50px;
}
.filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); padding: 9px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 600; font-family: 'Cairo', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: white; box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  animation: fadeUp 0.5s ease both;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: var(--glow), var(--shadow);
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover::before { opacity: 1; }

.product-thumb {
  height: 200px; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; position: relative; overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}

.product-body { padding: 20px; }
.product-category {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--accent2); text-transform: uppercase; margin-bottom: 8px;
}
.product-name {
  font-size: 18px; font-weight: 700; margin-bottom: 8px;
  line-height: 1.3;
}
.product-desc {
  font-size: 13px; color: var(--text2); line-height: 1.6;
  margin-bottom: 20px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-price {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.product-price.free { color: #10b981; -webkit-text-fill-color: #10b981; }
.btn-buy {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 9px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 600; font-family: 'Cairo', sans-serif;
  cursor: pointer; transition: all 0.2s;
}
.btn-buy:hover {
  background: var(--accent); border-color: var(--accent); color: white;
}

/* ===== ABOUT ===== */
.about-section {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 32px;
}
.about-container {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text h2 { font-size: 38px; font-weight: 800; margin-bottom: 20px; line-height: 1.2; }
.about-text p { font-size: 16px; color: var(--text2); line-height: 1.8; margin-bottom: 32px; }
.about-features { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.feature-icon { color: var(--accent2); font-size: 18px; }

.about-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px; text-align: center;
  box-shadow: var(--glow);
}
.about-glyph {
  font-size: 64px; color: var(--accent2); display: block;
  margin-bottom: 32px;
  animation: spin-glyph 10s linear infinite;
}
@keyframes spin-glyph {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.about-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.mini-stat { text-align: center; }
.mini-num { display: block; font-size: 28px; font-weight: 800; color: var(--accent2); margin-bottom: 4px; }
.mini-stat span:last-child { font-size: 12px; color: var(--text3); }

/* ===== CONTACT ===== */
.contact-section {
  padding: 100px 32px; text-align: center;
}
.contact-container { max-width: 600px; margin: 0 auto; }
.contact-container h2 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.contact-container p { color: var(--text2); font-size: 16px; margin-bottom: 40px; }
.contact-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 14px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 600; transition: all 0.3s;
}
.contact-btn:hover {
  border-color: var(--accent); color: var(--accent2);
  box-shadow: var(--glow); transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 40px 32px;
}
.footer-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.footer-logo .logo-icon { color: var(--logo-color); }
.footer p { color: var(--text3); font-size: 13px; }
.footer-admin {
  font-size: 13px; color: var(--text3); transition: color 0.2s;
}
.footer-admin:hover { color: var(--accent2); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; max-width: 560px; width: 90%; padding: 40px;
  position: relative; max-height: 90vh; overflow-y: auto;
  transform: scale(0.9) translateY(20px); transition: transform 0.3s;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 20px; left: 20px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.modal-close:hover { background: var(--accent); color: white; border-color: var(--accent); }
.modal-product-emoji { font-size: 64px; margin-bottom: 20px; }
.modal-product-name { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.modal-product-desc { color: var(--text2); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.modal-price { font-size: 36px; font-weight: 800; color: var(--accent2); margin-bottom: 28px; }
.modal-buy-btn {
  width: 100%; padding: 16px; background: var(--accent);
  color: white; border: none; border-radius: 100px;
  font-size: 16px; font-weight: 700; font-family: 'Cairo', sans-serif;
  cursor: pointer; transition: all 0.3s;
}
.modal-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(124,58,237,0.4); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9000;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 14px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transform: translateX(120%); transition: transform 0.3s;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(0); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
}
