/* ════════════════════════════════════════════════════════════
   styles.css — كل تصميم الموقع

   ◄ أهم قسم: :root (تحت مباشرة)
     فيه كل الألوان والقيم الأساسية. غيّر اللون من هنا
     ويتغير في الموقع كله تلقائياً:
     --orange:  اللون البرتقالي الرئيسي (#F07C00)
     --dark:    خلفية الموقع
     --card:    خلفية البطاقات
     --text:    لون النصوص

   ◄ ترتيب الأقسام في الملف:
     اللودر ← النافبار ← الهيرو ← الأقسام ← بطاقات المنتجات
     ← بطاقات المدونة ← السلة الجانبية ← الشيك أوت ← الفلاتر
     ← الأدمن بنل ← الجداول ← الفوتر ← الواتساب العائم
     ← التوست ← الريسبونسف (الجوال) ← شعار النافبار الجديد
     ← منيو الجوال المحسّن

   ◄ الريسبونسف (شاشات الجوال):
     @media (max-width: 768px)  → التابلت والجوال
     @media (max-width: 480px)  → الجوالات الصغيرة
════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --orange:     #F07C00;
  --orange-dim: #c96a00;
  --orange-glow:rgba(240,124,0,0.15);
  --dark:       #0d0d0d;
  --dark2:      #141414;
  --dark3:      #1a1a1a;
  --card:       #1e1e1e;
  --card2:      #242424;
  --border:     rgba(255,255,255,0.08);
  --border-hover:rgba(240,124,0,0.4);
  --text:       #f0f0f0;
  --text-muted: #8a8a8a;
  --text-dim:   #5a5a5a;
  --success:    #22c55e;
  --warning:    #f59e0b;
  --danger:     #ef4444;
  --info:       #3b82f6;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-orange: 0 0 30px rgba(240,124,0,0.2);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-en:    'Inter', sans-serif;
  --font-ar:    'Cairo', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
}

body.rtl {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ── PAGE LOADER ── */
#page-loader {
  position: fixed; inset: 0; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; transition: opacity 0.6s ease, visibility 0.6s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { width: 120px; margin: 0 auto 20px; animation: logoPulse 1.5s ease infinite; }
@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 0px var(--orange)); }
  50%      { filter: drop-shadow(0 0 20px var(--orange)); }
}
.loader-bar { width: 200px; height: 3px; background: var(--dark3); border-radius: 3px; overflow: hidden; margin: 0 auto; }
.loader-progress { height: 100%; background: var(--orange); border-radius: 3px; animation: loadBar 1.8s ease forwards; }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }
.loader-lines {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.loader-line {
  position: absolute; width: 2px; height: 60px;
  background: linear-gradient(180deg, transparent, var(--orange), transparent);
  animation: lineDrop 1.5s ease-in-out infinite;
}
@keyframes lineDrop {
  0% { transform: translateY(-100px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(110vh); opacity: 0; }
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 5%;
  background: transparent;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: 1400px; margin: 0 auto;
}
.nav-logo img { height: 44px; transition: var(--transition); }
.nav-logo img:hover { filter: drop-shadow(0 0 12px var(--orange)); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--orange); border-radius: 2px;
}
.nav-actions { display: flex; gap: 8px; align-items: center; }
.btn-lang {
  padding: 7px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 0.82rem; font-weight: 600; transition: var(--transition);
  background: var(--card);
}
.btn-lang:hover { border-color: var(--orange); color: var(--orange); }
.btn-cart {
  position: relative; padding: 9px 18px; border-radius: var(--radius);
  background: var(--orange); color: #fff; font-size: 0.85rem; font-weight: 600;
  transition: var(--transition);
}
.btn-cart:hover { background: var(--orange-dim); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: var(--dark); font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.cart-count.visible { opacity: 1; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(240,124,0,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 15% 60%,  rgba(240,100,0,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 85% 70%,  rgba(200,80,0,0.08)  0%, transparent 50%),
    #060608;
}

/* diagonal slash accent */
.hero::after {
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(240,124,0,0.03) 40%,
    rgba(240,124,0,0.06) 50%,
    rgba(240,124,0,0.03) 60%,
    transparent 100%);
}

.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(240,124,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,124,0,0.06) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 90% 80% at center, black 10%, transparent 75%);
}

