/* ============================================================
   منصة حلال — styles.css v41
   الأساس: تصميم «حلال» المعتمد (Alexandria + IBM Plex Sans Arabic،
   أخضر 1B3A28/2E5E3E + ذهبي C99B3F + رملي F5F2EA، إطار هاتف .app)
   + طبقة «المكوّنات القديمة» مُعاد تلوينها بالكامل حتى يبقى كل ما
   يبنيه app.js شغّالاً (بطاقات، مزادات، مودال، نماذج، أدمن...).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

/* ============ 1) المتغيّرات ============ */
:root {
  /* لوحة التصميم الجديدة */
  --g900: #1B3A28;
  --g800: #2E5E3E;
  --g700: #3A7350;
  --g600: #4C8A63;
  --g100: #DCEDE2;
  --g50:  #EFF7F1;
  --gold:      #C99B3F;
  --gold-d:    #A97F2C;
  --gold-100:  #F3E6C8;
  --gold-50:   #FBF5E6;
  --sand: #F5F2EA;
  --card: #FFFFFF;
  --ink:  #1B2A20;
  --mut:  #5F6E63;
  --faint:#93A197;
  --line: #E6E2D5;
  --line-soft: #EFECE1;
  --red:    #C24B3D;
  --red-50: #FAE7E4;
  --font-h: "Alexandria", sans-serif;
  --font-b: "IBM Plex Sans Arabic", sans-serif;
  --r: 16px;
  --r-lg: 22px;
  --pill: 999px;
  --sh:    0 2px 10px rgba(27,42,32,.07);
  --sh-md: 0 10px 30px rgba(27,42,32,.13);
  --sh-g:  0 10px 24px rgba(46,94,62,.3);

  /* أسماء المتغيّرات القديمة — يستعملها app.js والصفحات، تُحوَّل للوحة الجديدة */
  --primary:       #2E5E3E;
  --primary-dark:  #1B3A28;
  --primary-light: #4C8A63;
  --accent:        #C99B3F;
  --accent-dark:   #A97F2C;
  --bg:        #F5F2EA;
  --surface:   #FFFFFF;
  --surface-2: #EFECE1;
  --text:  #1B2A20;
  --muted: #5F6E63;
  --border: #E6E2D5;
  --success:  #1F9D55;
  --whatsapp: #1F9D55;
  --danger:  #C24B3D;
  --warning: #A97F2C;
  --shadow-sm: 0 1px 2px rgba(27,42,32,.05);
  --shadow:    0 4px 12px rgba(27,42,32,.08);
  --shadow-lg: 0 12px 32px rgba(27,42,32,.14);
  --radius:    16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --container: 1200px;
}

/* ============ 2) الأساس ============ */
* { box-sizing: border-box; }
html { direction: rtl; }
html, body {
  margin: 0; padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}
body {
  background: #E9E5DA;
  font-family: var(--font-b);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }
h1, h2, h3 { font-family: var(--font-h); }

.demo-note { position: fixed; top: 10px; left: 10px; z-index: 99; background: rgba(27,42,32,.85); color: #F3E6C8; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-b); }

/* ============ 3) الحركات ============ */
@keyframes fade    { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; } }
@keyframes fadeIn  { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sheetUp { 0% { transform: translateY(45%); opacity: .4; } 100% { transform: none; opacity: 1; } }
@keyframes pulse   { 0%, 100% { box-shadow: rgba(194,75,61,.45) 0 0 0 0; } 70% { box-shadow: rgba(194,75,61,0) 0 0 0 8px; } }
@keyframes bidIn   { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideUpSheet  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideUpBanner { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes livePulse    { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.3); } }
@keyframes auctionPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes urgentBlink  { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes pulse-block  { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes today-pulse  { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes voicePulse   { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============ 4) إطار الهاتف ============ */
.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--sand);
  position: relative;
  box-shadow: rgba(27,42,32,.18) 0 0 60px;
}
.scr { padding: 0 16px 96px; animation: .3s ease 0 1 normal none running fade; }

@media (min-width: 1100px) {
  body { padding-top: 24px; }
  .app { border-radius: 28px 28px 0 0; min-height: calc(100vh - 24px); }
}

/* ============ 5) الرأس والشعار ============ */
.top {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 10px;
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, var(--sand) 82%, transparent);
}
.logo { display: flex; align-items: center; gap: 9px; flex: 1 1 0%; font-weight: 800; color: var(--g900); }
.logo img { width: 38px; height: 38px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: linear-gradient(140deg, var(--g800), var(--g600));
  display: grid; place-items: center; font-size: 20px;
  box-shadow: var(--sh-g);
  flex: 0 0 auto;
}
.logo b { font-family: var(--font-h); font-size: 20px; font-weight: 800; color: var(--g900); }
.logo small { display: block; font-size: 10.5px; color: var(--mut); margin-top: -2px; font-weight: 600; }
.icon-b { width: 40px; height: 40px; border-radius: 13px; background: var(--card); box-shadow: var(--sh); display: grid; place-items: center; color: var(--g800); position: relative; }
.dot { position: absolute; top: 9px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); border: 1.5px solid #fff; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); font-size: 13.5px; font-weight: 600; padding: 6px 0; }

/* رأس الصفحات القديم (admin.html وغيرها) */
.header {
  position: sticky; top: 0;
  background: rgba(245,242,234,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; max-width: var(--container); margin: 0 auto; gap: 12px;
}
.nav .logo { font-family: var(--font-h); font-size: 20px; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ============ 6) البحث والبانر ============ */
.search { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--pill); padding: 13px 16px; box-shadow: var(--sh); margin: 4px 0 14px; }
.search svg { color: var(--g700); flex: 0 0 auto; }
.search input { border: none; outline: none; flex: 1 1 0%; font-size: 14px; background: none; color: var(--ink); }
.search .mic { color: var(--gold-d); }

.banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, var(--g900), var(--g800) 60%, #3d6b4d); border-radius: var(--r-lg); padding: 16px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.banner::after { content: "🔨"; position: absolute; left: -6px; bottom: -14px; font-size: 64px; opacity: .18; transform: rotate(-15deg); }
.banner b { font-family: var(--font-h); font-size: 15.5px; font-weight: 700; display: block; }
.banner span { font-size: 12px; opacity: .85; }
.banner .live { display: inline-flex; align-items: center; gap: 6px; background: var(--red); font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); margin-bottom: 6px; }
.banner .btn { flex: 0 0 auto; }

/* نقطة البث المباشر: أحمر افتراضياً (الصفحات القديمة)، أبيض داخل شارة حمراء */
.live-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 6px;
  animation: livePulse 1.5s infinite;
  box-shadow: 0 0 8px rgba(194,75,61,.6);
}
.live .live-dot, .live-pill .live-dot, .banner .live-dot {
  width: 7px; height: 7px; margin: 0;
  background: #fff; box-shadow: none;
  animation: pulse 1.8s ease infinite;
}

