/* ==========================================================
   متجر طالب تالتة — الهوية البصرية
   الألوان من شعار المنصة: أزرق ملكي، أزرق سماوي، أصفر، كحلي
   ========================================================== */

:root {
  --navy: #0A1B33;
  --navy-soft: #12294D;
  --royal: #1E56C8;
  --royal-dark: #1743A0;
  --sky: #3FA9F5;
  --sky-soft: #E7F3FE;
  --yellow: #FFC93C;
  --yellow-soft: #FFF6DE;
  --ink: #13233F;
  --muted: #5A6B87;
  --line: #E3EBF8;
  --bg: #F6F9FF;
  --white: #FFFFFF;
  --danger: #D64040;
  --radius: 20px;
  --shadow-sm: 0 2px 10px rgba(10, 27, 51, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 27, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 27, 51, 0.16);
  --font-head: "Cairo", "Tajawal", sans-serif;
  --font-body: "Tajawal", "Cairo", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; }

a { color: var(--royal); text-decoration: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.ic { width: 1.35em; height: 1.35em; display: inline-block; vertical-align: middle; }

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 4px 10px rgba(30, 86, 200, 0.35)); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.06rem; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 0.74rem; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--ink); font-weight: 700; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 999px; transition: all 0.2s ease;
}
.main-nav a:hover { background: var(--sky-soft); color: var(--royal-dark); }
.main-nav .nav-platform {
  background: var(--navy); color: var(--white); margin-inline-start: 6px;
  box-shadow: 0 6px 16px rgba(10, 27, 51, 0.25);
}
.main-nav .nav-platform:hover { background: var(--royal); color: var(--white); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all 0.22s ease; white-space: nowrap;
}
.btn-primary {
  background: var(--yellow); color: var(--navy);
  box-shadow: 0 10px 24px rgba(255, 201, 60, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 201, 60, 0.5); }
.btn-ghost { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-blue { background: var(--royal); color: var(--white); box-shadow: 0 10px 24px rgba(30, 86, 200, 0.35); }
.btn-blue:hover { background: var(--royal-dark); transform: translateY(-2px); }
.ic-btn { width: 1.05em; height: 1.05em; }

/* ---------- الهيرو ---------- */
.hero {
  position: relative; color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 45%, var(--royal-dark) 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(63, 169, 245, 0.25) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.7), transparent 70%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.7), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 169, 245, 0.35), transparent 65%);
  top: -180px; inset-inline-start: -120px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: center; padding-block: 88px 96px;
}
.hero-pill {
  display: inline-block; background: rgba(255, 201, 60, 0.14);
  border: 1px solid rgba(255, 201, 60, 0.55); color: var(--yellow);
  font-weight: 700; font-size: 0.86rem; padding: 6px 16px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero-copy h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); font-weight: 900; margin-bottom: 18px; }
.hero-copy .hl {
  position: relative; display: inline-block; color: var(--yellow);
}
.hero-copy .hl::after {
  content: ""; position: absolute; inset-inline: 6px; bottom: -7px; height: 7px;
  background: var(--yellow); border-radius: 4px; opacity: 0.9;
}
.hero-copy p { font-size: 1.08rem; color: #C9D9F2; max-width: 56ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hero-points li { position: relative; padding-inline-start: 26px; color: #AFC6E8; font-size: 0.95rem; }
.hero-points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sky);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="white"/><path d="M8 12.5l2.7 2.7L16.5 9" stroke="%230A1B33"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="white"/><path d="M8 12.5l2.7 2.7L16.5 9" stroke="%230A1B33"/></svg>') center/contain no-repeat;
}

