:root {
  --brown: #8B6F4A;
  --brown-deep: #4A3D2A;
  --gold: #C4A05F;
  --gold-soft: #DCC088;
  --honey: #D9BC7C;
  --sand: #E6D4AA;
  --cream: #FBF6EC;
  --card: #F1E9D3;
  --sage-light: #C4CDA9;
  --sage: #8FA378;
  --sage-deep: #6D8460;
  --terra: #CB8B6F;
  --text: #4A3D2A;
  --muted: #8A7659;
  --olive: #8FA378;
  --line: rgba(139, 111, 74, 0.14);
  --line-strong: rgba(139, 111, 74, 0.28);
}

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

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient — sun through palm fronds, morning light */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 85% 55% at 20% -10%, rgba(220, 192, 136, 0.35), transparent 65%),
    radial-gradient(ellipse 55% 35% at 90% 0%, rgba(203, 139, 111, 0.10), transparent 65%),
    radial-gradient(ellipse 75% 40% at 40% 100%, rgba(143, 163, 120, 0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 234, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  font-weight: 700;
  color: #A67B3D;
  letter-spacing: -0.5px;
}

.brand-latin {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--sage-deep);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--brown-deep);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.nav-actions { display: flex; gap: 10px; align-items: center; }

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--brown);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary { background: #B87858; color: var(--cream); }
.btn-primary:hover {
  background: #A26547;
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(184, 120, 88, 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--brown-deep);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

.btn-ghost {
  background: transparent;
  color: var(--brown-deep);
  padding: 10px 14px;
  font-size: 14px;
}
.btn-ghost:hover { color: var(--sage-deep); }

.btn-wa {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  background: var(--sage-deep);
  color: white;
}
.btn-wa:hover { background: #5A6E4F; transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
  overflow: visible;
}
.hero > .sadu-pattern { z-index: 0; }
.hero .container { overflow: visible; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hairline {
  height: 1px;
  background: var(--gold);
  width: 42px;
  position: relative;
  display: inline-block;
}
.hairline::after {
  content: '';
  position: absolute;
  right: -3px;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.22;
  color: var(--brown-deep);
  letter-spacing: -1px;
  max-width: 17ch;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--gold); }

.hero p.lead {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--muted);
  max-width: 45ch;
  margin-bottom: 36px;
  line-height: 1.85;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-actions .btn { padding: 15px 28px; font-size: 16px; }

/* Hero two-column grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

/* Photo Slider */
.hero-slider {
  position: relative;
  z-index: 1;
}

.slider-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 
    0 30px 60px -25px rgba(74, 61, 42, 0.28),
    0 15px 30px -15px rgba(74, 61, 42, 0.18);
  border: 1px solid rgba(196, 160, 95, 0.35);
  background: linear-gradient(135deg, #E5D4AF 0%, #C4A05F 100%);
}

.slider-slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Subtle warm overlay to unify photos — no darkening */
.slider-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(228, 195, 129, 0.10), transparent 55%),
    linear-gradient(315deg, rgba(184, 120, 88, 0.08), transparent 55%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}

/* Live badge — top of image */
.slider-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 15, 8, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 250, 235, 0.95);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  z-index: 3;
  border: 1px solid rgba(196, 160, 95, 0.35);
  font-family: 'Tajawal', sans-serif;
}

.slider-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E4C381;
  box-shadow: 0 0 0 3px rgba(228, 195, 129, 0.25);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 3px rgba(228, 195, 129, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(228, 195, 129, 0.08); }
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 246, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(196, 160, 95, 0.3);
  color: var(--brown-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: all 0.25s;
  opacity: 0;
}

.slider-frame:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: var(--brown-deep);
  color: var(--cream);
  border-color: var(--brown-deep);
}

.slider-arrow-prev { right: 16px; }
.slider-arrow-next { left: 16px; }

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(251, 246, 236, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s;
}

.slider-dot:hover { background: rgba(251, 246, 236, 0.8); }

.slider-dot.active {
  background: #E4C381;
  width: 22px;
  border-radius: 4px;
}

/* Floating decorative tag */
.slider-tag {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--cream);
  border: 1px solid rgba(196, 160, 95, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 
    0 24px 40px -20px rgba(74, 61, 42, 0.2),
    0 12px 20px -10px rgba(74, 61, 42, 0.15);
  z-index: 5;
  animation: float-tag 4s ease-in-out infinite;
}

@keyframes float-tag {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.slider-tag-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E4C381 0%, #C4A05F 100%);
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slider-tag-title {
  font-family: 'El Messiri', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.2;
  margin-bottom: 2px;
}

.slider-tag-sub {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

.sadu-pattern {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

/* ============ STATS ============ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
  margin-top: 30px;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.stat {
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-family: 'El Messiri', serif;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.stat-num .plus { color: var(--gold); font-weight: 500; margin-left: 2px; }
.stat-num .unit { font-size: 0.55em; color: var(--muted); font-weight: 400; margin-right: 4px; }

.stat-label {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* ============ SECTIONS ============ */
.section {
  padding: clamp(70px, 10vw, 120px) 0;
  position: relative;
}
.section.pt-0 { padding-top: 0; }

.section-head {
  text-align: center;
  margin-bottom: clamp(45px, 6vw, 70px);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  color: var(--brown-deep);
  line-height: 1.32;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card);
  border-radius: 20px;
  padding: 30px 26px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 160, 95, 0.5);
  box-shadow: 0 24px 42px -22px rgba(139, 111, 74, 0.22);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.16), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  stroke-width: 1.5;
}

.service-title {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 10px;
}

.service-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brown);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.25s, color 0.25s;
  margin-top: auto;
}
.service-link:hover { color: var(--gold); gap: 12px; }
.service-link svg { transition: transform 0.25s; }

/* Featured card (Shailat) — light sage, airy and bright */
.service-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(140deg, #EEF2E1 0%, #C4CDA9 100%);
  color: var(--brown-deep);
  padding: 44px 36px;
  border: 1px solid rgba(109, 132, 96, 0.22);
}
.service-card.featured::before {
  background: radial-gradient(circle, rgba(255, 250, 235, 0.55), transparent 65%);
  width: 260px;
  height: 260px;
  top: -80px; left: -80px;
}
.service-card.featured::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(143, 163, 120, 0.22), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.service-card.featured .service-title { color: var(--brown-deep); font-size: 34px; margin-bottom: 14px; }
.service-card.featured .service-desc { color: rgba(74, 61, 42, 0.75); font-size: 16px; }
.service-card.featured .service-icon { color: var(--sage-deep); width: 56px; height: 56px; margin-bottom: 30px; }
.service-card.featured .service-link { color: var(--sage-deep); font-size: 15px; }
.service-card.featured .service-link:hover { color: #4E6142; }
.service-card.featured .service-tag {
  display: inline-block;
  background: rgba(109, 132, 96, 0.18);
  color: var(--sage-deep);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(109, 132, 96, 0.35);
}

/* ============ PROCESS ============ */
.process {
  background: linear-gradient(180deg, var(--card) 0%, #EDE4CE 100%);
  border-radius: 32px;
  padding: clamp(40px, 5vw, 70px) clamp(28px, 5vw, 60px);
  margin: 0 clamp(0px, 2vw, 20px);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: 40px; left: 40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.12), transparent 65%);
  border-radius: 50%;
}

.process-head {
  margin-bottom: 50px;
  position: relative;
}

.process-head .section-eyebrow {
  margin-bottom: 16px;
  display: inline-flex;
}
.process-head .section-eyebrow::before,
.process-head .section-eyebrow::after { display: none; }

.process-head h2 {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--brown-deep);
  line-height: 1.35;
  max-width: 22ch;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
  position: relative;
}

.process-step {
  text-align: right;
  position: relative;
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
  font-weight: 500;
  font-style: italic;
  display: block;
}

.step-name {
  font-family: 'El Messiri', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.process-more {
  text-align: center;
  margin-top: 45px;
  position: relative;
}

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, #F1E4C1 0%, #D9BC7C 55%, #C4A05F 100%);
  color: var(--brown-deep);
  border-radius: 32px;
  padding: clamp(55px, 7vw, 90px) clamp(30px, 5vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 clamp(0px, 2vw, 20px);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 250, 235, 0.4), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(143, 163, 120, 0.18), transparent 55%);
  pointer-events: none;
}

.cta-band > * { position: relative; }

.cta-band .cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sage-deep);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.cta-band .cta-eyebrow::before,
.cta-band .cta-eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--sage-deep);
}

.cta-band h2 {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--brown-deep);
}

.cta-band p {
  color: rgba(74, 61, 42, 0.75);
  font-size: 17px;
  max-width: 50ch;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.cta-band .btn-primary {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 500;
}
.cta-band .btn-primary:hover {
  background: #5A6E4F;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(109, 132, 96, 0.5);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 80px;
}

.footer-brand {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  color: #A67B3D;
  margin-bottom: 6px;
  font-weight: 700;
}

.footer-latin {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: var(--sage-deep);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-copy { font-size: 12px; opacity: 0.7; margin-top: 16px; }

/* ============ FLOATING WHATSAPP ============ */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 12px 28px -8px rgba(109, 132, 96, 0.5),
    0 6px 14px -4px rgba(74, 61, 42, 0.2);
  z-index: 200;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--sage-deep);
  opacity: 0.6;
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 
    0 18px 34px -10px rgba(109, 132, 96, 0.55),
    0 8px 18px -4px rgba(74, 61, 42, 0.22);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: var(--brown-deep);
  color: var(--cream);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 20px -6px rgba(74, 61, 42, 0.3);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--brown-deep);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-2px) translateX(0);
}

@media (max-width: 560px) {
  .wa-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-tooltip { display: none; }
}

/* ============ MUNSHIDEEN CAROUSEL ============ */
.munshideen-section {
  padding: clamp(70px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.munshideen-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
  gap: 30px;
  flex-wrap: wrap;
}

.munshideen-head .section-eyebrow {
  margin-bottom: 12px;
  display: inline-flex;
}
.munshideen-head .section-eyebrow::before,
.munshideen-head .section-eyebrow::after { display: none; }
.munshideen-head .section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.munshideen-head h2 {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--brown-deep);
  line-height: 1.3;
  max-width: 20ch;
  letter-spacing: -0.5px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.carousel-btn:hover {
  background: var(--gold);
  color: var(--cream);
  border-color: var(--gold);
}
.carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-btn:disabled:hover { background: var(--card); color: var(--brown); border-color: var(--line); }

.munshideen-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 calc(-1 * clamp(20px, 4vw, 48px));
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px);
}
.munshideen-track::-webkit-scrollbar { display: none; }

.munshid-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 22px;
  padding: 30px 24px 24px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-align: center;
  overflow: hidden;
}
.munshid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 160, 95, 0.5);
  box-shadow: 0 24px 42px -22px rgba(139, 111, 74, 0.22);
}

.munshid-card::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.14), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.munshid-portrait {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  margin: 0 auto 18px;
  position: relative;
  background: linear-gradient(140deg, var(--sand), #D4BE8E);
  padding: 3px;
  z-index: 1;
}
.munshid-portrait::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0.5;
}
.munshid-portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #E5D4AF 0%, #C4A05F 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.munshid-portrait-inner svg { width: 82%; height: auto; margin-bottom: -6px; }

/* Portrait color variants */
.munshid-card:nth-child(2) .munshid-portrait-inner { background: linear-gradient(180deg, #E5D4AF 0%, #B8895D 100%); }
.munshid-card:nth-child(3) .munshid-portrait-inner { background: linear-gradient(180deg, #DCC088 0%, #8B6F4A 100%); }
.munshid-card:nth-child(4) .munshid-portrait-inner { background: linear-gradient(180deg, #E8DDC0 0%, #9AAA85 100%); }
.munshid-card:nth-child(5) .munshid-portrait-inner { background: linear-gradient(180deg, #DBC297 0%, #8B6F4A 100%); }
.munshid-card:nth-child(6) .munshid-portrait-inner { background: linear-gradient(180deg, #E5D4AF 0%, #C4A05F 100%); }

.munshid-name {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 6px;
  position: relative;
}

.munshid-bio {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
  min-height: 42px;
  position: relative;
}

.munshid-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(196, 160, 95, 0.14);
  color: var(--brown);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
}
.munshid-stats::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.munshid-actions {
  display: flex;
  gap: 8px;
  position: relative;
}

.munshid-actions .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 13.5px;
  justify-content: center;
}

.munshid-actions .btn-primary { padding: 10px 12px; }

/* ============ WORKS GALLERY ============ */
.works-section {
  padding: clamp(70px, 10vw, 120px) 0;
  position: relative;
}

.works-head {
  text-align: center;
  margin-bottom: 40px;
}

.works-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 45px;
  padding: 6px;
  background: var(--card);
  border-radius: 999px;
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--line);
}

.filter-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-deep);
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.filter-btn:hover { color: var(--sage-deep); }
.filter-btn.active {
  background: var(--sage-deep);
  color: var(--cream);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 160, 95, 0.5);
  box-shadow: 0 24px 42px -22px rgba(139, 111, 74, 0.22);
}
.work-card:hover .work-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #B87858;
  color: var(--cream);
}
.work-card:hover .work-thumb::after { opacity: 0.5; }

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #E6D4AA 0%, #C4A05F 100%);
}
.work-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 250, 235, 0.5), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(143, 163, 120, 0.18), transparent 55%);
}
.work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(74, 61, 42, 0.35) 100%);
  opacity: 0.6;
  transition: opacity 0.35s;
}

