﻿/* ===========================================
   سناب عنزة الرسمي - Custom Styles
   يعمل فوق Bootstrap 5.3.3 RTL
   =========================================== */

:root {
  --navy:         #1B3A5C;
  --navy-light:   #2C5582;
  --gold:         #C9A227;
  --gold-light:   #E8C84A;
  --bg:           #FBF8F1;
  --bg-card:      #FFFFFF;
  --bg-soft:      #F3EFE3;
  --text:         #2A2520;
  --text-dim:     #6B6354;
  --text-mute:    #9A9182;
  --border-color: #E5DCC2;
  --wa-green:     #25D366;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

* {
  font-family: 'Tajawal', sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Prevent iOS Safari auto-zoom on input focus (triggers when font-size < 16px) */
@media (max-width: 768px) {
  input, select, textarea,
  .form-control-custom, .form-select-custom,
  .pf-inp, .ied-inp {
    font-size: 16px !important;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('../img/Islamic\ wallpaper\ .jpg');
  background-size: 400px auto;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAVBAR ===== */
.main-nav {
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.main-nav .container-fluid {
  flex-wrap: nowrap;
  min-height: 0;
}

@keyframes goldStrokePulse {
  0%, 100% {
    box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0 6px 2px rgba(201,162,39,0.4);
  }
  50% {
    box-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 0 22px 8px rgba(201,162,39,0.95);
  }
}

.logo-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  image-rendering: -webkit-optimize-contrast;
  animation: goldStrokePulse 2s ease-in-out infinite;
}

.logo-img-lg {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 2px solid var(--gold);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  animation: goldStrokePulse 2s ease-in-out infinite;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.brand-sub {
  font-size: 9px;
  color: var(--text-mute);
}

.nav-link {
  font-size: 13px;
  color: var(--text-dim) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--gold) !important;
}

.navbar-tabs {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

.tab-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.45rem 1.25rem;
  border-radius: 20px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}

.tab-link:hover       { color: var(--navy); background: var(--bg-soft); }
.tab-link.active      { color: #fff; background: var(--navy); }

@media (max-width: 991px) {
  .navbar-tabs { display: none; }
}

/* Mobile navbar */
@media (max-width: 480px) {
  .logo-img-lg {
    width: 140px;
    height: 140px;
  }
  .brand-name {
    font-size: 13px;
  }
  .main-nav .btn-gold {
    font-size: 10px !important;
    padding: 0.3rem 0.65rem !important;
    white-space: nowrap;
  }
}

.btn-gold {
  background-color: var(--gold);
  color: #2A2208 !important;
  font-weight: 700;
  font-size: 12px;
  border: none;
}

.btn-gold:hover {
  background-color: var(--gold-light);
  color: #2A2208 !important;
}

/* ===== ADMIN BTN ===== */
.admin-btn {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(27,58,92,0.08);
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-size: 1.6rem;
  text-decoration: none;
  transition: background .18s, color .18s;
  left: 4rem !important;
}
.admin-btn:hover {
  background: var(--gold);
  color: #2A2208;
}

@media (max-width: 480px) {
  .admin-btn {
    left: 0.75rem !important;
  }
}

/* ===== HERO ===== */
.home-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3.5rem 1.5rem 3.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/Islamic%20wallpaper%20.jpg');
  background-size: 400px auto;
  background-repeat: repeat;
  opacity: 0.03;
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.home-hero-title {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.home-hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.78);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.home-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--gold);
  color: #2A2208;
  border: none;
  padding: 0.8rem 2.25rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 18px rgba(201,162,39,.42);
}

.home-hero-btn:hover {
  background: var(--gold-light);
  color: #2A2208;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,162,39,.55);
}

.home-hero-btn i { font-size: 1.15rem; }

/* ===== MAIN LAYOUT ===== */
.main-wrap {
  max-width: 1320px;
  margin: 0 auto;
}

.feed-col {
  padding: 1.75rem;
  border-left: 1px solid var(--border-color);
}

.side-col {
  padding: 1.75rem 1.25rem;
}

.col-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.col-label .dash {
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  display: inline-block;
}

.col-label .label-text {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
}

.col-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.ads-section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.ads-section-title::before,
.ads-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.ads-section-title::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

/* ===== POST CARDS ===== */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(27, 58, 92, 0.04);
  position: relative;
  scroll-margin-top: 80px;
}
.post-deep-link {
  animation: post-deep-link-glow 2.4s ease 0.8s both;
}
@keyframes post-deep-link-glow {
  0%   { box-shadow: 0 1px 3px rgba(27,58,92,0.04); }
  20%  { box-shadow: 0 0 0 3px var(--gold), 0 8px 28px rgba(201,162,39,0.35); }
  70%  { box-shadow: 0 0 0 3px var(--gold), 0 8px 28px rgba(201,162,39,0.35); }
  100% { box-shadow: 0 1px 3px rgba(27,58,92,0.04); }
}

.post-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 4px solid var(--border-color);
  border-radius: 10px;
  pointer-events: none;
  z-index: 10;
}

.post-img {
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.post-img::before,
.post-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../img/logo_pattern_background.png');
  background-repeat: repeat;
  background-size: 520px;
  filter: contrast(12) sepia(1) hue-rotate(-30deg) saturate(2) brightness(0.45);
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.post-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  cursor: zoom-in;
}

.post-img:has(img) { min-height: 0; }

.post-img i {
  font-size: 32px;
  color: var(--gold);
  opacity: 0.45;
}

.post-pin {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 20;
  background: var(--gold);
  color: #2A2208;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  letter-spacing: 0.02em;
}
.post-pin i { font-size: 12px; }

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.post-author-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--border-color);
}

.post-author-name {
  font-size: 13px;
  color: var(--text-dim);
}

.post-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.post-text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 14px;
}

.post-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

.post-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-readonly-tag {
  font-size: 14px;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== SLIDESHOW ===== */
.slideshow-wrap {
  margin-top: 1.75rem;
}

@media (min-width: 992px) {
  .slideshow-wrap {
    position: sticky;
    top: 68px;
  }
}

@media (max-width: 991.98px) {
  .side-col {
    display: flex;
    flex-direction: column;
  }
  .ad-frame   { order: 2; margin-top: 1.75rem; }
  .slideshow-wrap { order: 1; }
}

.slideshow-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.slideshow-title::before,
.slideshow-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(to left, var(--gold), transparent);
  border-radius: 1px;
  display: block;
}

.slideshow-title::after {
  background: linear-gradient(to right, var(--gold), transparent);
}

.slideshow {
  position: relative;
  width: 100%;
  height: 900px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(27,58,92,.18);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.slide.active { opacity: 1; }

@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, 1%); }
}

.slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
}

.slide.active .slide-bg img {
  animation: kenBurns 6s ease-in-out forwards;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,    rgba(5,15,30,.68) 0%, rgba(5,15,30,.18) 52%, transparent 100%),
    linear-gradient(to bottom, rgba(5,15,30,.12) 0%, transparent 25%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  z-index: 2;
}

.slide-caption-wrap {
  padding: 1rem 1rem 2.4rem;
}

.slide-caption-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.slide-caption {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.9);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  transition: background .2s;
}

.slide-arrow:hover { background: rgba(255,255,255,.32); }
.slide-arrow.prev  { right: 10px; }
.slide-arrow.next  { left: 10px; }

.slide-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 100%);
}

.slide-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: all .3s;
  cursor: pointer;
  flex-shrink: 0;
}

.s-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
}

.slide-counter {
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 700;
  font-family: Tajawal, sans-serif;
  background: rgba(0,0,0,.35);
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}

/* ===== ADS GRID ===== */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(27,58,92,.08);
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}

.ad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27,58,92,.14);
}

.ad-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(to left, var(--navy), var(--navy-light));
  border-bottom: 1.5px solid var(--gold);
}

.ad-card-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.04em;
}

.ad-card-badge {
  background: var(--gold);
  color: #2A2208;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
}

.ad-card-img {
  overflow: hidden;
  max-height: 220px;
}

.ad-card-img img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.ad-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 160px;
  gap: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-soft) 0px,
    var(--bg-soft) 8px,
    var(--bg-card) 8px,
    var(--bg-card) 16px
  );
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 1rem;
}

