/* ═══════════════════════════════════════════════════════
   NEXCARD — Style System
   Dark theme · Blue + Gold · Arabic RTL
═══════════════════════════════════════════════════════ */

:root {
  --bg: #060914;
  --bg-2: #0d1426;
  --bg-3: #131c33;
  --gold: #f5c249;
  --gold-light: #ffe296;
  --blue: #4d7cff;
  --blue-glow: #6da3ff;
  --cyan: #00e5ff;
  --white: #f3f5fb;
  --gray: #8892b0;
  --gray-2: #4a5577;
  --green: #2ecc71;
  --red: #ff4757;
  --shadow: 0 25px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(77,124,255,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  direction: rtl;
  line-height: 1.6;
}

/* ───── BACKGROUND EFFECTS ───── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(77,124,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,124,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
}
.bg-glow::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(77,124,255,0.15), transparent 70%);
  top: -200px; right: -200px;
  border-radius: 50%;
  animation: glowMove1 15s ease-in-out infinite;
}
.bg-glow::after {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,194,73,0.1), transparent 70%);
  bottom: 10%; left: -150px;
  border-radius: 50%;
  animation: glowMove2 18s ease-in-out infinite;
}
@keyframes glowMove1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-100px,200px) scale(1.2); }
}
@keyframes glowMove2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(150px,-150px) scale(1.3); }
}

/* ───── PAGE LOADER ───── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s 0.4s, visibility 0.6s 0.4s;
}
.page-loader.done { opacity: 0; visibility: hidden; }
.loader-logo {
  font-size: 50px; font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}
.loader-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.05);
  margin-top: 30px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute; top: 0; right: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--blue), var(--gold), transparent);
  animation: barSlide 1.2s ease infinite;
}
@keyframes barSlide {
  to { right: 100%; }
}

/* ───── CURSOR ───── */
/* Custom cursor disabled — was causing input issues on some browsers */
.cur-dot, .cur-ring { display: none !important; }

/* ───── TOPBAR ───── */
.topbar {
  background: linear-gradient(90deg, var(--blue), var(--gold));
  padding: 8px 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  position: relative; z-index: 50;
  overflow: hidden;
}
.topbar-track {
  display: inline-block;
  animation: tickerLeft 30s linear infinite;
  white-space: nowrap;
}
@keyframes tickerLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ───── NAVBAR ───── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,9,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(77,124,255,0.15);
  padding: 0 50px;
  height: 75px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.3s;
}
.navbar.scrolled { height: 65px; background: rgba(6,9,20,0.97); }

.logo {
  display: flex; align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 26px; font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--blue-glow), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(77,124,255,0.5);
}
.logo-icon::before {
  content: 'N';
  font-size: 22px; font-weight: 900;
  color: var(--bg);
  -webkit-text-fill-color: var(--bg);
}
.logo-icon::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  opacity: 0.5;
  filter: blur(8px);
  z-index: -1;
  animation: logoGlow 2.5s ease-in-out infinite;
}
@keyframes logoGlow {
  0%,100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.nav-links {
  display: flex; gap: 38px;
  list-style: none;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex; align-items: center; gap: 18px;
}
.nav-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(77,124,255,0.08);
  border: 1px solid rgba(77,124,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: var(--white);
  font-size: 18px;
  transition: all 0.3s;
}
.nav-icon:hover {
  background: var(--gold); color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245,194,73,0.4);
}
.nav-badge {
  position: absolute;
  top: -4px; left: -4px;
  width: 18px; height: 18px;
  background: var(--red);
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.btn-login {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--blue), var(--blue-glow));
  color: white;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(77,124,255,0.3);
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(77,124,255,0.5);
}