/* noise texture overlay */
.hero-noise {
  position:absolute; inset:0; pointer-events:none; opacity:0.025;
  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");
  background-size: 200px 200px;
}
.hero-rings { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(240,124,0,0.15);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: ringPulse 4s ease-in-out infinite;
}
.ring:nth-child(1) { width: 300px; height: 300px; animation-delay: 0s; }
.ring:nth-child(2) { width: 500px; height: 500px; animation-delay: 0.5s; }
.ring:nth-child(3) { width: 700px; height: 700px; animation-delay: 1s; }
.ring:nth-child(4) { width: 900px; height: 900px; animation-delay: 1.5s; }
@keyframes ringPulse {
  0%,100% { opacity: 0.3; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 0.8; transform: translate(-50%,-50%) scale(1.03); }
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 0 20px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 50px;
  background: var(--orange-glow); border: 1px solid rgba(240,124,0,0.3);
  font-size: 0.8rem; font-weight: 600; color: var(--orange);
  margin-bottom: 28px; letter-spacing: 0.5px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); animation: blink 1.5s ease infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--orange); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 520px; margin: 0 auto 40px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px; border-radius: var(--radius);
  background: var(--orange); color: #fff;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.3px;
  transition: var(--transition); box-shadow: 0 0 30px rgba(240,124,0,0.3);
}
.btn-primary:hover { background: var(--orange-dim); transform: translateY(-2px); box-shadow: 0 0 50px rgba(240,124,0,0.5); }
.btn-outline {
  padding: 14px 32px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text);
  font-size: 0.95rem; font-weight: 600; transition: var(--transition);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-glow); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border);
}
.hero-stat-val { font-size: 2rem; font-weight: 800; color: var(--orange); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ── SECTIONS ── */
section { padding: 100px 5%; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  background: var(--orange-glow); border: 1px solid rgba(240,124,0,0.3);
  color: var(--orange); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.5px;
}
.section-title span { color: var(--orange); }
.section-sub { color: var(--text-muted); margin-top: 12px; font-size: 1rem; }

/* ── PRODUCT CARDS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-orange);
}
.product-img {
  width: 100%; height: 220px; object-fit: cover;
  background: var(--card2); transition: var(--transition);
}
.product-card:hover .product-img { transform: scale(1.04); }
.product-img-wrap { overflow: hidden; position: relative; }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
}
.badge-new     { background: var(--orange); color: #fff; }
.badge-sale    { background: var(--danger); color: #fff; }
.badge-hot     { background: #ff4500; color: #fff; }
.badge-instock { background: var(--success); color: #fff; }
.product-body { padding: 18px; }
.product-brand { font-size: 0.72rem; color: var(--orange); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.product-name { font-size: 0.98rem; font-weight: 600; margin-bottom: 12px; line-height: 1.4; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--orange); }
.product-price small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.btn-add-cart {
  padding: 9px 18px; border-radius: var(--radius);
  background: var(--orange); color: #fff;
  font-size: 0.82rem; font-weight: 700; transition: var(--transition);
}
.btn-add-cart:hover { background: var(--orange-dim); transform: scale(1.05); }

/* ── BLOG CARDS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-orange); }
.blog-img { width: 100%; height: 200px; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img { transform: scale(1.04); }
.blog-img-wrap { overflow: hidden; position: relative; }
.blog-video-thumb { position: relative; }
.blog-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
}
.blog-play i { font-size: 2.5rem; color: #fff; filter: drop-shadow(0 2px 8px #000); }
.blog-body { padding: 20px; }
.blog-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.blog-category {
  padding: 3px 10px; border-radius: 20px;
  background: var(--orange-glow); color: var(--orange);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
}
.blog-date { font-size: 0.75rem; color: var(--text-muted); }
.blog-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.blog-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.blog-read-more { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); font-size: 0.82rem; font-weight: 600; margin-top: 14px; transition: var(--transition); }
.blog-read-more:hover { gap: 10px; }

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); z-index: 2000;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; top: 0; right: -440px; width: 420px; max-width: 95vw;
  height: 100vh; background: var(--dark2);
  border-left: 1px solid var(--border);
  z-index: 2001; display: flex; flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.cart-sidebar.open { right: 0; }
body.rtl .cart-sidebar { right: auto; left: -440px; border-left: none; border-right: 1px solid var(--border); }
body.rtl .cart-sidebar.open { left: 0; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close { width: 34px; height: 34px; border-radius: 50%; background: var(--card2); color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.cart-close:hover { background: var(--danger); color: #fff; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }
.cart-empty i { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }
.cart-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); align-items: center;
}
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); background: var(--card2); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 0.9rem; color: var(--orange); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; background: var(--card2); color: var(--text); font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); border: 1px solid var(--border); }
.qty-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.qty-num { font-size: 0.9rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-del { color: var(--text-dim); font-size: 0.85rem; transition: var(--transition); }
.cart-item-del:hover { color: var(--danger); }
.cart-foot {
  padding: 20px 24px; border-top: 1px solid var(--border);
  background: var(--dark3);
}
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-label { font-size: 0.9rem; color: var(--text-muted); }
.cart-total-val { font-size: 1.3rem; font-weight: 800; color: var(--orange); }
.btn-checkout {
  width: 100%; padding: 14px; border-radius: var(--radius);
  background: var(--orange); color: #fff;
  font-size: 1rem; font-weight: 700; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-checkout:hover { background: var(--orange-dim); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(240,124,0,0.4); }

/* ── CHECKOUT MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(20px); transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-head {
  padding: 24px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--dark2); z-index: 1;
}
.modal-head h3 { font-size: 1.15rem; font-weight: 700; }
.modal-body { padding: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.3px; }
.form-input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-size: 0.9rem; transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-methods { display: flex; gap: 12px; margin-bottom: 20px; }
.pay-method {
  flex: 1; padding: 14px; border-radius: var(--radius);
  border: 2px solid var(--border); text-align: center;
  cursor: pointer; transition: var(--transition);
}
.pay-method:hover { border-color: var(--orange); }
.pay-method.active { border-color: var(--orange); background: var(--orange-glow); }
.pay-method i { font-size: 1.4rem; margin-bottom: 6px; }
.pay-method.stripe i { color: #6772e5; }
.pay-method.paypal i { color: #003087; }
.pay-method span { display: block; font-size: 0.78rem; font-weight: 600; }
.btn-pay {
  width: 100%; padding: 15px; border-radius: var(--radius);
  background: var(--orange); color: #fff; font-size: 1rem; font-weight: 700;
  transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 8px;
}
.btn-pay:hover { background: var(--orange-dim); box-shadow: 0 8px 30px rgba(240,124,0,0.4); transform: translateY(-1px); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── FILTERS ── */
.filters-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 30px;
}
.filter-btn {
  padding: 8px 18px; border-radius: 50px;
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 0.82rem; font-weight: 600; transition: var(--transition);
  background: var(--card);
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px;
  margin-bottom: 28px; transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--orange); }