/* كروت الهيرو العائمة */
.hero-art { position: relative; height: 420px; }
.float-card {
  position: absolute; background: var(--white); color: var(--ink);
  border-radius: 18px; padding: 16px 18px; width: 200px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
  animation: floaty 6s ease-in-out infinite;
}
.float-card b { font-family: var(--font-head); font-size: 0.98rem; }
.float-card i { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.fc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; color: var(--white); }
.fc-ic .ic { width: 24px; height: 24px; }
.fc-1 { top: 6%; inset-inline-start: 8%; transform: rotate(-4deg); animation-delay: 0s; }
.fc-1 .fc-ic { background: linear-gradient(135deg, var(--royal), var(--sky)); }
.fc-2 { top: 34%; inset-inline-start: 44%; transform: rotate(3deg); animation-delay: 1.2s; }
.fc-2 .fc-ic { background: linear-gradient(135deg, var(--yellow), #F0A500); color: var(--navy); }
.fc-3 { top: 62%; inset-inline-start: 4%; transform: rotate(2.5deg); animation-delay: 2.1s; }
.fc-3 .fc-ic { background: linear-gradient(135deg, var(--navy), var(--royal-dark)); }
.fc-4 { top: 78%; inset-inline-start: 48%; transform: rotate(-3deg); animation-delay: 0.6s; }
.fc-4 .fc-ic { background: linear-gradient(135deg, var(--sky), var(--royal)); }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ---------- شريط الشفافية ---------- */
.disclosure-strip {
  background: var(--yellow-soft); border-block: 1px solid #F3DFA6;
  color: #7A5B00;
}
.disclosure-strip .container {
  display: flex; align-items: flex-start; gap: 12px; padding-block: 14px;
}
.disclosure-strip p { font-size: 0.92rem; }
.ic-info { width: 22px; height: 22px; flex: none; margin-top: 3px; }

/* ---------- عناوين الأقسام ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.tag {
  display: inline-block; background: var(--sky-soft); color: var(--royal-dark);
  font-weight: 800; font-size: 0.82rem; padding: 5px 16px; border-radius: 999px;
  margin-bottom: 12px; border: 1px solid #CBE4FB;
}
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

/* ---------- الكتالوج ---------- */
.catalog { padding-block: 84px 70px; background: var(--white); }
.filter-bar-wrap {
  position: sticky; top: 71px; z-index: 40;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  margin-bottom: 36px;
}
.filter-bar {
  display: flex; align-items: center; gap: 14px; padding-block: 12px;
}
.chips {
  display: flex; gap: 8px; overflow-x: auto; flex: 1;
  scrollbar-width: none; padding-block: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem;
  background: var(--bg); color: var(--ink); border: 1.5px solid var(--line);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all 0.2s ease;
}
.chip:hover { border-color: var(--sky); color: var(--royal-dark); }
.chip.is-active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
  box-shadow: 0 6px 16px rgba(10, 27, 51, 0.25);
}
.search-box {
  position: relative; flex: none; width: 240px;
}
.search-box svg {
  position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; color: var(--muted); pointer-events: none;
}
.search-box input {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 10px 42px 10px 16px; padding-inline-start: 42px; padding-inline-end: 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--ink); outline: none; transition: all 0.2s ease;
}
.search-box input:focus { border-color: var(--royal); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 86, 200, 0.12); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #C7DCF7; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.card-tile {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center; color: var(--white);
}
.card-tile .ic { width: 30px; height: 30px; }
.tile-royal { background: linear-gradient(135deg, var(--royal), var(--sky)); box-shadow: 0 8px 18px rgba(30, 86, 200, 0.3); }
.tile-sky { background: linear-gradient(135deg, var(--sky), #7CC7FA); box-shadow: 0 8px 18px rgba(63, 169, 245, 0.35); }
.tile-yellow { background: linear-gradient(135deg, var(--yellow), #F0A500); color: var(--navy); box-shadow: 0 8px 18px rgba(255, 201, 60, 0.4); }
.tile-navy { background: linear-gradient(135deg, var(--navy), var(--royal-dark)); box-shadow: 0 8px 18px rgba(10, 27, 51, 0.3); }
.badge {
  font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}
.badge-demo {
  background: var(--yellow-soft); color: #8A6500;
  border: 1.5px dashed #E8C96A;
}
.card-cat { font-size: 0.78rem; font-weight: 700; color: var(--royal); margin-bottom: 4px; }
.card h3 { font-size: 1.12rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.card > p { color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 18px; }
.card-foot { display: flex; flex-direction: column; gap: 10px; }
.price-note {
  font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px;
}
.price-note::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); flex: none;
}
.btn-card {
  background: var(--white); color: var(--royal-dark); border: 2px solid var(--royal);
  padding: 10px 18px; font-size: 0.95rem;
}
.btn-card:hover { background: var(--royal); color: var(--white); }
.empty-state { text-align: center; color: var(--muted); padding-block: 40px; font-size: 1.05rem; }

/* ---------- خطوات ---------- */
.how { padding-block: 84px; background: var(--bg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--navy); color: var(--yellow);
  font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
  margin-bottom: 16px; box-shadow: 0 8px 18px rgba(10, 27, 51, 0.25);
}
.step h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* ---------- ليه من هنا ---------- */
.why { padding-block: 84px; background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
  border-radius: var(--radius); padding: 30px 26px;
  background: linear-gradient(160deg, var(--bg), var(--white));
  border: 1px solid var(--line);
}
.why-ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--royal), var(--sky)); color: var(--white);
  margin-bottom: 16px; box-shadow: 0 8px 18px rgba(30, 86, 200, 0.3);
}
.why-ic .ic { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.12rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- الفوتر ---------- */
.site-footer {
  background: var(--navy); color: #B9CBE6;
  background-image: radial-gradient(rgba(63, 169, 245, 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr; gap: 36px;
  padding-block: 60px 40px;
}
.brand-footer .brand-text strong { color: var(--white); }
.brand-footer .brand-text small { color: #8FA9CE; }
.f-about p { font-size: 0.92rem; margin-top: 16px; max-width: 42ch; }
.f-col h4 {
  color: var(--white); font-size: 1rem; font-weight: 800; margin-bottom: 14px;
  position: relative; padding-bottom: 10px;
}
.f-col h4::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 34px; height: 3px; border-radius: 3px; background: var(--yellow);
}
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.f-col a { color: #B9CBE6; font-size: 0.93rem; transition: color 0.2s ease; }
.f-col a:hover { color: var(--yellow); }
.f-disclosure p { font-size: 0.88rem; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 20px; text-align: center; font-size: 0.9rem;
}
.footer-base a { color: var(--sky); }

/* ---------- حركات الظهور ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   لوحة التحكم
   ========================================================== */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-main { padding-block: 40px 160px; }
.admin-head { margin-bottom: 28px; }
.admin-head h1 { font-size: 1.7rem; font-weight: 900; color: var(--navy); }
.admin-head p { color: var(--muted); }

.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px; margin-bottom: 22px;
}
.panel h2 {
  font-size: 1.15rem; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.panel h2 .ic { color: var(--royal); }
.panel > .panel-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

.steps-list { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; margin-block: 14px; }
.steps-list li { position: relative; padding-inline-start: 44px; font-size: 0.94rem; }
.steps-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--sky-soft); color: var(--royal-dark);
  font-family: var(--font-head); font-weight: 800;
  display: grid; place-items: center; border: 1px solid #CBE4FB;
}
.steps-list b { color: var(--navy); }
.steps-list code, .inline-code {
  direction: ltr; display: inline-block;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 1px 8px; font-size: 0.85em; font-family: ui-monospace, monospace;
  color: var(--royal-dark);
}
.steps-list a { font-weight: 700; }

.token-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.token-row input { flex: 1; min-width: 240px; }

input[type="text"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 11px 16px; outline: none; transition: all 0.2s ease; width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--royal); background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 86, 200, 0.12);
}
textarea { resize: vertical; min-height: 74px; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: 14px; padding: 13px 16px; font-size: 0.9rem; margin-top: 14px;
}
.notice .ic { flex: none; margin-top: 2px; }
.notice-warn { background: var(--yellow-soft); border: 1px solid #F3DFA6; color: #7A5B00; }
.notice-ok { background: #E8F8EE; border: 1px solid #BEE8CC; color: #1E7A3C; }
.notice-err { background: #FDECEA; border: 1px solid #F5C6C0; color: #A93226; }

.admin-layout { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 22px; align-items: start; }
.panel { min-width: 0; }

.form-grid { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy); margin-bottom: 6px; }
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.icon-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-opt {
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; color: var(--royal-dark);
  background: var(--bg); border: 1.5px solid var(--line); transition: all 0.15s ease;
}
.icon-opt:hover { border-color: var(--sky); }
.icon-opt.is-active { background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.icon-opt .ic { width: 22px; height: 22px; }

.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.admin-item .card-tile { width: 46px; height: 46px; border-radius: 13px; flex: none; }
.admin-item .card-tile .ic { width: 22px; height: 22px; }
.admin-item-info { flex: 1; min-width: 0; }
.admin-item-info b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 0.98rem; }
.admin-item-info small { color: var(--muted); font-size: 0.8rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-url { color: var(--royal); font-weight: 700; }
.admin-url:hover { text-decoration: underline; }
.admin-item-actions { display: flex; gap: 6px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: all 0.15s ease;
}
.icon-btn:hover { border-color: var(--sky); color: var(--royal-dark); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.icon-btn .ic { width: 18px; height: 18px; }

.demo-flag {
  font-size: 0.68rem; font-weight: 800; color: #8A6500;
  background: var(--yellow-soft); border: 1px dashed #E8C96A;
  padding: 1px 8px; border-radius: 999px; margin-inline-start: 6px;
}

.save-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
  background: rgba(10, 27, 51, 0.94); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-block: 14px;
}
.save-bar .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.save-status { color: #B9CBE6; font-size: 0.9rem; flex: 1; min-width: 180px; }
.save-status.dirty { color: var(--yellow); font-weight: 700; }
.save-status.ok { color: #7BE3A2; font-weight: 700; }
.save-status.err { color: #FF9B92; font-weight: 700; }

.tag-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag-row input { flex: 1; min-width: 220px; direction: ltr; text-align: left; }

.hidden { display: none !important; }

/* ---------- صور المنتجات ---------- */
.card-top { position: relative; }
.card-top.has-img { display: block; margin-bottom: 14px; }
.card-top .card-media { display: none; }
.card-top.has-img .card-media { display: block; }
.card-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 16px; background: var(--sky-soft); cursor: zoom-in;
}
.card-top.has-img .card-tile { display: none; }
.card-top.has-img .badge {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm);
}

/* ---------- عارض الصورة ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(10, 27, 51, 0.88); padding: 24px;
}
.lightbox img {
  max-width: min(900px, 100%); max-height: 84vh; border-radius: 18px;
  box-shadow: var(--shadow-lg); background: var(--white);
}
.lightbox-close {
  position: absolute; top: 16px; inset-inline-end: 16px;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.18); color: var(--white);
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.32); }

/* ---------- صورة المنتج في اللوحة ---------- */
.btn-line { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--sky); color: var(--royal-dark); }
.img-field { display: flex; gap: 12px; align-items: flex-start; }
.img-preview {
  width: 100px; height: 100px; flex: none; border-radius: 14px; overflow: hidden;
  border: 1.5px dashed var(--line); background: var(--bg); color: var(--muted);
  display: grid; place-items: center; text-align: center;
  font-size: 0.72rem; line-height: 1.5; padding: 6px;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-controls { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.img-controls .btn { padding: 9px 14px; font-size: 0.86rem; justify-content: center; }
.file-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-thumb {
  width: 46px; height: 46px; border-radius: 13px; overflow: hidden; flex: none;
  display: grid; place-items: center; background: var(--bg);
}
.admin-thumb .card-tile { width: 100%; height: 100%; border-radius: 0; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-thumb.has-img .card-tile { display: none; }

/* ---------- موبايل ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 60px 72px; }
  .hero-art { display: none; }
  .steps, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 1.75rem; }
  .hero-actions .btn { flex: 1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { padding: 16px; }
  .card-tile { width: 50px; height: 50px; border-radius: 14px; }
  .card h3 { font-size: 0.98rem; }
  .card > p { font-size: 0.83rem; }
  .btn-card { font-size: 0.85rem; padding: 9px 12px; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
}