/* ============ 7) الأزرار ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--pill);
  font-size: 14px; font-weight: 700;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform .13s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-g   { background: var(--g800); color: #fff; box-shadow: var(--sh-g); }
.btn-gold{ background: var(--gold); color: #3A2E10; box-shadow: rgba(201,155,63,.35) 0 8px 20px; }
.btn-o   { background: var(--card); color: var(--g800); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-blk { width: 100%; }
.btn-primary { background: var(--g800); color: #fff; box-shadow: var(--sh-g); }
.btn-primary:hover { background: var(--g900); }
.btn-accent { background: var(--gold); color: #3A2E10; box-shadow: rgba(201,155,63,.35) 0 8px 20px; }
.btn-accent:hover { background: var(--gold-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--g800); }
.btn-ghost:hover { background: var(--g50); }
.btn-outline { background: var(--card); color: var(--g800); border-color: var(--g800); }
.btn-outline:hover { background: var(--g800); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #A83C30; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #187B43; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: #187B43; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 13px; font-size: 12.5px; }
.btn-link {
  background: transparent; border: none;
  color: var(--g800); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  padding: 6px 10px; border-radius: 10px;
  transition: background .15s;
}
.btn-link:hover { background: var(--g50); }
.logout-btn { color: var(--red) !important; }
.logout-btn:hover { background: var(--red-50) !important; }

/* ============ 8) الرقائق والشارات ============ */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 700;
  background: var(--g50); color: var(--g800);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.chip.gold { background: var(--gold-50); color: var(--gold-d); }