.search-bar i { color: var(--text-dim); }
.search-bar input { background: none; border: none; color: var(--text); flex: 1; font-size: 0.9rem; }
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--text-dim); }

/* ── ADMIN PANEL ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px; background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; height: 100vh; overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 100;
}
.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo img { height: 36px; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
  transition: var(--transition); margin-bottom: 4px;
}
.sidebar-nav a:hover { background: var(--card2); color: var(--text); }
.sidebar-nav a.active { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(240,124,0,0.2); }
.sidebar-nav a i { width: 18px; text-align: center; font-size: 1rem; }
.sidebar-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.admin-main { margin-left: 260px; flex: 1; }
.admin-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,20,20,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar h2 { font-size: 1.1rem; font-weight: 700; }
.admin-content { padding: 32px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--orange); border-radius: 3px 3px 0 0;
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--orange-glow); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 16px;
}
.stat-val { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }
.stat-change { font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Revenue Chart */
.chart-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chart-title { font-size: 1rem; font-weight: 700; }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar {
  width: 100%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--orange), rgba(240,124,0,0.4));
  transition: height 1s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer; position: relative;
}
.chart-bar:hover { background: linear-gradient(180deg, #ffaa44, var(--orange)); }
.chart-bar-label { font-size: 0.65rem; color: var(--text-muted); text-align: center; }
.chart-bar-val { font-size: 0.68rem; font-weight: 700; color: var(--orange); text-align: center; }

/* Admin Tables */
.admin-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-table-head h3 { font-size: 1rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; text-align: left; font-size: 0.85rem; }
body.rtl th, body.rtl td { text-align: right; }
th { background: var(--dark3); color: var(--text-muted); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.5px; text-transform: uppercase; border-bottom: 1px solid var(--border); }
td { border-bottom: 1px solid rgba(255,255,255,0.04); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.table-img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: var(--card2); }
.status-badge {
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3px;
}
.status-pending    { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-processing { background: rgba(59,130,246,0.15); color: var(--info); }
.status-shipped    { background: rgba(168,85,247,0.15); color: #a855f7; }
.status-delivered  { background: rgba(34,197,94,0.15); color: var(--success); }
.status-cancelled  { background: rgba(239,68,68,0.15); color: var(--danger); }
.table-actions { display: flex; gap: 8px; }
.btn-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: var(--transition);
}
.btn-icon.edit { background: rgba(59,130,246,0.1); color: var(--info); border: 1px solid rgba(59,130,246,0.2); }
.btn-icon.edit:hover { background: var(--info); color: #fff; }
.btn-icon.del { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-icon.del:hover { background: var(--danger); color: #fff; }

/* Admin Modal */
.admin-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px); z-index: 4000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
  padding: 20px;
}
.admin-modal-overlay.open { opacity: 1; visibility: visible; }
.admin-modal {
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(0.95) translateY(20px); transition: var(--transition);
}
.admin-modal-overlay.open .admin-modal { transform: scale(1) translateY(0); }
.admin-modal-head {
  padding: 22px 28px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--dark2); z-index: 1;
}
.admin-modal-head h3 { font-size: 1rem; font-weight: 700; }
.admin-modal-body { padding: 28px; }
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer;
  transition: var(--transition); position: relative;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--orange); background: var(--orange-glow); }
.upload-zone i { font-size: 2.5rem; color: var(--text-dim); margin-bottom: 12px; }
.upload-zone p { color: var(--text-muted); font-size: 0.88rem; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.img-preview { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius); margin-top: 12px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.media-item {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
  transition: var(--transition);
}
.media-item:hover { border-color: var(--orange); }
.media-item img { width: 100%; height: 110px; object-fit: cover; }
.media-item-actions {
  padding: 8px; display: flex; gap: 6px; justify-content: center;
}
.btn-copy { padding: 4px 10px; border-radius: 6px; background: var(--card); color: var(--text-muted); font-size: 0.72rem; border: 1px solid var(--border); transition: var(--transition); }
.btn-copy:hover { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── MARQUEE ── */
.marquee-wrap { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track {
  display: flex; gap: 50px; width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--text-dim); font-weight: 700; font-size: 0.9rem; }
.marquee-dot { width: 4px; height: 4px; background: var(--orange); border-radius: 50%; }

/* ── FOOTER ── */
footer {
  background: var(--dark2); border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo img { height: 36px; margin-bottom: 16px; }
.footer-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.85rem; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--card2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem; transition: var(--transition);
}
.social-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom span { color: var(--orange); }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition); animation: waBounce 2s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.1); background: #1fbe5b; }
@keyframes waBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
body.rtl .whatsapp-float { right: auto; left: 28px; }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 100px; right: 24px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; }
body.rtl .toast-container { right: auto; left: 24px; }
.toast {
  padding: 14px 20px; border-radius: var(--radius);
  background: var(--card2); border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  min-width: 240px;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.success i { color: var(--success); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.error i { color: var(--danger); }

/* ── LANG FLIP ── */
.lang-flip {
  perspective: 1200px;
  transform-style: preserve-3d;
}
.lang-flipping {
  animation: flipLang 0.5s ease;
}
@keyframes flipLang {
  0%   { opacity: 1; transform: rotateY(0deg); }
  50%  { opacity: 0; transform: rotateY(90deg); }
  100% { opacity: 1; transform: rotateY(0deg); }
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── SUCCESS PAGE ── */
.success-hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 20px;
  background: radial-gradient(ellipse at center, rgba(34,197,94,0.1), transparent 70%);
}
.success-icon {
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(34,197,94,0.15); border: 2px solid rgba(34,197,94,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--success); margin: 0 auto 28px;
  animation: successPop 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes successPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { transform: translateX(-260px); }
  body.rtl .admin-sidebar { transform: translateX(260px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}
@media (max-width: 768px) {
  section { padding: 70px 5%; }
  .nav-links, .nav-actions .btn-lang { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile {
    display: block; background: var(--dark2);
    border-bottom: 1px solid var(--border);
    padding: 16px 5%; position: fixed;
    top: 72px; left: 0; right: 0; z-index: 999;
    transform: translateY(-100%); opacity: 0;
    transition: var(--transition);
  }
  .nav-mobile.open { transform: translateY(0); opacity: 1; }
  .nav-mobile a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .admin-content { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .payment-methods { flex-direction: column; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cart-sidebar { width: 100%; }
}

/* ── HERO ANIMATIONS ── */
@keyframes heroOrb1 {
  0%,100% { transform:translateX(-50%) translateY(0)    scale(1); }
  50%      { transform:translateX(-50%) translateY(-30px) scale(1.06); }
}
@keyframes heroOrb2 {
  0%,100% { transform:translateY(0)  scale(1); }
  50%      { transform:translateY(25px) scale(1.05); }
}
@keyframes heroOrb3 {
  0%,100% { transform:translateY(0)  scale(1); }
  50%      { transform:translateY(-20px) scale(1.08); }
}

/* speed lines */
.speed-line {
  position:absolute; height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(240,124,0,0.7) 40%, rgba(255,180,60,0.9) 70%, transparent 100%);
  border-radius:1px;
  animation:speedLineMove 3s ease-in-out infinite;
}
@keyframes speedLineMove {
  0%   { transform:scaleX(0) translateX(0); opacity:0; transform-origin:left; }
  20%  { opacity:1; }
  80%  { opacity:0.7; }
  100% { transform:scaleX(1.4) translateX(30%); opacity:0; transform-origin:left; }
}

/* ══════════════════════════════════════
   CHECKOUT MODAL — PREMIUM REDESIGN
══════════════════════════════════════ */

.co-modal {
  max-width: 900px !important;
  width: 96vw !important;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}

/* ── Header ── */
.co-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.co-header-left { display: flex; align-items: center; gap: 12px; }
.co-back-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.co-back-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.co-title { font-size: 1.1rem; font-weight: 800; }
.co-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }

/* ── Progress ── */
.co-progress {
  display: flex; align-items: center; padding: 14px 28px;
  border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 0;
}
.co-step-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); background: var(--card2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  transition: var(--transition); position: relative;
}
.co-step-dot::after {
  content: attr(data-label);
  position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
  font-size: 0.65rem; color: var(--text-dim); white-space: nowrap; font-weight: 600;
}
.co-step-dot.active { border-color: var(--orange); background: var(--orange); color: #fff; }
.co-step-dot.done   { border-color: var(--success); background: var(--success); color: #fff; }
.co-step-dot.done::before { content: '✓'; font-size: 0.7rem; }
.co-progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 8px; border-radius: 2px; overflow: hidden; }
.co-progress-fill { height: 100%; width: 0%; background: var(--orange); transition: width 0.5s ease; border-radius: 2px; }

/* ── Body layout ── */
.co-body {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 0; flex: 1; overflow: hidden; min-height: 0;
}
.co-form-col {
  padding: 24px 28px; overflow-y: auto; border-right: 1px solid var(--border);
}
.co-summary-col {
  padding: 24px 24px; overflow-y: auto;
  background: var(--dark3);
  display: flex; flex-direction: column; gap: 16px;
}

/* ── Steps ── */
.co-step { display: none; }
.co-step.active { display: block; }
.co-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.co-section-title i { color: var(--orange); }

/* ── Form fields ── */
.co-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.co-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.co-field label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.co-req { color: var(--orange); }
.co-input-wrap { position: relative; }
.co-input-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 0.82rem; pointer-events: none;
  transition: color 0.3s;
}
.co-input-wrap:focus-within i { color: var(--orange); }
.co-input {
  width: 100%; padding: 12px 14px 12px 40px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  transition: var(--transition); outline: none;
}
.co-input:focus {
  border-color: rgba(240,124,0,0.5);
  background: rgba(240,124,0,0.04);
  box-shadow: 0 0 0 3px rgba(240,124,0,0.08);
}
.co-input::placeholder { color: var(--text-dim); }

/* ── Next button ── */
.co-next-btn {
  width: 100%; padding: 14px; border-radius: var(--radius);
  background: var(--orange); color: #fff;
  font-size: 0.95rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition); margin-top: 8px;
  box-shadow: 0 4px 20px rgba(240,124,0,0.3);
}
.co-next-btn:hover { background: var(--orange-dim); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(240,124,0,0.45); }

/* ── Pay method tabs ── */
.co-pay-tabs {
  display: flex; gap: 10px; margin-bottom: 20px;
}
.co-pay-tab {
  flex: 1; padding: 12px; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--card);
  color: var(--text-muted); font-size: 0.88rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition); cursor: pointer;
}
.co-pay-tab:hover { border-color: var(--orange); color: var(--text); }
.co-pay-tab.active { border-color: var(--orange); background: var(--orange-glow); color: var(--orange); }
.co-pay-tab i { font-size: 1.1rem; }

/* ── Pay panels ── */
.co-pay-panel { display: none; }
.co-pay-panel.active { display: block; }

/* ── Virtual Card preview ── */
.co-card-preview {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  border: 1px solid rgba(240,124,0,0.25);
  border-radius: 16px; padding: 22px 24px 20px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.co-card-preview::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,124,0,0.15) 0%, transparent 70%);
}
.co-card-preview::after {
  content: ''; position: absolute; bottom: -30px; left: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
}
.co-card-chip {
  width: 36px; height: 28px; border-radius: 5px;
  background: linear-gradient(135deg, #d4a44c, #f0c060);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 0.8rem; color: #8a6020;
}
.co-card-number-display {
  font-size: 1.3rem; font-weight: 600; letter-spacing: 3px;
  font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.9); margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.co-card-bottom { display: flex; align-items: flex-end; gap: 20px; }
.co-card-label { font-size: 0.6rem; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.co-card-value { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.85); letter-spacing: 0.5px; }
.co-card-brand-icon { margin-left: auto; font-size: 2rem; color: rgba(255,255,255,0.6); }

/* ── Stripe input wrap ── */
.co-stripe-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px;
  transition: var(--transition);
}
.co-stripe-wrap:focus-within {
  border-color: rgba(240,124,0,0.5);
  box-shadow: 0 0 0 3px rgba(240,124,0,0.08);
}
.co-card-error { color: #f87171; font-size: 0.78rem; margin-top: 6px; min-height: 16px; }

.co-secure-note {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: var(--radius);
  background: rgba(34,197,94,0.06); border: 1px solid rgba(34,197,94,0.15);
  color: var(--success); font-size: 0.75rem; font-weight: 600;
  margin-top: 14px;
}

/* ── Pay button ── */
.co-pay-btn {
  width: 100%; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #F07C00 0%, #ff9500 50%, #d96a00 100%);
  color: #fff; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition); margin-top: 20px;
  box-shadow: 0 4px 24px rgba(240,124,0,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
  letter-spacing: 0.3px;
}
.co-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(240,124,0,0.55); }
.co-pay-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ── Order Summary ── */
.co-summary { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.co-summary-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 16px; }
.co-summary-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.co-item { display: flex; align-items: center; gap: 10px; }
.co-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--card2); flex-shrink: 0; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-item-qty { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.co-item-price { font-size: 0.85rem; font-weight: 700; color: var(--orange); white-space: nowrap; }
.co-summary-divider { height: 1px; background: var(--border); margin: 12px 0; }
.co-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.co-summary-total { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.co-summary-total span:last-child { color: var(--orange); }

/* ── Trust badges ── */
.co-trust-badges { display: flex; flex-direction: column; gap: 8px; }
.co-trust {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--text-dim); font-weight: 600;
}
.co-trust i { color: var(--orange); width: 14px; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .co-body { grid-template-columns: 1fr; }
  .co-summary-col { border-right: none; border-top: 1px solid var(--border); }
  .co-form-row { grid-template-columns: 1fr; }
  .co-modal { max-width: 100% !important; width: 100vw !important; max-height: 100vh; border-radius: 0; }
}

/* ══════════════════════════════════════════════
   شعار النافبار الجديد (الأيقونة + النص)
   - .nav-logo-icon: حجم الأيقونة — غيّر width/height هنا
   - .nav-logo-text: اسم المتجر بجانب الأيقونة
══════════════════════════════════════════════ */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 42px; height: 42px;
  object-fit: contain;
  border-radius: 10px;
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-icon {
  filter: drop-shadow(0 0 12px rgba(240,124,0,0.6));
  transform: scale(1.05);
}
.nav-logo-text {
  font-size: 1rem; font-weight: 900; letter-spacing: 0.5px;
  color: var(--text); white-space: nowrap;
}
.nav-logo-text span { color: var(--orange); }
/* بالجوال الصغير نخفي النص ونخلي الأيقونة بس */
@media (max-width: 480px) {
  .nav-logo-text { display: none; }
}

/* ══════════════════════════════════════════════
   منيو الجوال المحسّن
   - يفتح بأنيميشن انزلاق ناعم
   - فيه هيدر بالأيقونة
══════════════════════════════════════════════ */
.nav-mobile {
  display: block;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 18px 5% 22px;
  z-index: 999;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s, visibility 0.35s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.nav-mobile-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 800;
}
.nav-mobile-icon {
  width: 32px; height: 32px; object-fit: contain; border-radius: 8px;
}
.nav-mobile a {
  display: flex; align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.95rem; font-weight: 600;
  transition: var(--transition);
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--orange);
  padding-left: 10px;
}
body.rtl .nav-mobile a:hover, body.rtl .nav-mobile a.active {
  padding-left: 4px; padding-right: 10px;
}
/* الهامبرغر يظهر فقط بالشاشات الصغيرة */
@media (min-width: 769px) {
  .nav-mobile { display: none; }
}