.ad-card-placeholder i {
  font-size: 1.6rem;
  color: var(--border-color);
}

.ad-placeholder-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
}

.ad-placeholder-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}

.ad-placeholder-footer {
  text-align: center;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--bg-soft);
}

.ad-card-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  direction: ltr;
  transition: background .18s, color .18s;
  font-family: 'Tajawal', sans-serif;
}

.ad-card-phone i { color: var(--gold); font-size: 14px; }
.ad-card-phone:hover { background: var(--navy); color: #fff; }
.ad-card-phone:hover i { color: var(--gold-light); }

.ads-cta-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; padding: 11px 20px;
  border: 1.5px dashed rgba(201,162,39,.7);
  border-radius: 12px;
  font-size: .88rem; font-weight: 700;
  color: #c9a227;
  background: rgba(201,162,39,.09);
  text-decoration: none; cursor: pointer; transition: all .18s;
}
.ads-cta-bar:hover { border-color: #c9a227; background: rgba(201,162,39,.18); color: #a07c10; }
.ads-cta-bar i { font-size: 1rem; }

@media (max-width: 580px) {
  .ads-grid { grid-template-columns: 1fr; }
  .ad-card-img { max-height: 320px; }
  .ad-card-img img { height: 320px; }
}



/* ===== FLOATING CLUSTER ===== */
.float-cluster {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1000;
}

.float-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.float-social::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: 11px;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 999;
}

.float-social:hover::after {
  opacity: 1;
}

.float-social:hover {
  transform: scale(1.13);
  box-shadow: 0 5px 16px rgba(0,0,0,0.25);
}

.float-social i { font-size: 20px; color: #fff; }

.float-social.s-x      { background: #000; }
.float-social.s-insta  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.float-social.s-snap   { background: #FFFC00; }
.float-social.s-tiktok { background: #010101; }
.float-social.s-snap i { color: #000; }

.wa-float {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.wa-float:hover { transform: scale(1.1); }

.wa-float i {
  font-size: 28px;
  color: #fff;
}

/* ===== FLOAT CLUSTER TOGGLE (mobile) ===== */
.float-toggle {
  display: none;
}

@media (max-width: 991.98px) {
  .float-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .float-cluster .float-social {
    transform: scale(0) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .float-cluster.open .float-social {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .float-cluster.open .float-social:nth-child(1) { transition-delay: 0.08s; }
  .float-cluster.open .float-social:nth-child(2) { transition-delay: 0.06s; }
  .float-cluster.open .float-social:nth-child(3) { transition-delay: 0.04s; }
  .float-cluster.open .float-social:nth-child(4) { transition-delay: 0.02s; }

  .float-cluster.open .float-toggle {
    background: var(--gold);
    transform: rotate(45deg);
  }
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--navy);
  padding: 2.25rem 0 1.5rem;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-light);
}

.footer-wa-number {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  text-align: right;
  text-decoration: none;
  unicode-bidi: bidi-override;
  direction: ltr;
}
.footer-wa-number:hover { color: var(--gold-light); }

.footer-tag {
  font-size: 12px;
  color: #A9BCCF;
}

.footer-contacts .row-item {
  font-size: 15px;
  color: #D8E0EA;
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-contacts .row-item i {
  color: var(--gold-light);
  font-size: 15px;
}

a.row-item {
  text-decoration: none;
  transition: color 0.18s;
}

a.row-item:hover { color: var(--gold-light); }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: #8FA4B8;
}

/* ===== SHARE (generated by animations.js) ===== */
.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.share-btn:hover,
.share-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.share-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: var(--bg-soft);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease, padding 0.26s ease;
}

.share-panel.open {
  max-height: 56px;
  padding: 10px 16px;
}

.js-tooltip {
  position: fixed;
  background: rgba(20, 20, 20, 0.82);
  color: #fff;
  font-size: 11px;
  font-family: 'Tajawal', sans-serif;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 5px;
  pointer-events: none;
  z-index: 99999;
  transition: opacity 0.12s ease;
}

.share-opt {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.share-opt:hover         { transform: scale(1.14); opacity: 0.88; color: #fff; }
.share-opt.s-wa          { background: #25D366; }
.share-opt.s-x           { background: #000; }
.share-opt.s-insta       { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.share-opt.s-snap        { background: #FFFC00; color: #1a1200; }
.share-opt.s-snap:hover  { color: #1a1200; }
.share-opt.s-copy {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  cursor: pointer;
}
.share-opt.s-copy:hover  { color: var(--navy); opacity: 1; }
.share-opt.s-copy.copied { background: #e8f7ee; border-color: #25a244; color: #1a7a35; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.9);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .feed-col {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 575.98px) {
  .feed-col,
  .side-col {
    padding: 1.25rem;
  }
}

/* ===== HOME LAYOUT ===== */
.home-content {
  max-width: 1020px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.home-section { margin-bottom: 6rem; }
#book-section { scroll-margin-top: 2rem; }

/* ===== CALENDAR ===== */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.month-nav-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); }

.month-btn {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .18s, border-color .18s;
  color: var(--navy); font-size: 18px;
}

.month-btn:hover { background: var(--bg-soft); border-color: var(--gold); }
.month-btn:disabled { opacity: 0.35; cursor: default; }

.cal-grid {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(27,58,92,.06);
}

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--navy); }

.cal-weekday {
  padding: 0.65rem 0; text-align: center;
  font-size: 0.8rem; font-weight: 600;
  color: var(--gold-light); letter-spacing: 0.02em;
}

.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }

.cal-day {
  min-height: 70px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.4rem 0.5rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; position: relative;
}

.cal-day:nth-child(7n) { border-right: none; }
.cal-day.empty { background: transparent; }
.cal-day.today .day-num { color: var(--gold); font-weight: 800; }
.day-num { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1; }

.day-badge {
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  white-space: nowrap; letter-spacing: 0.01em;
}

.cal-day.booked { background: #FFF4F4; }
.cal-day.booked .day-num { color: #B03030; }
.day-badge.badge-booked { background: #FCDEDE; color: #A02020; border: 1px solid #F5C6C6; }
.cal-day.available { background: #F4FBF6; }
.cal-day.available .day-num { color: #1E7A45; }
.day-badge.badge-available { background: #D4F0DF; color: #1A6B3C; border: 1px solid #B3E4C7; }
.cal-day.past .day-num { color: var(--text-mute); }

.legend {
  display: flex; gap: 1.5rem;
  justify-content: center; margin-top: 1.25rem; flex-wrap: wrap;
}

.legend-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.85rem; color: var(--text-dim); font-weight: 500;
}

.legend-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.booked { background: #D9534F; }
.legend-dot.available { background: #3AAD6B; }

/* ===== MONTH EVENTS LIST ===== */
#month-events-wrap {
  margin-top: 1.5rem;
  border-top: 1.5px solid var(--border-color);
  padding-top: 1.25rem;
}

.me-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.me-header i { color: var(--gold); font-size: 1.1rem; }

.me-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1.5px solid #D4C89A;
  border-right: 4px solid var(--gold);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 18px rgba(27,58,92,.13), 0 1px 4px rgba(27,58,92,.06);
}

.me-item:last-child { margin-bottom: 0; }

.me-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 52px;
}

.me-day-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.me-day-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #C0392B;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.me-body { flex: 1; min-width: 0; }

.me-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.me-type {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}

.me-notes {
  font-size: 0.78rem;
  color: var(--text-mute);
  margin-top: 3px;
  white-space: pre-line;
}

@media (max-width: 480px) {
  .me-day-circle { width: 42px; height: 42px; font-size: 1rem; }
  .me-day-col { width: 46px; }
  .me-name { font-size: 0.88rem; }
}

/* ===== BOOKING FORM ===== */
.book-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(27,58,92,.07);
}

.panel-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 2.8rem 1.5rem calc(2.8rem + 24px);
  text-align: center; position: relative; overflow: hidden;
}
.panel-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../img/Islamic\ wallpaper\ .jpg');
  background-repeat: repeat;
  background-size: 400px auto;
  opacity: 0.08;
  pointer-events: none;
}

.panel-header::after {
  content: '';
  position: absolute; bottom: -1px; right: 0; left: 0;
  height: 24px; background: var(--bg-card);
  border-radius: 16px 16px 0 0;
}

.panel-header-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.13); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem; font-size: 1.5rem; color: var(--gold-light);
  position: relative; z-index: 1;
}

.panel-header-title { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0; position: relative; z-index: 1; }
.panel-body { padding: 1.5rem; }
.form-label-custom { font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; display: block; }

.form-control-custom, .form-select-custom {
  width: 100%; padding: 0.6rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px; background: var(--bg);
  color: var(--text); font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem; outline: none;
  box-sizing: border-box;
  max-width: 100%;
  transition: border-color .18s, box-shadow .18s;
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,.1); background: #fff;
}

textarea.form-control-custom { resize: vertical; min-height: 80px; }

#bookForm { overflow: hidden; }

input[type="date"].form-control-custom {
  min-width: 0;
  width: 100%;
}

.form-row { margin-bottom: 0.9rem; }

.btn-submit {
  width: 100%; padding: 0.8rem; border: none;
  border-radius: 12px; background: var(--navy); color: #fff;
  font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; transition: background .18s, transform .15s; margin-top: 0.25rem;
}

.btn-submit:hover { background: var(--navy-light); transform: translateY(-1px); }

.btn-wa-book {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--wa-green); color: #fff; border: none;
  border-radius: 12px; padding: 0.9rem 1.5rem;
  font-size: 1rem; font-weight: 700; text-decoration: none; width: 100%;
  transition: opacity .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 4px 16px rgba(37,211,102,.28);
  margin-top: 0.6rem;
}

.btn-wa-book:hover { color: #fff; opacity: .92; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(37,211,102,.36); }
.btn-wa-book i { font-size: 1.3rem; }
.form-error { color: #B03030; font-size: .8rem; margin: .4rem 0 0; display: none; }

.form-success { display: none; text-align: center; padding: 1.25rem 1rem 0.5rem; }

.form-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #E8FBF0; border: 2px solid #3AAD6B;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.75rem; font-size: 1.7rem; color: #1E8A47;
}

.form-success h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.form-success p  { font-size: .83rem; color: var(--text-dim); margin: 0; }

@media (max-width: 480px) {
  .cal-day { min-height: 72px; padding: 0.4rem 0.3rem; }
  .day-num { font-size: 0.82rem; }
  .day-badge { font-size: 0.52rem; padding: 1px 5px; }
  .cal-weekday { font-size: 0.68rem; padding: 0.5rem 0; }
  input[type="date"].form-control-custom {
    font-size: 13px;
    padding: 0.4rem 0.4rem;
  }
}

/* ===== LOGIN PAGE ===== */
.login-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d2238 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 1.5rem;
}

.login-bg-pattern {
  position: fixed;
  inset: 0;
  background-image: url('../img/Islamic wallpaper .jpg');
  background-size: 400px auto;
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.login-box {
  width: 100%;
  max-width: 390px;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
}

/* هيدر الكارد */
.login-card-header {
  background: linear-gradient(160deg, #0d2238 0%, var(--navy) 100%);
  padding: 2.5rem 2rem 3rem;
  text-align: center;
  position: relative;
}

.login-card-header::after {
  content: '';
  position: absolute;
  bottom: -1px; right: 0; left: 0;
  height: 32px;
  background: var(--bg-card);
  border-radius: 32px 32px 0 0;
}

/* شريط ذهبي تحت اللوجو */
.login-card-header::before {
  content: '';
  position: absolute;
  bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.6;
}

.login-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 3px solid var(--gold);
  margin-bottom: 1rem;
  box-shadow: 0 0 0 8px rgba(201,162,39,.15), 0 8px 32px rgba(0,0,0,.4);
  animation: goldStrokePulse 2s ease-in-out infinite;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.login-sub {
  font-size: 0.82rem;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

/* بودي */
.login-card-body {
  padding: 2rem 2rem 1.5rem;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.pass-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.pass-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 1.05rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s;
  letter-spacing: 4px;
}

.pass-input::placeholder { letter-spacing: 0; font-size: 0.9rem; }

.pass-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,.12);
  background: #fff;
}

.toggle-pass {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-mute);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
}

.btn-login {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 18px rgba(27,58,92,.35);
}

.btn-login:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(27,58,92,.45);
}

.login-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #B03030;
  font-size: 0.85rem;
  margin-top: 0.85rem;
  background: #fff0f0;
  border: 1px solid #f5c6c6;
  border-radius: 10px;
  padding: 0.65rem 1rem;
}

/* فوتر */
.login-card-footer {
  padding: 1rem 2rem 1.5rem;
  text-align: center;
}

.login-card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-color);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  transition: background .18s, border-color .18s, color .18s;
}

.login-card-footer a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color .18s;
}