/* ───── HERO ───── */
.hero {
  min-height: 92vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 60px 50px;
}
.hero-particles {
  position: absolute; inset: 0;
}
.hero-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--gold);
  border-radius: 50%;
  animation: particleFloat linear infinite;
  opacity: 0;
  box-shadow: 0 0 10px var(--gold);
}
@keyframes particleFloat {
  0% { transform: translateY(100vh); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative; z-index: 2;
}
.hero-content { position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: rgba(245,194,73,0.1);
  border: 1px solid rgba(245,194,73,0.3);
  border-radius: 30px;
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  margin-bottom: 25px;
  animation: tagSlide 0.8s 0.3s both;
}
.hero-tag::before {
  content: ''; width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,194,73,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(245,194,73,0); }
}
@keyframes tagSlide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 25px;
}
.hero-title .word { display: inline-block; animation: wordRise 0.8s both; }
.hero-title .word:nth-child(1) { animation-delay: 0.4s; }
.hero-title .word:nth-child(2) { animation-delay: 0.5s; }
.hero-title .word:nth-child(3) {
  animation-delay: 0.6s;
  background: linear-gradient(135deg, var(--blue-glow), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.hero-title .word:nth-child(4) { animation-delay: 0.7s; }
@keyframes wordRise {
  from { opacity: 0; transform: translateY(40px) rotate(3deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero-desc {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 35px;
  max-width: 500px;
  animation: fadeUp 0.8s 0.9s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta {
  display: flex; gap: 16px; margin-bottom: 50px;
  animation: fadeUp 0.8s 1s both;
}
.btn {
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--bg);
  box-shadow: 0 12px 30px rgba(245,194,73,0.4);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(245,194,73,0.6);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex; gap: 40px;
  animation: fadeUp 0.8s 1.2s both;
}
.stat-block .num {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, var(--blue-glow), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
}
.stat-block .label {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
  display: block;
}

/* ───── HERO VISUAL (FLOATING CARDS) ───── */
.hero-visual {
  position: relative;
  height: 600px;
  perspective: 1000px;
}
.float-card {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  background: var(--bg-2);
  transition: transform 0.4s;
}
.float-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.float-card-1 {
  width: 280px; height: 360px;
  top: 20px; right: 0;
  animation: floatA 6s ease-in-out infinite;
  z-index: 3;
  transform: rotate(5deg);
}
.float-card-2 {
  width: 240px; height: 320px;
  bottom: 60px; left: 10px;
  animation: floatB 7s ease-in-out infinite;
  z-index: 2;
  transform: rotate(-7deg);
}
.float-card-3 {
  width: 200px; height: 260px;
  top: 50%; left: 40%;
  animation: floatC 8s ease-in-out infinite;
  z-index: 1;
  transform: rotate(3deg);
}
@keyframes floatA {
  0%,100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-30px); }
}
@keyframes floatB {
  0%,100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(20px); }
}
@keyframes floatC {
  0%,100% { transform: rotate(3deg) translate(0,0); }
  50% { transform: rotate(3deg) translate(15px,-15px); }
}
.float-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,9,20,0.95), transparent 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
}
.float-card-name {
  font-size: 15px; font-weight: 700;
  margin-bottom: 4px;
}
.float-card-price {
  font-size: 13px; color: var(--gold);
  font-weight: 600;
}
.float-orb {
  position: absolute;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(77,124,255,0.3), transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 0;
  animation: orbPulse 3s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%,-50%) scale(1.2); opacity: 0.8; }
}