/* ── زر الحذف الصغير (سلة المهملات) في جداول الأدمن ── */
.btn-icon-danger {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171; font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.btn-icon-danger:hover {
  background: rgba(239,68,68,0.2);
  border-color: #ef4444; color: #fff;
}

/* ══════════════════════════════════════════════
   إعدادات الأدمن — صفوف الإعدادات + مفتاح التبديل
══════════════════════════════════════════════ */
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.setting-row:last-of-type { border-bottom: none; }
.setting-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 3px; }
.setting-desc { color: var(--text-muted); font-size: 0.76rem; }

/* مفتاح التبديل (Toggle Switch) */
.toggle-switch { position: relative; width: 48px; height: 26px; flex-shrink: 0; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 26px;
  background: var(--card2); border: 1px solid var(--border);
  transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  left: 3px; top: 3px;
  background: var(--text-muted);
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: rgba(240,124,0,0.25); border-color: var(--orange);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px); background: var(--orange);
  box-shadow: 0 0 10px rgba(240,124,0,0.5);
}

/* زر منطقة الخطر */
.btn-danger-zone {
  padding: 11px 18px; border-radius: var(--radius);
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35);
  color: #f87171; font-size: 0.82rem; font-weight: 700;
  transition: var(--transition); white-space: nowrap;
}
.btn-danger-zone:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ══════════════════════════════════════════════
   الأدمن بنل على الجوال 📱
   - السايدبار يصير منيو منزلق + زر ☰ بالأعلى
   - الجداول تنسحب أفقياً، البطاقات عمود واحد
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* زر فتح السايدبار يظهر */
  #sidebar-toggle { display: inline-flex !important; font-size: 1.2rem; padding: 8px; }

  /* السايدبار فوق المحتوى مع خلفية وظل */
  .admin-sidebar {
    position: fixed; z-index: 1200;
    box-shadow: 20px 0 60px rgba(0,0,0,0.6);
    background: rgba(13,13,13,0.99);
  }
  /* غطاء يسكّر السايدبار عند الضغط برّا */
  .admin-sidebar.open::after { content: none; }

  .admin-main { margin-left: 0 !important; padding: 0 4px; }
  .admin-topbar { padding: 14px 14px; flex-wrap: wrap; gap: 10px; }

  /* بطاقات الإحصائيات عمودين ثم عمود */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .stat-card { padding: 16px !important; }
  .stat-card .stat-value { font-size: 1.2rem !important; }

  /* الرسوم والبطاقات عمود واحد */
  .charts-row, .dashboard-grid { grid-template-columns: 1fr !important; }
  .chart-card { padding: 18px !important; }

  /* الجداول: سحب أفقي ناعم */
  .admin-table-wrap { border-radius: 12px; }
  .admin-table-wrap table { min-width: 700px; }
  .admin-table-wrap th, .admin-table-wrap td { padding: 10px 8px !important; font-size: 0.78rem !important; }

  /* الفلاتر تلف على أسطر */
  .filters-bar { flex-wrap: wrap; gap: 8px !important; }
  .filter-btn { padding: 8px 14px !important; font-size: 0.78rem !important; }

  /* الموديلات تاخذ كامل الشاشة تقريباً */
  .admin-modal { max-width: 94vw !important; max-height: 88vh; overflow-y: auto; margin: 0 3vw; }
  .form-row { grid-template-columns: 1fr !important; }

  /* صفوف الإعدادات */
  .setting-row { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr !important; }
  .admin-topbar h1, #page-title { font-size: 1rem !important; }
}