/* ===== DASHBOARD PAGE ===== */
.dash-nav-logo {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: contain;
  background: #000;
  border: 2px solid var(--gold);
  animation: goldStrokePulse 2s ease-in-out infinite;
}

.dash-nav-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.dash-nav-sub {
  font-size: 0.75rem;
  color: var(--text-mute);
  font-weight: 500;
}

.dash-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.dash-welcome {
  background: linear-gradient(135deg, #0d2238 0%, var(--navy) 60%, var(--navy-light) 100%);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid rgba(201,162,39,.25);
  box-shadow: 0 4px 24px rgba(13,34,56,.25);
}

.dash-welcome-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-light);
  flex-shrink: 0;
}

.dash-welcome-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  color: #fff;
}

.dash-welcome-sub {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===== DASH TABS ===== */
.dash-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 1.5rem;
}

.dash-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 6px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  color: var(--text-dim);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  line-height: 1.3;
}

.dash-tab i {
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
}

.dash-tab:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27,58,92,.1);
}
.dash-tab:hover i {
  background: rgba(27,58,92,.1);
}

.dash-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 20px rgba(27,58,92,.28);
  transform: translateY(-2px);
}
.dash-tab.active i {
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  min-height: 280px;
  overflow: hidden;
}


/* ===== ADS MANAGER ===== */
.adm-wrap { padding: 1.25rem 1.25rem 1.75rem; }

.adm-section-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border-color);
}

.adm-section-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--gold-light);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(27,58,92,.2);
}

.adm-section-title {
  font-size: 1rem; font-weight: 800;
  color: var(--navy);
}

.adm-section-sub {
  font-size: 0.76rem; font-weight: 500;
  color: var(--text-mute);
  margin-top: 0.1rem;
}

.adm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.adm-col { display: flex; flex-direction: column; }

/* ── كارد ── */
.adm-card {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.34,1.4,.64,1);
}

.adm-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,58,92,0) 0%, rgba(27,58,92,.04) 100%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 1;
}

.adm-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(27,58,92,.15);
  transform: translateY(-3px);
}

.adm-card:hover::before { opacity: 1; }

.adm-card:active { transform: translateY(-1px) scale(.99); }

.adm-card.active {
  border-color: var(--gold);
  box-shadow: 0 8px 26px rgba(201,162,39,.3);
  transform: translateY(-3px);
}

.adm-card.filled { border-color: #3aad6b; }
.adm-card.filled.active { border-color: var(--gold); }

/* مثلث ناعم تحت الكارد النشط */
.adm-card.active::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--gold);
  z-index: 5;
  animation: arrowPop .22s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes arrowPop {
  from { transform: translateX(-50%) scaleY(0); opacity: 0; }
  to   { transform: translateX(-50%) scaleY(1); opacity: 1; }
}

/* الصورة */
.adm-thumb-wrap {
  position: relative;
  height: 120px;
  background: var(--bg-soft);
  overflow: hidden;
}

.adm-thumb-wrap > img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}

.adm-card:hover .adm-thumb-wrap > img { transform: scale(1.05); }

.adm-thumb-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.3rem;
  transition: gap .2s ease;
}

.adm-thumb-empty i {
  font-size: 1.8rem;
  color: var(--border-color);
  transition: color .25s ease, transform .25s cubic-bezier(.34,1.4,.64,1);
}

.adm-thumb-empty span {
  font-size: 0.7rem; font-weight: 600;
  color: var(--text-mute);
  transition: color .2s ease;
}

.adm-card:hover .adm-thumb-empty i {
  color: var(--navy);
  transform: scale(1.18) translateY(-2px);
}

.adm-card:hover .adm-thumb-empty span { color: var(--navy); }
.adm-card.active .adm-thumb-empty i { color: var(--gold); }