/* ───── BRANDS MARQUEE ───── */
.brands-bar {
  background: rgba(13,20,38,0.8);
  border-top: 1px solid rgba(77,124,255,0.1);
  border-bottom: 1px solid rgba(77,124,255,0.1);
  padding: 25px 0;
  overflow: hidden;
  margin-bottom: 80px;
}
.brands-track {
  display: flex; gap: 70px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee {
  to { transform: translateX(50%); }
}
.brand-item {
  font-size: 22px; font-weight: 800;
  color: var(--gray-2);
  white-space: nowrap;
  letter-spacing: 2px;
  transition: color 0.3s;
  cursor: default;
}
.brand-item:hover { color: var(--gold); }
.brand-sep {
  color: var(--blue);
  font-size: 8px;
  align-self: center;
  opacity: 0.5;
}

/* ───── SECTIONS ───── */
section { padding: 80px 50px; position: relative; }
.section-head {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-inline: auto;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(77,124,255,0.1);
  border: 1px solid rgba(77,124,255,0.3);
  border-radius: 20px;
  color: var(--blue-glow);
  font-size: 12px; font-weight: 600;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-glow), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-desc { color: var(--gray); font-size: 15px; }

/* ───── CATEGORIES ───── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.cat-card {
  position: relative; overflow: hidden;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid rgba(77,124,255,0.08);
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  transition: transform 0.4s, border-color 0.3s, box-shadow 0.4s;
}
.cat-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 25px 50px rgba(245,194,73,0.2);
}
.cat-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  transition: all 0.6s;
}
.cat-card:hover img {
  filter: brightness(0.55) saturate(1);
  transform: scale(1.1);
}
.cat-card-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 20px;
}
.cat-icon {
  font-size: 38px;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(245,194,73,0.5));
  animation: iconBob 3s ease-in-out infinite;
}
.cat-card:nth-child(2) .cat-icon { animation-delay: 0.4s; }
.cat-card:nth-child(3) .cat-icon { animation-delay: 0.8s; }
.cat-card:nth-child(4) .cat-icon { animation-delay: 1.2s; }
.cat-card:nth-child(5) .cat-icon { animation-delay: 1.6s; }
.cat-card:nth-child(6) .cat-icon { animation-delay: 2s; }
@keyframes iconBob {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(5deg); }
}
.cat-name {
  font-size: 17px; font-weight: 700;
  margin-bottom: 4px;
}
.cat-count {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ───── PRODUCTS ───── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--gray);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--gold));
  border-color: transparent;
  color: var(--bg);
  transform: translateY(-2px);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.product-card {
  background: var(--bg-2);
  border: 1px solid rgba(77,124,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 30px 50px rgba(0,0,0,0.5), 0 0 30px rgba(245,194,73,0.15);
}
.product-img {
  height: 220px;
  position: relative; overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.product-card:hover .product-img img { transform: scale(1.1); }

.product-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(13,20,38,0.95));
}
.product-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  z-index: 2;
}
.badge-new { background: var(--blue); color: white; }
.badge-sale { background: var(--red); color: white; }

.product-quick {
  position: absolute; bottom: -50px;
  left: 0; right: 0;
  display: flex;
  background: rgba(6,9,20,0.95);
  backdrop-filter: blur(10px);
  transition: bottom 0.3s;
  z-index: 3;
}
.product-card:hover .product-quick { bottom: 0; }
.product-quick button {
  flex: 1; padding: 14px;
  background: transparent;
  border: none; color: var(--white);
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.product-quick button:hover { background: var(--gold); color: var(--bg); }
.product-quick button + button { border-right: 1px solid rgba(255,255,255,0.05); }

/* ───── INFO TOOLTIP (?) ───── */
.product-info-btn {
  position: absolute; top: 12px; left: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(6,9,20,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,194,73,0.4);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: help;
  font-size: 14px; font-weight: 700;
  z-index: 4;
  transition: all 0.3s;
}
.product-info-btn:hover {
  background: var(--gold);
  color: var(--bg);
  transform: scale(1.15);
  box-shadow: 0 0 18px rgba(245,194,73,0.6);
}
.product-tooltip {
  position: absolute;
  top: 50px; left: 12px;
  width: 240px;
  background: rgba(6,9,20,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245,194,73,0.4);
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--white);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.product-tooltip::before {
  content: 'ℹ️ معلومات المنتج';
  display: block;
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.product-info-btn:hover + .product-tooltip,
.product-tooltip:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.product-info { padding: 18px; }
.product-cat {
  font-size: 11px;
  color: var(--blue-glow);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.product-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 42px;
}
.product-price {
  display: flex; align-items: center; gap: 10px;
}
.price-now {
  font-size: 19px; font-weight: 800;
  color: var(--gold);
}
.price-old {
  font-size: 13px; color: var(--gray);
  text-decoration: line-through;
}
.product-rating {
  display: flex; gap: 2px;
  font-size: 12px;
  color: var(--gold);
  margin-top: 8px;
}

/* ───── BANNER MID ───── */
.mid-banner {
  margin: 80px 50px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  padding: 60px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(77,124,255,0.15);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.mid-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,194,73,0.2), transparent 60%);
  top: -200px; left: -200px;
  border-radius: 50%;
  pointer-events: none;
}
.banner-text { position: relative; z-index: 1; }
.banner-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  margin-bottom: 18px;
}
.banner-title {
  font-size: 48px; font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.1;
}
.banner-title span {
  background: linear-gradient(135deg, var(--blue-glow), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.banner-desc {
  color: var(--gray);
  margin-bottom: 30px;
  font-size: 15px;
}

.banner-visual {
  position: relative;
  height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.spinner-coin {
  width: 250px; height: 250px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; font-weight: 900;
  color: var(--bg);
  box-shadow: 0 30px 80px rgba(245,194,73,0.4);
  position: relative;
  animation: coinSpin 8s linear infinite;
}
@keyframes coinSpin {
  to { transform: rotateY(360deg); }
}
.spinner-coin::before {
  content: '';
  position: absolute; inset: 15px;
  border-radius: 50%;
  border: 3px dashed rgba(6,9,20,0.3);
}

/* ───── COUNTDOWN ───── */
.countdown {
  display: flex; gap: 12px;
}
.cd-box {
  background: rgba(6,9,20,0.5);
  border: 1px solid rgba(245,194,73,0.3);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  min-width: 70px;
  backdrop-filter: blur(10px);
}
.cd-num {
  font-size: 28px; font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.cd-lbl {
  font-size: 10px;
  color: var(--gray);
  margin-top: 4px;
  display: block;
}

/* ───── FEATURES ───── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.feature-card {
  text-align: center;
  padding: 35px 25px;
  background: linear-gradient(180deg, var(--bg-2), transparent);
  border-radius: 16px;
  border: 1px solid rgba(77,124,255,0.1);
  transition: all 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
}
.feature-icon {
  width: 70px; height: 70px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  box-shadow: 0 15px 30px rgba(77,124,255,0.3);
  transition: transform 0.4s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(8deg); }
.feature-title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ───── TESTIMONIALS ───── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.testimonial {
  background: var(--bg-2);
  border: 1px solid rgba(77,124,255,0.1);
  padding: 30px;
  border-radius: 16px;
  position: relative;
  transition: all 0.4s;
}
.testimonial:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px; right: 25px;
  font-size: 100px;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
  font-family: Georgia, serif;
}
.testi-rating {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 16px;
}
.testi-text {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 14px;
}
.testi-author {
  display: flex; align-items: center; gap: 14px;
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--bg);
  font-size: 18px;
}
.testi-name {
  font-weight: 700; font-size: 15px;
}
.testi-role {
  font-size: 12px; color: var(--gray);
}

/* ───── NEWSLETTER ───── */
.newsletter {
  background: linear-gradient(135deg, var(--blue), var(--bg-3));
  padding: 70px;
  border-radius: 24px;
  margin: 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,194,73,0.2), transparent 60%);
  bottom: -300px; right: -300px;
  border-radius: 50%;
  pointer-events: none;
}
.news-content { position: relative; z-index: 1; }
.news-title {
  font-size: 38px; font-weight: 900;
  margin-bottom: 14px;
}
.news-desc {
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  font-size: 15px;
}
.news-form {
  display: flex; max-width: 500px; margin: 0 auto;
  background: rgba(6,9,20,0.6);
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}
.news-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 20px;
  color: var(--white);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  direction: rtl;
}
.news-form input::placeholder { color: var(--gray); }

/* ───── FOOTER ───── */
.footer {
  margin-top: 100px;
  padding: 70px 50px 30px;
  background: var(--bg-2);
  border-top: 1px solid rgba(77,124,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  max-width: 1400px;
  margin: 0 auto 40px;
}
.foot-logo {
  font-size: 32px; font-weight: 900;
  background: linear-gradient(135deg, var(--blue-glow), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 4px;
  margin-bottom: 20px;
  display: block;
}
.foot-desc {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 25px;
}
.foot-social {
  display: flex; gap: 12px;
}
.foot-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
}
.foot-social a:hover {
  background: var(--gold); color: var(--bg);
  transform: translateY(-3px);
}
.foot-col h4 {
  font-size: 15px; font-weight: 700;
  margin-bottom: 18px;
  color: var(--gold);
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 10px; }
.foot-col a {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s;
}
.foot-col a:hover { color: var(--gold); padding-right: 6px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 25px;
  text-align: center;
  color: var(--gray);
  font-size: 12px;
}

/* ───── REVEAL ANIMATIONS ───── */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ───── FORMS ───── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 50px 20px;
}
.auth-box {
  background: var(--bg-2);
  border: 1px solid rgba(77,124,255,0.15);
  border-radius: 24px;
  padding: 50px;
  max-width: 460px; width: 100%;
  position: relative;
  box-shadow: var(--shadow);
}
.auth-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.auth-box > * { position: relative; z-index: 1; }
.auth-title {
  font-size: 28px; font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}
.auth-sub {
  text-align: center;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 35px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: var(--gray);
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  outline: none;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 14px;
}
.form-input[type="email"], .form-input[type="password"], .form-input[type="tel"], .form-input[type="number"] {
  direction: ltr;
  text-align: right;
}
.form-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(245,194,73,0.1);
}
.btn-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
  margin-top: 10px;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(245,194,73,0.4);
}
.auth-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 13px;
  color: var(--gray);
}
.auth-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}
.alert-error { background: rgba(255,71,87,0.1); border: 1px solid var(--red); color: #ffaab1; }
.alert-success { background: rgba(46,204,113,0.1); border: 1px solid var(--green); color: #aef0c5; }

/* ───── PAGE TITLE ───── */
.page-title-bar {
  padding: 60px 50px 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-2), transparent);
}
.page-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 8px;
}
.page-title em {
  background: linear-gradient(135deg, var(--blue-glow), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}
.breadcrumb {
  color: var(--gray);
  font-size: 13px;
}
.breadcrumb a { color: var(--blue-glow); text-decoration: none; }

/* ───── CART / TABLE ───── */
.cart-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}
.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.cart-table {
  background: var(--bg-2);
  border-radius: 16px;
  border: 1px solid rgba(77,124,255,0.1);
  overflow: hidden;
}
.cart-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 20px;
  padding: 20px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cart-row:last-child { border-bottom: none; }