/* ══════════════════════════════════════════════
   الخصومات — بادج SALE + السعر المشطوب
══════════════════════════════════════════════ */
.product-badge.badge-sale {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff; font-weight: 800;
  animation: salePulse 2s ease-in-out infinite;
}
@keyframes salePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%     { box-shadow: 0 0 14px 3px rgba(239,68,68,0.3); }
}
.price-old {
  color: var(--text-dim); font-size: 0.78em; font-weight: 500;
  margin-inline-end: 6px; opacity: 0.7;
}

/* ══════════════════════════════════════════════
   كود الخصم في الشيك أوت
══════════════════════════════════════════════ */
.co-coupon-box { margin: 18px 0 6px; }
.co-coupon-row { display: flex; gap: 10px; }
.co-coupon-input {
  flex: 1; padding: 12px 16px;
  background: var(--dark3); border: 1px dashed var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; outline: none; transition: var(--transition);
}
.co-coupon-input:focus { border-color: var(--orange); border-style: solid; }
.co-coupon-input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.co-coupon-btn {
  padding: 12px 22px; border-radius: var(--radius);
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-weight: 700;
  transition: var(--transition);
}
.co-coupon-btn:hover { border-color: var(--orange); color: var(--orange); }
/* شارة الكود المفعّل */
.co-coupon-applied {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius);
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80; font-size: 0.85rem;
}
.co-coupon-applied button { color: var(--text-muted); padding: 4px 8px; transition: var(--transition); }
.co-coupon-applied button:hover { color: #f87171; }
.co-coupon-msg { color: #f87171; font-size: 0.78rem; margin-top: 8px; min-height: 1em; }

/* ملخص المبالغ */
.co-totals { margin: 14px 0 4px; }
.co-total-row {
  display: flex; justify-content: space-between;
  padding: 7px 2px; font-size: 0.88rem; color: var(--text-muted);
}
.co-total-final {
  border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px;
  font-weight: 800; font-size: 1.05rem; color: var(--text);
}
.co-total-final span:last-child { color: var(--orange); }