/* Thumbnail color variants — nature-inspired lights */
.work-card[data-cat="zaffa"] .work-thumb { background: linear-gradient(135deg, #F1E4C1 0%, #D9BC7C 100%); }
.work-card[data-cat="shaila"] .work-thumb { background: linear-gradient(135deg, #E6D4AA 0%, #C4A05F 100%); }
.work-card[data-cat="song"] .work-thumb { background: linear-gradient(135deg, #F5EAD5 0%, #E6D4AA 100%); }
.work-card[data-cat="poem"] .work-thumb { background: linear-gradient(135deg, #D6DFC0 0%, #8FA378 100%); }

.work-thumb-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(74, 61, 42, 0.28);
  z-index: 1;
}
.work-thumb-art svg { width: 55%; height: 55%; }

.work-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(251, 246, 236, 0.88);
  backdrop-filter: blur(6px);
  color: var(--brown-deep);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
  border: 1px solid rgba(196, 160, 95, 0.4);
}

.work-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(251, 246, 236, 0.95);
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.35s, background 0.35s, color 0.35s;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px -6px rgba(74, 61, 42, 0.25);
}
.work-play svg { margin-right: -3px; }

.work-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-title {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 12px;
  line-height: 1.5;
}

.work-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.work-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.work-meta-item svg { color: var(--gold); }

.work-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brown);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  transition: gap 0.25s, color 0.25s;
}
.work-cta:hover { color: var(--gold); gap: 12px; }

.works-more {
  text-align: center;
  margin-top: 45px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .sadu-pattern { opacity: 0.35; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .desktop-only { display: none !important; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-content { text-align: right; }
  .hero h1 { max-width: none; font-size: clamp(2rem, 5.5vw, 3rem); }
  .hero p.lead { max-width: none; }
  .slider-frame { aspect-ratio: 4 / 5; max-width: 380px; margin: 0 auto; }
  .slider-tag { bottom: -14px; left: -12px; padding: 12px 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--line); padding-top: 26px; }
  .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 26px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card.featured { grid-column: span 2; grid-row: auto; padding: 36px 28px; }
  .service-card.featured .service-title { font-size: 28px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .munshideen-head { align-items: flex-start; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .process-steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .brand-latin { display: none; }
  .cta-band, .process { margin: 0; }
  .works-grid { grid-template-columns: 1fr; }
  .munshid-card { flex: 0 0 240px; }
  .carousel-controls { display: none; }
  .works-filter { padding: 4px; overflow-x: auto; max-width: 100%; justify-content: flex-start; scrollbar-width: none; }
  .works-filter::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; padding: 9px 16px; font-size: 13px; }
  .slider-arrow { opacity: 1; width: 38px; height: 38px; }
  .slider-tag { display: none; }
  .slider-frame { aspect-ratio: 4 / 5; max-width: 300px; border-radius: 22px; }
}

/* ============ ANIMATIONS ============ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .fade-up.delay-1 { animation-delay: 0.15s; }
  .fade-up.delay-2 { animation-delay: 0.3s; }
  .fade-up.delay-3 { animation-delay: 0.45s; }
  .fade-up.delay-4 { animation-delay: 0.6s; }
  
  @keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
  
  .service-card { opacity: 0; transform: translateY(15px); animation: fadeUp 0.7s ease-out forwards; }
  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }
  .service-card:nth-child(5) { animation-delay: 0.5s; }
  .service-card:nth-child(6) { animation-delay: 0.6s; }
  .service-card:nth-child(7) { animation-delay: 0.7s; }
}
/* ============ INNER PAGE HERO ============ */
.inner-hero {
  padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 6vw, 80px);
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(220, 192, 136, 0.25), transparent 65%);
  pointer-events: none;
}

.inner-hero-inner { position: relative; }

.inner-hero .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  justify-content: center;
}
.inner-hero .section-eyebrow::before,
.inner-hero .section-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.inner-hero-title {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--brown-deep);
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.inner-hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.85;
}

/* ============ FORMS ============ */
.form-card {
  background: var(--card);
  border-radius: 24px;
  padding: clamp(30px, 4vw, 50px);
  border: 1px solid var(--line);
  max-width: 520px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-deep);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--sage-deep);
  background: white;
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.form-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-actions .btn { flex: 1; justify-content: center; min-width: 120px; }

/* ============ LOYALTY TIERS ============ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tier-card {
  background: var(--card);
  border-radius: 20px;
  padding: 30px 24px;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(74, 61, 42, 0.18); }

.tier-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'El Messiri', serif;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(74, 61, 42, 0.25);
}
.tier-card.bronze .tier-badge { background: linear-gradient(135deg, #CD9C6B, #A67F52); }
.tier-card.silver .tier-badge { background: linear-gradient(135deg, #C0C0C0, #8B9199); }
.tier-card.gold .tier-badge { background: linear-gradient(135deg, #E4C381, #C4A05F); }
.tier-card.diamond .tier-badge { background: linear-gradient(135deg, #A8B891, #6D8460); }

.tier-name {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.tier-req {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.tier-benefits {
  list-style: none;
  padding: 0;
  text-align: right;
  font-size: 14px;
  color: var(--text);
}
.tier-benefits li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tier-benefits li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sage-deep);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

@media (max-width: 960px) { .tiers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers-grid { grid-template-columns: 1fr; } }

/* ============ ORDER TIMELINE ============ */
.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
  position: relative;
}

.timeline-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: right;
  position: relative;
}

.timeline-step.active {
  background: linear-gradient(135deg, #EEF2E1, #C4CDA9);
  border-color: var(--sage-deep);
  box-shadow: 0 12px 30px -12px rgba(109, 132, 96, 0.35);
}

.timeline-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 500;
  font-style: italic;
}
.timeline-step.active .timeline-num { color: var(--sage-deep); }

.timeline-title {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 960px) { .order-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .order-timeline { grid-template-columns: 1fr; } }

/* ============ OFFERS GRID ============ */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.offer-card {
  background: linear-gradient(135deg, var(--card), #EDE4CE);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(184, 120, 88, 0.2), transparent 60%);
  border-radius: 50%;
}

.offer-discount {
  font-family: 'El Messiri', serif;
  font-size: 52px;
  font-weight: 700;
  color: #B87858;
  line-height: 1;
  margin-bottom: 8px;
  position: relative;
}
.offer-discount small { font-size: 20px; font-weight: 500; }

.offer-title {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 8px;
  position: relative;
}

.offer-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
}

.offer-countdown {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
}

.countdown-unit {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  flex: 1;
}
.countdown-num {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
}
.countdown-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.offer-cta {
  margin-top: auto;
  position: relative;
}

@media (max-width: 960px) { .offers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offers-grid { grid-template-columns: 1fr; } }

/* ============ MUNSHID DETAIL ============ */
.munshid-hero {
  padding: clamp(40px, 6vw, 70px) 0;
}
.munshid-hero-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: center;
}

.munshid-hero-portrait {
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #E5D4AF 0%, #C4A05F 100%);
  padding: 4px;
  position: relative;
}
.munshid-hero-portrait::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  border: 1px solid rgba(196, 160, 95, 0.5);
}
.munshid-hero-portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #DCC088, #8B6F4A);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.munshid-hero-portrait-inner svg { width: 78%; margin-bottom: -10%; }

.munshid-hero-stats {
  display: flex;
  gap: 30px;
  margin: 20px 0 26px;
  flex-wrap: wrap;
}
.munshid-hero-stat { display: flex; flex-direction: column; }
.munshid-hero-stat-num {
  font-family: 'El Messiri', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
  margin-bottom: 4px;
}
.munshid-hero-stat-label { font-size: 13px; color: var(--muted); }

@media (max-width: 800px) {
  .munshid-hero-grid { grid-template-columns: 1fr; }
  .munshid-hero-portrait { max-width: 260px; margin: 0 auto; }
}

/* ============ WORK GRID (larger) ============ */
.works-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .works-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .works-page-grid { grid-template-columns: 1fr; } }

/* ============ MUNSHIDEEN GRID (full page) ============ */
.munshideen-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .munshideen-full-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .munshideen-full-grid { grid-template-columns: 1fr; } }

/* ============ ORDER WIZARD ============ */
.wizard-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Progress bar */
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 40px;
  position: relative;
  padding: 0 20px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.progress-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'El Messiri', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.35s ease;
  position: relative;
  z-index: 2;
}

.progress-step.active .progress-step-circle {
  background: var(--cream);
  border-color: var(--gold);
  color: var(--brown-deep);
  box-shadow: 0 0 0 4px rgba(196, 160, 95, 0.18);
  transform: scale(1.06);
}

.progress-step.completed .progress-step-circle {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--cream);
}

.progress-step.completed .progress-step-circle svg { width: 18px; height: 18px; }

.progress-step-label {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  transition: color 0.3s;
}
.progress-step.active .progress-step-label { color: var(--brown-deep); font-weight: 600; }
.progress-step.completed .progress-step-label { color: var(--sage-deep); }

/* Connecting line */
.progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 19px;
  right: calc(-50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--line);
  z-index: 1;
  transition: background 0.5s;
}
.progress-step.completed:not(:last-child)::after { background: var(--sage); }

/* Mobile progress: compress to text + bar */
.wizard-progress-mobile { display: none; }

@media (max-width: 720px) {
  .wizard-progress { display: none; }
  .wizard-progress-mobile {
    display: block;
    margin-bottom: 30px;
    text-align: center;
  }
  .wizard-progress-mobile-text {
    font-family: 'El Messiri', serif;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
  }
  .wizard-progress-mobile-text b { color: var(--brown-deep); font-weight: 700; }
  .wizard-progress-mobile-bar {
    height: 6px;
    background: var(--card);
    border-radius: 999px;
    overflow: hidden;
  }
  .wizard-progress-mobile-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage-deep), var(--gold));
    border-radius: 999px;
    transition: width 0.5s ease;
  }
}

/* Step panels */
.step-panel {
  display: none;
  animation: panel-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-panel.active { display: block; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-panel-header { text-align: center; margin-bottom: 40px; }
.step-panel-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--brown-deep);
  margin-bottom: 10px;
  font-weight: 600;
}
.step-panel-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.75;
}

/* Selectable cards */
.select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.select-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  cursor: pointer;
  text-align: right;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.select-card:hover {
  border-color: rgba(196, 160, 95, 0.55);
  transform: translateY(-2px);
}

.select-card.selected {
  border-color: var(--sage-deep);
  background: linear-gradient(135deg, #F5F8ED 0%, #E4EBD0 100%);
  box-shadow: 0 12px 26px -12px rgba(109, 132, 96, 0.28);
}

.select-card .check-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s;
}
.select-card.selected .check-icon { opacity: 1; transform: scale(1); }

.select-card-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 14px;
}
.select-card.selected .select-card-icon { color: var(--sage-deep); }

.select-card-title {
  font-family: 'El Messiri', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.select-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.select-card-price {
  font-family: 'El Messiri', serif;
  font-size: 15px;
  color: var(--brown);
  font-weight: 600;
}

/* Wizard actions */
.wizard-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.wizard-actions .btn { min-width: 140px; justify-content: center; }
.wizard-actions .btn-back { background: transparent; color: var(--muted); border: 1px solid var(--line-strong); }
.wizard-actions .btn-back:hover { color: var(--brown-deep); border-color: var(--sage-deep); }

/* Verse counter */
.verse-counter {
  background: var(--card);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  text-align: center;
  margin-bottom: 20px;
}
.verse-counter-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.verse-counter-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.verse-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  color: var(--brown-deep);
  cursor: pointer;
  font-size: 22px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.verse-btn:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.verse-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.verse-count {
  font-family: 'El Messiri', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
  min-width: 100px;
}
.verse-price {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--sage-deep);
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* Review card */
.review-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 20px;
}
.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.review-row:last-child { border-bottom: none; }
.review-label { font-size: 14px; color: var(--muted); }
.review-value {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  color: var(--brown-deep);
  font-weight: 600;
  text-align: left;
}
.review-total {
  background: linear-gradient(135deg, #F5F8ED, #E4EBD0);
  padding: 24px;
}
.review-total .review-value { font-size: 24px; color: var(--sage-deep); }

/* Bank details */
.bank-card {
  background: linear-gradient(135deg, var(--card), #EDE4CE);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.bank-card::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.18), transparent 65%);
  border-radius: 50%;
}

.bank-title {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  margin-bottom: 20px;
  position: relative;
}

.bank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  position: relative;
}
.bank-row:first-of-type { border-top: none; }

.bank-row-content { flex: 1; min-width: 0; }
.bank-row-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bank-row-value {
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  color: var(--brown-deep);
  font-weight: 500;
  word-break: break-all;
  line-height: 1.4;
}
.bank-row-value.mono { font-family: monospace, 'Tajawal', sans-serif; letter-spacing: 0.5px; }

.copy-btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  color: var(--brown-deep);
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.copy-btn:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.copy-btn.copied { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--cream); }

/* Upload area */
.upload-area {
  border: 2px dashed var(--line-strong);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cream);
  margin-bottom: 20px;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--sage-deep);
  background: #F5F8ED;
}
.upload-icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  color: var(--gold);
}
.upload-title {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 6px;
}
.upload-hint {
  font-size: 13px;
  color: var(--muted);
}
.upload-file-info {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--card);
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--brown-deep);
}
.upload-area.has-file .upload-file-info { display: inline-flex; }