.chip.red  { background: var(--red-50); color: var(--red); }
.chip.active { background: var(--g800); color: #fff; }
.chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px; margin-bottom: 14px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips .chip { padding: 8px 15px; font-size: 12.5px; background: var(--card); box-shadow: var(--sh); color: var(--mut); flex: 0 0 auto; }
.chips .chip.active { background: var(--g800); color: #fff; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--g50); color: var(--g800);
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 700;
}
.badge-accent  { background: var(--gold-50); color: var(--gold-d); }
.badge-warning { background: var(--gold-100); color: #8A6117; }
.badge-success { background: var(--g100); color: var(--g800); }
.badge-danger  { background: var(--red-50); color: var(--red); }
.vet-b { display: inline-flex; align-items: center; gap: 4px; background: var(--g100); color: var(--g800); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: var(--pill); flex: 0 0 auto; }

/* ============ 9) عناوين الأقسام ============ */
section { padding: 20px 0 4px; }
.sec-h { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 12px; }
.sec-h h2 { font-size: 16.5px; font-weight: 800; margin: 0; color: var(--g900); }
.sec-h button, .sec-h a { font-size: 12.5px; font-weight: 700; color: var(--gold-d); }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 0 14px; flex-wrap: wrap; gap: 8px;
}
.section-head h2 { font-size: 17px; font-weight: 800; color: var(--g900); }
.section-head a:not(.btn) { color: var(--gold-d); font-weight: 700; font-size: 12.5px; }
.pg-t { margin: 6px 0 2px; font-size: 20px; font-weight: 800; color: var(--g900); font-family: var(--font-h); }
.pg-sub { display: block; font-size: 12.5px; color: var(--mut); margin: 0 0 6px; line-height: 1.7; }
.f-lbl { font-size: 12.5px; font-weight: 800; color: var(--g900); margin: 14px 0 8px; display: block; }

/* ============ 10) شرائط المؤشرات والفئات (الرئيسية) ============ */
.idx-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.idx-strip::-webkit-scrollbar { display: none; }
.idx-card { flex: 0 0 auto; width: 150px; background: var(--card); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sh); }
.idx-card .e { font-size: 20px; }
.idx-card b { display: block; font-size: 17px; font-family: var(--font-h); margin: 2px 0 0; }
.idx-card b small { font-size: 11px; color: var(--mut); font-weight: 600; }
.idx-card .n { font-size: 11.5px; color: var(--mut); display: block; margin: 2px 0 6px; }
.idx-foot { display: flex; align-items: center; justify-content: space-between; }
.chg { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: var(--pill); }
.chg.up { background: var(--g100); color: var(--g800); }
.chg.dn { background: var(--red-50); color: var(--red); }
.chg.z  { background: var(--line-soft); color: var(--mut); }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; background: var(--card); border-radius: var(--r); box-shadow: var(--sh); transition: transform .15s; }
.cat:active { transform: scale(.95); }
.cat.on { background: var(--g800); color: #fff; }
.cat .e { font-size: 26px; }
.cat span { font-size: 11px; font-weight: 700; }

.auc-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.auc-row::-webkit-scrollbar { display: none; }
.auc-mini { flex: 0 0 auto; width: 230px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; text-align: right; }
.auc-mini .ph { height: 86px; display: grid; place-items: center; font-size: 40px; background: linear-gradient(135deg, var(--g100), var(--gold-50)); position: relative; }
.auc-mini .tm { position: absolute; top: 8px; right: 8px; background: rgba(27,42,32,.82); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--pill); font-variant-numeric: tabular-nums; }
.auc-mini .bd { padding: 10px 12px 12px; }
.auc-mini .t { font-size: 13px; font-weight: 700; display: block; }
.auc-mini .cur { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.auc-mini .cur b { font-family: var(--font-h); font-size: 17px; color: var(--g800); }
.auc-mini .cur span { font-size: 10.5px; color: var(--mut); }

.calc-card { display: flex; align-items: center; gap: 13px; background: linear-gradient(120deg, var(--gold-50), #fff); border: 1.5px solid var(--gold-100); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 16px; }
.calc-card .e { width: 46px; height: 46px; border-radius: 14px; background: var(--gold); display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.calc-card b { font-size: 14px; display: block; }
.calc-card span { font-size: 12px; color: var(--mut); }
.calc-box { background: var(--card); border-radius: var(--r-lg); padding: 4px 16px 16px; box-shadow: var(--sh); margin-top: 12px; }

/* ============ 11) قوائم الإعلانات (تصميم lcard الجديد) ============ */
.feed { display: flex; flex-direction: column; gap: 12px; }
.fchips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 2px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: 0 0 auto; padding: 8px 15px; border-radius: var(--pill); background: var(--card); box-shadow: var(--sh); font-size: 12.5px; font-weight: 700; color: var(--mut); }
.fchip.on { background: var(--g800); color: #fff; }
.lcard { display: flex; gap: 12px; background: var(--card); border-radius: var(--r-lg); padding: 11px; box-shadow: var(--sh); text-align: right; }
.lcard .ph { width: 104px; height: 104px; border-radius: 14px; background: linear-gradient(135deg, var(--g100), var(--gold-50)); display: grid; place-items: center; font-size: 42px; flex: 0 0 auto; position: relative; overflow: hidden; }
.lcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lcard .ph .n { position: absolute; bottom: 6px; left: 6px; background: rgba(27,42,32,.75); color: #fff; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--pill); }
.lcard .bd { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; }
.lcard .t { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.lcard .m { font-size: 11.5px; color: var(--mut); margin: 3px 0 6px; }
.lcard .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.lcard .pr { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.lcard .pr b { font-family: var(--font-h); font-size: 17px; color: var(--g800); }
.lcard .pr b small { font-size: 11px; font-weight: 600; color: var(--mut); }
.lcard .pr span { font-size: 10.5px; color: var(--faint); }

/* ============ 12) بطاقات الإعلانات القديمة (يبنيها app.js) ============ */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.listings-grid > .listing-card { height: auto; }
.listing-card {
  background: var(--card);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  display: flex; flex-direction: column;
  position: relative;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.listing-img {
  width: 100%; height: 140px;
  background: linear-gradient(135deg, var(--g100), var(--gold-50));
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: var(--g800);
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.listing-img.has-photo { font-size: 0; background: var(--line-soft); }
.listing-img img,
.listing-img video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .3s ease;
}
.listing-card:hover .listing-img img,
.listing-card:hover .listing-img video { transform: scale(1.04); }
.listing-views {
  position: absolute; top: 8px; right: 8px;
  background: rgba(27,42,32,.7); color: #fff;
  padding: 3px 9px; border-radius: var(--pill);
  font-size: 10.5px; font-weight: 700;
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 4px;
  z-index: 2;
}
.listing-photos-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(27,42,32,.7); color: #fff;
  padding: 2px 8px; border-radius: var(--pill);
  font-size: 10px; font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.listing-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.listing-title {
  font-size: 13px; font-weight: 700; margin: 0;
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.45;
}
.listing-price { font-size: 16px; font-weight: 800; color: var(--g800); margin: 0; font-family: var(--font-h); }
.listing-price small { font-size: 11px; font-weight: 600; color: var(--mut); font-family: var(--font-b); }
.listing-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--mut);
  margin: 0; padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.listing-today-badge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: #fff;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 10.5px; font-weight: 800; letter-spacing: .3px;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(194,75,61,.35);
  animation: today-pulse 2s ease infinite;
}
.listing-video-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(194,75,61,.9); color: #fff;
  padding: 2px 8px; border-radius: var(--pill);
  font-size: 10px; font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 3px;
}
.listing-card.is-sold .listing-img { opacity: .6; }
.sold-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,42,32,.35);
  z-index: 3; pointer-events: none;
}
.sold-overlay span {
  background: var(--red); color: #fff;
  padding: 7px 18px; border-radius: var(--pill);
  font-weight: 800; font-size: 16px; letter-spacing: 1px;
  transform: rotate(-8deg);
  box-shadow: 0 6px 20px rgba(27,42,32,.3);
}
.card-verified {
  display: inline-block;
  background: var(--g100); color: var(--g800);
  padding: 2px 8px; border-radius: var(--pill);
  font-size: 10.5px; font-weight: 700;
  margin: 0; align-self: flex-start;
}
.subtype-badge {
  display: inline-block;
  background: var(--gold-50); color: var(--gold-d);
  padding: 2px 8px; border-radius: var(--pill);
  font-size: 10.5px; font-weight: 700;
  margin-bottom: 4px;
}
.store-badge {
  display: inline-block;
  background: var(--g100); color: var(--g900);
  padding: 2px 9px; border-radius: var(--pill);
  font-size: 10.5px; font-weight: 800;
  margin-bottom: 4px;
}

/* هياكل التحميل */
.skeleton-card { pointer-events: none; }
.skeleton-shimmer {
  background: linear-gradient(90deg, var(--line-soft) 25%, #F7F4EC 50%, var(--line-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
.skel-line {
  height: 12px;
  background: linear-gradient(90deg, var(--line-soft) 25%, #F7F4EC 50%, var(--line-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 4px;
}
.loading-dots { color: var(--mut); font-weight: 700; font-size: 13px; }

/* ============ 13) شريط التنقّل السفلي ============ */
.bnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  box-shadow: rgba(27,42,32,.14) 0 -8px 30px;
  display: flex; align-items: flex-end;
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  z-index: 50;
}
.bn { flex: 1 1 0%; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); font-size: 10px; font-weight: 700; padding: 4px 0; }
.bn.on { color: var(--g800); }
.bn-add {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 18px;
  background: linear-gradient(140deg, var(--gold), var(--gold-d));
  color: #fff; display: grid; place-items: center;
  margin: 0 6px;
  box-shadow: rgba(201,155,63,.4) 0 10px 22px;
  transform: translateY(-14px);
  font-size: 24px; font-weight: 800;
}

/* ============ 14) الأوراق السفلية (تصميم العرض) ============ */
.ov { position: fixed; inset: 0; background: rgba(18,30,21,.55); z-index: 80; display: flex; align-items: flex-end; justify-content: center; animation: .2s ease 0 1 normal none running fadeIn; }
.sheet { width: 100%; max-width: 430px; background: var(--sand); border-radius: 26px 26px 0 0; padding: 8px 18px 28px; max-height: 86vh; overflow-y: auto; animation: .3s cubic-bezier(.2,.8,.3,1) 0 1 normal none running sheetUp; }
.grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 6px auto 14px; }
.sh-t { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sh-t h3 { font-size: 17px; font-weight: 800; margin: 0; color: var(--g900); }
.sh-x { width: 34px; height: 34px; border-radius: 11px; background: var(--card); box-shadow: var(--sh); display: grid; place-items: center; color: var(--mut); }

/* ============ 15) صفحة التفاصيل (تصميم العرض) ============ */
.gal { height: 230px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--g100), var(--gold-50)); display: grid; place-items: center; font-size: 84px; position: relative; box-shadow: var(--sh); margin-bottom: 14px; }
.gal .cnt { position: absolute; bottom: 10px; right: 10px; background: rgba(27,42,32,.78); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); }
.gal .acts { position: absolute; top: 10px; left: 10px; display: flex; gap: 7px; }
.gal .acts button { width: 36px; height: 36px; border-radius: 12px; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--g800); box-shadow: var(--sh); }
.gal .vet-b { position: absolute; top: 12px; right: 12px; font-size: 11px; padding: 5px 11px; }
.dt-t { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dt-t h1 { font-size: 19px; font-weight: 800; margin: 0; color: var(--g900); }
.dt-t .pr { text-align: left; flex: 0 0 auto; }
.dt-t .pr b { font-family: var(--font-h); font-size: 23px; color: var(--g800); }
.dt-t .pr small { display: block; font-size: 10.5px; color: var(--mut); }
.dt-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); margin: 6px 0 12px; flex-wrap: wrap; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.spec { background: var(--card); border-radius: 14px; padding: 10px 6px; text-align: center; box-shadow: var(--sh); }
.spec span { display: block; font-size: 10px; color: var(--faint); font-weight: 700; }
.spec b { font-size: 12.5px; }
.dcard { background: var(--card); border-radius: var(--r-lg); padding: 15px 16px; box-shadow: var(--sh); margin-bottom: 12px; }
.dcard-h { display: flex; align-items: center; gap: 10px; }
.dcard-h .ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }
.dcard-h b { font-size: 13.5px; display: block; }
.dcard-h span { font-size: 11.5px; color: var(--mut); }
.dcard-h .go { margin-right: auto; color: var(--gold-d); flex: 0 0 auto; }
.ai-bar { margin-top: 12px; }
.ai-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--g600), var(--gold) 60%, var(--red)); position: relative; }
.ai-pin { position: absolute; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3.5px solid var(--g800); transform: translateX(50%); }
.ai-lbls { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); font-weight: 700; margin-top: 6px; }
.ai-verdict { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 800; color: var(--g800); }
.seller { display: flex; align-items: center; gap: 11px; }
.ava { width: 46px; height: 46px; border-radius: 50%; background: var(--g800); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; flex: 0 0 auto; }
.seller b { font-size: 13.5px; display: flex; align-items: center; gap: 5px; }
.seller .st { font-size: 11.5px; color: var(--mut); }
.cbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: var(--card); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; gap: 9px; box-shadow: rgba(27,42,32,.14) 0 -8px 30px; border-radius: 22px 22px 0 0; z-index: 50; }
.cbar .btn { flex: 1 1 0%; }
.cbar .sq { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; }
.sq.call { background: var(--g50); color: var(--g800); }
.sq.wa { background: #E7F6EC; color: #1F9D55; }

/* ============ 16) صفحة المزاد المباشر (تصميم العرض) ============ */
.live-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; padding: 6px 13px; border-radius: var(--pill); }
.watchers { font-size: 11.5px; color: var(--mut); font-weight: 700; }
.cd { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.cd .seg { background: var(--g900); color: #fff; border-radius: 14px; padding: 10px 0; width: 74px; text-align: center; }
.cd .seg b { font-family: var(--font-h); font-size: 22px; display: block; font-variant-numeric: tabular-nums; }
.cd .seg span { font-size: 9.5px; opacity: .7; font-weight: 700; }
.cd .seg.hot { background: var(--red); }
.cur-bid { text-align: center; background: var(--card); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh); margin-bottom: 12px; }
.cur-bid span { font-size: 11.5px; color: var(--mut); font-weight: 700; }
.cur-bid .v { font-family: var(--font-h); font-size: 34px; font-weight: 800; color: var(--g800); margin: 4px 0; }
.cur-bid .v small { font-size: 14px; }
.cur-bid .mi { font-size: 11px; color: var(--faint); }
.top-flag { display: inline-flex; align-items: center; gap: 6px; background: var(--g100); color: var(--g800); font-size: 12px; font-weight: 800; padding: 6px 14px; border-radius: var(--pill); margin-top: 8px; }
.top-flag.out { background: var(--red-50); color: var(--red); }
.qbids { display: flex; gap: 8px; margin-bottom: 12px; }
.qbid { flex: 1 1 0%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 4px; text-align: center; font-weight: 800; font-size: 14px; font-family: var(--font-h); color: var(--g800); transition: .13s; }
.qbid:active { transform: scale(.96); }
.qbid.main { background: var(--g800); color: #fff; border-color: var(--g800); box-shadow: var(--sh-g); }
.bfeed { display: flex; flex-direction: column; gap: 8px; }
.bid-r { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 13px; box-shadow: var(--sh); animation: .3s ease 0 1 normal none running bidIn; }
.bid-r .ava { width: 34px; height: 34px; font-size: 11px; }
.bid-r b { font-size: 12.5px; display: block; }
.bid-r span { font-size: 10.5px; color: var(--faint); }
.bid-r .amt { margin-right: auto; font-family: var(--font-h); font-weight: 800; font-size: 15px; color: var(--g800); }
.bid-r.me { background: var(--g50); border: 1.5px solid var(--g600); }
.rules { font-size: 11px; color: var(--faint); line-height: 1.7; text-align: center; margin-top: 14px; }

/* ============ 17) صفحة البائع (تصميم العرض) ============ */
.tr-hero { background: linear-gradient(140deg, var(--g900), var(--g800)); border-radius: var(--r-lg); padding: 20px 16px; color: #fff; text-align: center; margin-bottom: 12px; position: relative; overflow: hidden; }
.tr-hero::after { content: "🐑"; position: absolute; left: -8px; bottom: -16px; font-size: 80px; opacity: .12; }
.tr-hero .ava { width: 70px; height: 70px; font-size: 22px; margin: 0 auto 10px; background: var(--gold); color: #3A2E10; border: 3px solid rgba(255,255,255,.4); }
.tr-hero h1 { font-size: 18px; margin: 0 0 4px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.tr-hero .sub { font-size: 12px; opacity: .85; }
.tr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tr-stat { background: var(--card); border-radius: var(--r); padding: 12px 6px; text-align: center; box-shadow: var(--sh); }
.tr-stat b { font-family: var(--font-h); font-size: 17px; color: var(--g800); display: block; }
.tr-stat span { font-size: 10.5px; color: var(--mut); font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; justify-content: center; }
.tabs2 { display: flex; background: var(--card); border-radius: var(--pill); padding: 4px; box-shadow: var(--sh); margin-bottom: 14px; }
.tab2 { flex: 1 1 0%; padding: 10px; border-radius: var(--pill); font-size: 13px; font-weight: 800; color: var(--mut); }
.tab2.on { background: var(--g800); color: #fff; }
.rev { background: var(--card); border-radius: var(--r); padding: 13px 14px; box-shadow: var(--sh); margin-bottom: 9px; }
.rev-h { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.rev-h .ava { width: 34px; height: 34px; font-size: 11px; background: var(--g100); color: var(--g800); }
.rev-h b { font-size: 12.5px; display: block; }
.rev-h span { font-size: 10.5px; color: var(--faint); }
.rev p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--mut); }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 12px; }

/* ============ 18) صفحة الأسعار (تصميم العرض) ============ */
.px-card { background: var(--card); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.px-card .e { font-size: 30px; flex: 0 0 auto; }
.px-card .bd { flex: 1 1 0%; }
.px-card .bd b { font-family: var(--font-h); font-size: 19px; display: block; }
.px-card .bd b small { font-size: 11px; color: var(--mut); font-weight: 600; }
.px-card .bd span { font-size: 11px; color: var(--mut); }
.px-tbl { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; margin-top: 14px; }
.px-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
.px-row:last-child { border: none; }
.px-row b { font-family: var(--font-h); }
.px-note { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); margin-top: 12px; line-height: 1.6; }
.note { font-size: 11px; color: var(--faint); line-height: 1.7; margin-top: 10px; }

/* ============ 19) الحاسبة وعناصر النماذج (تصميم العرض) ============ */
.seg-r { display: flex; gap: 8px; }
.seg-b { flex: 1 1 0%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; font-size: 12.5px; font-weight: 700; transition: .14s; }
.seg-b .e { display: block; font-size: 22px; margin-bottom: 3px; }
.seg-b.on { border-color: var(--g800); background: var(--g50); color: var(--g800); box-shadow: 0 0 0 1px var(--g800); }
input[type="range"] { width: 100%; accent-color: var(--g800); }
.rng-v { display: flex; justify-content: space-between; font-size: 12px; color: var(--mut); font-weight: 700; }
.rng-v b { color: var(--g800); font-size: 15px; font-family: var(--font-h); }
.res-note { background: var(--gold-50); border: 1px solid var(--gold-100); border-radius: 14px; padding: 11px 13px; font-size: 12px; line-height: 1.7; color: var(--gold-d); margin-top: 12px; }
.gov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.gov { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 4px; text-align: center; font-size: 12px; font-weight: 700; }
.gov.on { border-color: var(--g800); background: var(--g50); color: var(--g800); }
.sum-r { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.sum-r b { font-family: var(--font-h); }
.sum-r.tot { border: none; font-size: 15px; }
.sum-r.tot b { color: var(--g800); font-size: 19px; }
.stepper { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: 14px; padding: 6px; border: 1.5px solid var(--line); width: fit-content; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; background: var(--g50); color: var(--g800); font-size: 19px; font-weight: 800; }
.stepper b { font-family: var(--font-h); font-size: 16px; min-width: 26px; text-align: center; }
.cert { border: 1.5px dashed var(--g600); border-radius: var(--r); padding: 14px; background: var(--g50); }
.cert-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cert-h .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--g800); color: #fff; display: grid; place-items: center; font-size: 20px; }
.cert-h b { font-size: 13.5px; display: block; }
.cert-h span { font-size: 11px; color: var(--mut); }
.cert-r { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 0; border-bottom: 1px solid rgba(46,94,62,.12); }
.cert-r:last-child { border: none; }
.cert-r span { color: var(--mut); }
.cert-r b { font-weight: 700; }
.cert-f { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 10.5px; color: var(--faint); }
.qr { width: 46px; height: 46px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--g900) 0 3px, transparent 3px 6px), repeating-linear-gradient(0deg, var(--g900) 0 3px, #fff 3px 6px); }

/* حقول نمط العرض الجديد (post.html وغيرها) */
.f-in { width: 100%; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; font-size: 14px; font-family: var(--font-b); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.f-in:focus { border-color: var(--g800); box-shadow: 0 0 0 1px var(--g800); }
.f-in::placeholder { color: var(--faint); }
textarea.f-in { resize: vertical; min-height: 96px; line-height: 1.8; }
select.f-in { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F6E63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px; }
.f-hint { display: block; font-size: 11px; color: var(--faint); font-weight: 600; margin-top: 7px; }
.tel { direction: ltr; text-align: left; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.ph-up { width: 100%; border: 1.5px dashed var(--g600); background: var(--g50); border-radius: var(--r); padding: 22px 14px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--g800); font-weight: 800; font-size: 13.5px; }
.ph-up small { font-size: 11px; color: var(--mut); font-weight: 600; }
.done-row { display: none; align-items: center; gap: 11px; }
.done-row .ok { width: 40px; height: 40px; border-radius: 13px; background: var(--g100); color: var(--g800); display: grid; place-items: center; font-size: 18px; flex: 0 0 auto; }
.done-row b { font-size: 13.5px; display: block; }
.done-row .num-echo { font-size: 12px; color: var(--mut); direction: ltr; display: inline-block; font-variant-numeric: tabular-nums; }
.done-row .edit { margin-right: auto; font-size: 12px; font-weight: 800; color: var(--gold-d); flex: 0 0 auto; }

/* مؤشّر خطوات النشر */
.steps { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0; }
.step { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--faint); }
.step .num, .step-num { width: 27px; height: 27px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); display: inline-grid; place-items: center; font-family: var(--font-h); font-size: 13px; }
.step.on { color: var(--g800); }
.step.on .num { background: var(--g800); color: #fff; box-shadow: var(--sh-g); }
.step.done { color: var(--g800); }
.step.done .num { background: var(--g100); color: var(--g800); box-shadow: none; }
.steps .arr { color: var(--faint); font-size: 14px; font-weight: 800; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ============ 20) البطل القديم (hero) ============ */
.hero {
  position: relative;
  min-height: 250px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 18px;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: brightness(1.05) saturate(.9); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, rgba(245,242,234,.55) 0%, rgba(245,242,234,.85) 70%, rgba(245,242,234,.95) 100%);
}
.hero .container { position: relative; z-index: 3; max-width: 760px; }
.hero h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--g900);
  letter-spacing: -.3px;
}
.hero h1 .accent { color: var(--gold-d); }
.hero .lead { font-size: clamp(14px, 2.3vw, 16px); color: var(--mut); max-width: 620px; margin: 0 auto 20px; font-weight: 500; }
.hero-search {
  display: flex;
  max-width: 560px;
  margin: 0 auto 20px;
  background: var(--card);
  border-radius: var(--pill);
  padding: 5px;
  box-shadow: var(--sh-md);
}
.hero-search input { flex: 1; border: none; padding: 11px 18px; font-size: 15px; background: transparent; outline: none; color: var(--ink); min-width: 0; }
.hero-search button { background: var(--g800); color: #fff; border-radius: var(--pill); padding: 10px 22px; font-weight: 700; font-size: 14px; transition: background .2s; }
.hero-search button:hover { background: var(--g900); }
.hero-stats { display: flex; justify-content: center; gap: clamp(18px, 5vw, 44px); flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong { font-size: clamp(17px, 3vw, 22px); color: var(--g900); font-weight: 800; font-family: var(--font-h); }
.hero-stats span { font-size: 11.5px; color: var(--mut); }

/* ============ 21) شبكات الفئات القديمة ============ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-card {
  background: var(--card);
  border-radius: var(--r);
  padding: 18px 10px;
  text-align: center;
  box-shadow: var(--sh);
  transition: transform .2s ease, box-shadow .2s ease;
  display: block; cursor: pointer;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.cat-icon { font-size: 38px; margin-bottom: 8px; line-height: 1; }
.cat-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.cat-card span { font-size: 11.5px; color: var(--mut); }

/* ============ 22) لماذا/الفوتر القديم ============ */
.why { background: linear-gradient(180deg, transparent, var(--line-soft)); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.why-item { background: var(--card); padding: 20px; border-radius: var(--r); text-align: center; box-shadow: var(--sh); transition: transform .2s; }
.why-item:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.why-icon { width: 54px; height: 54px; background: linear-gradient(140deg, var(--g800), var(--g600)); color: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 25px; margin: 0 auto 12px; box-shadow: var(--sh-g); }
.why-item h3 { font-size: 15.5px; margin-bottom: 6px; color: var(--g900); }
.why-item p { font-size: 13px; color: var(--mut); }

.footer {
  background: var(--g900);
  color: rgba(255,255,255,.85);
  padding: 30px 16px 18px;
  margin-top: 40px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 auto 20px; max-width: var(--container); }
.footer h4 { color: var(--gold); margin-bottom: 8px; font-size: 14.5px; font-family: var(--font-h); }
.footer a { display: block; color: rgba(255,255,255,.72); padding: 3px 0; font-size: 13px; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; text-align: center; font-size: 12px; opacity: .7; }

/* ============ 23) زرّ الإضافة العائم القديم ============ */
.fab {
  position: fixed;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: max(16px, calc(50% - 199px));
  width: 56px; height: 56px;
  background: linear-gradient(140deg, var(--gold), var(--gold-d));
  color: #fff;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800;
  box-shadow: rgba(201,155,63,.4) 0 10px 22px;
  z-index: 49;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover { transform: scale(1.07); box-shadow: rgba(201,155,63,.55) 0 14px 28px; }

/* ============ 24) النماذج القديمة ============ */
.form-wrap {
  max-width: 430px;
  margin: 20px auto;
  background: var(--card);
  padding: 26px 20px;
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}
.form-wrap-wide { max-width: 430px; }
.form-wrap h1 { font-size: 22px; color: var(--g900); margin-bottom: 6px; text-align: center; }
.form-wrap .sub { text-align: center; color: var(--mut); margin-bottom: 22px; font-size: 13px; }
.field, .form-group { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 13px; color: var(--g900); }
.field label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--g800);
  box-shadow: 0 0 0 1px var(--g800);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { min-height: 110px; resize: vertical; }
.input.error, .select.error, .textarea.error, .f-in.error {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.help { font-size: 12px; color: var(--mut); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* اختيار الفئة */
.cat-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.cat-pick {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 4px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.cat-pick:hover { border-color: var(--g600); transform: translateY(-2px); }
.cat-pick.active {
  border-color: var(--g800);
  background: var(--g50);
  box-shadow: 0 0 0 1px var(--g800);
}
.cat-pick .ico { font-size: 30px; line-height: 1; }
.cat-pick .nm { font-size: 11px; font-weight: 700; color: var(--ink); }
.cat-pick.active .nm { color: var(--g800); }

/* نوع البيع */
.sale-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sale-type-opt {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 10px;
  cursor: pointer;
  transition: all .2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.sale-type-opt input { position: absolute; opacity: 0; }
.sale-type-opt.active {
  border-color: var(--g800);
  background: var(--g50);
  box-shadow: 0 0 0 1px var(--g800);
}
.sale-type-opt .ico { font-size: 28px; line-height: 1; }
.sale-type-opt .nm { font-weight: 800; color: var(--ink); font-size: 14px; }
.sale-type-opt .dsc { font-size: 11.5px; color: var(--mut); }

/* رفع الصور */
.img-up { }
.img-up-btn {
  width: 100%;
  padding: 22px 14px;
  border: 1.5px dashed var(--g600);
  border-radius: var(--r);
  background: var(--g50);
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  display: block;
  font-family: inherit;
  color: var(--g800);
}
.img-up-btn:hover { border-color: var(--g800); background: var(--g100); }
.img-up-btn.disabled { opacity: .5; pointer-events: none; cursor: not-allowed; }
.img-up-icon { font-size: 34px; margin-bottom: 4px; line-height: 1; }
.img-up-text { font-weight: 800; color: var(--g800); font-size: 13.5px; }
.img-up-hint { font-size: 12px; color: var(--mut); margin-top: 4px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.img-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line-soft);
  border: 2px solid var(--line);
}
.img-tile.cover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,155,63,.25); }
.img-tile img { width: 100%; height: 100%; object-fit: cover; }
.img-tile-actions { position: absolute; top: 4px; left: 4px; display: flex; gap: 4px; }
.img-tile-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(27,42,32,.65);
  color: #fff;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.img-tile-btn:hover { background: rgba(27,42,32,.85); }
.img-tile-btn.star { background: rgba(255,255,255,.85); color: var(--gold-d); }
.img-tile-btn.star.active { background: var(--gold); color: #3A2E10; }
.img-tile-btn.del:hover { background: var(--red); }
.cover-label {
  position: absolute; bottom: 4px; right: 4px;
  background: var(--gold); color: #3A2E10;
  font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: var(--pill);
}

/* معاينة الفيديو */
.vid-preview { margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.vid-preview video { width: 100%; max-height: 280px; display: block; background: #000; }
.vid-remove {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px;
  border: 1.5px solid var(--red);
  color: var(--red);
  background: var(--card);
  border-radius: var(--pill);
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.vid-remove:hover { background: var(--red); color: #fff; }

/* كابتشا */
.captcha-field {
  background: var(--g50);
  border: 1px solid var(--g100);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-q {
  background: var(--card);
  border: 1.5px solid var(--line);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 18px; font-weight: 800;
  color: var(--g900);
  font-family: monospace;
  direction: ltr;
  letter-spacing: 2px;
  min-width: 110px;
  text-align: center;
}

/* GPS / صوت / قراءة */
.gps-row { display: flex; gap: 8px; align-items: stretch; }
.gps-row .select { flex: 1; }
.gps-btn {
  background: var(--card);
  border: 1.5px solid var(--g800);
  color: var(--g800);
  padding: 0 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700; font-size: 13px; font-family: inherit;
  white-space: nowrap;
  transition: all .15s;
}
.gps-btn:hover { background: var(--g800); color: #fff; }
.voice-search-btn {
  background: transparent; border: none;
  padding: 0 10px; font-size: 22px;
  cursor: pointer; transition: transform .2s;
  color: var(--g800);
}
.voice-search-btn:hover { transform: scale(1.15); }
.voice-search-btn.listening { animation: voicePulse 1s infinite; color: var(--red); }
.tts-btn {
  background: var(--g50);
  border: 1.5px solid var(--g800);
  color: var(--g800);
  padding: 6px 12px;
  border-radius: var(--pill);
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 12px;
  transition: all .15s;
}
.tts-btn:hover { background: var(--g800); color: #fff; }
.tts-btn.speaking { background: var(--gold); border-color: var(--gold-d); color: #3A2E10; }

/* ============ 25) المودال (نمط الورقة السفلية) ============ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(18,30,21,.55);
  display: none; align-items: flex-end; justify-content: center;
  z-index: 200;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; animation: fadeIn .2s ease; }
.modal {
  background: var(--sand);
  border-radius: 26px 26px 0 0;
  max-width: 430px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  animation: sheetUp .3s cubic-bezier(.2,.8,.3,1);
}
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 24px 16px; }
  .modal { border-radius: 26px; animation: slideUp .25s ease; }
  .modal-wide { max-width: 720px; }
}
.modal-close {
  position: absolute;
  top: 14px; left: 14px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(27,42,32,.78);
  color: #fff;
  font-size: 24px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 4px 12px rgba(27,42,32,.3);
}
.modal-close:hover { background: rgba(27,42,32,.92); transform: scale(1.08); }
.modal-close:active { transform: scale(.95); }
.modal-body { padding: 18px; }
.modal-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; color: var(--g900); font-family: var(--font-h); }
.modal-price { font-size: 24px; font-weight: 800; color: var(--g800); margin-bottom: 12px; font-family: var(--font-h); }
.modal-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.modal-desc { color: var(--ink); margin-bottom: 16px; line-height: 1.8; white-space: pre-wrap; font-size: 13.5px; }
.modal-seller { background: var(--card); padding: 14px; border-radius: 14px; margin-bottom: 16px; box-shadow: var(--sh); }
.modal-seller-name { font-weight: 700; margin-bottom: 4px; }
.modal-seller-phone { color: var(--mut); font-size: 14px; direction: ltr; text-align: right; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.phone-masked-hint { background: var(--gold); color: #3A2E10; padding: 3px 10px; border-radius: var(--pill); font-size: 11px; font-weight: 700; direction: rtl; }
.phone-clickable { cursor: pointer; transition: background .2s; border-radius: 10px; padding: 6px 8px; }
.phone-clickable:hover { background: var(--gold-50); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-subactions {
  display: flex; justify-content: space-around;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.seller-link { color: var(--g800); cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.seller-link:hover { color: var(--g900); }

/* فيديو المودال */
.modal-media { display: block; }
@media (min-width: 720px) {
  .modal-wide .modal-media.has-video {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
  }
  .modal-wide .modal-media.has-video .gallery {
    border-radius: 0 26px 0 0;
    aspect-ratio: auto;
    min-height: 320px;
  }
  .modal-wide .modal-media.has-video .modal-video-wrap { border-radius: 26px 0 0 0; overflow: hidden; }
}
.modal-video-wrap { position: relative; background: #000; display: flex; flex-direction: column; }
.modal-video-label {
  background: linear-gradient(135deg, var(--g800), var(--g900));
  color: #fff;
  padding: 9px 16px;
  font-weight: 700; font-size: 13px;
  text-align: center;
  letter-spacing: .3px;
}
.modal-video-wrap video,
.modal-video-wrap iframe {
  width: 100%; flex: 1;
  min-height: 240px; max-height: 360px;
  background: #000;
  display: block;
  object-fit: contain;
  border: 0;
}

/* ============ 26) معرض الصور (المودال) ============ */
.gallery {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--g100), var(--gold-50));
  display: flex; align-items: center; justify-content: center;
  font-size: 100px; color: var(--g800);
  overflow: hidden;
  border-radius: 26px 26px 0 0;
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  background: #141a15;
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery img.active { opacity: 1; }
.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(27,42,32,.5);
  color: #fff;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.gallery-nav:hover { background: rgba(27,42,32,.75); }
.gallery-prev { right: 12px; }
.gallery-next { left: 12px; }
.gallery-dots {
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 3;
}
.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .2s, width .2s;
  cursor: pointer;
}
.gallery-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }
.gallery-views {
  position: absolute;
  top: 12px; right: 56px;
  background: rgba(27,42,32,.6);
  color: #fff;
  padding: 5px 12px;
  border-radius: var(--pill);
  font-size: 12px; font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
}

/* ============ 27) ورقة المشاركة ============ */
.share-sheet {
  position: fixed; inset: 0;
  background: rgba(18,30,21,.55);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 250;
  animation: fadeIn .2s ease;
}
.share-sheet-inner {
  background: var(--sand);
  border-radius: 26px 26px 0 0;
  padding: 22px 18px 28px;
  width: 100%;
  max-width: 430px;
  animation: slideUpSheet .25s ease;
  max-height: 86vh;
  overflow-y: auto;
}
.share-sheet h3 { font-size: 17px; color: var(--g900); margin: 0 0 14px; text-align: center; }
.share-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-buttons .btn { width: 100%; }
@media (min-width: 640px) {
  .share-sheet { align-items: center; }
  .share-sheet-inner { border-radius: 26px; max-width: 420px; }
}

/* ============ 28) صفحة البائع القديمة ============ */
.seller-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(140deg, var(--g900), var(--g800));
  color: #fff;
  border-radius: var(--r-lg);
  padding: 20px 18px;
  margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.seller-card::after { content: "🐑"; position: absolute; left: -8px; bottom: -16px; font-size: 70px; opacity: .12; }
.seller-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: #3A2E10;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.4);
}
.seller-info h1 {
  font-size: 19px;
  color: #fff;
  margin-bottom: 4px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.seller-info { min-width: 0; }

/* ============ 29) بانر العيد ============ */
.eid-section { padding: 20px 0 4px; }
.eid-banner {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(201,155,63,.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(201,155,63,.18), transparent 50%),
    linear-gradient(135deg, var(--g900), var(--g800) 50%, var(--g600));
  color: #fff;
  padding: 30px 20px;
  border-radius: var(--r-lg);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--sh-g);
}
.eid-stars { position: absolute; top: 8px; left: 0; right: 0; font-size: 16px; opacity: .35; letter-spacing: 12px; pointer-events: none; }
.eid-banner::after {
  content: '🌙 ✨ 🐑 ✨ 🌟 ✨ 🐄 ✨ 🌙';
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  font-size: 16px; opacity: .35; letter-spacing: 12px;
  pointer-events: none;
}
.eid-content { position: relative; z-index: 2; }
.eid-icon { font-size: 50px; margin-bottom: 8px; filter: drop-shadow(0 4px 12px rgba(201,155,63,.6)); }
.eid-banner h2 { font-size: clamp(20px, 4vw, 28px); color: #fff; margin-bottom: 8px; font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.eid-banner p { color: rgba(255,255,255,.92); margin-bottom: 16px; font-size: clamp(13px, 2vw, 15px); max-width: 600px; margin-inline: auto; }
.eid-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============ 30) المزادات القديمة ============ */
.auctions-section { padding: 20px 0 4px; }
.auctions-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.auction-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(201,155,63,.2), 0 0 0 1px rgba(201,155,63,.1);
  cursor: pointer;
  transition: all .25s ease;
  display: flex; flex-direction: column;
}
.auction-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(201,155,63,.35); border-color: var(--gold-d); }
.auction-card-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--g100), var(--gold-50));
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  flex-shrink: 0;
}
.auction-card-img img,
.auction-card-img video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.auction-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--red);
  color: #fff;
  padding: 5px 13px;
  border-radius: var(--pill);
  font-weight: 800; font-size: 12px;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(194,75,61,.4);
  animation: auctionPulse 2s infinite;
}
.auction-countdown {
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  background: rgba(27,42,32,.82);
  color: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-family: var(--font-h);
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  z-index: 2;
  backdrop-filter: blur(8px);
  text-align: center;
  letter-spacing: 1px;
  direction: ltr;
}
.auction-countdown.urgent { background: rgba(194,75,61,.92); animation: urgentBlink .8s infinite; }
.auction-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.auction-card-body h3 {
  font-size: 15px; font-weight: 800; color: var(--g900);
  margin-bottom: 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 42px;
}
.auction-current {
  background: var(--gold-50);
  border: 1.5px solid var(--gold-100);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  margin-bottom: 10px;
}
.auction-current .lbl { font-size: 11px; color: var(--gold-d); font-weight: 700; letter-spacing: .5px; }
.auction-current .amt {
  font-size: 25px; font-weight: 900;
  color: #7A5A1E;
  font-family: var(--font-h);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.auction-current .amt small { font-size: 14px; opacity: .8; }
.auction-meta-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--mut);
  margin-bottom: 10px; padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.auction-bid-btn {
  background: linear-gradient(140deg, var(--gold), var(--gold-d));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 14px;
  font-weight: 800; font-size: 15px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(201,155,63,.4);
}
.auction-bid-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,155,63,.55); }

/* مودال المزاد */
.modal.auction-modal {
  border: 2px solid var(--gold);
  box-shadow: 0 30px 80px rgba(27,42,32,.4), 0 0 0 6px rgba(201,155,63,.15);
}
.auction-hero {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  padding: 18px;
  text-align: center;
  border-bottom: 1px solid var(--gold);
}
.auction-hero .countdown-big {
  display: flex; justify-content: center; align-items: center;
  gap: 6px;
  direction: ltr;
  font-family: var(--font-h);
  flex-wrap: wrap;
}
.cd-block {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--g900);
  color: var(--gold-100);
  border-radius: 12px;
  padding: 8px 10px 6px;
  min-width: 56px;
  box-shadow: 0 4px 10px rgba(27,42,32,.25), inset 0 1px 0 rgba(255,255,255,.12);
}
.cd-num { font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.cd-lbl { font-size: 10px; font-weight: 700; margin-top: 4px; opacity: .9; }
.cd-sep { color: var(--g900); font-weight: 900; font-size: 24px; align-self: flex-start; margin-top: 8px; opacity: .5; }
.countdown-big.urgent .cd-block {
  background: var(--red);
  color: #FDF1EF;
  animation: pulse-block 1.2s ease infinite;
}
.cd-expired { font-size: 22px; font-weight: 800; color: var(--red); }
.auction-hero .countdown-label { font-size: 12px; color: var(--gold-d); font-weight: 700; margin-bottom: 4px; }
.auction-hero .bid-now { font-size: 34px; font-weight: 900; color: #7A5A1E; margin-top: 12px; font-family: var(--font-h); }
.auction-hero .bid-now-label { font-size: 13px; color: var(--gold-d); font-weight: 700; }
.auction-hero .meta { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-size: 13px; color: #7A5A1E; font-weight: 700; }
.bid-history {
  margin-top: 14px;
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--sh);
}
.bid-history h4 { font-size: 13px; color: var(--g900); margin-bottom: 8px; }
.bid-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.bid-row:last-child { border-bottom: none; }
.bid-row .who { color: var(--mut); }
.bid-row .amt { font-weight: 800; color: var(--g800); font-family: var(--font-h); font-variant-numeric: tabular-nums; }
.bid-row .when { color: var(--faint); font-size: 11px; }
.btn-bid-place {
  background: linear-gradient(140deg, var(--gold), var(--gold-d));
  color: #fff;
  font-size: 16px;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(201,155,63,.4);
}
.btn-bid-place:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,155,63,.55); }

/* ============ 31) شريط الأكثر مشاهدة (Ticker) ============ */
.ticker-bar {
  background: linear-gradient(90deg, var(--g900), var(--g800) 50%, var(--g900));
  color: #fff;
  overflow: hidden;
  position: relative;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  direction: ltr;
  box-shadow: 0 4px 18px rgba(27,42,32,.15) inset;
}
.ticker-label {
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(140deg, var(--gold), var(--gold-d));
  color: #3A2E10;
  padding: 0 16px;
  font-weight: 800; font-size: 13px;
  z-index: 3;
  height: 100%;
  display: flex; align-items: center; gap: 6px;
  direction: rtl;
  box-shadow: -6px 0 16px rgba(27,42,32,.15);
}
.ticker-track {
  display: flex; gap: 28px;
  white-space: nowrap;
  animation: tickerScroll 90s linear infinite;
  padding: 12px 160px 12px 12px;
  width: max-content;
  align-items: center;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: linear-gradient(180deg, #FFFFFF, var(--gold-50));
  color: var(--g900);
  border-radius: 12px;
  border: 2px solid var(--gold);
  cursor: pointer;
  font-size: 13px; font-weight: 700;
  direction: rtl;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(27,42,32,.25), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.ticker-item:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 22px rgba(27,42,32,.35), 0 0 0 4px var(--gold);
}
.ticker-emoji { font-size: 20px; }
.ticker-title { color: var(--g900); font-weight: 800; }
.ticker-price {
  color: var(--gold-d);
  font-weight: 900;
  background: rgba(201,155,63,.18);
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid rgba(201,155,63,.4);
  font-variant-numeric: tabular-nums;
}
.ticker-gov { color: var(--g800); opacity: .85; font-size: 12px; font-weight: 700; }

/* ============ 32) لافتة تثبيت التطبيق (PWA) ============ */
.install-banner {
  position: fixed;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 406px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  z-index: 90;
  padding: 12px 14px;
  animation: slideUpBanner .35s ease;
}
.install-banner-inner { display: flex; align-items: center; gap: 12px; }
.install-icon { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; }
.install-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.install-text strong { font-size: 13.5px; color: var(--g900); font-weight: 800; margin-bottom: 2px; }
.install-text span { font-size: 11.5px; color: var(--mut); }
.install-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--mut);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.install-close:hover { background: var(--line); color: var(--ink); }
.ios-install-tip {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 360px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  padding: 20px;
  z-index: 250;
  border: 1px solid var(--line);
}
.ios-install-tip strong { display: block; color: var(--g900); margin-bottom: 8px; font-size: 15px; }
.ios-install-tip p { font-size: 13px; color: var(--ink); margin: 0 0 6px; line-height: 1.7; }
.ios-install-tip button {
  margin-top: 10px;
  width: 100%;
  padding: 9px;
  background: var(--g800);
  color: #fff;
  border-radius: var(--pill);
  font-weight: 700;
}

/* ============ 33) التوست ============ */
.toast {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--g900);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--pill);
  font-weight: 700; font-size: 13px;
  box-shadow: var(--sh-md);
  z-index: 300;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: 92vw;
  text-align: center;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--red); }
