/* ═══════════════════════════════════════════════════════════════
   Bizrat Platform — Global Styles
   Arabic (RTL) • Blue #00AEEF • Gold #F5C518 • Dark #0A0F1E
═══════════════════════════════════════════════════════════════ */

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

:root {
  --blue:       #00AEEF;
  --blue-d:     #0090C8;
  --gold:       #F5C518;
  --gold-d:     #D4A800;
  --dark:       #0A0F1E;
  --dark2:      #111827;
  --card:       #1A2235;
  --border:     rgba(255,255,255,.08);
  --text:       #E0E8F5;
  --text-muted: #7A8FAF;
  --red:        #FF4D4D;
  --green:      #22C55E;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 8px 32px rgba(0,0,0,.4);
  --nav-h:      72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--dark);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.7;
}

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

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

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.text-justify { text-align: justify; text-justify: inter-word; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,15,30,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 40px; width: auto; object-fit: contain; }
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; background: none; border: none;
  font-size: 1.4rem; color: var(--text); padding: 4px 8px;
}
.cart-badge {
  position: absolute; top: 0; left: 0;
  background: var(--blue); color: #fff;
  font-size: .6rem; font-weight: 700;
  border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
  transform: translate(50%,-30%);
}
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; display: block; }
@media(max-width:900px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
    flex-direction: column; background: var(--dark2); border-left: 1px solid var(--border);
    padding: 80px 24px 24px; z-index: 1000; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; border: none;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 20px rgba(0,174,239,.35); }
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 28px rgba(0,174,239,.5); }
.btn-gold { background: var(--gold); color: #000; box-shadow: 0 4px 20px rgba(245,197,24,.3); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .85rem; border-radius: 6px; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; border-radius: var(--radius); }

/* ══════════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 700; font-size: .9rem; color: var(--text-muted); }
.form-control {
  background: var(--dark); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-size: .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,174,239,.15); }
.form-control::placeholder { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════
   CARD
══════════════════════════════════════════════════════════════ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ══════════════════════════════════════════════════════════════
   BADGE / TAG
══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: .78rem; font-weight: 700;
}
.badge-blue  { background: rgba(0,174,239,.15); color: var(--blue); }
.badge-gold  { background: rgba(245,197,24,.15); color: var(--gold); }
.badge-green { background: rgba(34,197,94,.15);  color: var(--green); }
.badge-red   { background: rgba(255,77,77,.15);  color: var(--red); }

/* ══════════════════════════════════════════════════════════════
   SECTION HEADING
══════════════════════════════════════════════════════════════ */
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .tag {
  display: inline-block; background: rgba(0,174,239,.12); color: var(--blue);
  border: 1px solid rgba(0,174,239,.25); border-radius: 100px;
  padding: 6px 20px; font-size: .85rem; font-weight: 700; margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p  { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,174,239,.15), transparent),
              radial-gradient(ellipse 50% 50% at 80% 80%, rgba(245,197,24,.08), transparent);
  padding: 80px 0;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-subtitle { color: var(--blue); font-weight: 700; font-size: 1rem; margin-bottom: 16px; letter-spacing: .05em; }
.hero-title { margin-bottom: 20px; }
.hero-title span { color: var(--gold); }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat strong { font-size: 2rem; font-weight: 900; color: var(--blue); display: block; }
.hero-stat span   { font-size: .85rem; color: var(--text-muted); }
.hero-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 24px; text-align: center;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
  overflow: hidden;
  position: relative;
}
.slider-container {
  width: 100%; aspect-ratio: 1/1; position: relative;
}
.slider-track {
  width: 100%; height: 100%; position: relative;
}
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: center; justify-content: center;
}
.slide.active { opacity: 1; z-index: 2; }
.slide img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.3));
}
.slider-dots {
  position: absolute; bottom: 0px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  cursor: pointer; transition: .3s;
}
.dot.active { background: var(--blue); width: 24px; border-radius: 10px; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
@media(max-width:900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 400px; margin: 40px auto 0; font-size: inherit; }
}