/* Success screen */
.success-screen {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A8B891, #6D8460);
  color: var(--cream);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 40px -20px rgba(109, 132, 96, 0.4);
}
@keyframes success-pop {
  from { transform: scale(0.3); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-title {
  font-family: 'El Messiri', serif;
  font-size: 28px;
  color: var(--brown-deep);
  margin-bottom: 12px;
  font-weight: 700;
}
.success-message {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.75;
}
.success-order-num {
  display: inline-block;
  padding: 12px 24px;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-family: monospace, 'Tajawal', sans-serif;
  font-size: 18px;
  color: var(--brown-deep);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

/* Country switcher */
.country-tabs {
  display: flex;
  gap: 8px;
  background: var(--card);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
}
.country-tab {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--brown-deep);
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 60px;
  white-space: nowrap;
}
.country-tab:hover { color: var(--sage-deep); }
.country-tab.active { background: var(--sage-deep); color: var(--cream); }

.intl-notice {
  display: none;
  background: linear-gradient(135deg, #F5E8D0, #E9D5A5);
  border: 1px solid rgba(196, 160, 95, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: var(--brown-deep);
  font-size: 14px;
  line-height: 1.7;
}
.intl-notice.active { display: block; }

/* Munshid select cards (mini) */
.munshid-select-card { text-align: center; }
.munshid-select-card .select-card-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(180deg, #DCC088, #8B6F4A);
  padding: 3px;
  position: relative;
}
.munshid-select-card .select-card-portrait-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(180deg, #E5D4AF, #C4A05F);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.munshid-select-card .select-card-portrait-inner svg { width: 80%; margin-bottom: -6px; }
.munshid-select-card:nth-child(2) .select-card-portrait-inner { background: linear-gradient(180deg, #E5D4AF, #B8895D); }
.munshid-select-card:nth-child(3) .select-card-portrait-inner { background: linear-gradient(180deg, #DCC088, #8B6F4A); }
.munshid-select-card:nth-child(4) .select-card-portrait-inner { background: linear-gradient(180deg, #E8DDC0, #9AAA85); }
.munshid-select-card:nth-child(5) .select-card-portrait-inner { background: linear-gradient(180deg, #DBC297, #8B6F4A); }
.munshid-select-card:nth-child(6) .select-card-portrait-inner { background: linear-gradient(180deg, #E5D4AF, #C4A05F); }

/* Melody select — waveform preview */
.melody-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-align: right;
}
.melody-play-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.melody-play-btn:hover { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); }
.melody-content { flex: 1; min-width: 0; }
.melody-name {
  font-family: 'El Messiri', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--brown-deep);
  margin-bottom: 3px;
}
.melody-mood { font-size: 12.5px; color: var(--muted); }
.melody-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 60px;
  height: 26px;
  flex-shrink: 0;
}
.melody-wave span {
  flex: 1;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.5;
}

/* ============ ACCOUNT AREA ============ */
.account-bar {
  position: sticky;
  top: 74px;
  z-index: 90;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.account-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}

.account-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.account-tabs::-webkit-scrollbar { display: none; }

.account-tab {
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.account-tab:hover { color: var(--brown-deep); background: var(--card); }
.account-tab.active {
  background: linear-gradient(135deg, #F5F8ED, #E4EBD0);
  color: var(--sage-deep);
  font-weight: 600;
}
.account-tab.active svg { color: var(--sage-deep); }
.account-tab svg { width: 16px; height: 16px; color: currentColor; }

.account-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brown));
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 15px;
}

.account-user-info { line-height: 1.3; }
.account-user-name { font-size: 13.5px; color: var(--brown-deep); font-weight: 600; }
.account-user-role { font-size: 11px; color: var(--muted); }

@media (max-width: 720px) {
  .account-bar { top: 68px; }
  .account-user-info { display: none; }
  .account-tab { padding: 10px 14px; font-size: 13px; }
}

/* Dashboard welcome */
.welcome-block {
  padding: 30px 0 20px;
}
.welcome-text {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--brown-deep);
  margin-bottom: 4px;
  font-weight: 600;
}
.welcome-sub { color: var(--muted); font-size: 15px; }

/* Stats cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.dash-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.dash-stat-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(74,61,42,0.18); }

.dash-stat-card::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(196,160,95,0.14), transparent 65%);
  border-radius: 50%;
}

.dash-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
}
.dash-stat-card.sage .dash-stat-icon { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: var(--cream); }
.dash-stat-card.terra .dash-stat-icon { background: linear-gradient(135deg, #E3B29A, #B87858); color: var(--cream); }

.dash-stat-value {
  font-family: 'El Messiri', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
}
.dash-stat-label { font-size: 13.5px; color: var(--muted); position: relative; }

@media (max-width: 900px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dash-stats { grid-template-columns: 1fr 1fr; gap: 12px; } .dash-stat-card { padding: 18px 16px; } .dash-stat-value { font-size: 22px; } }

/* Level card */
.level-card {
  background: linear-gradient(135deg, #F1E4C1 0%, #D9BC7C 60%, #C4A05F 100%);
  border-radius: 22px;
  padding: 30px;
  color: var(--brown-deep);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.level-card::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,250,235,0.4), transparent 60%);
  border-radius: 50%;
}
.level-card-content { display: flex; align-items: center; gap: 24px; position: relative; flex-wrap: wrap; }
.level-badge-big {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 32px;
  box-shadow: 0 10px 24px -8px rgba(139,111,74,0.4);
  flex-shrink: 0;
}
.level-info { flex: 1; min-width: 200px; }
.level-current-label { font-size: 13px; color: rgba(74,61,42,0.7); margin-bottom: 4px; }
.level-current-name {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 12px;
}
.level-progress-bar {
  height: 8px;
  background: rgba(255,250,235,0.55);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6D8460, #8FA378);
  border-radius: 999px;
}
.level-progress-text { font-size: 13px; color: rgba(74,61,42,0.8); }

/* Section cards */
.dash-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 22px;
}
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.dash-section-title {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  font-weight: 600;
}
.dash-section-more {
  font-size: 13.5px;
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dash-section-more:hover { color: #4E6142; }

/* Order rows (list) */
.order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.order-row:first-child { border-top: none; }

.order-num-tag {
  font-family: monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--cream);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.order-row-title {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  color: var(--brown-deep);
  font-size: 16px;
  margin-bottom: 3px;
}
.order-row-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.order-price {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15px;
  white-space: nowrap;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-active { background: rgba(196,160,95,0.15); color: #8B6740; }
.status-progress { background: rgba(184,120,88,0.15); color: #A26547; }
.status-completed { background: rgba(109,132,96,0.15); color: var(--sage-deep); }
.status-waiting { background: rgba(139,111,74,0.14); color: var(--brown); }

.order-row-arrow {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.order-row:hover .order-row-arrow { color: var(--sage-deep); transform: translateX(-3px); }

@media (max-width: 720px) {
  .order-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .order-row .order-num-tag { grid-column: 1; grid-row: 1; }
  .order-row .status-badge { grid-column: 2; grid-row: 1; }
  .order-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .order-row .order-price { grid-column: 1; grid-row: 3; }
  .order-row .order-row-arrow { grid-column: 2; grid-row: 3; align-self: end; }
}

/* Full order timeline (vertical, per-stage) */
.timeline-vertical {
  padding-right: 30px;
  position: relative;
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px;
  right: 10px;
  width: 2px;
  background: var(--line);
}
.timeline-v-step {
  position: relative;
  padding: 12px 0;
}
.timeline-v-step::before {
  content: '';
  position: absolute;
  right: -25px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line-strong);
  z-index: 1;
}
.timeline-v-step.done::before {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}
.timeline-v-step.current::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(196,160,95,0.22);
  animation: current-pulse 2s ease-in-out infinite;
}
@keyframes current-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(196,160,95,0.22); }
  50% { box-shadow: 0 0 0 8px rgba(196,160,95,0.10); }
}

.timeline-v-name {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 3px;
}
.timeline-v-step.done .timeline-v-name,
.timeline-v-step.current .timeline-v-name { color: var(--brown-deep); }

.timeline-v-date { font-size: 12.5px; color: var(--muted); }

/* Notifications */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.notif-item:first-child { border-top: none; }
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex-shrink: 0;
}
.notif-item.read .notif-dot { background: var(--line-strong); }
.notif-content { flex: 1; }
.notif-text { color: var(--brown-deep); font-size: 14px; line-height: 1.6; margin-bottom: 3px; }
.notif-time { font-size: 12px; color: var(--muted); }

/* Loyalty card (digital) */
.loyalty-card-visual {
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,250,235,0.28), transparent 55%),
    linear-gradient(135deg, #8B6740 0%, #5C4A32 100%);
  color: var(--cream);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1.586;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 60px -20px rgba(74,61,42,0.4);
}

.loyalty-card-visual::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(196,160,95,0.28), transparent 65%);
  border-radius: 50%;
}

.loyalty-card-top { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }

.loyalty-card-brand {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: #E4C381;
  margin-bottom: 4px;
}
.loyalty-card-brand-latin {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10.5px;
  letter-spacing: 3px;
  color: rgba(228,195,129,0.75);
  text-transform: uppercase;
}

.loyalty-tier-pill {
  background: linear-gradient(135deg, #E4C381, #C4A05F);
  color: #4A3D2A;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 13px;
}

.loyalty-card-num {
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 3px;
  color: rgba(255,250,235,0.85);
  position: relative;
}

.loyalty-card-foot { display: flex; justify-content: space-between; align-items: flex-end; position: relative; }
.loyalty-card-name-label { font-size: 10px; color: rgba(228,195,129,0.7); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
.loyalty-card-name-val { font-family: 'El Messiri', serif; font-size: 15px; font-weight: 600; }

.loyalty-qr {
  width: 60px; height: 60px;
  background: var(--cream);
  border-radius: 10px;
  padding: 6px;
}
.loyalty-qr svg { width: 100%; height: 100%; color: #4A3D2A; }

/* Wallet buttons */
.wallet-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
  flex-wrap: wrap;
}
.wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--brown-deep);
  color: var(--cream);
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.wallet-btn:hover { background: #322612; transform: translateY(-1px); }
.wallet-btn svg { width: 22px; height: 22px; }

/* Profile form */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .profile-grid { grid-template-columns: 1fr; } }

/* ============ POEM WRITING TOOL ============ */
.poem-tool {
  background: 
    radial-gradient(circle at 15% 20%, rgba(255, 250, 235, 0.5), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(143, 163, 120, 0.15), transparent 55%),
    linear-gradient(135deg, #F5EBCF 0%, #E5D4AA 60%, #DCC088 100%);
  border-radius: 32px;
  padding: clamp(50px, 7vw, 80px) clamp(30px, 5vw, 60px);
  margin: 0 clamp(0px, 2vw, 20px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.poem-tool::before {
  content: '"';
  position: absolute;
  top: 30px;
  right: 50px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 200px;
  color: rgba(196, 160, 95, 0.18);
  line-height: 0.8;
  pointer-events: none;
}

.poem-tool > * { position: relative; z-index: 1; }

.poem-tool-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sage-deep);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  justify-content: center;
}
.poem-tool-eyebrow::before,
.poem-tool-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--sage-deep);
}

.poem-tool-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: var(--brown-deep);
  margin-bottom: 14px;
  font-weight: 600;
}

.poem-tool-sub {
  color: rgba(74, 61, 42, 0.75);
  font-size: 16px;
  max-width: 50ch;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.poem-tool-counter {
  background: rgba(251, 246, 236, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(196, 160, 95, 0.35);
  border-radius: 22px;
  padding: 32px;
  max-width: 460px;
  margin: 0 auto 24px;
}

.poem-tool-label {
  font-size: 13.5px;
  color: rgba(74, 61, 42, 0.7);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.poem-tool-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.poem-tool-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(139, 111, 74, 0.3);
  background: var(--cream);
  color: var(--brown-deep);
  cursor: pointer;
  font-size: 26px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 10px -4px rgba(74, 61, 42, 0.15);
}
.poem-tool-btn:hover:not(:disabled) {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
  transform: translateY(-2px);
}
.poem-tool-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.poem-tool-num {
  font-family: 'El Messiri', serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
  min-width: 130px;
  transition: transform 0.15s;
}
.poem-tool-num.pulse { transform: scale(1.08); }

.poem-tool-verses-label {
  font-size: 15px;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: 20px;
}

.poem-tool-price {
  padding-top: 20px;
  border-top: 1px dashed rgba(196, 160, 95, 0.4);
  font-family: 'El Messiri', serif;
  font-size: 15px;
  color: rgba(74, 61, 42, 0.7);
}
.poem-tool-price b {
  font-size: 28px;
  color: var(--sage-deep);
  font-weight: 700;
  margin: 0 6px;
}

/* Poem tool secondary — upload existing */
.poem-tool-alt {
  margin-top: 30px;
  color: rgba(74, 61, 42, 0.6);
  font-size: 14px;
}
.poem-tool-alt a {
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--sage-deep);
  transition: color 0.2s;
}
.poem-tool-alt a:hover { color: #4E6142; }

/* ============ COUNTRIES ============ */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .countries-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .countries-grid { grid-template-columns: 1fr 1fr; } }

.country-card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.country-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 160, 95, 0.5);
  box-shadow: 0 24px 42px -22px rgba(74, 61, 42, 0.18);
}

.country-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.14), transparent 65%);
  border-radius: 50%;
}

.country-flag {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  filter: drop-shadow(0 4px 10px rgba(74, 61, 42, 0.15));
}

.country-name {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 6px;
  position: relative;
}

.country-info {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  position: relative;
  line-height: 1.6;
}

.country-stat {
  display: inline-block;
  background: rgba(143, 163, 120, 0.15);
  color: var(--sage-deep);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--card);
  border-radius: 22px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 110px;
  color: rgba(196, 160, 95, 0.22);
  line-height: 1;
  font-weight: 500;
}

.testimonial-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
}