.cart-row img {
  width: 80px; height: 80px;
  border-radius: 10px;
  object-fit: cover;
}
.cart-prod-name {
  font-weight: 700; font-size: 15px;
  margin-bottom: 4px;
}
.cart-prod-cat {
  font-size: 12px;
  color: var(--gray);
}
.qty-btns {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 4px;
}
.qty-btns button {
  width: 28px; height: 28px;
  background: transparent;
  border: none; cursor: pointer;
  color: var(--gold);
  font-size: 16px; font-weight: 700;
}
.cart-summary {
  background: var(--bg-2);
  border-radius: 16px;
  border: 1px solid rgba(245,194,73,0.2);
  padding: 30px;
  height: fit-content;
  position: sticky; top: 90px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}
.summary-row.total {
  border-bottom: none;
  margin-top: 14px;
  padding-top: 18px;
  border-top: 2px solid var(--gold);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

/* ───── PRODUCT DETAIL ───── */
.prod-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}
.prod-img-big {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid rgba(77,124,255,0.1);
  aspect-ratio: 1;
}
.prod-img-big img { width: 100%; height: 100%; object-fit: cover; }
.prod-info-big h1 {
  font-size: 34px; font-weight: 900;
  margin-bottom: 14px;
}
.prod-info-big .price-now { font-size: 36px; }
.prod-info-big .price-old { font-size: 18px; }