/* ══════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 24px; }
.feature-card { text-align: center; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(0,174,239,.1); border: 1px solid rgba(0,174,239,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 20px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p  { color: var(--text-muted); font-size: .92rem; }

/* ══════════════════════════════════════════════════════════════
   SHOP
══════════════════════════════════════════════════════════════ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.sidebar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--nav-h) + 16px);
}
.sidebar h3 { margin-bottom: 16px; font-size: 1rem; }
.filter-group { margin-bottom: 24px; }
.filter-label { font-size: .85rem; color: var(--text-muted); font-weight: 700; margin-bottom: 10px; }
.filter-list   { display: flex; flex-direction: column; gap: 6px; }
.filter-item {
  padding: 9px 14px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .9rem; transition: .2s;
  display: flex; align-items: center; gap: 10px;
}
.filter-item:hover { background: rgba(255,255,255,.06); }
.filter-item.active { background: rgba(0,174,239,.15); color: var(--blue); font-weight: 700; }
.price-range input[type=range] { width: 100%; accent-color: var(--blue); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.product-name  { font-weight: 700; margin-bottom: 6px; }
.product-desc  { font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; min-height: 2.8rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; }
.product-img-card {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-sm);
  background-size: cover; background-position: center; background-color: var(--dark);
  margin-bottom: 16px; border: 1px solid var(--border);
}
.product-img-mini {
  width: 44px; height: 44px; border-radius: 8px;
  background-size: cover; background-position: center; background-color: var(--dark);
  border: 1.5px solid var(--border); flex-shrink: 0;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.2rem; font-weight: 900; color: var(--gold); }
@media(max-width:900px) { .shop-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ══════════════════════════════════════════════════════════════
   LESSONS
══════════════════════════════════════════════════════════════ */
.lessons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 24px; }
.lesson-card {
  transition: transform .3s;
}
.lesson-card:hover { transform: translateY(-5px); }
.lesson-thumb {
  background: linear-gradient(135deg, rgba(0,174,239,.2), rgba(245,197,24,.1));
  border-radius: var(--radius-sm); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; margin-bottom: 16px; position: relative; overflow: hidden;
}
.play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); opacity: 0; transition: .3s;
  font-size: 3rem;
}
.lesson-card:hover .play-btn { opacity: 1; }
.lesson-meta { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.lesson-title { font-weight: 700; margin-bottom: 8px; }
.lesson-footer { display: flex; align-items: center; justify-content: space-between; color: var(--text-muted); font-size: .85rem; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 48px; width: 100%; max-width: 480px; }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 52px; margin: 0 auto 16px; }
.auth-title { text-align: center; margin-bottom: 32px; }
.auth-title h2 { margin-bottom: 6px; }
.auth-title p  { color: var(--text-muted); font-size: .92rem; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: .9rem; }
.auth-footer a { color: var(--blue); font-weight: 700; }
.divider { text-align: center; color: var(--text-muted); font-size: .85rem; position: relative; padding: 8px 0; }
.divider::before,.divider::after { content:''; position:absolute; top:50%; width:40%; height:1px; background:var(--border); }
.divider::before { right: 0; }
.divider::after  { left: 0; }
.google-btn { background: #fff; color: #333; border: none; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.google-btn:hover { background: #f5f5f5; }

/* ══════════════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════════════ */
.admin-page { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--dark2); border-left: 1px solid var(--border);
  padding: 0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.admin-logo { padding: 24px; border-bottom: 1px solid var(--border); }
.admin-logo img { height: 40px; }
.admin-nav { padding: 16px; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; color: var(--text-muted);
  width: 100%; border: none; background: none; text-align: right;
  cursor: pointer; margin-bottom: 4px; transition: .2s;
}
.admin-nav-item:hover   { background: rgba(255,255,255,.06); color: var(--text); }
.admin-nav-item.active  { background: rgba(0,174,239,.15); color: var(--blue); }
.admin-main { padding: 32px; background: var(--dark); overflow-y: auto; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: right; }
.admin-table thead tr { background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.admin-table tbody tr { border-bottom: 1px solid var(--border); transition: background .2s; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.03); }
.admin-table thead th { font-size: .85rem; font-weight: 700; color: var(--text-muted); }
.table-responsive { overflow-x: auto; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-grid .full { grid-column: 1/-1; }
.progress-bar-wrap { background: var(--dark); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 4px; transition: width .4s; }
@media(max-width:900px) {
  .admin-page { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: static; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   CART SIDEBAR
══════════════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 95vw;
  background: var(--dark2); border-left: 1px solid var(--border);
  z-index: 2001; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-head h3 { font-size: 1.1rem; }
.cart-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; }
.cart-body   { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty  { text-align: center; padding: 48px 0; color: var(--text-muted); }
.cart-empty .icon { font-size: 4rem; margin-bottom: 16px; }
.cart-item  { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-img { 
  width: 54px; height: 54px; border-radius: 10px;
  background-size: cover; background-position: center; background-color: var(--dark);
  border: 1px solid var(--border); flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name  { font-weight: 700; font-size: .9rem; }
.cart-item-price { color: var(--gold); font-size: .85rem; }
.cart-item-qty   { display: flex; align-items: center; gap: 8px; }
.qty-btn { background: rgba(255,255,255,.08); border: none; color: var(--text); width: 26px; height: 26px; border-radius: 6px; font-size: 1rem; }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cart-total-row strong { font-size: 1.2rem; }
.cart-total-val { font-size: 1.4rem; font-weight: 900; color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   CHECKOUT MODAL
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark2); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: .3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; }
.modal-form  { display: flex; flex-direction: column; gap: 18px; }
.product-details-content { margin-top: 10px; }
.pm-img-wrap img { box-shadow: var(--shadow); transition: transform .3s; }
.pm-img-wrap img:hover { transform: scale(1.02); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark2); border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p   { color: var(--text-muted); font-size: .9rem; }
.footer-links h4  { font-size: .9rem; font-weight: 700; margin-bottom: 14px; }
.footer-links ul  { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a   { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: .85rem; }
@media(max-width:768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════ */
#toast-container { position: fixed; top: 80px; left: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 20px; font-size: .9rem; font-weight: 600;
  transform: translateX(-120%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  pointer-events: all; min-width: 220px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }

/* ══════════════════════════════════════════════════════════════
   LOADING SPINNER
══════════════════════════════════════════════════════════════ */
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--blue);
  animation: spin .8s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════
   MISC
══════════════════════════════════════════════════════════════ */
.page-hero { padding: 64px 0 48px; text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(0,174,239,.1), transparent); }
.page-hero p { color: var(--text-muted); margin-top: 12px; font-size: 1.05rem; }
.empty-state { text-align: center; padding: 80px 0; color: var(--text-muted); }
.empty-state .icon { font-size: 4rem; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media(max-width:600px) { .grid-2 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   MISSION SECTION
══════════════════════════════════════════════════════════════ */
.mission-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  position: relative; overflow: hidden; padding: 100px 0;
}
.mission-section::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; background: var(--blue);
  filter: blur(180px); opacity: 0.12;
}
.mission-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.mission-title { margin-bottom: 24px; font-size: 2.8rem; }
.mission-text { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; line-height: 1.8; max-width: 600px; }
.mission-points { display: flex; flex-direction: column; gap: 28px; }
.mission-point { display: flex; gap: 24px; align-items: flex-start; }
.point-icon {
  width: 56px; height: 56px; border-radius: 16px; background: rgba(0,174,239,.08);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0;
  border: 1px solid rgba(0,174,239,.2); box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.point-text h4 { font-size: 1.1rem; margin-bottom: 6px; color: var(--text); font-weight: 700; }
.point-text p { font-size: .95rem; color: var(--text-muted); line-height: 1.6; }

.mission-visual-card {
  background: linear-gradient(145deg, var(--card), var(--dark));
  border: 1px solid var(--border); border-radius: 40px; padding: 60px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 1/1; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  z-index: 1;
}
.mission-visual-card .visual-img { 
  width: 280px; height: 280px; margin-bottom: 24px; position: relative; z-index: 2;
  perspective: 1000px;
}
.logo-3d-lg {
  width: 100%; height: 100%; object-fit: contain;
  /* Protrusion effect (بروز) using layered drop shadows for depth */
  filter: drop-shadow(0 10px 20px rgba(0,174,239,.3))
          drop-shadow(0 20px 40px rgba(0,0,0,.5));
  transition: transform .4s cubic-bezier(.175, .885, .32, 1.275);
}
.mission-visual-card:hover .logo-3d-lg { transform: scale(1.1); }

/* Small 3D logo in mission points */
.logo-3d-sm {
  width: 32px; height: 32px; object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0,174,239,.4));
  transition: transform .3s ease;
}
.mission-point:hover .logo-3d-sm { transform: scale(1.2); }

@keyframes float-3d {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

.mission-visual-card:hover .visual-img { transform: none; }
.mission-visual-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,174,239,.1) 100%);
  pointer-events: none;
}
.visual-text { font-weight: 900; font-size: 1.6rem; color: var(--gold); text-transform: uppercase; letter-spacing: 3px; text-shadow: 0 4px 12px rgba(0,0,0,.5); }

@media(max-width:1024px) {
  .mission-grid { gap: 40px; }
  .mission-title { font-size: 2.2rem; }
}

@media(max-width:900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 56px; }
  .mission-visual-card { order: -1; aspect-ratio: 16/9; padding: 40px; }
  .mission-visual-card .visual-img { font-size: 5rem; }
  .mission-content { text-align: center; }
  .mission-text { margin-left: auto; margin-right: auto; }
  .mission-point { text-align: right; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE — شامل (≤ 600px)
══════════════════════════════════════════════════════════════ */
@media(max-width: 600px) {

  /* ── Container & Sections ── */
  .container { padding: 0 20px; }
  .section   { padding: 40px 0; }

  /* ── Navbar ── */
  .navbar { height: 64px; }
  :root   { --nav-h: 64px; }
  .nav-logo img { height: 34px; }
  .btn.btn-primary { padding: 10px 18px; font-size: .85rem; }

  /* ── Nav Drawer ── */
  .nav-links {
    left: 0 !important;
    right: auto !important;
    width: 85% !important;
    max-width: 320px !important;
    padding: 85px 24px 24px !important;
    background: var(--dark) !important;
  }

  /* ── Hero — المظهر الفخم مثل الحاسوب ── */
  .hero { padding: 24px 0 40px; min-height: auto; }
  .hero-grid { 
    display: flex; 
    flex-direction: column; /* ترتيب العناصر تحت بعض */
    gap: 32px; 
    text-align: right; /* المحاذاة لليمن مثل الحاسوب */
  }
  h1 { 
    font-size: 1.45rem !important; 
    line-height: 1.7 !important; 
    margin-bottom: 20px !important;
    padding: 0 !important;
    text-align: right !important;
  }
  .hero-desc { 
    font-size: 0.92rem; 
    margin-bottom: 32px; 
    color: var(--text-muted); 
    text-align: justify;
    line-height: 1.8;
  }
  .hero-actions { 
    display: flex; 
    flex-direction: row; /* الأزرار بجانب بعض مثل الحاسوب */
    gap: 12px; 
    width: 100%;
  }
  .hero-actions .btn { 
    flex: 1; 
    padding: 12px 10px; 
    font-size: 0.88rem;
    white-space: nowrap; 
  }
  
  .hero-stats { 
    gap: 12px; 
    justify-content: space-between; 
    margin-top: 32px; 
    border-top: 1px solid var(--border); 
    padding-top: 24px; 
  }
  .hero-stat { flex: 1; text-align: center; }
  .hero-stat strong { font-size: 1.25rem; }
  .hero-stat span { font-size: 0.73rem; }

  /* ── Visual Card — البطاقة البصرية ── */
  .hero-visual { 
    padding: 14px; 
    border-radius: 24px; 
    margin-top: 0; 
    order: -1; /* جعل الصورة بالأعلى لتعطي انطباع الهوية البصرية أولاً */
    width: 100%;
    max-width: 100%;
  }
  .slider-container { aspect-ratio: 16/10; } /* جعل الصورة عرضية لتناسب حجم الموبايل */

  /* ── Auth Pages — Signup/Login ── */
  .auth-card {
    padding: 32px 20px !important;
    border-radius: 20px;
    background: var(--card); /* إعادة الخلفية لتبدو مثل الحاسوب */
    border: 1px solid var(--border);
    margin: 10px;
  }
  .auth-logo img { height: 48px; }
  
  /* ── Shop ── */
  .products-grid { 
    grid-template-columns: 1fr 1fr;
    gap: 14px; 
  }
  .product-card { padding: 12px; border-radius: 16px; }

  /* ── Mission ── */
  .mission-section { padding: 50px 0; }
  .mission-text { 
    font-size: 1rem !important; 
    line-height: 1.8 !important; 
    text-align: right !important; 
  }
  .mission-visual-card { aspect-ratio: 1/1; padding: 32px; }

  /* ── Footer ── */
  .footer { text-align: right; padding: 48px 0 32px; }
  .footer-brand img { height: 40px; margin-bottom: 20px; }
  .footer-grid { gap: 40px; }
}

/* ── Tablet (601px → 1024px) ── */
@media(min-width: 601px) and (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-grid { gap: 40px; }
  h1 { font-size: 2.2rem !important; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