/* badge مشغول */
.adm-filled-badge {
  position: absolute; top: 7px; right: 7px;
  background: #22a24a; color: #fff;
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,162,74,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34,162,74,0); }
}

/* فوتر الكارد */
.adm-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-soft);
  transition: background .25s ease;
}

.adm-card:hover .adm-card-footer { background: #edf2f8; }
.adm-card.active .adm-card-footer { background: #fffbef; border-top-color: rgba(201,162,39,.3); }

.adm-card-label {
  font-size: 0.73rem; font-weight: 800;
  color: var(--navy); letter-spacing: 0.02em;
}

.adm-card-name {
  font-size: 0.71rem; font-weight: 600;
  color: var(--text-mute);
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 58%;
  text-align: left;
  transition: color .2s ease;
}

.adm-card.active .adm-card-name { color: var(--gold); }

/* ── Panel ── */
.adm-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transform: translateY(-8px) scaleY(.97);
  transform-origin: top center;
  transition: max-height .4s cubic-bezier(.25,.8,.25,1),
              opacity .32s ease,
              transform .32s cubic-bezier(.25,.8,.25,1),
              margin-top .32s ease;
}

.adm-panel.open {
  max-height: 520px;
  opacity: 1;
  margin-top: 8px;
  transform: translateY(0) scaleY(1);
}

/* هيدر البانل */
.adm-panel-head {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.72rem 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 2px solid var(--gold);
  border-radius: 12px 12px 0 0;
}

.adm-panel-title {
  font-size: 0.88rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 0.4rem;
}

.adm-panel-title i { color: var(--gold-light); }

.adm-close-btn {
  width: 26px; height: 26px;
  border-radius: 50%; border: none;
  background: rgba(255,255,255,.13);
  color: #fff; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s cubic-bezier(.34,1.4,.64,1);
}

.adm-close-btn:hover {
  background: rgba(255,255,255,.28);
  transform: rotate(90deg) scale(1.1);
}

/* بودي البانل */
.adm-panel-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  align-items: start;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

/* drop zone */
.adm-drop-zone {
  display: block;
  width: 100%; height: 170px;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  cursor: pointer; overflow: hidden;
  position: relative;
  transition: border-color .22s ease, background .22s ease, transform .2s ease;
}

.adm-drop-zone:hover {
  border-color: var(--gold);
  background: #fffbef;
  transform: scale(1.01);
}

.adm-drop-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center; padding: 0.75rem;
}

.adm-drop-ph i {
  font-size: 1.9rem; color: var(--border-color);
  transition: color .22s ease, transform .25s cubic-bezier(.34,1.4,.64,1);
}

.adm-drop-ph span { font-size: 0.75rem; font-weight: 600; color: var(--text-dim); }
.adm-drop-ph small { font-size: 0.62rem; color: var(--text-mute); }

.adm-drop-zone:hover .adm-drop-ph i {
  color: var(--gold);
  transform: translateY(-3px) scale(1.15);
}

/* فيلدز */
.adm-fields { display: flex; flex-direction: column; gap: 0.7rem; }
.adm-field  { display: flex; flex-direction: column; gap: 0.28rem; }

.adm-lbl {
  font-size: 0.75rem; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 0.3rem;
}
.adm-lbl i { color: var(--gold); font-size: 0.82rem; }

.adm-inp {
  width: 100%; padding: 0.58rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px; background: var(--bg);
  color: var(--text); font-family: 'Tajawal', sans-serif;
  font-size: 0.88rem; outline: none; box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.adm-inp:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,92,.1);
  background: #fff;
}

/* أزرار */
.adm-btns { display: flex; gap: 0.55rem; margin-top: 0.2rem; }

.adm-btn-save, .adm-btn-del {
  display: flex; align-items: center; justify-content: center;
  gap: 0.35rem; padding: 0.62rem 0.9rem;
  border: none; border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 0.84rem; font-weight: 700;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.4,.64,1),
              box-shadow .18s ease,
              background .18s ease,
              opacity .18s ease;
}

.adm-btn-save {
  flex: 1;
  background: var(--navy); color: #fff;
  box-shadow: 0 3px 12px rgba(27,58,92,.22);
  position: relative; overflow: hidden;
}

.adm-btn-save::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .4s ease;
}

.adm-btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27,58,92,.3);
}

.adm-btn-save:hover::after { transform: translateX(100%); }
.adm-btn-save:active { transform: scale(.97); }

.adm-btn-del {
  background: #fff0f0; color: #b03030;
  border: 1.5px solid #f5c6c6;
}

.adm-btn-del:hover {
  background: #b03030; color: #fff;
  border-color: #b03030;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(176,48,48,.25);
}

.adm-btn-del:active { transform: scale(.97); }


/* ═══════════════════════════════════════════════════
   MOBILE — COMPREHENSIVE RESPONSIVE FIXES
═══════════════════════════════════════════════════ */

/* ── Main site: slideshow height ── */
@media (max-width: 600px) { .slideshow { height: 520px; } }
@media (max-width: 380px) {
  .slideshow { height: 400px; }
  .slide-caption { font-size: 0.95rem; }
  .slide-caption-tag { font-size: .62rem; padding: 3px 9px; }
}

/* ── Main site: nav smaller padding ── */
@media (max-width: 480px) {
  .main-nav .container-fluid { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
}

/* ── Main site: ads grid (keep 1-col on small phones) ── */
@media (max-width: 480px) {
  .ads-grid { grid-template-columns: 1fr; }
}

/* ── Dashboard: general spacing ── */
@media (max-width: 640px) {
  .dash-content { padding: 0.9rem 0.75rem; }
  .adm-wrap { padding: 0.9rem; }
  .adm-section-head { gap: 0.6rem; margin-bottom: 0.9rem; }
  .adm-section-icon { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 10px; }
  .adm-section-title { font-size: 0.88rem; }
  .adm-section-sub { font-size: 0.72rem; }
}

/* ── Dashboard: welcome banner ── */
@media (max-width: 640px) {
  .dash-welcome { padding: 1rem 1.1rem; gap: 0.85rem; margin-bottom: 1.2rem; border-radius: 14px; }
  .dash-welcome-icon { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 11px; }
  .dash-welcome-title { font-size: 1.2rem; }
  .dash-welcome-sub { font-size: 0.78rem; }
}

@media (max-width: 900px) {
  .dash-tabs { grid-template-columns: repeat(3, 1fr); }
}

/* ── Dashboard: nav logo ── */
@media (max-width: 640px) {
  .dash-nav-logo { width: 62px; height: 62px; }
  .dash-nav-title { font-size: 1.2rem; }
}
@media (max-width: 400px) {
  .dash-nav-logo { width: 52px; height: 52px; }
  .dash-nav-title { font-size: 1.05rem; }
  .dash-nav-sub { display: none; }
}

@media (max-width: 680px) {
  .adm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .adm-grid { grid-template-columns: 1fr; }
  .adm-card.active::after { display: none; }
}
@media (max-width: 580px) {
  .adm-panel-body { grid-template-columns: 1fr; }
  .adm-drop-zone { height: 130px; }
}

/* ── Card dropdown (mobile only) ── */
.pf-card-dropdown { display: none; position: relative; }
@media (max-width: 600px) {
  .pf-tmpl-wrap { display: none !important; }

  /* Dropdown takes its own full row below the "بوست جديد" tag */
  .pf-tag-row { flex-wrap: wrap; padding-bottom: 12px; gap: 8px; }
  .pf-card-dropdown { display: block; width: 100%; }

  /* Trigger button: full-width, taller, centered */
  .pf-card-dropdown > .pf-tmpl-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 14px;
    font-size: .84rem;
    gap: 8px;
  }

  /* List: match trigger width exactly */
  .pf-card-dropdown .pf-tmpl-list {
    left: 0 !important;
    right: 0 !important;
    width: auto;
    min-width: unset;
    max-height: none;
    border-radius: 16px;
    border-width: 1.5px;
  }

  /* Items: bigger tap targets */
  .pf-card-dropdown .pf-tmpl-item {
    padding: 13px 16px;
    font-size: .88rem;
    border-radius: 11px;
  }
  .pf-card-dropdown .pf-tmpl-item i { font-size: .88rem; }
  .pf-card-dropdown .pf-tmpl-list-head { padding: 11px 16px 9px; font-size: .72rem; }
  .pf-card-dropdown .pf-tmpl-items { padding: 6px; }
}