.toast.success { background: var(--g800); }

/* ============ 34) شريط الفلاتر القديم ============ */
.filter-bar {
  background: var(--card);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--sh);
}
.filter-bar-title {
  padding: 12px 16px;
  font-weight: 800; font-size: 13.5px;
  color: var(--g900);
  background: var(--g50);
  border-bottom: 1px solid var(--line-soft);
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
  align-items: end;
}
.filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; grid-column: 1 / -1; }

/* ============ 35) الفراغ / لا نتائج ============ */
.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--faint);
  font-size: 13px;
  grid-column: 1 / -1;
}
.empty-icon { font-size: 56px; margin-bottom: 12px; }

/* ============ 36) صفحة الإدارة ============ */
.admin-shell { padding: 16px 0 60px; min-height: 60vh; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.admin-stat {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh);
}
.admin-stat::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--g800);
}
.admin-stat.warn::before { background: var(--gold); }
.admin-stat.ok::before { background: var(--success); }
.admin-stat .label { font-size: 12px; color: var(--mut); margin-bottom: 6px; }
.admin-stat .value { font-size: 28px; font-weight: 800; color: var(--g900); line-height: 1; font-family: var(--font-h); }
.admin-stat .delta { font-size: 11.5px; color: var(--mut); margin-top: 6px; }
.admin-tabs {
  display: flex; gap: 6px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  padding: 10px 14px;
  font-weight: 700; font-size: 13px;
  color: var(--mut);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.admin-tab.active { color: var(--g900); border-color: var(--g800); }
.admin-tab .count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line-soft);
  color: var(--mut);
  font-size: 11.5px; font-weight: 700;
  padding: 1px 8px;
  border-radius: var(--pill);
  margin-right: 4px;
}
.admin-tab.active .count { background: var(--g800); color: #fff; }
.admin-row {
  background: var(--card);
  border-radius: var(--r);
  padding: 12px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: var(--sh);
  transition: all .15s ease;
}
.admin-row:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.admin-row-img {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  overflow: hidden;
}
.admin-row-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-row-info h4 { font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.admin-row-info .meta { font-size: 12px; color: var(--mut); display: flex; gap: 10px; flex-wrap: wrap; }
.admin-row-info .meta .price { color: var(--g800); font-weight: 700; }
.admin-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; grid-column: 1 / -1; }
.admin-row-actions .btn { flex: 1; }
.visit-list {
  background: var(--card);
  border-radius: var(--r);
  padding: 4px 0;
  max-height: 480px;
  overflow-y: auto;
  box-shadow: var(--sh);
}
.visit-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  gap: 8px;
}
.visit-item:last-child { border-bottom: none; }
.visit-item .when { color: var(--mut); font-size: 12px; }
.visit-item .what { font-weight: 600; }