.testimonial-quote {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 22px;
  position: relative;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  position: relative;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.testimonial-card:nth-child(2) .testimonial-avatar { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: white; }
.testimonial-card:nth-child(3) .testimonial-avatar { background: linear-gradient(135deg, #E3B29A, #B87858); color: white; }
.testimonial-card:nth-child(5) .testimonial-avatar { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: white; }
.testimonial-card:nth-child(6) .testimonial-avatar { background: linear-gradient(135deg, #E3B29A, #B87858); color: white; }

.testimonial-name {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15px;
  line-height: 1.2;
}
.testimonial-loc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item.open {
  border-color: rgba(143, 163, 120, 0.4);
  box-shadow: 0 10px 26px -14px rgba(74, 61, 42, 0.15);
}

.faq-question {
  padding: 20px 26px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  user-select: none;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--sage-deep); }

.faq-q-text {
  font-family: 'El Messiri', serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--brown-deep);
  line-height: 1.5;
  flex: 1;
}
.faq-item.open .faq-q-text { color: var(--sage-deep); }

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-deep);
  transition: all 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-toggle {
  background: var(--sage-deep);
  color: var(--cream);
  border-color: var(--sage-deep);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 26px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 26px 22px;
}

.faq-answer-inner {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ============ ADMIN LAYOUT ============ */
body.admin { background: #F7F2E5; }

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: linear-gradient(180deg, #3D3226 0%, #2A2318 100%);
  color: rgba(251, 246, 236, 0.85);
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid rgba(196, 160, 95, 0.15);
}

.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(196, 160, 95, 0.2); border-radius: 3px; }

.admin-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px 20px;
  border-bottom: 1px solid rgba(196, 160, 95, 0.12);
  margin-bottom: 18px;
  text-decoration: none;
}

.admin-brand-mark {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: #E4C381;
}
.admin-brand-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  color: rgba(228, 195, 129, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(228, 195, 129, 0.35);
  border-radius: 6px;
  margin-right: auto;
}

.admin-nav-group { margin-bottom: 20px; }
.admin-nav-label {
  font-size: 11px;
  color: rgba(228, 195, 129, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 12px 8px;
  font-weight: 600;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(251, 246, 236, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.15s;
  margin-bottom: 2px;
  position: relative;
}
.admin-nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }

.admin-nav-item:hover {
  background: rgba(228, 195, 129, 0.08);
  color: var(--cream);
}
.admin-nav-item:hover svg { opacity: 1; }

.admin-nav-item.active {
  background: linear-gradient(135deg, rgba(196, 160, 95, 0.22), rgba(228, 195, 129, 0.12));
  color: #E4C381;
  border-right: 3px solid #E4C381;
}
.admin-nav-item.active svg { opacity: 1; color: #E4C381; }

.admin-nav-badge {
  margin-right: auto;
  background: #B87858;
  color: white;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.admin-sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(196, 160, 95, 0.12);
}

/* Admin main */
.admin-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 68px;
  background: rgba(251, 246, 236, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-topbar-title {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
  flex-shrink: 0;
}

.admin-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.admin-search input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}
.admin-search input:focus { outline: none; border-color: var(--sage-deep); }
.admin-search svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.admin-topbar-actions { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.admin-icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.admin-icon-btn:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.admin-icon-btn .dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: #B87858;
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.admin-user-badge .account-avatar { width: 30px; height: 30px; font-size: 13px; }
.admin-user-badge-name { font-size: 13px; font-weight: 600; color: var(--brown-deep); }

/* Admin content */
.admin-content { padding: 30px; flex: 1; }

.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.admin-page-title {
  font-family: 'El Messiri', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 4px;
}
.admin-page-sub { color: var(--muted); font-size: 14px; }

/* Admin stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.admin-stat-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.admin-stat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.admin-stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.admin-stat-icon-mini {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-stat-card.sage .admin-stat-icon-mini { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: white; }
.admin-stat-card.terra .admin-stat-icon-mini { background: linear-gradient(135deg, #E3B29A, #B87858); color: white; }
.admin-stat-card.plum .admin-stat-icon-mini { background: linear-gradient(135deg, #C4A8B8, #8B6F7E); color: white; }

.admin-stat-value {
  font-family: 'El Messiri', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.admin-stat-value small { font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 3px; }

.admin-stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.admin-stat-delta.up { background: rgba(109, 132, 96, 0.15); color: var(--sage-deep); }
.admin-stat-delta.down { background: rgba(184, 120, 88, 0.15); color: #A26547; }

/* Admin panels */
.admin-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-panel-title {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
}
.admin-panel-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Chart (SVG) */
.chart-container {
  position: relative;
  height: 240px;
  margin: 10px 0;
}

.chart-legend {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; }

/* Admin table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.admin-table th {
  text-align: right;
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.admin-table th:first-child { border-top-right-radius: 12px; }
.admin-table th:last-child { border-top-left-radius: 12px; }

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(251, 246, 236, 0.5); }

.admin-table .cell-strong { color: var(--brown-deep); font-weight: 600; font-family: 'El Messiri', serif; }
.admin-table .cell-mono { font-family: monospace; font-size: 12px; color: var(--muted); }

.admin-action-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--brown-deep);
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.admin-action-btn:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

.admin-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-filter-tabs {
  display: flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
}
.admin-filter-tab {
  padding: 7px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}
.admin-filter-tab.active { background: var(--brown-deep); color: var(--cream); }
.admin-filter-tab:hover:not(.active) { color: var(--brown-deep); }

.admin-search-mini {
  position: relative;
  flex: 1;
  max-width: 320px;
}
.admin-search-mini input {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-size: 13px;
  font-family: 'Tajawal', sans-serif;
}
.admin-search-mini input:focus { outline: none; border-color: var(--sage-deep); }
.admin-search-mini svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Top items list */
.top-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.top-list-item:first-child { border-top: none; }

.top-list-rank {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  min-width: 24px;
  text-align: center;
}
.top-list-info { flex: 1; min-width: 0; }
.top-list-name { font-family: 'El Messiri', serif; font-weight: 600; color: var(--brown-deep); font-size: 14.5px; margin-bottom: 3px; }
.top-list-bar {
  height: 4px;
  background: var(--card);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 5px;
}
.top-list-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--sage-deep));
  border-radius: 999px;
}
.top-list-value {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15px;
  flex-shrink: 0;
}

/* Mobile admin */
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-content { padding: 20px; }
  .admin-topbar { padding: 0 20px; }
  .admin-topbar-title { font-size: 16px; }
  .admin-search { display: none; }
}
@media (max-width: 560px) {
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .admin-stat-card { padding: 16px; }
  .admin-stat-value { font-size: 22px; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 10px 12px; }
}

/* ============ AI ASSISTANT ============ */
.ai-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E4C381 0%, #A67B3D 100%);
  color: var(--brown-deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 12px 28px -8px rgba(139, 111, 74, 0.4),
    0 6px 14px -4px rgba(74, 61, 42, 0.2);
  z-index: 200;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ai-float:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 
    0 18px 34px -10px rgba(139, 111, 74, 0.5),
    0 8px 18px -4px rgba(74, 61, 42, 0.24);
}

.ai-float::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(228, 195, 129, 0.6);
  opacity: 0.7;
  animation: ai-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ai-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.ai-float svg { width: 26px; height: 26px; }

.ai-badge-new {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #B87858;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  border: 2px solid var(--cream);
  animation: ai-badge-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}
@keyframes ai-badge-in {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

.ai-tooltip {
  position: absolute;
  left: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: var(--brown-deep);
  color: var(--cream);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 20px -6px rgba(74, 61, 42, 0.3);
}
.ai-tooltip::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--brown-deep);
}
.ai-float:hover .ai-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Chat window */
.ai-chat {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 44px);
  background: var(--cream);
  border-radius: 22px;
  box-shadow: 
    0 30px 60px -20px rgba(74, 61, 42, 0.35),
    0 15px 30px -15px rgba(74, 61, 42, 0.25);
  z-index: 201;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  animation: ai-chat-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.ai-chat.open { display: flex; }

@keyframes ai-chat-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
  background: linear-gradient(135deg, #8B6740 0%, #5C4A32 100%);
  color: var(--cream);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.ai-chat-header::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(228, 195, 129, 0.25), transparent 60%);
  border-radius: 50%;
}
.ai-chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.2);
}
.ai-chat-avatar svg { width: 22px; height: 22px; }
.ai-chat-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 10px; height: 10px;
  background: #6D8460;
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.ai-chat-title-block { flex: 1; position: relative; min-width: 0; }
.ai-chat-title {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}
.ai-chat-status {
  font-size: 11.5px;
  color: rgba(228, 195, 129, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.ai-chat-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #8FA378;
  border-radius: 50%;
}

.ai-chat-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 250, 235, 0.15);
  border: none;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
}
.ai-chat-close:hover { background: rgba(255, 250, 235, 0.25); }

.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: 
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(220, 192, 136, 0.12), transparent 60%),
    var(--cream);
}
.ai-chat-body::-webkit-scrollbar { width: 6px; }
.ai-chat-body::-webkit-scrollbar-track { background: transparent; }
.ai-chat-body::-webkit-scrollbar-thumb { background: rgba(139, 111, 74, 0.2); border-radius: 3px; }

.ai-msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.7;
  animation: msg-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: pre-wrap;
  word-wrap: break-word;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-msg-bot {
  align-self: flex-start;
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  border-top-right-radius: 6px;
  box-shadow: 0 2px 8px -4px rgba(74, 61, 42, 0.1);
}

.ai-msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #8B6740 0%, #6B4E30 100%);
  color: var(--cream);
  border-top-left-radius: 6px;
}

.ai-msg-time {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
  padding: 0 6px;
}
.ai-msg-time.self { align-self: flex-end; }

/* Typing indicator */
.ai-typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-top-right-radius: 6px;
  align-self: flex-start;
  max-width: 60px;
}
.ai-typing span {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: scale(0.7); opacity: 0.4; }
  30% { transform: scale(1); opacity: 1; }
}

/* Suggestion chips */
.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  animation: msg-in 0.35s ease;
}
.ai-suggestion {
  background: rgba(196, 160, 95, 0.14);
  color: var(--brown-deep);
  border: 1px solid rgba(196, 160, 95, 0.35);
  padding: 7px 13px;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-suggestion:hover {
  background: var(--sage-deep);
  color: var(--cream);
  border-color: var(--sage-deep);
  transform: translateY(-1px);
}

.ai-chat-footer {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: white;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ai-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.ai-input:focus { outline: none; border-color: var(--sage-deep); background: white; }

.ai-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B6740, #5C4A32);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.ai-send:hover { transform: scale(1.06); box-shadow: 0 6px 14px -4px rgba(139, 111, 74, 0.4); }
.ai-send:disabled { opacity: 0.4; cursor: not-allowed; }
.ai-send svg { transform: rotate(-90deg); }

.ai-chat-branding {
  text-align: center;
  padding: 8px 12px;
  font-size: 10.5px;
  color: var(--muted);
  background: var(--card);
  border-top: 1px solid var(--line);
}
.ai-chat-branding b { color: var(--brown); font-weight: 600; }

/* Mobile */
@media (max-width: 480px) {
  .ai-float { bottom: 18px; left: 18px; width: 54px; height: 54px; }
  .ai-tooltip { display: none; }
  .ai-chat {
    left: 0; right: 0; bottom: 0;
    width: auto;
    height: 82vh;
    max-height: 82vh;
    border-radius: 22px 22px 0 0;
  }
}

/* ============ WORK DETAIL PAGE — AUDIO PLAYER ============ */
.player-hero {
  background: 
    radial-gradient(circle at 25% 30%, rgba(228, 195, 129, 0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(143, 163, 120, 0.18), transparent 55%),
    linear-gradient(135deg, #4A3D2A 0%, #2A2318 100%);
  border-radius: 32px;
  padding: clamp(30px, 5vw, 50px);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.player-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.15), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.player-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.player-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(228, 195, 129, 0.15);
  border: 1px solid rgba(228, 195, 129, 0.35);
  border-radius: 999px;
  color: #E4C381;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.player-action-btns { display: flex; gap: 10px; }
.player-action-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 250, 235, 0.1);
  border: 1px solid rgba(255, 250, 235, 0.2);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.player-action-btn:hover {
  background: rgba(228, 195, 129, 0.2);
  border-color: rgba(228, 195, 129, 0.5);
  color: #E4C381;
  transform: translateY(-2px);
}
.player-action-btn.liked { color: #E68B7C; background: rgba(230, 139, 124, 0.1); border-color: rgba(230, 139, 124, 0.3); }

.player-track-info {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 40px;
}
.player-track-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.player-track-meta {
  color: rgba(228, 195, 129, 0.85);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.player-track-meta span { display: inline-flex; align-items: center; gap: 6px; }
.player-track-meta::before,
.player-track-meta > span:not(:last-child)::after {
  content: '·';
  margin: 0 3px;
  opacity: 0.5;
}
.player-track-meta::before { display: none; }

/* Waveform */
.player-waveform {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  padding: 0 20px;
  cursor: pointer;
}
.wf-bar {
  flex: 1;
  background: linear-gradient(180deg, rgba(228, 195, 129, 0.4), rgba(228, 195, 129, 0.3));
  border-radius: 3px;
  min-width: 3px;
  transition: background 0.15s;
}
.wf-bar.played {
  background: linear-gradient(180deg, #E4C381, #C4A05F);
}
.wf-bar.current {
  background: linear-gradient(180deg, #FFDEA0, #F5C880);
  animation: wf-pulse 0.6s ease-in-out infinite;
}
@keyframes wf-pulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.15); }
}

.player-time-row {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 14px;
  color: rgba(228, 195, 129, 0.85);
  margin-bottom: 32px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.player-ctrl-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, color 0.2s;
}
.player-ctrl-btn:hover { color: #E4C381; transform: scale(1.1); }
.player-ctrl-btn svg { width: 24px; height: 24px; }

.player-play-main {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E4C381 0%, #A67B3D 100%);
  color: var(--brown-deep);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 15px 30px -8px rgba(228, 195, 129, 0.5),
    0 6px 12px -4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.player-play-main:hover {
  transform: scale(1.06);
  box-shadow: 
    0 20px 38px -8px rgba(228, 195, 129, 0.6),
    0 8px 16px -4px rgba(0, 0, 0, 0.24);
}
.player-play-main:active { transform: scale(0.96); }
.player-play-main svg { width: 30px; height: 30px; }

/* Work-detail meta grid */
.work-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.work-meta-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
}
.work-meta-item-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.work-meta-item-value {
  font-family: 'El Messiri', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--brown-deep);
}
@media (max-width: 720px) {
  .work-meta-grid { grid-template-columns: 1fr 1fr; }
}

/* Work detail sections */
.work-story {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 30px;
}
.work-story-title {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  color: var(--brown-deep);
  margin-bottom: 16px;
  font-weight: 700;
}
.work-story p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 14px;
}
.work-story p:last-child { margin-bottom: 0; }

.work-poem-verse {
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  border-radius: 20px;
  padding: 30px 40px;
  margin: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.work-poem-verse::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 140px;
  color: rgba(196, 160, 95, 0.2);
  line-height: 1;
}
.work-poem-verse-line {
  font-family: 'El Messiri', serif;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--brown-deep);
  line-height: 2;
  font-weight: 500;
  position: relative;
}

/* Related works */
.related-works-title {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  color: var(--brown-deep);
  margin-bottom: 20px;
  font-weight: 700;
}

/* ============ CONTACT PAGE ============ */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
@media (max-width: 800px) { .contact-methods { grid-template-columns: 1fr; } }

.contact-method {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px -22px rgba(74, 61, 42, 0.18);
  border-color: rgba(196, 160, 95, 0.5);
}
.contact-method::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.14), transparent 65%);
  border-radius: 50%;
}
.contact-method.wa::before { background: radial-gradient(circle, rgba(143, 163, 120, 0.2), transparent 65%); }
.contact-method.phone::before { background: radial-gradient(circle, rgba(184, 120, 88, 0.16), transparent 65%); }