/* ── Dashboard: post form field rows stack on mobile ── */
@media (max-width: 500px) {
  .pf-field-row--cols { flex-direction: column !important; }
  .pf-field-row--cols > div { flex: none !important; width: 100%; }
  .pf-tag-row { flex-wrap: wrap; gap: 8px; }
  .pf-tmpl-btn { font-size: .69rem; padding: 5px 10px; gap: 4px; }
}

@media (max-width: 480px) {
  .dash-tabs { gap: 7px; }
  .dash-tab { padding: 11px 4px 10px; font-size: 0.69rem; border-radius: 12px; }
  .dash-tab i { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; }
}

/* ── Dashboard: pl-header stack ── */
@media (max-width: 480px) {
  .pl-header { flex-wrap: wrap; gap: 6px; }
}

/* ── Main site: home content padding ── */
@media (max-width: 480px) {
  .home-content { padding: 1.25rem 0.9rem 2.5rem; }
  .home-section { margin-bottom: 4rem; }
  .col-title { font-size: 1.3rem; }
}

/* ── Main site: hero compact ── */
@media (max-width: 480px) {
  .home-hero { padding: 2.5rem 1rem 2rem; }
  .home-hero-btn { width: 100%; justify-content: center; }
}

/* ── Main site: post-card ── */
@media (max-width: 480px) {
  .post-title { font-size: 1.1rem; }
  .post-text { font-size: 0.92rem; }
  .card-body { padding: 0.9rem; }
}

/* ── Danger button (delete all) ── */
.dash-danger-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,40,40,.08);
  border: 1.5px solid rgba(200,40,40,.3);
  border-radius: 12px; padding: 10px 22px;
  color: #c0392b; font-family: Tajawal,sans-serif;
  font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: all .2s;
}
.dash-danger-btn:hover {
  background: rgba(200,40,40,.16);
  border-color: rgba(200,40,40,.55);
  box-shadow: 0 4px 14px rgba(200,40,40,.15);
}

/* ── Main site: booking form ── */
@media (max-width: 480px) {
  .panel-body { padding: 1rem; }
  .btn-wa-book { width: 100%; justify-content: center; }
}

/* ── Main site: slideshow dots/arrows ── */
@media (max-width: 480px) {
  .slide-arrow { width: 34px; height: 34px; font-size: 1rem; }
  .slide-dots { bottom: 8px; gap: 5px; }
  .slide-dot { width: 6px; height: 6px; }
}

/* ── Main site: section heading ── */
@media (max-width: 480px) {
  .col-label { margin-bottom: 0.3rem; }
  .col-label .label-text { font-size: 0.68rem; }
}

/* ── Main site: calendar on mobile ── */
@media (max-width: 360px) {
  .cal-weekday { font-size: 0.6rem; padding: 0.4rem 0.1rem; }
  .cal-day { min-height: 44px; font-size: 0.78rem; }
  .month-nav-title { font-size: 1rem; }
}

/* ===========================================
   CARD MODALS (iframe-based, all 5 cards)
   =========================================== */