/* ============ 37) ملاحظات العرض التجريبي ============ */
.demo-line { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--faint); margin-top: 6px; }
.demo-tiny { display: block; font-size: 10.5px; color: var(--faint); margin-top: 8px; }
.demo-mini { display: block; font-size: 10px; color: var(--faint); margin-top: 7px; }

/* ============ 38) روابط عامة ============ */
a.lcard, a.lcard:hover { color: var(--ink); }
a.idx-card, a.auc-mini, a.dcard { display: block; }
a.calc-card { width: 100%; }
.bnav a:hover { color: var(--faint); }
.bnav a.on:hover { color: var(--g800); }
.bnav a.bn-add:hover { color: #fff; }

/* ===== ترقيع الهيدر المضغوط (بعد الفحص البصري) ===== */
.top { gap: 8px; }
.top .logo small { white-space: nowrap; font-size: 10.5px; }
.top .nav-actions { gap: 6px; flex: 0 0 auto; display: flex; align-items: center; }
.top .nav-actions .btn { padding: 7px 11px; font-size: 11.5px; border-radius: 999px; white-space: nowrap; }
/* زر أضف إعلان بالهيدر مخفي — الزر الذهبي بالشريط السفلي يغني عنه */
.top .nav-actions .btn-primary { display: none; }