/* ───── ADMIN ───── */
.admin-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--bg-2);
  border-left: 1px solid rgba(77,124,255,0.1);
  padding: 30px 0;
}
.admin-logo {
  text-align: center;
  margin-bottom: 30px;
  padding: 0 20px;
}
.admin-side a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  border-right: 3px solid transparent;
  transition: all 0.3s;
}
.admin-side a:hover, .admin-side a.active {
  color: var(--white);
  background: rgba(245,194,73,0.05);
  border-right-color: var(--gold);
}
.admin-main { padding: 40px; }
.admin-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.admin-card {
  background: var(--bg-2);
  border: 1px solid rgba(77,124,255,0.1);
  padding: 25px;
  border-radius: 14px;
}
.admin-card .num {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
}
.admin-card .lbl {
  color: var(--gray);
  font-size: 13px;
  margin-top: 4px;
}
.admin-table {
  width: 100%;
  background: var(--bg-2);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(77,124,255,0.1);
}
.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
}
.admin-table th {
  background: rgba(77,124,255,0.05);
  color: var(--gold);
  font-weight: 700;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 1024px) {
  .hero-grid, .mid-banner, .prod-detail, .cart-grid { grid-template-columns: 1fr; }
  .cat-grid, .products-grid, .features { grid-template-columns: repeat(3,1fr); }
  .testimonials-grid, .footer-grid { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 20px; }
  section { padding: 60px 20px; }
  .cat-grid, .products-grid, .features, .testimonials-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .news-form { flex-direction: column; gap: 8px; }
  .mid-banner { padding: 30px; margin: 50px 20px; }
  .newsletter { padding: 40px 20px; margin: 0 20px; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: 1fr 1fr; }
}