.gc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 32px 16px;
}
.gc-modal-box {
  position: relative;
  border-radius: 18px;
  width: min(1100px, 98vw);
  padding-top: 52px;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.45);
}
.gc-modal-box--warm { background: #F3EEE3; }
.gc-modal-box--sand { background: #e8e4df; }
.gc-modal-box--dark { background: #1c2b3a; }

.gc-modal-close {
  position: absolute;
  top: 12px;
  left: 14px;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}
.gc-modal-close:hover { background: rgba(0,0,0,0.7); }

.gc-card-iframe {
  width: 100%;
  height: calc(100vh - 120px);
  border: none;
  display: block;
}

@media (max-width: 480px) {
  .gc-modal-overlay { padding: 8px 6px; }
}

/* ═══════════════════════════════════════════════════
   dashboard.html — moved from inline <style>
═══════════════════════════════════════════════════ */
html, body { overflow-x: hidden; max-width: 100%; }
/* ── Toast ── */
.g-toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #fff;
  border: 1.5px solid rgba(201,162,39,.5); border-radius: 14px;
  padding: 12px 28px; font-weight: 700; font-size: .92rem;
  box-shadow: 0 8px 28px rgba(27,58,92,.18); z-index: 10000;
  opacity: 0; transition: opacity .28s, transform .28s; pointer-events: none; color: #c9a227;
}
.g-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.g-toast.err  { border-color: rgba(239,68,68,.5); color: #ef4444; }

/* ── Ads new-card ── */
.adm-card-new { border: 2px dashed rgba(201,162,39,.35) !important; background: rgba(201,162,39,.04) !important; }
.adm-card-new:hover { border-color: rgba(201,162,39,.65) !important; background: rgba(201,162,39,.1) !important; }

/* ── Image Editor Modal ── */
.ied-overlay {
  position: fixed; inset: 0;
  background: rgba(5,8,20,.92);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
.ied-box {
  background: #fff;
  border: 1.5px solid #E5DCC2;
  border-radius: 20px; width: 100%; max-width: 480px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(27,58,92,.18);
}
.ied-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  background: #FBF8F1;
  border-bottom: 1px solid #E5DCC2;
}
.ied-title { font-weight: 800; color: #1B3A5C; font-size: .88rem; display: flex; align-items: center; gap: 7px; }
.ied-title i { font-size: 1rem; color: #C9A227; }
.ied-close {
  background: #F3EFE3; border: 1px solid #E5DCC2;
  border-radius: 50%; width: 28px; height: 28px; color: #9A9182;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .18s;
}
.ied-close:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: #ef4444; }
.ied-canvas-wrap {
  padding: 12px 14px 10px;
  background: #F3EFE3;
  border-bottom: 1px solid #E5DCC2;
}
#iedCanvas {
  width: 100%; max-height: 195px; object-fit: contain;
  border-radius: 10px; display: block;
  border: 1px solid #E5DCC2;
  box-shadow: 0 4px 12px rgba(27,58,92,.1);
}
.ied-body { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 9px; }
.ied-lbl { font-size: .67rem; font-weight: 800; color: #C9A227; letter-spacing: .05em; display: block; margin-bottom: 4px; }
.ied-inp {
  width: 100%; background: #fff;
  border: 1.5px solid #E5DCC2; border-radius: 10px;
  padding: 8px 12px; color: #2A2520; -webkit-text-fill-color: #2A2520;
  font-family: Tajawal,sans-serif; font-size: .88rem; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.ied-inp::placeholder { color: #9A9182; -webkit-text-fill-color: #9A9182; }
.ied-inp:focus { outline: none; border-color: #C9A227; box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.ied-row { display: flex; gap: 8px; }
.ied-row > div { flex: 1; }
.ied-options-row { display: flex; gap: 14px; align-items: flex-start; }
.ied-options-row > div { flex: 1; }
.ied-colors { display: flex; gap: 7px; margin-top: 5px; }
.ied-color-dot {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid #E5DCC2; transition: all .18s;
}
.ied-color-dot:hover { transform: scale(1.12); }
.ied-color-dot.active { border-color: #C9A227; box-shadow: 0 0 0 3px rgba(201,162,39,.25); }
.ied-pos-btns { display: flex; gap: 5px; margin-top: 5px; }
.ied-pos-btn {
  flex: 1; border: 1.5px solid #E5DCC2;
  background: #F3EFE3;
  border-radius: 8px; padding: 5px 4px; color: #6B6354;
  font-family: Tajawal,sans-serif; font-size: .72rem; font-weight: 700;
  cursor: pointer; transition: all .16s; text-align: center;
}
.ied-pos-btn:hover { border-color: #C9A227; color: #2A2520; }
.ied-pos-btn.active { background: rgba(201,162,39,.15); border-color: #C9A227; color: #C9A227; }
.ied-btns {
  display: flex; gap: 8px; padding: 10px 16px 14px;
  border-top: 1px solid #E5DCC2;
}
.ied-apply {
  flex: 1; background: linear-gradient(135deg,#c9a227 0%,#e8c53a 100%);
  border: none; border-radius: 11px; padding: 10px;
  color: #14100a; font-family: Tajawal,sans-serif; font-weight: 900; font-size: .88rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 14px rgba(201,162,39,.3); transition: all .2s;
}
.ied-apply:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(201,162,39,.45); }
.ied-cancel {
  background: #F3EFE3; border: 1.5px solid #E5DCC2;
  border-radius: 11px; padding: 10px 16px; color: #6B6354;
  font-family: Tajawal,sans-serif; font-size: .85rem; cursor: pointer; transition: all .18s;
}
.ied-cancel:hover { background: #E5DCC2; color: #2A2520; }

/* ── Post Creator ── */
.pf-box {
  background: #fff;
  border: 1.5px solid #E5DCC2;
  border-radius: 20px; margin-bottom: 28px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(27,58,92,.08);
}
.pf-tag-row {
  padding: 14px 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pf-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.28);
  color: #c9a227; font-size: .74rem; font-weight: 800;
  padding: 4px 13px; border-radius: 20px; letter-spacing: .05em;
}
.pf-tmpl-wrap { position: relative; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-tmpl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,rgba(201,162,39,.22),rgba(201,162,39,.12));
  border: 1.5px solid rgba(201,162,39,.55);
  color: #e8c53a; font-family: Tajawal,sans-serif; font-size: .8rem; font-weight: 800;
  padding: 6px 14px; border-radius: 20px; cursor: pointer; transition: all .2s;
  box-shadow: 0 2px 10px rgba(201,162,39,.18); letter-spacing: .02em;
}
.pf-tmpl-btn:hover { background: linear-gradient(135deg,rgba(201,162,39,.35),rgba(201,162,39,.2)); border-color: rgba(201,162,39,.8); box-shadow: 0 4px 16px rgba(201,162,39,.3); }
.pf-tmpl-btn.open  { background: rgba(201,162,39,.3); border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
.pf-tmpl-list {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #FFFFFF; border: 1.5px solid #E5DCC2;
  border-radius: 14px; min-width: 250px; max-height: 240px;
  overflow-y: auto; z-index: 200;
  box-shadow: 0 12px 36px rgba(27,58,92,.12), 0 0 0 1px rgba(201,162,39,.08);
}
.pf-tmpl-list::-webkit-scrollbar { width: 4px; }
.pf-tmpl-list::-webkit-scrollbar-thumb { background: rgba(201,162,39,.35); border-radius: 4px; }
.pf-tmpl-list-head {
  padding: 9px 13px 7px; font-size: .67rem; font-weight: 800; color: #C9A227; letter-spacing: .06em;
  border-bottom: 1px solid #E5DCC2; display: flex; align-items: center; gap: 6px; background: #FBF8F1;
}
.pf-tmpl-items { padding: 5px; }
.pf-tmpl-item {
  padding: 9px 11px; border-radius: 9px; cursor: pointer;
  font-size: .82rem; color: #6B6354; transition: all .15s;
  display: flex; align-items: center; gap: 8px; border: 1px solid transparent;
}
.pf-tmpl-item i { color: rgba(201,162,39,.6); font-size: .8rem; flex-shrink: 0; }
.pf-tmpl-item:hover { background: rgba(201,162,39,.08); border-color: rgba(201,162,39,.25); color: #7a5f0a; }
.pf-tmpl-item:hover i { color: #C9A227; }
.pf-tmpl-empty { padding: 18px; text-align: center; color: #9A9182; font-size: .8rem; }
.pf-drop {
  display: block; margin: 10px 20px 8px; height: 180px;
  border: 2px dashed #E5DCC2; border-radius: 14px;
  cursor: pointer; overflow: hidden; position: relative; background: #FBF8F1;
  transition: border-color .22s, background .22s, box-shadow .22s;
}
.pf-drop:hover { border-color: rgba(201,162,39,.55); background: rgba(201,162,39,.06); box-shadow: inset 0 0 22px rgba(201,162,39,.05); }
.pf-drop-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  pointer-events: none; text-align: center;
}
.pf-drop-icon-wrap {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #C9A227; margin-bottom: 2px;
}
.pf-drop-ph span { font-size: .82rem; font-weight: 700; color: #6B6354; }
.pf-drop-ph span b { color: #C9A227; font-weight: 800; }
.pf-drop-ph small { font-size: .68rem; color: #9A9182; }
.pf-grp { padding: 0 20px 13px; }
.pf-lbl { font-size: .7rem; font-weight: 800; color: #c9a227; letter-spacing: .04em; display: block; margin-bottom: 6px; }
.pf-inp {
  width: 100%; background: #fff; border: 1.5px solid #E5DCC2;
  border-radius: 12px; padding: 11px 15px;
  color: #2A2520; -webkit-text-fill-color: #2A2520;
  font-family: Tajawal,sans-serif; font-size: .93rem;
  box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pf-inp::placeholder { color: #9A9182; -webkit-text-fill-color: #9A9182; }
.pf-inp:focus { outline: none; border-color: #C9A227; box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
textarea.pf-inp { min-height: 82px; resize: vertical; }
select.pf-inp { appearance: auto; cursor: pointer; }
.pf-field-row { padding: 0 20px 13px; }
.pf-field-row--cols { display: flex; gap: 10px; }
.pf-field-row > div { min-width: 0; }
.pf-field-col { flex: 1; }
input[type="date"].pf-inp, input[type="time"].pf-inp { min-width: 0; width: 100%; }
.pf-btn-row { display: flex; gap: 9px; padding: 4px 20px 20px; }
.date-row { display: flex; gap: 8px; direction: ltr; width: 100%; }
.date-part { text-align: center; flex: 1; }
.date-year { text-align: center; flex: 2; }
.ied-inp[type=date], .ied-inp[type=time] { color-scheme: dark; }
.section-sep { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.img-drop-wrap { position: relative; }
.pl-header .pf-title { margin-bottom: 0; }
.pl-header--mt { margin-top: 24px; }
.lbl-hint { color: var(--text-mute); font-weight: 400; font-size: .8em; }
.pf-card-chevron { font-size: .75rem; opacity: .65; }
.req-star { color: #B03030; }
.grid-loader { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--text-mute); }
.feed-loader { text-align: center; padding: 2rem; color: var(--text-mute); }
.loader-icon { font-size: 1.5rem; }
.nav-admin-login { left: 1rem; }
.pf-img-preview { width: 100%; height: 100%; object-fit: cover; }
.img-remove-btn {
  position: absolute; top: 7px; left: 7px; z-index: 10;
  background: rgba(0,0,0,.65); border: none; border-radius: 50%;
  width: 28px; height: 28px; color: #fff; cursor: pointer; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.img-edit-btn {
  position: absolute; top: 7px; right: 7px; z-index: 10;
  background: rgba(0,0,0,.65); border: 1px solid rgba(201,162,39,.5);
  border-radius: 20px; padding: 4px 10px; color: #c9a227;
  cursor: pointer; font-size: .75rem; font-family: Tajawal,sans-serif; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.pf-pub-btn {
  flex: 1; background: linear-gradient(135deg,#c9a227 0%,#e8c53a 100%);
  border: none; border-radius: 12px; padding: 11px 20px;
  color: #14100a; font-family: Tajawal,sans-serif; font-weight: 900; font-size: .95rem;
  cursor: pointer; transition: all .22s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(201,162,39,.25);
}
.pf-pub-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(201,162,39,.45); }
.pf-pub-btn:disabled { opacity: .55; transform: none; cursor: not-allowed; box-shadow: none; }
.pf-clear-btn {
  background: #F3EFE3; border: 1.5px solid #E5DCC2;
  border-radius: 12px; padding: 11px 16px; color: #6B6354;
  font-family: Tajawal,sans-serif; font-size: .85rem; cursor: pointer;
  transition: all .18s; display: flex; align-items: center; gap: 5px;
}
.pf-clear-btn:hover { background: #E5DCC2; color: #2A2520; }

/* ── Posts List ── */
.pl-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pl-count { font-size: .82rem; color: #9A9182; }
.pl-count span { color: #C9A227; font-weight: 700; }
.pl-search-wrap { position: relative; margin-bottom: 14px; }
.pl-search-icon { position: absolute; top: 50%; transform: translateY(-50%); right: 13px; color: #c9a227; font-size: 1rem; pointer-events: none; }
.pl-search {
  width: 100%; background: #fff; border: 1.5px solid #E5DCC2; border-radius: 12px;
  padding: 10px 40px 10px 14px; color: #2A2520; -webkit-text-fill-color: #2A2520;
  font-family: Tajawal,sans-serif; font-size: .9rem; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.pl-search::placeholder { color: #9A9182; -webkit-text-fill-color: #9A9182; }
.pl-search:focus { outline: none; border-color: #C9A227; box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.pl-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #E5DCC2;
}
.pl-pg-btn {
  border: 1.5px solid #E5DCC2; background: #F3EFE3; border-radius: 10px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: #6B6354; cursor: pointer; font-size: 1rem; transition: all .18s;
}
.pl-pg-btn:hover:not(:disabled) { border-color: rgba(201,162,39,.5); color: #7a5f0a; background: rgba(201,162,39,.1); }
.pl-pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pl-pg-info { font-size: .82rem; color: #6B6354; min-width: 54px; text-align: center; font-weight: 700; }
.pl-item-wrap { margin-bottom: 8px; }
.pl-item {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1.5px solid #E5DCC2; border-radius: 14px; padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s; box-shadow: 0 2px 8px rgba(27,58,92,.06);
}
.pl-item:hover { border-color: #C9A227; box-shadow: 0 4px 14px rgba(27,58,92,.1); }
.pl-item.pinned-row { border-color: #1449a0; background: rgba(20,73,160,.04); }
.pl-img-wrap { flex-shrink: 0; }
.pl-img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; display: block; }
.pl-img-ph {
  width: 62px; height: 62px; border-radius: 10px;
  background: #F3EFE3; border: 1px solid #E5DCC2;
  display: flex; align-items: center; justify-content: center;
}
.pl-img-ph i { font-size: 1.3rem; color: #9A9182; }
.pl-body { flex: 1; min-width: 0; }
.pl-post-title { font-weight: 700; color: #1B3A5C; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.pl-post-content { color: #6B6354; font-size: .77rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.pl-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-date { font-size: .7rem; color: #9A9182; display: flex; align-items: center; gap: 3px; }
.pl-badge { font-size: .67rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }
.pl-badge.vis { background: rgba(15,140,86,.10); color: #0f7a50; border: 1px solid rgba(15,140,86,.22); }
.pl-badge.hid { background: #F3EFE3; color: #9A9182; border: 1px solid #E5DCC2; }
.pl-badge.pin { background: rgba(20,73,160,.10); color: #1449a0; border: 1px solid rgba(20,73,160,.3); }
.pl-actions { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pl-btn {
  border: 1px solid #E5DCC2; border-radius: 9px; width: 42px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.08rem; transition: all .16s; background: #F3EFE3; color: #6B6354;
}
.pl-btn:hover { background: #E5DCC2; color: #1B3A5C; border-color: #C9A227; }
.pl-btn.pin-active  { color: #fff; background: #1449a0; border-color: #1449a0; }
.pl-btn.pin-active:hover  { background: #0f3a8a; border-color: #0f3a8a; }
.pl-btn.vis-active  { color: #0f7a50; background: rgba(15,140,86,.12); border-color: rgba(15,140,86,.3); }
.pl-btn.vis-active:hover  { background: rgba(15,140,86,.22); }
.pl-btn.edit-btn:hover { background: rgba(27,58,92,.08); color: #1B3A5C; border-color: rgba(27,58,92,.3); }
.pl-btn.del-btn:hover  { background: rgba(200,40,40,.08); color: #c0392b; border-color: rgba(200,40,40,.22); }

/* ── Inline Edit Panel ── */
.pl-edit-wrap {
  overflow: hidden; max-height: 0; opacity: 0;
  transform: translateY(-6px); transform-origin: top;
  transition: max-height .38s cubic-bezier(.25,.8,.25,1), opacity .3s ease, transform .3s ease, margin-top .3s ease;
  margin-top: 0;
}
.pl-edit-wrap.open { max-height: 620px; opacity: 1; transform: translateY(0); margin-top: 6px; }
.pl-edit-inner { background: #FFFFFF; border: 1.5px solid #E5DCC2; border-radius: 14px; overflow: hidden; }
.pl-edit-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: #FBF8F1; border-bottom: 2px solid #E5DCC2;
}
.pl-edit-head-title { font-size: .85rem; font-weight: 700; color: #1B3A5C; display: flex; align-items: center; gap: 6px; }
.pl-edit-head-title i { color: #C9A227; }
.pl-edit-close { background: #F3EFE3; border: 1px solid #E5DCC2; border-radius: 50%; width: 26px; height: 26px; color: #6B6354; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .18s; }
.pl-edit-close:hover { background: #E5DCC2; color: #1B3A5C; transform: rotate(90deg); }
.pl-edit-body { padding: 16px; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
@media(max-width:580px){ .pl-edit-body{ grid-template-columns:1fr; } }
.pl-edit-drop { display: block; height: 148px; border: 2px dashed #E5DCC2; border-radius: 10px; cursor: pointer; overflow: hidden; position: relative; transition: border-color .2s; }
.pl-edit-drop:hover { border-color: rgba(201,162,39,.55); }
.pl-edit-drop-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #9A9182; font-size: .75rem; pointer-events: none; }
.pl-edit-drop-ph i { font-size: 1.3rem; }
.pl-edit-fields { display: flex; flex-direction: column; gap: 10px; }
.pl-edit-lbl { font-size: .72rem; font-weight: 700; color: #6B6354; display: block; margin-bottom: 4px; }
.pl-edit-inp { width: 100%; background: #FFFFFF; border: 1px solid #E5DCC2; border-radius: 9px; padding: 8px 12px; color: #2A2520; -webkit-text-fill-color: #2A2520; font-family: Tajawal,sans-serif; font-size: .88rem; box-sizing: border-box; }
.pl-edit-inp:focus { outline: none; border-color: rgba(201,162,39,.6); box-shadow: 0 0 0 3px rgba(201,162,39,.1); }
textarea.pl-edit-inp { min-height: 74px; resize: vertical; }
.pl-edit-btns { display: flex; gap: 8px; margin-top: 4px; }
.pl-edit-save { background: linear-gradient(135deg,#c9a227,#e6b830); border: none; border-radius: 9px; padding: 8px 20px; color: #1B3A5C; font-family: Tajawal,sans-serif; font-weight: 800; font-size: .86rem; cursor: pointer; transition: all .2s; }
.pl-edit-save:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,162,39,.4); }
.pl-edit-cancel { background: #F3EFE3; border: 1px solid #E5DCC2; border-radius: 9px; padding: 8px 16px; color: #6B6354; font-family: Tajawal,sans-serif; font-size: .86rem; cursor: pointer; transition: all .18s; }
.pl-edit-cancel:hover { background: #E5DCC2; color: #1B3A5C; }

/* ── Bookings ── */
.bk-filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.bk-filter { padding: 5px 15px; border-radius: 20px; border: 1px solid #E5DCC2; background: #F3EFE3; color: #6B6354; cursor: pointer; font-family: Tajawal,sans-serif; font-size: .83rem; transition: all .18s; }
.bk-filter.active, .bk-filter:hover { background: rgba(201,162,39,.15); border-color: rgba(201,162,39,.4); color: #7a5f0a; }
.bk-cnt { background: rgba(201,162,39,.18); color: #7a5f0a; font-size: .7rem; padding: 1px 6px; border-radius: 10px; margin-right: 4px; }
.bk-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid #E5DCC2; background: #fff; }
.bk-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bk-table thead th { background: #FBF8F1; color: #1B3A5C; padding: 11px 14px; font-weight: 700; border-bottom: 2px solid #E5DCC2; white-space: nowrap; }
.bk-table tbody tr { border-bottom: 1px solid #E5DCC2; transition: background .16s; background: #fff; }
.bk-table tbody tr:hover { background: #FBF8F1; }
.bk-table td { padding: 10px 14px; color: #111; vertical-align: middle; }
@media (max-width: 900px) {
  .bk-table thead { display: none; }
  .bk-table, .bk-table tbody, .bk-table tr, .bk-table td { display: block; width: 100%; }
  .bk-table tr { border: 1px solid #E5DCC2; border-radius: 12px; margin-bottom: 10px; padding: 4px 0; background: #fff; }
  .bk-table td { padding: 8px 14px; border: none; border-bottom: 1px solid #F0EAD8; display: flex; align-items: center; gap: 10px; }
  .bk-table td:last-child { border-bottom: none; }
  .bk-table td[data-label]::before { content: attr(data-label); font-weight: 700; color: #1B3A5C; min-width: 90px; flex-shrink: 0; font-size: .8rem; }
  .bk-actions { flex-wrap: wrap; }
  .bk-conflict-msg { white-space: normal; }
}
.bk-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.bk-badge.pending   { background: rgba(201,162,39,.14); color: #7a5f0a; border: 1px solid rgba(201,162,39,.28); }
.bk-badge.confirmed { background: rgba(15,140,86,.12);  color: #0f7a50; border: 1px solid rgba(15,140,86,.28); }
.bk-badge.rejected  { background: rgba(200,40,40,.10);  color: #c0392b; border: 1px solid rgba(200,40,40,.22); }
.bk-actions { display: flex; gap: 7px; }
.bk-btn { border: none; border-radius: 10px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.05rem; transition: all .18s; }
.bk-btn-ok  { background: rgba(15,140,86,.12); color: #0f7a50; }
.bk-btn-ok:hover  { background: rgba(15,140,86,.25); }
.bk-btn-rej { background: rgba(200,40,40,.10); color: #c0392b; }
.bk-btn-rej:hover { background: rgba(200,40,40,.22); }
.bk-btn-del { background: #F3EFE3; color: #9A9182; border: 1px solid #E5DCC2; }
.bk-btn-del:hover { background: rgba(200,40,40,.10); color: #c0392b; }
.bk-btn-ok:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.bk-btn-call { background: rgba(37,211,102,.12); color: #1a8f50; text-decoration: none; }
.bk-btn-call:hover { background: rgba(37,211,102,.25); }
.bk-btn-wa { background: rgba(37,211,102,.15); color: #128C7E; text-decoration: none; }
.bk-btn-wa:hover { background: rgba(37,211,102,.30); }
.bk-conflict-msg { font-size: .72rem; color: #c0392b; font-weight: 600; white-space: nowrap; align-self: center; }
.bk-empty { text-align: center; padding: 40px; color: #9A9182; }
.bk-empty i { font-size: 2.2rem; display: block; margin-bottom: 8px; color: #C9A227; }
.bk-wa-link { color: #0f7a50; text-decoration: none; direction: ltr; display: inline-block; }
.bk-wa-link:hover { text-decoration: underline; }
.bk-notes { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6B6354; font-size: .8rem; }

/* ── Admin Calendar ── */
.cal-adm-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; background: #FBF8F1; border: 1px solid #E5DCC2;
  border-radius: 12px; padding: 10px 16px;
}
.cal-adm-title { font-size: 1rem; font-weight: 800; color: #1B3A5C; }
.cal-adm-arrow {
  background: #fff; border: 1px solid #E5DCC2; border-radius: 8px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #6B6354; transition: all .16s;
}
.cal-adm-arrow:hover { border-color: #C9A227; color: #7a5f0a; background: rgba(201,162,39,.08); }
.cal-adm-legend { display: flex; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; font-size: .8rem; color: #6B6354; font-weight: 600; }
.cal-adm-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 5px; vertical-align: middle; }
.cal-adm-dot.booked    { background: #c0392b; }
.cal-adm-dot.available { background: #0f7a50; }
.cal-adm-dot.free      { background: #E5DCC2; border: 1px solid #ccc; }
.cal-adm-weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; margin-bottom: 4px; }
.cal-adm-weekdays div { text-align: center; font-size: .7rem; font-weight: 700; color: #9A9182; padding: 4px 0; }
.cal-adm-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 5px; }
.cal-adm-day {
  aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; cursor: pointer;
  border: 1.5px solid #E5DCC2; background: #fff;
  font-size: .82rem; font-weight: 700; color: #2A2520;
  transition: all .16s; user-select: none; position: relative;
}
.cal-adm-day:hover:not(.empty):not(.past) { border-color: #C9A227; transform: scale(1.05); }
.cal-adm-day.empty  { background: transparent; border-color: transparent; cursor: default; }
.cal-adm-day.past   { opacity: .4; cursor: not-allowed; }
.cal-adm-day.today  { border-color: #C9A227; box-shadow: 0 0 0 2px rgba(201,162,39,.2); }
.cal-adm-day.booked { background: rgba(192,57,43,.1); border-color: rgba(192,57,43,.4); color: #c0392b; }
.cal-adm-day.available { background: rgba(15,122,80,.1); border-color: rgba(15,122,80,.35); color: #0f7a50; }
.cal-adm-day-lbl { font-size: .58rem; font-weight: 600; margin-top: 2px; }
.cal-adm-day.booked    .cal-adm-day-lbl { color: #c0392b; }
.cal-adm-day.available .cal-adm-day-lbl { color: #0f7a50; }

/* ── Dashboard mobile responsive ── */
@media (max-width: 640px) {
  .bk-table-wrap { border-radius: 0; background: transparent; border: none; }
  .bk-table { display: block; }
  .bk-table thead { display: none; }
  .bk-table tbody { display: flex; flex-direction: column; gap: 10px; }
  .bk-table tbody tr { display: block; border: 1px solid #E5DCC2; border-radius: 14px; padding: 12px 14px; background: #FFFFFF; }
  .bk-table tbody tr:hover { background: rgba(201,162,39,.04); }
  .bk-table td { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: .83rem; border: none; color: #2A2520; }
  .bk-table td[data-label]::before { content: attr(data-label); color: #C9A227; font-weight: 700; font-size: .7rem; flex-shrink: 0; min-width: 72px; padding-left: 6px; padding-top: 2px; }
  .bk-table td[data-label="إجراءات"] { padding-top: 10px; border-top: 1px solid #E5DCC2; margin-top: 4px; }
  .bk-table td[data-label="إجراءات"]::before { display: none; }
  .bk-notes { max-width: 180px; }
}
@media (max-width: 520px) {
  .pl-item { gap: 9px; padding: 9px 10px; }
  .pl-img, .pl-img-ph { width: 52px; height: 52px; }
  .pl-post-title { font-size: .84rem; }
  .pl-btn { width: 50px; height: 48px; font-size: 1.05rem; }
  .pl-actions { gap: 7px; }
  .pl-edit-body { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pf-drop { height: 110px; margin: 12px 14px; }
  .pf-grp { padding: 0 14px 11px; }
  .pf-btn-row { padding: 4px 14px 16px; }
  .pf-pub-btn { font-size: .88rem; }
}

/* ════════════════════════════════
   GALLERY — معرض الصور
════════════════════════════════ */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.gal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.gal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.gal-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e0cc;
}
.gal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.gal-card:hover .gal-img { transform: scale(1.06); }

.gal-modal-del-btn {
  background: rgba(200,30,30,.1);
  border: 1.5px solid rgba(200,30,30,.3);
  border-radius: 10px;
  padding: 9px 14px;
  color: #c01e1e;
  font-family: Tajawal, sans-serif;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .16s;
  margin-right: auto;
}
.gal-modal-del-btn:hover { background: rgba(200,30,30,.18); }

/* ── Gallery Edit Modal ── */
.gal-edit-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.gal-edit-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.gal-edit-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}
.gal-edit-title {
  font-weight: 700; font-size: .95rem; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
}
.gal-edit-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-mute); font-size: 1.1rem; line-height: 1;
}
.gal-edit-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.gal-edit-img-wrap {
  position: relative; border-radius: 10px; overflow: hidden;
  aspect-ratio: 4/3; background: #e8e0cc;
}
.gal-edit-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.gal-edit-change-btn {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.6); color: #fff; border-radius: 20px;
  padding: 5px 14px; font-size: .78rem; font-family: Tajawal,sans-serif;
  font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.gal-edit-fields { display: flex; flex-direction: column; gap: 10px; }
.gal-edit-btns {
  display: flex; gap: 8px; padding: 12px 18px;
  border-top: 1px solid var(--border-color);
}
.gal-info {
  padding: 10px 12px 12px;
}
.gal-name {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.gal-desc {
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: 5px;
  line-height: 1.45;
}
.gal-date {
  font-size: .73rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 600px) {
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
