/* ============================================
   نظام جلسات المزادات — ستايل مشترك
   ============================================ */
:root {
  --navy: #12324f;
  --navy-2: #1b4670;
  --gold: #c8963e;
  --gold-2: #e8b45a;
  --bg: #f7f5f0;
  --card: #ffffff;
  --ink: #23303c;
  --muted: #6b7683;
  --line: #e6e1d5;
  --green: #1d7a4f;
  --green-bg: #e8f5ee;
  --red: #b3372f;
  --red-bg: #faeceb;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(18, 50, 79, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Tahoma, "Arial", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.95;
  font-size: 16px;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 18px; }

/* ---------- الشريط العلوي ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.topbar .bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  max-width: 1020px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand .hammer { color: var(--gold-2); }
.topbar nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.topbar nav::-webkit-scrollbar { display: none; }
.topbar nav a {
  color: #cfe0ef;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: .95rem;
  transition: background .15s, color .15s;
}
.topbar nav a:hover { background: var(--navy-2); color: #fff; }
.topbar nav a.active { background: var(--navy-2); color: #fff; font-weight: 700; }
.topbar nav a.demo-link {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
}
.topbar nav a.demo-link:hover { background: var(--gold-2); color: var(--navy); }

/* ---------- الهيرو ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 46px 0 40px;
  text-align: center;
}
.hero h1 { font-size: 1.9rem; margin-bottom: 10px; }
.hero h1 .accent { color: var(--gold-2); }
.hero p.sub {
  color: #d7e4f0;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.hero .actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- أزرار ---------- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-2); color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }

/* ---------- المحتوى العام ---------- */
main { padding: 34px 0 20px; }
section { margin-bottom: 40px; }

h2.sec-title {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2.sec-title::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 26px;
  background: var(--gold);
  border-radius: 4px;
  flex-shrink: 0;
}
p.sec-sub { color: var(--muted); margin-bottom: 20px; }

/* ---------- كروت ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .icon { font-size: 1.4rem; }
.card p, .card li { color: #47525e; font-size: .97rem; }
.card ul { padding-right: 20px; margin-top: 6px; }
.card li { margin-bottom: 4px; }

/* ---------- تنبيهات وملاحظات ---------- */
.callout {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
  border-right: 5px solid;
  font-size: .98rem;
}
.callout.info { background: #eef4fa; border-color: var(--navy-2); }
.callout.warn { background: #fdf6e8; border-color: var(--gold); }
.callout.good { background: var(--green-bg); border-color: var(--green); }
.callout.bad { background: var(--red-bg); border-color: var(--red); }
.callout strong { color: var(--navy); }

/* ---------- شارات ---------- */
.badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  vertical-align: middle;
}
.badge.gold { background: #fdf1dc; color: #8a6420; }
.badge.navy { background: #e4edf5; color: var(--navy); }
.badge.green { background: var(--green-bg); color: var(--green); }
.badge.red { background: var(--red-bg); color: var(--red); }

/* ---------- التايم لاين (خطوات) ---------- */
.timeline { position: relative; padding-right: 30px; margin-top: 10px; }
.timeline::before {
  content: "";
  position: absolute;
  right: 13px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--line);
  border-radius: 2px;
}
.t-step { position: relative; padding-bottom: 26px; }
.t-step:last-child { padding-bottom: 0; }
.t-step .dot {
  position: absolute;
  right: -30px;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg);
}
.t-step.gold .dot { background: var(--gold); }
.t-step h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 4px; }
.t-step p { color: #47525e; font-size: .97rem; }
.t-step .who { font-size: .85rem; color: var(--muted); }

/* ---------- جداول ---------- */
.table-scroll { overflow-x: auto; }
table.nice {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 560px;
}
table.nice th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: right;
  font-size: .95rem;
}
table.nice td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  vertical-align: top;
}
table.nice tr:last-child td { border-bottom: none; }
table.nice tr:nth-child(even) td { background: #fbfaf6; }

/* ---------- أكورديون (تفاصيل) ---------- */
details.acc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
details.acc summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "▾";
  margin-right: auto;
  color: var(--gold);
  transition: transform .2s;
}
details.acc[open] summary::after { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 18px 16px; color: #47525e; font-size: .97rem; }

/* ---------- شاشات مصغرة (موك-أب) ---------- */
.mini-screen {
  background: #fbfaf6;
  border: 1.5px dashed #cfc7b4;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: .9rem;
  color: #55606c;
}
.mini-screen .ms-title {
  font-weight: 700;
  color: var(--navy);
  font-size: .85rem;
  margin-bottom: 6px;
}

/* ---------- تنقل سفلي بين الصفحات ---------- */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 10px;
  flex-wrap: wrap;
}
.pager a {
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 18px;
  color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.pager a:hover { border-color: var(--gold); }
.pager .next { margin-right: auto; }

/* ---------- الفوتر ---------- */
footer.site {
  background: var(--navy);
  color: #b9cbdb;
  text-align: center;
  padding: 18px;
  font-size: .88rem;
  margin-top: 30px;
}

/* ---------- موبايل ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.45rem; }
  .hero { padding: 32px 0 28px; }
  body { font-size: 15px; }
}