.contact-method-icon {
  width: 62px; height: 62px;
  border-radius: 20px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.contact-method.wa .contact-method-icon { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: white; }
.contact-method.phone .contact-method-icon { background: linear-gradient(135deg, #E3B29A, #B87858); color: white; }

.contact-method-label {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  position: relative;
  letter-spacing: 0.5px;
}
.contact-method-value {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 10px;
  position: relative;
  direction: ltr;
}
.contact-method-value.rtl { direction: rtl; }
.contact-method-note {
  font-size: 13px;
  color: var(--muted);
  position: relative;
}

/* Studio info card (hours + location) */
.studio-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .studio-info-grid { grid-template-columns: 1fr; } }

.hours-card, .location-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
}

.hours-title, .location-title {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hours-title svg, .location-title svg { color: var(--gold); }

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.hours-row:first-of-type { border-top: none; }
.hours-day { color: var(--brown-deep); font-weight: 500; }
.hours-time { color: var(--muted); font-family: monospace; direction: ltr; }
.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(143, 163, 120, 0.15);
  color: var(--sage-deep);
}
.hours-status::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--sage-deep);
  border-radius: 50%;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Faux map */
.map-svg {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F5EAD5, #E4EBD0);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.map-pin {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, -100%);
  animation: pin-bounce 2s ease-in-out infinite;
}
.map-pin svg { color: var(--terra); filter: drop-shadow(0 4px 8px rgba(184, 120, 88, 0.4)); }
@keyframes pin-bounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, -115%); }
}
.map-pin-shadow {
  position: absolute;
  top: 45%; left: 50%;
  transform: translate(-50%, 0);
  width: 20px; height: 8px;
  background: rgba(184, 120, 88, 0.25);
  border-radius: 50%;
  filter: blur(3px);
}

/* ============ FAQ PAGE ============ */
.faq-search-wrap {
  max-width: 620px;
  margin: 0 auto 40px;
  position: relative;
}
.faq-search-wrap input {
  width: 100%;
  padding: 18px 60px 18px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--cream);
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  color: var(--text);
  box-shadow: 0 8px 20px -12px rgba(74, 61, 42, 0.15);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search-wrap input:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 8px 24px -10px rgba(109, 132, 96, 0.25);
}
.faq-search-wrap svg {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.faq-cat-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.faq-cat-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: 'Tajawal', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-cat-tab:hover { color: var(--brown-deep); border-color: var(--sage-deep); }
.faq-cat-tab.active {
  background: var(--sage-deep);
  color: var(--cream);
  border-color: var(--sage-deep);
}

.faq-category-title {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  color: var(--brown-deep);
  margin: 30px 0 16px;
  font-weight: 700;
}
.faq-category-title:first-of-type { margin-top: 0; }

/* ============ 404 PAGE ============ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.error-page::before,
.error-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.error-page::before {
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.15), transparent 65%);
}
.error-page::after {
  bottom: -100px; left: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(143, 163, 120, 0.12), transparent 65%);
}

.error-inner {
  text-align: center;
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.error-code {
  font-family: 'El Messiri', serif;
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 0.9;
  background: linear-gradient(135deg, #E4C381 0%, #A67B3D 50%, #8B6F4A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  text-shadow: 0 20px 40px rgba(139, 111, 74, 0.15);
  letter-spacing: -0.02em;
}

.error-poem {
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  border-radius: 22px;
  padding: 30px 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.error-poem::before {
  content: '"';
  position: absolute;
  top: -20px;
  right: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 140px;
  color: rgba(196, 160, 95, 0.2);
  line-height: 1;
}
.error-poem-line {
  font-family: 'El Messiri', serif;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--brown-deep);
  line-height: 2;
  font-weight: 500;
  position: relative;
}

.error-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--brown-deep);
  margin-bottom: 12px;
  font-weight: 600;
}
.error-message {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.error-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
}
.error-quick-link {
  padding: 14px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--brown-deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}
.error-quick-link:hover {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
  transform: translateY(-2px);
}
@media (max-width: 620px) {
  .error-quick-links { grid-template-columns: 1fr 1fr; }
}

/* ============ BLOG ============ */
.blog-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
}
@media (max-width: 900px) { .blog-featured { grid-template-columns: 1fr; } }

.blog-featured-cover {
  background: 
    radial-gradient(circle at 30% 30%, rgba(228, 195, 129, 0.5), transparent 55%),
    linear-gradient(135deg, #8B6740, #5C4A32);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.blog-featured-cover-art {
  width: 60%;
  height: 60%;
  opacity: 0.5;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}

.blog-featured-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(143, 163, 120, 0.15);
  color: var(--sage-deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  width: max-content;
}
.blog-featured-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--brown-deep);
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 700;
}
.blog-featured-excerpt {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.blog-featured-meta span::after { content: '·'; margin: 0 8px; opacity: 0.5; }
.blog-featured-meta span:last-child::after { display: none; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px -22px rgba(74, 61, 42, 0.2);
}

.blog-card-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.blog-card-cover-art { width: 45%; opacity: 0.55; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.15)); }
.blog-card-cover.g1 { background: linear-gradient(135deg, #8B6740, #5C4A32); }
.blog-card-cover.g2 { background: linear-gradient(135deg, #6D8460, #4E6142); }
.blog-card-cover.g3 { background: linear-gradient(135deg, #B87858, #8B5C42); }
.blog-card-cover.g4 { background: linear-gradient(135deg, #A67B3D, #7A5A2A); }
.blog-card-cover.g5 { background: linear-gradient(135deg, #4A3D2A, #2A2318); }
.blog-card-cover.g6 { background: linear-gradient(135deg, #8FA378, #6D8460); }

.blog-card-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }

.blog-card-tag {
  font-size: 11px;
  color: var(--sage-deep);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-card-title {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
}
.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.blog-card-meta {
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.blog-card-meta span::after { content: '·'; margin: 0 6px; opacity: 0.5; }
.blog-card-meta span:last-child::after { display: none; }

/* Blog article page */
.article-hero-cover {
  height: 380px;
  border-radius: 26px;
  background: 
    radial-gradient(circle at 20% 30%, rgba(228, 195, 129, 0.5), transparent 55%),
    linear-gradient(135deg, #8B6740, #5C4A32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.article-hero-art { width: 200px; opacity: 0.6; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(143, 163, 120, 0.15);
  color: var(--sage-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.article-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown-deep);
  line-height: 1.3;
  margin-bottom: 22px;
  font-weight: 700;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.article-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-item svg { color: var(--gold); }

.article-body p {
  font-size: 17px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 22px;
}
.article-body h2 {
  font-family: 'El Messiri', serif;
  font-size: 28px;
  color: var(--brown-deep);
  margin: 40px 0 18px;
  font-weight: 700;
}
.article-body h3 {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  color: var(--brown-deep);
  margin: 32px 0 14px;
  font-weight: 600;
}

.article-body blockquote {
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  border-radius: 18px;
  padding: 28px 34px;
  margin: 30px 0;
  position: relative;
  border-right: 4px solid var(--gold);
  color: var(--brown-deep);
  font-family: 'El Messiri', serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.9;
  font-weight: 500;
}
.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -15px;
  right: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 100px;
  color: rgba(196, 160, 95, 0.35);
  line-height: 1;
  font-style: normal;
}

.article-body ul, .article-body ol {
  margin: 20px 30px;
  padding-right: 20px;
}
.article-body li {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 10px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 50px 0 30px;
}
.article-author-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 24px;
  flex-shrink: 0;
}
.article-author-info { flex: 1; }
.article-author-name { font-family: 'El Messiri', serif; font-size: 17px; font-weight: 700; color: var(--brown-deep); margin-bottom: 3px; }
.article-author-bio { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ============ ADMIN — CATALOG MANAGEMENT ============ */

/* Munshid cards grid (admin view) */
.admin-munshid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.admin-munshid-mgmt-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.admin-munshid-mgmt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 160, 95, 0.4);
  box-shadow: 0 20px 36px -20px rgba(74, 61, 42, 0.18);
}

.admin-munshid-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.admin-munshid-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #DCC088, #8B6F4A);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.admin-munshid-avatar svg { width: 90%; margin-bottom: -4px; }
.admin-munshid-info { flex: 1; min-width: 0; }
.admin-munshid-name {
  font-family: 'El Messiri', serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 2px;
}
.admin-munshid-role { font-size: 12.5px; color: var(--muted); }

.admin-munshid-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.admin-munshid-stat { text-align: center; }
.admin-munshid-stat-val {
  font-family: 'El Messiri', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
}
.admin-munshid-stat-label { font-size: 10.5px; color: var(--muted); margin-top: 4px; }

.admin-munshid-actions { display: flex; gap: 8px; }
.admin-munshid-actions .admin-action-btn { flex: 1; justify-content: center; }

/* Active toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #D5C8AA;
  border-radius: 999px;
  transition: 0.25s;
}
.toggle-slider::before {
  position: absolute;
  content: '';
  height: 16px; width: 16px;
  right: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--sage-deep); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(-18px); }

/* Services table with inline editing */
.services-table td { vertical-align: middle; }
.price-input {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  font-family: 'El Messiri', serif;
  font-size: 14px;
  color: var(--brown-deep);
  font-weight: 600;
  text-align: center;
}
.price-input:focus { outline: none; border-color: var(--sage-deep); }

.svc-mini-bar {
  display: inline-block;
  width: 60px;
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
  margin-left: 8px;
}
.svc-mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--sage-deep));
  border-radius: 999px;
}

/* Works grid (admin) */
.admin-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.admin-work-tile {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.25s;
  position: relative;
}
.admin-work-tile:hover {
  box-shadow: 0 18px 32px -18px rgba(74, 61, 42, 0.2);
}

.admin-work-thumb {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  position: relative;
}
.admin-work-thumb.t1 { background: linear-gradient(135deg, #8B6740, #5C4A32); }
.admin-work-thumb.t2 { background: linear-gradient(135deg, #A67B3D, #7A5A2A); }
.admin-work-thumb.t3 { background: linear-gradient(135deg, #B87858, #8B5C42); }
.admin-work-thumb.t4 { background: linear-gradient(135deg, #6D8460, #4E6142); }
.admin-work-thumb.t5 { background: linear-gradient(135deg, #C4A05F, #8B6F4A); }
.admin-work-thumb.t6 { background: linear-gradient(135deg, #4A3D2A, #2A2318); }
.admin-work-thumb svg { width: 40%; opacity: 0.6; }
.admin-work-featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: var(--brown-deep);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-work-body { padding: 14px; }
.admin-work-title {
  font-family: 'El Messiri', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-work-meta { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

.admin-work-actions {
  display: flex;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.admin-work-actions button {
  flex: 1;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-work-actions button:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.admin-work-actions button.danger:hover { border-color: #A26547; color: #A26547; }

/* Offers admin list */
.admin-offer-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.admin-offer-row.expired { opacity: 0.55; }

.admin-offer-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.admin-offer-icon.sage { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: white; }
.admin-offer-icon.terra { background: linear-gradient(135deg, #E3B29A, #B87858); color: white; }

.admin-offer-info { min-width: 0; }
.admin-offer-name {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 3px;
}
.admin-offer-desc { font-size: 12.5px; color: var(--muted); }

.admin-offer-discount {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--terra);
  min-width: 60px;
  text-align: center;
}

.admin-offer-countdown {
  font-family: monospace;
  font-size: 13px;
  color: var(--brown-deep);
  background: var(--card);
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  direction: ltr;
  text-align: center;
  min-width: 120px;
}
.admin-offer-countdown.warning { background: rgba(184,120,88,0.15); color: #A26547; }
.admin-offer-countdown.expired { background: rgba(139,111,74,0.15); color: var(--muted); }

.admin-offer-actions { display: flex; gap: 6px; }

/* Report page */
.reports-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .reports-charts-grid { grid-template-columns: 1fr; } }

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 8px;
}
.pie-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.pie-legend-item:first-child { border-top: none; }
.pie-legend-label { display: inline-flex; align-items: center; gap: 8px; color: var(--brown-deep); font-weight: 500; }
.pie-legend-dot { width: 12px; height: 12px; border-radius: 3px; }
.pie-legend-val { font-family: 'El Messiri', serif; font-weight: 700; color: var(--brown-deep); }

.date-range-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brown-deep);
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.date-range-picker:hover { border-color: var(--sage-deep); }

/* ============ AUTH SHELL (Split-screen layout) ============ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
}

.auth-visual {
  background: 
    radial-gradient(circle at 20% 20%, rgba(228, 195, 129, 0.4), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(143, 163, 120, 0.2), transparent 55%),
    linear-gradient(135deg, #4A3D2A 0%, #2A2318 100%);
  color: var(--cream);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .auth-visual { min-height: 260px; padding: 40px 30px; }
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.18), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-visual-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.auth-visual-brand-mark {
  font-family: 'El Messiri', serif;
  font-size: 28px;
  font-weight: 700;
  color: #E4C381;
}
.auth-visual-brand-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  color: rgba(228, 195, 129, 0.75);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.auth-visual-center {
  position: relative;
  z-index: 2;
}
.auth-visual-quote {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 500;
}
.auth-visual-attribution {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(228, 195, 129, 0.75);
  letter-spacing: 1px;
}

.auth-visual-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
  padding-top: 30px;
  border-top: 1px solid rgba(228, 195, 129, 0.2);
}
.auth-visual-stat-num {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  color: #E4C381;
  font-weight: 700;
  margin-bottom: 4px;
}
.auth-visual-stat-label {
  font-size: 11.5px;
  color: rgba(228, 195, 129, 0.65);
  letter-spacing: 0.5px;
}

/* Form side */
.auth-form-side {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
@media (max-width: 900px) { .auth-form-side { padding: 40px 20px 60px; } }

.auth-back-link {
  position: absolute;
  top: 30px;
  right: 30px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.auth-back-link:hover { color: var(--brown-deep); }
@media (max-width: 900px) { .auth-back-link { top: 20px; right: 20px; } }

.auth-form-card {
  max-width: 420px;
  width: 100%;
}

.auth-eyebrow {
  color: var(--sage-deep);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.auth-eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--sage-deep);
}

.auth-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.8rem, 2.8vw, 2.2rem);
  color: var(--brown-deep);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.auth-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.auth-sub b { color: var(--brown-deep); font-family: monospace; font-weight: 600; direction: ltr; }

.auth-form-fields { display: grid; gap: 16px; margin-bottom: 24px; }

/* OTP input */
.otp-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  direction: ltr;
  margin-bottom: 8px;
}

.otp-box {
  width: 50px;
  height: 60px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  text-align: center;
  font-family: 'El Messiri', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brown-deep);
  background: var(--cream);
  transition: all 0.2s;
  outline: none;
}
.otp-box:focus {
  border-color: var(--sage-deep);
  background: white;
  box-shadow: 0 0 0 4px rgba(109, 132, 96, 0.12);
  transform: scale(1.05);
}
.otp-box.filled {
  border-color: var(--gold);
  background: #F5EBCF;
}

@media (max-width: 480px) {
  .otp-box { width: 42px; height: 52px; font-size: 22px; }
  .otp-input-group { gap: 6px; }
}

.otp-resend {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 20px 0;
}
.otp-resend b {
  color: var(--brown-deep);
  font-family: monospace;
  font-weight: 600;
  direction: ltr;
  display: inline-block;
}
.otp-resend-link {
  color: var(--sage-deep);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px dashed var(--sage-deep);
}
.otp-resend-link.disabled { color: var(--muted); border-color: transparent; cursor: not-allowed; }

/* Password strength */
.pwd-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.pwd-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.3s;
}
.pwd-strength-bar.weak { background: #D57856; }
.pwd-strength-bar.medium { background: #DCC088; }
.pwd-strength-bar.strong { background: var(--sage-deep); }

.pwd-strength-label {
  font-size: 12px;
  margin-top: 6px;
  color: var(--muted);
}
.pwd-strength-label.weak { color: #A26547; }
.pwd-strength-label.medium { color: #8B6F4A; }
.pwd-strength-label.strong { color: var(--sage-deep); }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12.5px;
  margin: 22px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Auth checkbox row */
.auth-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}
.auth-check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--sage-deep);
  margin-top: 3px;
  flex-shrink: 0;
}
.auth-check-row a {
  color: var(--sage-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed var(--sage-deep);
}

/* Auth footer link */
.auth-footer-link {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}
.auth-footer-link a {
  color: var(--brown-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--brown-deep);
}
.auth-footer-link a:hover { color: var(--sage-deep); border-color: var(--sage-deep); }

/* Phone input group */
.phone-input-group {
  display: flex;
  gap: 8px;
}
.country-code-select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: 'Tajawal', sans-serif;
  font-size: 14.5px;
  color: var(--brown-deep);
  flex-shrink: 0;
  min-width: 100px;
  direction: ltr;
}
.country-code-select:focus { outline: none; border-color: var(--sage-deep); }

.phone-input-group .form-input {
  flex: 1;
  direction: ltr;
  text-align: left;
}

/* Success mini page */
.auth-success-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A8B891, #6D8460);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 15px 32px -12px rgba(109, 132, 96, 0.4);
  animation: success-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ LEGAL PAGES ============ */
.legal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 40px;
}
@media (max-width: 900px) {
  .legal-shell { grid-template-columns: 1fr; gap: 30px; }
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
@media (max-width: 900px) {
  .legal-toc { position: static; max-height: none; }
}

.legal-toc-title {
  font-family: 'El Messiri', serif;
  font-size: 15px;
  color: var(--brown-deep);
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-toc-list { display: flex; flex-direction: column; gap: 2px; }
.legal-toc-item {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.legal-toc-item:hover {
  background: rgba(196, 160, 95, 0.1);
  color: var(--brown-deep);
}
.legal-toc-item.active {
  background: rgba(143, 163, 120, 0.15);
  color: var(--sage-deep);
  font-weight: 600;
}
.legal-toc-item .num {
  font-family: monospace;
  font-size: 11px;
  color: var(--gold);
  min-width: 20px;
}

.legal-content { max-width: 780px; }

.legal-meta {
  display: flex;
  gap: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  border-radius: 14px;
  margin-bottom: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brown-deep);
  font-size: 13.5px;
}
.legal-meta-item b { font-weight: 600; }
.legal-meta-item svg { color: var(--gold); flex-shrink: 0; }

.legal-section {
  scroll-margin-top: 100px;
  margin-bottom: 44px;
}
.legal-section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legal-section-num {
  font-family: 'El Messiri', serif;
  font-size: 32px;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.legal-section-title {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  color: var(--brown-deep);
  font-weight: 700;
  line-height: 1.3;
}

.legal-section p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-section ul, .legal-section ol {
  margin: 16px 24px;
  padding-right: 20px;
}
.legal-section li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 10px;
}
.legal-section li b { color: var(--brown-deep); font-weight: 600; }

.legal-important {
  background: rgba(184, 120, 88, 0.08);
  border-right: 4px solid var(--terra);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--brown-deep);
  line-height: 1.8;
}
.legal-important strong { color: var(--terra); }

.legal-cta {
  padding: 28px 30px;
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  border-radius: 18px;
  text-align: center;
  margin: 40px 0;
}
.legal-cta h3 {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-cta p {
  color: rgba(74, 61, 42, 0.75);
  font-size: 14.5px;
  margin-bottom: 18px;
  line-height: 1.7;
}

/* ============ ADMIN LOYALTY ============ */
.tier-config-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
@media (max-width: 1100px) { .tier-config-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tier-config-grid { grid-template-columns: 1fr; } }

.tier-config-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.tier-config-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
}
.tier-config-card.bronze::before { background: linear-gradient(90deg, #CD7F32, #A0522D); }
.tier-config-card.silver::before { background: linear-gradient(90deg, #C0C0C0, #A0A0A0); }
.tier-config-card.gold::before { background: linear-gradient(90deg, #E4C381, #C4A05F); }
.tier-config-card.diamond::before { background: linear-gradient(90deg, #A8B891, #6D8460); }

.tier-config-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'El Messiri', serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.tier-config-badge.bronze { background: rgba(205, 127, 50, 0.15); color: #A0522D; }
.tier-config-badge.silver { background: rgba(160, 160, 160, 0.2); color: #6B6B6B; }
.tier-config-badge.gold { background: rgba(196, 160, 95, 0.18); color: #A67B3D; }
.tier-config-badge.diamond { background: rgba(109, 132, 96, 0.15); color: var(--sage-deep); }

.tier-config-name {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  font-weight: 700;
  margin-bottom: 4px;
}
.tier-config-desc { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.tier-config-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tier-config-stat-val {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
}
.tier-config-stat-label { font-size: 10.5px; color: var(--muted); margin-top: 4px; }

.tier-config-field { margin-bottom: 10px; }
.tier-config-field label {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.tier-config-field input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-family: 'El Messiri', serif;
  font-size: 14px;
  color: var(--brown-deep);
  font-weight: 600;
  text-align: center;
}
.tier-config-field input:focus { outline: none; border-color: var(--sage-deep); }

/* Loyalty rules panel */
.loyalty-rule-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
}
.loyalty-rule-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loyalty-rule-name { font-weight: 600; color: var(--brown-deep); font-size: 14.5px; }
.loyalty-rule-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.loyalty-rule-points {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  padding: 4px 12px;
  background: rgba(196, 160, 95, 0.12);
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

/* Adjustments log */
.adjustment-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  font-size: 13.5px;
}
.adjustment-row:first-of-type { border-top: none; }
.adj-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 13px;
}
.adj-info { min-width: 0; }
.adj-customer { color: var(--brown-deep); font-weight: 500; }
.adj-reason { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.adj-points {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
}
.adj-points.pos { color: var(--sage-deep); background: rgba(143, 163, 120, 0.15); }
.adj-points.neg { color: #A26547; background: rgba(184, 120, 88, 0.12); }
.adj-date { color: var(--muted); font-size: 12px; font-family: monospace; direction: ltr; }

/* ============ LEGAL PAGES ============ */
.legal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .legal-shell { grid-template-columns: 1fr; gap: 30px; }
}

.legal-toc {
  position: sticky;
  top: 100px;
  padding: 26px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
@media (max-width: 960px) {
  .legal-toc { position: static; }
}

.legal-toc-title {
  font-family: 'El Messiri', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-toc-title svg { color: var(--gold); }

.legal-toc-list { list-style: none; padding: 0; margin: 0; }
.legal-toc-list li { margin: 0; }
.legal-toc-list a {
  display: block;
  padding: 8px 0 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.5;
  border-right: 2px solid transparent;
  padding-right: 12px;
  transition: color 0.2s, border-color 0.2s;
}
.legal-toc-list a:hover {
  color: var(--brown-deep);
  border-right-color: var(--gold);
}
.legal-toc-list a.active {
  color: var(--sage-deep);
  border-right-color: var(--sage-deep);
  font-weight: 600;
}

.legal-toc-num {
  display: inline-block;
  min-width: 20px;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  margin-left: 6px;
  color: var(--gold);
}

.legal-content {
  max-width: 780px;
}

.legal-meta {
  background: var(--card);
  border-right: 4px solid var(--sage-deep);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
}
.legal-meta-item { color: var(--muted); }
.legal-meta-item b { color: var(--brown-deep); font-weight: 600; }

.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: 100px;
}

.legal-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.legal-section-num {
  font-family: 'El Messiri', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.legal-section-title {
  font-family: 'El Messiri', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.3;
}

.legal-section p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.95;
  margin-bottom: 14px;
}

.legal-section ul, .legal-section ol {
  margin: 14px 30px 20px 0;
  padding: 0;
}
.legal-section li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 8px;
}

.legal-callout {
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  padding: 20px 24px;
  border-radius: 14px;
  border-right: 4px solid var(--gold);
  margin: 22px 0;
  color: var(--brown-deep);
}
.legal-callout-title {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.legal-callout-title svg { color: var(--gold); }
.legal-callout p { color: var(--brown-deep); font-size: 14.5px; line-height: 1.8; margin: 0; }

.legal-warning {
  background: linear-gradient(135deg, #F5D8CD, #E8BCA6);
  border-right-color: var(--terra);
}
.legal-warning .legal-callout-title svg { color: var(--terra); }

.legal-info {
  background: linear-gradient(135deg, #DFE7CE, #C4CDA9);
  border-right-color: var(--sage-deep);
}
.legal-info .legal-callout-title svg { color: var(--sage-deep); }

/* ============ ADMIN LOYALTY ============ */
.tier-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
@media (max-width: 900px) { .tier-cards-row { grid-template-columns: repeat(2, 1fr); } }

.tier-mgmt-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.tier-mgmt-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  pointer-events: none;
}
.tier-mgmt-card.bronze::before { background: radial-gradient(circle, rgba(180, 120, 80, 0.18), transparent 65%); }
.tier-mgmt-card.silver::before { background: radial-gradient(circle, rgba(180, 180, 180, 0.18), transparent 65%); }
.tier-mgmt-card.gold::before { background: radial-gradient(circle, rgba(228, 195, 129, 0.22), transparent 65%); }
.tier-mgmt-card.diamond::before { background: radial-gradient(circle, rgba(143, 163, 120, 0.22), transparent 65%); }

.tier-mgmt-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  position: relative;
}
.tier-mgmt-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.tier-mgmt-badge.bronze { background: linear-gradient(135deg, #C68758, #8B5C3B); }
.tier-mgmt-badge.silver { background: linear-gradient(135deg, #C8C8C8, #909090); }
.tier-mgmt-badge.gold { background: linear-gradient(135deg, #E4C381, #A67B3D); }
.tier-mgmt-badge.diamond { background: linear-gradient(135deg, #B3CADA, #6D8FA6); }

.tier-mgmt-name {
  font-family: 'El Messiri', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
}
.tier-mgmt-threshold { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tier-mgmt-count {
  font-family: 'El Messiri', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
  position: relative;
}
.tier-mgmt-count-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  position: relative;
}

.tier-mgmt-pct {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(143, 163, 120, 0.15);
  color: var(--sage-deep);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 10px;
  position: relative;
}

.tier-progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
  position: relative;
}
.tier-progress-fill {
  height: 100%;
  border-radius: 999px;
}
.tier-progress-fill.bronze { background: linear-gradient(90deg, #8B5C3B, #C68758); }
.tier-progress-fill.silver { background: linear-gradient(90deg, #909090, #C8C8C8); }
.tier-progress-fill.gold { background: linear-gradient(90deg, #A67B3D, #E4C381); }
.tier-progress-fill.diamond { background: linear-gradient(90deg, #6D8FA6, #B3CADA); }

/* ============ INDIVIDUAL OFFER PAGES ============ */
.offer-hero {
  background: 
    radial-gradient(circle at 20% 30%, rgba(228, 195, 129, 0.4), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(184, 120, 88, 0.25), transparent 55%),
    linear-gradient(135deg, #4A3D2A 0%, #2A2318 100%);
  border-radius: 32px;
  padding: clamp(30px, 5vw, 60px);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  text-align: center;
}
.offer-hero.sage { background: radial-gradient(circle at 20% 30%, rgba(196, 205, 169, 0.4), transparent 55%), linear-gradient(135deg, #4E6142 0%, #2E3D28 100%); }
.offer-hero.terra { background: radial-gradient(circle at 20% 30%, rgba(232, 189, 165, 0.4), transparent 55%), linear-gradient(135deg, #8B5C42 0%, #4A2E22 100%); }

.offer-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(228, 195, 129, 0.15), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.offer-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.12), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.offer-hero-eyebrow {
  color: rgba(228, 195, 129, 0.85);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.offer-hero-eyebrow::before, .offer-hero-eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(228, 195, 129, 0.4);
}

.offer-hero-discount {
  font-family: 'El Messiri', serif;
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #FFE4B5 0%, #E4C381 50%, #C4A05F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.offer-hero-discount-label {
  color: rgba(228, 195, 129, 0.75);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.offer-hero-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 14px;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
.offer-hero-sub {
  color: rgba(228, 195, 129, 0.85);
  font-size: 16px;
  max-width: 52ch;
  margin: 0 auto 30px;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(255, 250, 235, 0.1);
  border: 1px solid rgba(228, 195, 129, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 82px;
  backdrop-filter: blur(8px);
  transition: transform 0.15s;
}
.countdown-box.expired { opacity: 0.5; }
.countdown-box.tick { transform: scale(1.05); }

.countdown-value {
  font-family: 'El Messiri', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #E4C381;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.countdown-label {
  font-size: 11px;
  color: rgba(228, 195, 129, 0.65);
  margin-top: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.offer-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: var(--brown-deep);
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  position: relative;
  z-index: 2;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 15px 30px -8px rgba(228, 195, 129, 0.35);
}
.offer-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -8px rgba(228, 195, 129, 0.5);
}

/* Offer content sections */
.offer-info-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  margin-bottom: 50px;
}
@media (max-width: 900px) {
  .offer-info-grid { grid-template-columns: 1fr; }
}

.offer-includes {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}
.offer-includes-title {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  color: var(--brown-deep);
  margin-bottom: 20px;
  font-weight: 700;
}
.offer-service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.offer-service-item:first-of-type { border-top: none; padding-top: 0; }
.offer-service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.offer-service-info { flex: 1; min-width: 0; }
.offer-service-name {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 15.5px;
  margin-bottom: 2px;
}
.offer-service-price { font-size: 13px; color: var(--muted); }
.offer-service-price s { color: var(--muted); opacity: 0.7; }
.offer-service-price b { color: var(--sage-deep); font-weight: 700; direction: ltr; display: inline-block; margin-right: 4px; }

/* Calculator */
.offer-calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  position: sticky;
  top: 100px;
}
@media (max-width: 900px) {
  .offer-calc { position: static; }
}

.offer-calc-title {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  margin-bottom: 6px;
  font-weight: 700;
}
.offer-calc-sub {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.calc-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  font-weight: 700;
  text-align: center;
  direction: ltr;
}
.calc-input:focus { outline: none; border-color: var(--sage-deep); }

.calc-currency {
  font-family: 'El Messiri', serif;
  font-size: 15px;
  color: var(--muted);
}

.calc-slider {
  width: 100%;
  margin-bottom: 22px;
  accent-color: var(--sage-deep);
}

.calc-result {
  background: linear-gradient(135deg, rgba(228, 195, 129, 0.12), rgba(196, 205, 169, 0.15));
  border: 1px solid rgba(196, 160, 95, 0.25);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.calc-result-row.saved {
  color: var(--sage-deep);
  font-weight: 700;
  font-size: 15px;
  border-top: 1px dashed rgba(139, 111, 74, 0.2);
  padding-top: 12px;
  margin-top: 4px;
}
.calc-result-row.final {
  color: var(--brown-deep);
  font-weight: 700;
  font-size: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.calc-result-row s { color: var(--muted); opacity: 0.7; }
.calc-result-row .val { font-family: 'El Messiri', serif; direction: ltr; display: inline-block; }

/* Terms */
.offer-terms {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 40px;
}
.offer-terms-title {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  color: var(--brown-deep);
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.offer-terms-title svg { color: var(--gold); }
.offer-terms ul { list-style: none; padding: 0; margin: 0; }
.offer-terms li {
  position: relative;
  padding: 12px 30px 12px 0;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.75;
  border-top: 1px solid var(--line);
}
.offer-terms li:first-child { border-top: none; }
.offer-terms li::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============ COMPARE SERVICES PAGE ============ */
.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
}

.compare-table th, .compare-table td {
  padding: 18px 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: right;
  font-family: 'El Messiri', serif;
  color: var(--brown-deep);
  font-weight: 600;
  background: var(--cream);
  padding-right: 24px;
  min-width: 180px;
  position: sticky;
  right: 0;
  z-index: 1;
  border-left: 1px solid var(--line);
}

.compare-table thead th {
  padding: 24px 14px;
  vertical-align: bottom;
  background: var(--cream);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 2;
}

.compare-table thead th:first-child {
  background: var(--cream);
  z-index: 3;
}

.compare-col-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.compare-col-name {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 6px;
}

.compare-col-price {
  font-family: 'El Messiri', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--sage-deep);
  margin-bottom: 3px;
  direction: ltr;
}
.compare-col-price small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.compare-col-priceunit {
  font-size: 11px;
  color: var(--muted);
}

.compare-col-popular {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: var(--brown-deep);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.compare-table thead th.popular {
  position: sticky;
  top: 0;
  padding-top: 30px;
  background: linear-gradient(180deg, rgba(228, 195, 129, 0.15), var(--cream) 50%);
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.compare-table thead th.popular::before {
  content: 'الأكثر طلباً';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: var(--brown-deep);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.compare-table td.popular-col {
  background: rgba(228, 195, 129, 0.05);
  border-left: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.compare-yes {
  color: var(--sage-deep);
  display: inline-block;
}
.compare-no {
  color: rgba(139, 111, 74, 0.35);
  display: inline-block;
}
.compare-star {
  color: var(--gold);
  display: inline-block;
}
.compare-value {
  font-family: 'El Messiri', serif;
  font-weight: 600;
  color: var(--brown-deep);
  font-size: 15px;
}

.compare-cta-cell {
  padding: 24px 14px !important;
}

.compare-section-row td {
  background: var(--cream);
  font-family: 'El Messiri', serif;
  color: var(--brown-deep);
  font-weight: 700;
  font-size: 13px;
  text-align: right !important;
  padding-right: 24px !important;
  letter-spacing: 0.5px;
  border-top: 2px solid var(--gold-soft);
  border-bottom: 1px solid var(--line);
}
.compare-section-row td::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}

/* ============ INVOICE PREVIEW PAGE ============ */
.invoice-toolbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.invoice-toolbar-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.invoice-badge-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(143, 163, 120, 0.15);
  border: 1px solid rgba(143, 163, 120, 0.3);
  color: var(--sage-deep);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.invoice-badge-success::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--sage-deep);
  border-radius: 50%;
}

.invoice-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* The Invoice Document itself */
.invoice-doc {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 50px 60px;
  max-width: 820px;
  margin: 0 auto 40px;
  box-shadow: 0 30px 60px -30px rgba(74, 61, 42, 0.15);
  position: relative;
}

@media (max-width: 700px) {
  .invoice-doc { padding: 30px 24px; }
}

/* Watermark */
.invoice-doc::before {
  content: 'استديو رام';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: 'El Messiri', serif;
  font-size: 130px;
  font-weight: 700;
  color: rgba(196, 160, 95, 0.05);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

.invoice-doc > * { position: relative; z-index: 1; }

/* Invoice Header */
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.invoice-brand {
  display: flex;
  flex-direction: column;
}
.invoice-brand-mark {
  font-family: 'El Messiri', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 4px;
}
.invoice-brand-latin {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.invoice-brand-details {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}

.invoice-title-block { text-align: left; }
.invoice-title-word {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.invoice-title-ar {
  font-family: 'El Messiri', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 12px;
}
.invoice-number-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.invoice-number {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  direction: ltr;
}

/* Client & Meta */
.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
@media (max-width: 600px) { .invoice-meta-grid { grid-template-columns: 1fr; gap: 20px; } }

.invoice-meta-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.invoice-meta-title {
  font-family: 'El Messiri', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 8px;
}
.invoice-meta-body {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.85;
}
.invoice-meta-body div { margin-bottom: 3px; }
.invoice-meta-body b { color: var(--brown-deep); font-weight: 600; }

/* Line Items Table */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.invoice-table thead {
  background: var(--card);
}
.invoice-table thead th {
  padding: 14px 16px;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 13px;
  text-align: right;
  border-bottom: 2px solid var(--gold);
}
.invoice-table thead th:last-child, .invoice-table td:last-child { text-align: left; }
.invoice-table thead th:nth-child(2), .invoice-table thead th:nth-child(3),
.invoice-table td:nth-child(2), .invoice-table td:nth-child(3) { text-align: center; }

.invoice-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}
.invoice-table tbody tr:last-child td { border-bottom: 2px solid var(--line-strong); }

.invoice-item-name {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 14.5px;
  margin-bottom: 3px;
}
.invoice-item-desc { font-size: 12px; color: var(--muted); }
.invoice-price { font-family: 'El Messiri', serif; font-weight: 600; color: var(--brown-deep); direction: ltr; display: inline-block; }

/* Totals */
.invoice-totals {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}
.invoice-totals-inner {
  min-width: 320px;
  max-width: 100%;
}
.invoice-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}
.invoice-totals-row.disc { color: var(--sage-deep); font-weight: 500; }
.invoice-totals-row.grand {
  padding: 14px 20px;
  margin-top: 12px;
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  border: 1px solid rgba(196, 160, 95, 0.35);
  border-radius: 12px;
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
}
.invoice-totals-row .val { direction: ltr; display: inline-block; font-family: 'El Messiri', serif; font-weight: 600; }

/* Bank + Notes */
.invoice-bank {
  background: var(--card);
  border-right: 3px solid var(--gold);
  padding: 20px 24px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.invoice-bank-title {
  font-family: 'El Messiri', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.invoice-bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 13px;
}
@media (max-width: 600px) { .invoice-bank-grid { grid-template-columns: 1fr; } }
.invoice-bank-item span:first-child { color: var(--muted); }
.invoice-bank-item span:last-child { color: var(--brown-deep); font-weight: 600; direction: ltr; float: left; }

.invoice-notes {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.85;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.invoice-footer-hairline {
  text-align: center;
  margin-top: 30px;
}
.invoice-footer-hairline::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 10px;
}
.invoice-footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
}

@media print {
  body { background: white; }
  .site-header, .site-footer, .invoice-toolbar, .wa-float, #shared-assistant-widget { display: none !important; }
  .invoice-doc { border: none; box-shadow: none; margin: 0; max-width: 100%; padding: 20px; }
}

/* ============ REFERRAL PAGE ============ */
.refer-hero {
  background: 
    radial-gradient(circle at 20% 30%, rgba(228, 195, 129, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(143, 163, 120, 0.2), transparent 55%),
    linear-gradient(135deg, #4A3D2A 0%, #2A2318 100%);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 60px);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  text-align: center;
}

.refer-hero::before,
.refer-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.refer-hero::before {
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(228, 195, 129, 0.18), transparent 60%);
}
.refer-hero::after {
  bottom: -120px; left: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(196, 205, 169, 0.15), transparent 65%);
}

.refer-hero-eyebrow {
  color: rgba(228, 195, 129, 0.85);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 2.5px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.refer-hero-eyebrow::before, .refer-hero-eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(228, 195, 129, 0.4);
}

.refer-hero-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.refer-hero-sub {
  color: rgba(228, 195, 129, 0.85);
  font-size: 16px;
  max-width: 60ch;
  margin: 0 auto 40px;
  line-height: 1.85;
  position: relative;
  z-index: 2;
}

/* Referral code display */
.refer-code-card {
  background: rgba(255, 250, 235, 0.08);
  border: 1px dashed rgba(228, 195, 129, 0.35);
  border-radius: 22px;
  padding: 30px 40px;
  max-width: 520px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.refer-code-label {
  color: rgba(228, 195, 129, 0.7);
  font-size: 12.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.refer-code {
  font-family: 'El Messiri', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #E4C381;
  letter-spacing: 3px;
  direction: ltr;
  margin-bottom: 18px;
  padding: 8px 20px;
  background: rgba(45, 33, 24, 0.35);
  border-radius: 12px;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s;
}
.refer-code:hover { background: rgba(45, 33, 24, 0.5); }

.refer-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: var(--brown-deep);
  border: none;
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.refer-copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(228, 195, 129, 0.4);
}
.refer-copy-btn.copied {
  background: linear-gradient(135deg, #A8B891, #6D8460);
  color: white;
}

/* Rewards flow */
.rewards-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) { .rewards-flow { grid-template-columns: 1fr; } .rewards-flow-arrow { display: none; } }

.rewards-flow-item {
  background: rgba(255, 250, 235, 0.06);
  border: 1px solid rgba(228, 195, 129, 0.2);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}

.rewards-flow-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E4C381, #A67B3D);
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.rewards-flow-item.friend .rewards-flow-icon { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: white; }

.rewards-flow-role {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(228, 195, 129, 0.7);
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.rewards-flow-reward {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: #E4C381;
  margin-bottom: 4px;
}
.rewards-flow-desc { color: rgba(228, 195, 129, 0.75); font-size: 12.5px; line-height: 1.6; }

.rewards-flow-arrow {
  color: rgba(228, 195, 129, 0.5);
}

/* Share buttons */
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}
@media (max-width: 700px) { .share-grid { grid-template-columns: 1fr 1fr; } }

.share-btn {
  padding: 16px 12px;
  border-radius: 16px;
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.share-btn:hover { transform: translateY(-3px); }
.share-btn.wa { background: linear-gradient(135deg, #25D366, #128C7E); box-shadow: 0 10px 20px -8px rgba(37, 211, 102, 0.4); }
.share-btn.tw { background: linear-gradient(135deg, #333, #000); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.4); }
.share-btn.ig { background: linear-gradient(135deg, #E1306C, #F77737, #FCAF45); box-shadow: 0 10px 20px -8px rgba(225, 48, 108, 0.4); }
.share-btn.copy { background: linear-gradient(135deg, #8A7659, #4A3D2A); box-shadow: 0 10px 20px -8px rgba(74, 61, 42, 0.4); }
.share-btn svg { width: 26px; height: 26px; }

/* Referral stats */
.refer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .refer-stats-grid { grid-template-columns: 1fr; } }

.refer-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.refer-stat-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(196, 160, 95, 0.15), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.refer-stat-card.sage::before { background: radial-gradient(circle, rgba(143, 163, 120, 0.18), transparent 65%); }
.refer-stat-card.terra::before { background: radial-gradient(circle, rgba(203, 139, 111, 0.15), transparent 65%); }

.refer-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
}
.refer-stat-card.sage .refer-stat-icon { background: linear-gradient(135deg, #C4CDA9, #6D8460); color: white; }
.refer-stat-card.terra .refer-stat-icon { background: linear-gradient(135deg, #E3B29A, #B87858); color: white; }

.refer-stat-value {
  font-family: 'El Messiri', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1;
  position: relative;
}
.refer-stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; position: relative; }

/* Referrals timeline */
.refer-timeline {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 40px;
}
.refer-timeline-title {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  color: var(--brown-deep);
  font-weight: 700;
  margin-bottom: 20px;
}

.refer-friend-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.refer-friend-row:first-of-type { border-top: none; padding-top: 0; }

.refer-friend-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.refer-friend-info { min-width: 0; }
.refer-friend-name { font-weight: 600; color: var(--brown-deep); font-size: 14px; margin-bottom: 2px; }
.refer-friend-date { font-size: 12px; color: var(--muted); }

.refer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.refer-status.completed { background: rgba(143, 163, 120, 0.15); color: var(--sage-deep); }
.refer-status.pending { background: rgba(196, 160, 95, 0.15); color: #A67B3D; }
.refer-status.declined { background: rgba(139, 111, 74, 0.12); color: var(--muted); }
.refer-status::before {
  content: '';
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.refer-points-earned {
  font-family: 'El Messiri', serif;
  font-weight: 700;
  color: var(--brown-deep);
  font-size: 14px;
}
.refer-points-earned.zero { color: var(--muted); }

/* How it works */
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .how-steps { grid-template-columns: 1fr; } }

.how-step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.how-step-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'El Messiri', serif;
  font-size: 44px;
  font-weight: 700;
  color: rgba(196, 160, 95, 0.25);
  line-height: 1;
}

.how-step-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.how-step-title {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 8px;
}
.how-step-desc { color: var(--muted); font-size: 13.5px; line-height: 1.75; }


/* ============ ORDER WIZARD — CURRENCY BAR ============ */
.currency-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex-wrap: wrap;
}
.currency-options { display: flex; gap: 4px; flex-wrap: wrap; }
.currency-btn {
  padding: 6px 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  font-family: 'Tajawal', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.currency-btn:hover { color: var(--brown-deep); }
.currency-btn.active {
  background: var(--brown-deep);
  color: var(--cream);
  border-color: var(--brown-deep);
}
@media (max-width: 600px) {
  .currency-bar { justify-content: center; padding: 10px 12px; }
  .currency-btn { padding: 6px 10px; font-size: 11.5px; }
}

/* ============ MELODY CHOICE CARDS (new simplified step 4) ============ */
.melody-choice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: all 0.2s;
  position: relative;
}
.melody-choice-card:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}
.melody-choice-card.active {
  border-color: var(--sage-deep);
  background: rgba(196, 205, 169, 0.15);
  box-shadow: 0 8px 20px -12px rgba(109, 132, 96, 0.35);
}

.melody-choice-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.melody-choice-card.active .melody-choice-icon {
  background: linear-gradient(135deg, #C4CDA9, #6D8460);
  color: white;
}

.melody-choice-content { flex: 1; min-width: 0; }
.melody-choice-title {
  font-family: 'El Messiri', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 4px;
}
.melody-choice-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.melody-choice-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.melody-choice-card.active .melody-choice-check {
  opacity: 1;
  transform: scale(1);
}


/* ============ MUNSHID PHOTO CARDS (using real photos now) ============ */
.munshid-photo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
  text-decoration: none;
  color: inherit;
}
.munshid-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(74, 61, 42, 0.15);
}

.munshid-photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.munshid-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.munshid-photo-card:hover .munshid-photo-wrap img { transform: scale(1.03); }

.munshid-photo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  background: rgba(45, 33, 24, 0.75);
  color: #E4C381;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'El Messiri', serif;
  backdrop-filter: blur(6px);
  direction: ltr;
}

.munshid-photo-info {
  padding: 20px 22px;
  text-align: center;
}
.munshid-photo-name {
  font-family: 'El Messiri', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 8px;
}
.munshid-photo-works-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.munshid-photo-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #F5EBCF, #E5D4AA);
  border: 1px solid rgba(196, 160, 95, 0.3);
  color: var(--brown-deep);
  border-radius: 999px;
  font-family: 'El Messiri', serif;
  font-weight: 700;
  font-size: 14.5px;
  direction: ltr;
}

/* YouTube video grid on profile pages */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.youtube-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s;
}
.youtube-card:hover { transform: translateY(-3px); }
.youtube-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Munshid profile hero with photo */
.profile-hero-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 340px;
  margin: 0 auto;
}
.profile-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Photo wrapper for select cards (munshid selection with real photos) */
.select-card-photo-wrap {
  position: relative;
}
.select-card-photo-wrap img {
  transition: transform 0.4s;
}
.select-card:hover .select-card-photo-wrap img {
  transform: scale(1.04);
}


/* ============ MUNSHID TINTED CARDS (each munshid gets a unique color identity) ============ */
.munshid-photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

/* Base tint overlay - each munshid has a different color */
.munshid-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.75;
  transition: opacity 0.35s;
}

.munshid-photo-card:hover .munshid-photo-wrap::before {
  opacity: 0.55;
}

/* Bottom gradient for readability of any badge/text */
.munshid-photo-wrap::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(45, 33, 24, 0.55));
  pointer-events: none;
}

/* Each tint gets a specific color/gradient */
.munshid-photo-wrap[data-tint="gold"]::before    { background: linear-gradient(180deg, rgba(255, 220, 140, 0.15), rgba(140, 95, 40, 0.55)); }
.munshid-photo-wrap[data-tint="sage"]::before    { background: linear-gradient(180deg, rgba(196, 220, 165, 0.15), rgba(78, 100, 66, 0.55)); }
.munshid-photo-wrap[data-tint="terra"]::before   { background: linear-gradient(180deg, rgba(232, 189, 165, 0.15), rgba(140, 76, 55, 0.55)); }
.munshid-photo-wrap[data-tint="amber"]::before   { background: linear-gradient(180deg, rgba(255, 200, 100, 0.15), rgba(110, 65, 30, 0.55)); }
.munshid-photo-wrap[data-tint="wine"]::before    { background: linear-gradient(180deg, rgba(200, 145, 120, 0.15), rgba(100, 45, 45, 0.6)); }
.munshid-photo-wrap[data-tint="royal"]::before   { background: linear-gradient(180deg, rgba(228, 195, 129, 0.15), rgba(40, 32, 22, 0.7)); }
.munshid-photo-wrap[data-tint="emerald"]::before { background: linear-gradient(180deg, rgba(163, 200, 140, 0.15), rgba(40, 80, 55, 0.6)); }

/* Base photo — subtle brightness adjustment per tint */
.munshid-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: brightness(0.95) contrast(1.02);
}
.munshid-photo-card:hover .munshid-photo-wrap img { transform: scale(1.05); }

/* Different object-position for variety */
.munshid-photo-wrap[data-tint="gold"] img    { object-position: center 25%; }
.munshid-photo-wrap[data-tint="sage"] img    { object-position: center 30%; }
.munshid-photo-wrap[data-tint="terra"] img   { object-position: center 20%; }
.munshid-photo-wrap[data-tint="amber"] img   { object-position: center 35%; }
.munshid-photo-wrap[data-tint="wine"] img    { object-position: center 15%; }
.munshid-photo-wrap[data-tint="royal"] img   { object-position: center 40%; }
.munshid-photo-wrap[data-tint="emerald"] img { object-position: center 30%; }

/* Name badge on card - shows the color identity */
.munshid-photo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'El Messiri', serif;
  direction: ltr;
  z-index: 3;
  backdrop-filter: blur(6px);
  color: white;
}
.munshid-photo-wrap[data-tint="gold"] .munshid-photo-badge    { background: rgba(140, 95, 40, 0.85); }
.munshid-photo-wrap[data-tint="sage"] .munshid-photo-badge    { background: rgba(78, 100, 66, 0.85); }
.munshid-photo-wrap[data-tint="terra"] .munshid-photo-badge   { background: rgba(140, 76, 55, 0.85); }
.munshid-photo-wrap[data-tint="amber"] .munshid-photo-badge   { background: rgba(110, 65, 30, 0.85); }
.munshid-photo-wrap[data-tint="wine"] .munshid-photo-badge    { background: rgba(100, 45, 45, 0.85); }
.munshid-photo-wrap[data-tint="royal"] .munshid-photo-badge   { background: rgba(40, 32, 22, 0.85); }
.munshid-photo-wrap[data-tint="emerald"] .munshid-photo-badge { background: rgba(40, 80, 55, 0.85); }

/* Profile hero photo also gets the tint */
.profile-hero-photo {
  position: relative;
  overflow: hidden;
}
.profile-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.profile-hero-photo[data-tint="gold"]::before    { background: linear-gradient(180deg, rgba(255, 220, 140, 0.15), rgba(140, 95, 40, 0.5)); }
.profile-hero-photo[data-tint="sage"]::before    { background: linear-gradient(180deg, rgba(196, 220, 165, 0.15), rgba(78, 100, 66, 0.5)); }
.profile-hero-photo[data-tint="terra"]::before   { background: linear-gradient(180deg, rgba(232, 189, 165, 0.15), rgba(140, 76, 55, 0.5)); }
.profile-hero-photo[data-tint="amber"]::before   { background: linear-gradient(180deg, rgba(255, 200, 100, 0.15), rgba(110, 65, 30, 0.5)); }
.profile-hero-photo[data-tint="wine"]::before    { background: linear-gradient(180deg, rgba(200, 145, 120, 0.15), rgba(100, 45, 45, 0.55)); }
.profile-hero-photo[data-tint="royal"]::before   { background: linear-gradient(180deg, rgba(228, 195, 129, 0.15), rgba(40, 32, 22, 0.6)); }
.profile-hero-photo[data-tint="emerald"]::before { background: linear-gradient(180deg, rgba(163, 200, 140, 0.15), rgba(40, 80, 55, 0.55)); }

.profile-hero-photo img {
  filter: brightness(0.95) contrast(1.05);
}


/* ============ NEW HERO (index.html) ============ */
.hero {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: sepia(20%) brightness(0.9);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 246, 236, 0.3) 0%, rgba(251, 246, 236, 0.6) 40%, rgba(251, 246, 236, 0.95) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--brown-deep);
  line-height: 1.25;
  margin: 20px 0 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--muted);
  line-height: 1.85;
  max-width: 55ch;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn {
  padding: 14px 32px;
  font-size: 15px;
}

/* Fade-up animations */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}
.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }
.fade-up.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section head reused across pages */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-title {
  font-family: 'El Messiri', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--brown-deep);
  margin: 10px 0 12px;
  line-height: 1.3;
}
.section-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Feature cards (services grid on homepage) */
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-align: right;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -12px rgba(74, 61, 42, 0.15);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sand), var(--gold));
  color: var(--brown-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-title {
  font-family: 'El Messiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-deep);
  margin-bottom: 8px;
}
.feature-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .hero { min-height: 70vh; padding: 80px 0 40px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 12px 22px; font-size: 14px; }
}
