:root {
  --ivory: #fbf6ee;
  --cream: #fffaf3;
  --champagne: #d7b46a;
  --rose: #dfb5aa;
  --rose-soft: #f4ded8;
  --brown: #2c211b;
  --muted: #7d6b5f;
  --line: rgba(96, 72, 45, .16);
  --shadow: 0 24px 70px rgba(58, 39, 20, .12);
  --radius: 28px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--ivory), #fff);
  color: var(--brown);
  font-family: 'Tajawal', system-ui, sans-serif;
  line-height: 1.8
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 70px);
  background: rgba(251, 246, 238, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line)
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 800;
  font-size: 22px
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--champagne), #f6e3ad);
  color: #fff;
  font-family: 'Amiri';
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(215, 180, 106, .35)
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-weight: 600
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, #b68a39, var(--champagne));
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(182, 138, 57, .25);
  border: 0;
  cursor: pointer;
  font-weight: 800
}

.btn-secondary {
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  font-weight: 800
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 44px;
  align-items: center;
  padding: 70px clamp(18px, 6vw, 90px);
  position: relative;
  overflow: hidden
}

.hero:before {
  content: "";
  position: absolute;
  inset: 8% 55% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--rose-soft), transparent 70%);
  z-index: -1
}

.eyebrow {
  color: #a67c35;
  letter-spacing: 2px;
  font-weight: 800
}

.hero h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.15;
  margin: 10px 0 20px
}

.hero p {
  font-size: 20px;
  color: var(--muted);
  max-width: 620px
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px
}

.hero-card {
  background: linear-gradient(160deg, #fff8ef, #f7e5da);
  border: 1px solid rgba(215, 180, 106, .28);
  border-radius: 44px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative
}

.hero-frame {
  min-height: 520px;
  border-radius: 34px;
  background: linear-gradient(rgba(44, 33, 27, .08), rgba(44, 33, 27, .35)), url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1200&q=80') center/cover
}

.hero-note {
  position: absolute;
  bottom: 38px;
  right: 38px;
  left: 38px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .65)
}

.section {
  padding: 70px clamp(18px, 6vw, 90px)
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px
}

.section h2 {
  font-family: 'Amiri', serif;
  font-size: 42px;
  margin: 0
}

.section-head p {
  color: var(--muted);
  max-width: 640px
}

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

.card {
  background: rgba(255, 255, 255, .74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(58, 39, 20, .07)
}

.card-body {
  padding: 22px
}

.card h3 {
  margin: 0 0 8px;
  font-size: 23px
}

.card p,
.muted {
  color: var(--muted)
}

.portfolio-img {
  height: 280px;
  background: linear-gradient(135deg, var(--rose-soft), #fff0d5);
  display: grid;
  place-items: center;
  font-family: 'Amiri';
  font-size: 38px;
  color: #9d783d
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px
}

.tag {
  font-size: 13px;
  background: #fff4df;
  border: 1px solid rgba(215, 180, 106, .28);
  border-radius: 999px;
  padding: 5px 11px;
  color: #8a6428
}

.service-icon {
  font-size: 38px
}

.steps {
  counter-reset: s;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  position: relative
}

.step:before {
  counter-increment: s;
  content: counter(s);
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--champagne);
  color: #fff;
  font-weight: 800
}

.request-shell {
  padding: 50px clamp(18px, 5vw, 75px);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px
}

.lux-panel,
.form-card {
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow)
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.field.full {
  grid-column: 1/-1
}

label {
  font-weight: 800
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 16px;
  color: var(--brown)
}

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

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

.success {
  background: #edf8ef;
  border: 1px solid #b8dfbd;
  color: #1d6b2a;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px
}

.error {
  background: #fff0ef;
  border: 1px solid #efb9b4;
  color: #8a2a1f;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px
}

.site-footer {
  margin-top: 70px;
  padding: 40px clamp(18px, 6vw, 90px);
  background: #2c211b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 20px
}

.site-footer p {
  color: #e1d5cb
}

.social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.floating-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 30;
  background: linear-gradient(135deg, #b68a39, var(--champagne));
  color: #fff;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18)
}

.admin-body {
  background: #f8f2e9
}

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

.sidebar {
  background: #2c211b;
  color: #fff;
  padding: 24px
}

.sidebar a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: #eadfd2;
  margin: 4px 0
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(215, 180, 106, .18);
  color: #fff
}

.admin-main {
  padding: 28px
}

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

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(58, 39, 20, .06)
}

.stat strong {
  font-size: 34px
}

.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: auto;
  box-shadow: 0 10px 28px rgba(58, 39, 20, .06);
  margin-top: 20px
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px
}

th,
td {
  text-align: right;
  padding: 14px;
  border-bottom: 1px solid #eee2d3
}

th {
  background: #fff7e9
}

.badge {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  background: #fff2d2;
  color: #8a6428
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ivory), #f3dcd5)
}

.login-card {
  width: min(420px, 92vw);
  background: #fff;
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line)
}

@media(max-width:980px) {
  .hero,
  .request-shell {
    grid-template-columns: 1fr
  }
  .grid {
    grid-template-columns: 1fr 1fr
  }
  .steps {
    grid-template-columns: 1fr 1fr
  }
  .stats {
    grid-template-columns: 1fr 1fr
  }
  .admin-layout {
    grid-template-columns: 1fr
  }
  .sidebar {
    position: relative
  }
  .main-nav {
    display: none
  }
}

@media(max-width:620px) {
  .grid,
  .steps,
  .form-grid,
  .stats {
    grid-template-columns: 1fr
  }
  .hero-frame {
    min-height: 360px
  }
  .site-footer {
    display: block
  }
  .section h2 {
    font-size: 34px
  }
}


/* تحسينات النسخة الثانية */

.trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px
}

.trust-row span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .65);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-weight: 700
}

.section-soft {
  background: linear-gradient(180deg, rgba(244, 222, 216, .28), rgba(255, 250, 243, .3))
}

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

.gallery-card {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(58, 39, 20, .07)
}

.gallery-card img {
  width: 100%;
  height: 310px;
  object-fit: cover
}

.mini-link {
  display: inline-block;
  margin-top: 12px;
  color: #9c7130;
  font-weight: 800
}

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

.choice-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 3px;
  cursor: pointer;
  transition: .2s
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(58, 39, 20, .08)
}

.choice-card input {
  width: auto
}

.choice-card span {
  font-size: 28px
}

.choice-card small {
  color: var(--muted)
}

.footer-contact-card {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  border-radius: 22px;
  padding: 16px 20px;
  min-width: 220px
}

.footer-contact-card span {
  display: block;
  color: #e7d5bc
}

.footer-contact-card strong {
  display: block;
  font-size: 23px
}

.footer-contact-card a {
  color: #f3d58c;
  font-weight: 800
}

.btn-danger {
  border: 1px solid #f1b7b1;
  background: #fff0ef;
  color: #8a2a1f;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800
}

.admin-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px
}

.admin-gallery .gallery-card img {
  height: 220px
}

.sidebar .brand {
  font-size: 18px;
  color: #fff
}

.sidebar .brand-mark {
  flex: 0 0 auto
}

@media(max-width:980px) {
  .gallery-grid,
  .admin-gallery {
    grid-template-columns: 1fr 1fr
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:620px) {
  .gallery-grid,
  .admin-gallery,
  .choice-grid {
    grid-template-columns: 1fr
  }
  .gallery-card img {
    height: 260px
  }
}


/* v3: غرفة التشغيل والفخامة الإضافية */

.hero-luxury {
  background: radial-gradient(circle at 12% 12%, rgba(215, 180, 106, .22), transparent 28%), linear-gradient(180deg, #fbf6ee, #fffaf3)
}

.hero-small {
  font-size: 16px!important;
  color: #9c7a5d!important;
  border-right: 3px solid var(--champagne);
  padding-right: 14px;
  margin-top: 10px
}

.page-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #fffaf3, #f6e3dc);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: 0 18px 55px rgba(58, 39, 20, .08)
}

.page-hero h1 {
  font-family: 'Amiri', serif;
  font-size: 42px;
  margin: 0 0 6px
}

.as-text {
  font-size: 16px!important
}

.luxury-stats {
  grid-template-columns: repeat(6, 1fr)
}

.luxury-stats .stat {
  background: linear-gradient(180deg, #fff, #fff8ef)
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 10px 28px rgba(58, 39, 20, .05)
}

.kanban-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 18px 0
}

.kanban-strip a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(58, 39, 20, .05)
}

.kanban-strip span {
  display: block;
  color: var(--muted)
}

.kanban-strip strong {
  font-size: 28px;
  color: var(--brown)
}

.badge.st-new {
  background: #f3f0ea;
  color: #65544b
}

.badge.st-info {
  background: #eaf4ff;
  color: #225a84
}

.badge.st-warn {
  background: #fff6d8;
  color: #85630c
}

.badge.st-gold {
  background: #fff1c7;
  color: #875f00
}

.badge.st-rose {
  background: #fde8e3;
  color: #8c3b2d
}

.badge.st-orange {
  background: #ffe7cf;
  color: #9a4d00
}

.badge.st-ok {
  background: #e8f8ed;
  color: #1c7835
}

.badge.st-done {
  background: #e8eefb;
  color: #2a4f8a
}

.badge.st-muted {
  background: #eee;
  color: #666
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px
}

.calendar-day {
  min-height: 130px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 22px rgba(58, 39, 20, .04)
}

.calendar-day>strong {
  color: #9c7130
}

.calendar-event {
  display: block;
  margin-top: 8px;
  border-radius: 14px;
  padding: 8px;
  background: #fff7e9;
  border: 1px solid rgba(215, 180, 106, .25)
}

.calendar-event span {
  display: block;
  font-weight: 800
}

.calendar-event small {
  display: block;
  color: var(--muted);
  line-height: 1.5
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 16px 0
}

.tabs a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800
}

.tabs a.active {
  background: linear-gradient(135deg, #b68a39, var(--champagne));
  color: #fff
}

.task-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.task-card,
.mini-task {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(58, 39, 20, .05)
}

.task-card.is-done,
.mini-task.is-done {
  opacity: .65;
  background: #f7f7f7
}

.mini-task {
  margin-top: 10px
}

.timeline {
  margin-top: 16px
}

.timeline-item {
  border-right: 3px solid var(--champagne);
  padding: 10px 14px;
  margin: 10px 0;
  background: #fffaf3;
  border-radius: 16px
}

.timeline-item span {
  display: block;
  color: var(--muted);
  font-size: 13px
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.message-card {
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px
}

.message-card textarea {
  height: 150px;
  margin: 10px 0
}

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

.style-card {
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 1px solid rgba(215, 180, 106, .28);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 14px 38px rgba(58, 39, 20, .07);
  transition: .25s
}

.style-card:hover,
.luxe-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(58, 39, 20, .12)
}

.style-card span {
  font-size: 38px
}

.style-card h3 {
  font-size: 26px;
  margin: 8px 0
}

.style-card p {
  color: var(--muted)
}

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch
}

.ba-card,
.ba-copy,
.policy-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(58, 39, 20, .06)
}

.ba-card>span {
  font-weight: 800;
  color: #9c7130
}

.ba-box {
  height: 260px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-family: 'Amiri';
  font-size: 34px
}

.ba-box.before {
  background: linear-gradient(135deg, #f0ece6, #fff)
}

.ba-box.after {
  background: radial-gradient(circle, rgba(215, 180, 106, .4), transparent 55%), linear-gradient(135deg, #fff1db, #f5d1c8)
}

.ba-copy h3 {
  font-family: 'Amiri', serif;
  font-size: 34px;
  margin: 0
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}

.faq-grid details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px
}

.faq-grid summary {
  font-weight: 800;
  cursor: pointer
}

.policy-card {
  text-align: center;
  background: linear-gradient(135deg, #fffaf3, #f7e4dc)
}

.policy-card h2 {
  font-family: 'Amiri', serif;
  font-size: 42px;
  margin: 0 0 8px
}

@media(max-width:1180px) {
  .luxury-stats {
    grid-template-columns: repeat(3, 1fr)
  }
  .filter-bar {
    grid-template-columns: repeat(2, 1fr)
  }
  .kanban-strip {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:900px) {
  .split-grid,
  .style-grid,
  .ba-grid,
  .faq-grid,
  .task-list,
  .message-grid {
    grid-template-columns: 1fr
  }
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr)
  }
  .page-hero {
    display: block
  }
  .luxury-stats {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:620px) {
  .filter-bar,
  .kanban-strip,
  .luxury-stats {
    grid-template-columns: 1fr
  }
  .calendar-grid {
    grid-template-columns: 1fr
  }
  .page-hero h1 {
    font-size: 32px
  }
}


/* v4: الهوية والثيمات */

.brand-logo {
  width: 100px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(120, 80, 30, .18))
}

.sidebar .brand-logo {
  width: 46px;
  height: 46px
}

.login-card .brand-logo {
  width: 54px;
  height: 54px
}

.theme-champagne {
  --ivory: #fbf6ee;
  --cream: #fffaf3;
  --champagne: #d7b46a;
  --rose: #dfb5aa;
  --rose-soft: #f4ded8;
  --brown: #2c211b;
  --muted: #7d6b5f;
  --line: rgba(96, 72, 45, .16)
}

.theme-royal {
  --ivory: #f9f3ea;
  --cream: #fff9ef;
  --champagne: #c99b4a;
  --rose: #d7b9a2;
  --rose-soft: #efe0d2;
  --brown: #1d1512;
  --muted: #756257;
  --line: rgba(55, 35, 22, .18)
}

.theme-rose {
  --ivory: #fff6f4;
  --cream: #fffafa;
  --champagne: #caa15b;
  --rose: #d89a9c;
  --rose-soft: #f7dede;
  --brown: #33201f;
  --muted: #7f6363;
  --line: rgba(140, 70, 76, .15)
}

.theme-pearl {
  --ivory: #fbfaf7;
  --cream: #ffffff;
  --champagne: #bda76d;
  --rose: #d8c7b9;
  --rose-soft: #f1ebe4;
  --brown: #24211c;
  --muted: #706b63;
  --line: rgba(60, 52, 38, .13)
}

.theme-emerald {
  --ivory: #f6f8f3;
  --cream: #fffdf6;
  --champagne: #c6a45b;
  --rose: #cbb99a;
  --rose-soft: #e3ecdf;
  --brown: #17251e;
  --muted: #607267;
  --line: rgba(35, 70, 54, .15)
}

.theme-royal .sidebar {
  background: linear-gradient(180deg, #1d1512, #3c2418)
}

.theme-emerald .sidebar {
  background: linear-gradient(180deg, #14241d, #254838)
}

.theme-rose .sidebar {
  background: linear-gradient(180deg, #3a2022, #73424a)
}

.security-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(58, 39, 20, .05)
}


/* v4.2: تفعيل الثيمات بشكل واضح بدل الاعتماد على ألوان ثابتة */

.theme-champagne {
  --ivory: #fbf6ee;
  --cream: #fffaf3;
  --champagne: #d7b46a;
  --rose: #dfb5aa;
  --rose-soft: #f4ded8;
  --brown: #2c211b;
  --muted: #7d6b5f;
  --line: rgba(96, 72, 45, .16);
  --surface: #ffffff;
  --surface-soft: #fff7e9;
  --admin-bg: #f8f2e9;
  --input-bg: #fff;
  --header-bg: rgba(251, 246, 238, .88);
  --footer-bg: #2c211b;
  --sidebar-bg: #2c211b;
  --accent-grad: linear-gradient(135deg, #b68a39, #d7b46a);
  --hero-bg: radial-gradient(circle at 12% 12%, rgba(215, 180, 106, .22), transparent 28%), linear-gradient(180deg, #fbf6ee, #fffaf3);
  --hero-card-bg: linear-gradient(160deg, #fff8ef, #f7e5da);
  --page-hero-bg: linear-gradient(135deg, #fffaf3, #f6e3dc);
  --section-soft-bg: linear-gradient(180deg, rgba(244, 222, 216, .28), rgba(255, 250, 243, .3));
  --style-card-bg: linear-gradient(180deg, #fff, #fff7ed);
  --table-head-bg: #fff7e9;
  --tag-bg: #fff4df;
  --tag-color: #8a6428;
  --gold-text: #9d783d;
  --portfolio-bg: linear-gradient(135deg, #f4ded8, #fff0d5);
  --login-bg: linear-gradient(135deg, #fbf6ee, #f3dcd5);
  --policy-bg: linear-gradient(135deg, #fffaf3, #f7e4dc);
  --before-bg: linear-gradient(135deg, #f0ece6, #fff);
  --after-bg: radial-gradient(circle, rgba(215, 180, 106, .4), transparent 55%), linear-gradient(135deg, #fff1db, #f5d1c8);
}

.theme-royal {
  --ivory: #160f0d;
  --cream: #241713;
  --champagne: #d8aa50;
  --rose: #9d625b;
  --rose-soft: #3a2621;
  --brown: #fff2df;
  --muted: #d8c4ad;
  --line: rgba(216, 170, 80, .27);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --surface: #241713;
  --surface-soft: #2d1d18;
  --admin-bg: #160f0d;
  --input-bg: #1c1210;
  --header-bg: rgba(22, 15, 13, .92);
  --footer-bg: #0e0908;
  --sidebar-bg: linear-gradient(180deg, #120c0a, #3a2118);
  --accent-grad: linear-gradient(135deg, #8f5d23, #d8aa50);
  --hero-bg: radial-gradient(circle at 14% 14%, rgba(216, 170, 80, .22), transparent 30%), linear-gradient(180deg, #160f0d, #241713);
  --hero-card-bg: linear-gradient(160deg, #2b1b16, #41261c);
  --page-hero-bg: linear-gradient(135deg, #231612, #3a2118);
  --section-soft-bg: linear-gradient(180deg, rgba(216, 170, 80, .09), rgba(80, 43, 30, .18));
  --style-card-bg: linear-gradient(180deg, #2a1a15, #362118);
  --table-head-bg: #2d1d18;
  --tag-bg: #3a2618;
  --tag-color: #f3d58c;
  --gold-text: #f3d58c;
  --portfolio-bg: linear-gradient(135deg, #3a2621, #51311f);
  --login-bg: linear-gradient(135deg, #100b09, #382018);
  --policy-bg: linear-gradient(135deg, #231612, #3a2118);
  --before-bg: linear-gradient(135deg, #2a211d, #140e0c);
  --after-bg: radial-gradient(circle, rgba(216, 170, 80, .36), transparent 55%), linear-gradient(135deg, #2d1d18, #53311f);
}

.theme-rose {
  --ivory: #fff6f4;
  --cream: #fffafa;
  --champagne: #caa15b;
  --rose: #d88992;
  --rose-soft: #f7dede;
  --brown: #33201f;
  --muted: #806165;
  --line: rgba(140, 70, 76, .16);
  --surface: #ffffff;
  --surface-soft: #fff0f0;
  --admin-bg: #fff6f4;
  --input-bg: #fff;
  --header-bg: rgba(255, 246, 244, .9);
  --footer-bg: #33201f;
  --sidebar-bg: linear-gradient(180deg, #3a2022, #73424a);
  --accent-grad: linear-gradient(135deg, #b76e79, #d8a05d);
  --hero-bg: radial-gradient(circle at 12% 12%, rgba(216, 137, 146, .24), transparent 28%), linear-gradient(180deg, #fff6f4, #fffafa);
  --hero-card-bg: linear-gradient(160deg, #fffafa, #f8dddd);
  --page-hero-bg: linear-gradient(135deg, #fffafa, #f6dcdc);
  --section-soft-bg: linear-gradient(180deg, rgba(247, 222, 222, .55), rgba(255, 250, 250, .35));
  --style-card-bg: linear-gradient(180deg, #fff, #fff1f2);
  --table-head-bg: #fff0f0;
  --tag-bg: #fff0f0;
  --tag-color: #95444f;
  --gold-text: #9b6a2a;
  --portfolio-bg: linear-gradient(135deg, #f7dede, #fff0ed);
  --login-bg: linear-gradient(135deg, #fff6f4, #f5d9dc);
  --policy-bg: linear-gradient(135deg, #fffafa, #f4dcdc);
  --before-bg: linear-gradient(135deg, #f3eeee, #fff);
  --after-bg: radial-gradient(circle, rgba(216, 137, 146, .38), transparent 55%), linear-gradient(135deg, #fff1f2, #f6d4d8);
}

.theme-pearl {
  --ivory: #fbfaf7;
  --cream: #ffffff;
  --champagne: #bda76d;
  --rose: #d8c7b9;
  --rose-soft: #f1ebe4;
  --brown: #24211c;
  --muted: #706b63;
  --line: rgba(60, 52, 38, .13);
  --surface: #ffffff;
  --surface-soft: #faf7ef;
  --admin-bg: #fbfaf7;
  --input-bg: #fff;
  --header-bg: rgba(251, 250, 247, .92);
  --footer-bg: #24211c;
  --sidebar-bg: linear-gradient(180deg, #24211c, #50483b);
  --accent-grad: linear-gradient(135deg, #9f8a54, #d2c08a);
  --hero-bg: radial-gradient(circle at 12% 12%, rgba(189, 167, 109, .18), transparent 30%), linear-gradient(180deg, #fbfaf7, #fff);
  --hero-card-bg: linear-gradient(160deg, #ffffff, #f4efe7);
  --page-hero-bg: linear-gradient(135deg, #ffffff, #f1ebe4);
  --section-soft-bg: linear-gradient(180deg, rgba(241, 235, 228, .52), rgba(255, 255, 255, .35));
  --style-card-bg: linear-gradient(180deg, #fff, #faf7ef);
  --table-head-bg: #faf7ef;
  --tag-bg: #f7f1e4;
  --tag-color: #756137;
  --gold-text: #8c7441;
  --portfolio-bg: linear-gradient(135deg, #f1ebe4, #fff);
  --login-bg: linear-gradient(135deg, #fbfaf7, #eee8df);
  --policy-bg: linear-gradient(135deg, #ffffff, #f1ebe4);
  --before-bg: linear-gradient(135deg, #ededed, #fff);
  --after-bg: radial-gradient(circle, rgba(189, 167, 109, .28), transparent 55%), linear-gradient(135deg, #fff, #eee6db);
}

.theme-emerald {
  --ivory: #f6f8f3;
  --cream: #fffdf6;
  --champagne: #c6a45b;
  --rose: #cbb99a;
  --rose-soft: #e3ecdf;
  --brown: #17251e;
  --muted: #607267;
  --line: rgba(35, 70, 54, .17);
  --surface: #ffffff;
  --surface-soft: #f0f5ea;
  --admin-bg: #f6f8f3;
  --input-bg: #fff;
  --header-bg: rgba(246, 248, 243, .9);
  --footer-bg: #17251e;
  --sidebar-bg: linear-gradient(180deg, #14241d, #254838);
  --accent-grad: linear-gradient(135deg, #2f6a4f, #c6a45b);
  --hero-bg: radial-gradient(circle at 12% 12%, rgba(47, 106, 79, .17), transparent 28%), linear-gradient(180deg, #f6f8f3, #fffdf6);
  --hero-card-bg: linear-gradient(160deg, #fffdf6, #e3ecdf);
  --page-hero-bg: linear-gradient(135deg, #fffdf6, #e4eddf);
  --section-soft-bg: linear-gradient(180deg, rgba(227, 236, 223, .55), rgba(255, 253, 246, .35));
  --style-card-bg: linear-gradient(180deg, #fff, #eef6ec);
  --table-head-bg: #f0f5ea;
  --tag-bg: #eef6ec;
  --tag-color: #2f6a4f;
  --gold-text: #8c7132;
  --portfolio-bg: linear-gradient(135deg, #e3ecdf, #fff4dc);
  --login-bg: linear-gradient(135deg, #f6f8f3, #dfeee0);
  --policy-bg: linear-gradient(135deg, #fffdf6, #e3ecdf);
  --before-bg: linear-gradient(135deg, #edf2eb, #fff);
  --after-bg: radial-gradient(circle, rgba(47, 106, 79, .28), transparent 55%), linear-gradient(135deg, #e3ecdf, #fff4dc);
}

body[class*="theme-"] {
  background: linear-gradient(180deg, var(--ivory), var(--cream));
  color: var(--brown)
}

.site-header {
  background: var(--header-bg);
  border-bottom-color: var(--line)
}

.hero-luxury {
  background: var(--hero-bg)
}

.hero-card {
  background: var(--hero-card-bg)
}

.page-hero {
  background: var(--page-hero-bg)
}

.section-soft {
  background: var(--section-soft-bg)
}

.card,
.gallery-card,
.lux-panel,
.form-card,
.stat,
.table-card,
.task-card,
.mini-task,
.message-card,
.faq-grid details,
.ba-card,
.ba-copy,
.security-note,
.choice-card {
  background: var(--surface);
  border-color: var(--line)
}

.style-card {
  background: var(--style-card-bg);
  border-color: var(--line)
}

.site-footer {
  background: var(--footer-bg)
}

.sidebar {
  background: var(--sidebar-bg)
}

.admin-body {
  background: var(--admin-bg)
}

th {
  background: var(--table-head-bg)
}

input,
select,
textarea {
  background: var(--input-bg);
  color: var(--brown);
  border-color: var(--line)
}

select option {
  background: #fff;
  color: #2c211b
}

.tag,
.badge {
  background: var(--tag-bg);
  color: var(--tag-color);
  border-color: var(--line)
}

.portfolio-img {
  background: var(--portfolio-bg);
  color: var(--gold-text)
}

.nav-cta,
.btn-primary,
.floating-cta {
  background: var(--accent-grad)
}

.step:before {
  background: var(--champagne)
}

.login-page {
  background: var(--login-bg)
}

.policy-card {
  background: var(--policy-bg)
}

.ba-box.before {
  background: var(--before-bg)
}

.ba-box.after {
  background: var(--after-bg)
}

.eyebrow,
.mini-link,
.calendar-day>strong,
.ba-card>span {
  color: var(--gold-text)
}

.hero-small {
  color: var(--muted)!important
}

.hero:before {
  background: radial-gradient(circle, var(--rose-soft), transparent 70%)
}

.theme-royal .hero-note,
.theme-royal .login-card {
  background: rgba(36, 23, 19, .88);
  border-color: var(--line)
}

.theme-royal .site-header a,
.theme-royal .main-nav {
  color: var(--brown)
}

.theme-royal .btn-secondary {
  background: rgba(255, 255, 255, .06);
  color: var(--brown);
  border-color: var(--line)
}

.theme-royal table {
  color: var(--brown)
}

.theme-royal td {
  border-bottom-color: rgba(216, 170, 80, .13)
}

.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px
}

.theme-preview {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 180px;
  position: relative;
  box-shadow: 0 10px 24px rgba(58, 39, 20, .05)
}

.theme-preview input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.theme-preview-art {
  height: 76px;
  border-radius: 18px;
  background: var(--hero-card-bg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden
}

.theme-preview-art i {
  position: absolute;
  inset: auto 13px 12px auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--champagne)
}

.theme-preview-art b {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 62px;
  height: 13px;
  border-radius: 99px;
  background: var(--rose)
}

.theme-preview-art em {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 66px;
  height: 8px;
  border-radius: 99px;
  background: var(--brown);
  opacity: .72
}

.theme-preview strong {
  font-size: 17px
}

.theme-preview small {
  color: var(--muted);
  line-height: 1.5
}

.theme-preview.is-selected {
  outline: 3px solid var(--champagne);
  box-shadow: 0 16px 36px rgba(58, 39, 20, .12)
}

@media(max-width:1180px) {
  .theme-selector-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:720px) {
  .theme-selector-grid {
    grid-template-columns: 1fr
  }
}


/* v4.3: إصلاح اختيار الثيمات - قائمة منسدلة + بطاقات تفاعلية واضحة */

.theme-field {
  gap: 12px
}

.theme-native-select {
  max-width: 420px;
  background: var(--input-bg);
  border: 2px solid var(--line);
  font-weight: 800
}

.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 6px
}

.theme-preview {
  appearance: none;
  -webkit-appearance: none;
  text-align: right;
  font-family: inherit;
  color: var(--brown);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 196px;
  position: relative;
  box-shadow: 0 10px 24px rgba(58, 39, 20, .05);
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease, border-color .18s ease
}

.theme-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(58, 39, 20, .11)
}

.theme-preview:focus-visible {
  outline: 4px solid var(--champagne);
  outline-offset: 3px
}

.theme-preview-art {
  height: 76px;
  border-radius: 18px;
  background: var(--hero-card-bg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden
}

.theme-preview-art i {
  position: absolute;
  inset: auto 13px 12px auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--champagne)
}

.theme-preview-art b {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 62px;
  height: 13px;
  border-radius: 99px;
  background: var(--rose)
}

.theme-preview-art em {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 66px;
  height: 8px;
  border-radius: 99px;
  background: var(--brown);
  opacity: .72
}

.theme-preview strong {
  font-size: 17px
}

.theme-preview small {
  color: var(--muted);
  line-height: 1.5
}

.theme-preview .theme-check {
  display: none;
  align-self: end;
  width: max-content;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800
}

.theme-preview.is-selected,
.theme-preview[aria-pressed="true"] {
  outline: 3px solid var(--champagne);
  border-color: var(--champagne);
  box-shadow: 0 16px 36px rgba(58, 39, 20, .14)
}

.theme-preview.is-selected .theme-check,
.theme-preview[aria-pressed="true"] .theme-check {
  display: inline-flex
}

.theme-preview input {
  display: none!important
}

@media(max-width:1180px) {
  .theme-selector-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media(max-width:720px) {
  .theme-selector-grid {
    grid-template-columns: 1fr
  }
  .theme-native-select {
    max-width: none
  }
}


/* v4.4: فوتر فاخر مع أيقونات تواصل اجتماعي */

.site-footer.luxury-footer {
  margin-top: 10px;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 0%, rgba(215, 180, 106, .22), transparent 32%), radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .08), transparent 26%), var(--footer-bg);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.luxury-footer:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(215, 180, 106, .8), transparent);
}

.footer-ornament {
  position: absolute;
  left: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(215, 180, 106, .18);
  box-shadow: inset 0 0 0 26px rgba(215, 180, 106, .035), inset 0 0 0 58px rgba(255, 255, 255, .02);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr .95fr .72fr 1.15fr;
  gap: 24px;
  padding: 54px clamp(18px, 6vw, 90px) 36px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.footer-logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 6px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .2);
}

.footer-copy {
  max-width: 430px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .78)!important;
  line-height: 1.9;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.footer-badges span {
  border: 1px solid rgba(215, 180, 106, .28);
  background: rgba(255, 255, 255, .06);
  color: #f3d58c;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.luxury-footer .footer-contact-card,
.footer-card-feature {
  min-width: 0;
  border: 1px solid rgba(215, 180, 106, .24);
  background: linear-gradient(180deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .16);
  text-align: center;
}

.footer-card-kicker,
.luxury-footer .footer-contact-card span {
  display: block;
  color: #f3d58c;
  font-weight: 800;
  letter-spacing: .4px;
}

.luxury-footer .footer-contact-card strong {
  display: block;
  margin: 8px 0 2px;
  font-family: 'Amiri', serif;
  font-size: 30px;
  line-height: 1.35;
  color: #fff;
}

.footer-phone {
  display: inline-flex;
  margin-top: 4px;
  color: #fff!important;
  font-weight: 900;
  direction: ltr;
  unicode-bidi: plaintext;
}

.luxury-footer .footer-contact-card p {
  margin: 12px 0 16px;
  color: rgba(255, 255, 255, .72)!important;
  font-size: 14px;
}

.footer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 11px 15px;
  color: #fff;
  background: linear-gradient(135deg, rgba(47, 106, 79, .95), rgba(198, 164, 91, .9));
  box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
  font-weight: 900;
}

.footer-whatsapp-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-links h3,
.footer-social-panel h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .76);
  width: max-content;
  transition: color .18s ease, transform .18s ease;
}

.footer-links a:hover {
  color: #f3d58c;
  transform: translateX(-3px);
}

.footer-social-panel p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .72)!important;
  font-size: 14px;
}

.social-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-icon-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .055);
  border-radius: 20px;
  padding: 11px;
  color: #fff;
  min-height: 72px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.social-icon-link:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 180, 106, .5);
  background: rgba(255, 255, 255, .095);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .14);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #f3d58c;
  background: rgba(215, 180, 106, .12);
  border: 1px solid rgba(215, 180, 106, .20);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-icon .svg-line,
.footer-whatsapp-btn .svg-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-meta {
  display: grid;
  line-height: 1.35;
}

.social-meta strong {
  font-size: 14px;
  color: #fff;
}

.social-meta small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

.social-whatsapp .social-icon {
  color: #dff7e8;
  background: rgba(47, 106, 79, .18);
  border-color: rgba(159, 215, 180, .22)
}

.social-instagram .social-icon {
  color: #ffd7e2;
  background: rgba(216, 137, 146, .14);
  border-color: rgba(255, 215, 226, .18)
}

.social-snapchat .social-icon {
  color: #fff1a8;
  background: rgba(215, 180, 106, .14);
  border-color: rgba(255, 241, 168, .18)
}

.social-tiktok .social-icon {
  color: #d8f7ff;
  background: rgba(255, 255, 255, .075);
  border-color: rgba(216, 247, 255, .16)
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px clamp(18px, 6vw, 90px);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .58);
  font-size: 14px;
}

.theme-pearl .luxury-footer,
.theme-champagne .luxury-footer,
.theme-rose .luxury-footer,
.theme-emerald .luxury-footer {
  color: #fff;
}

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

@media(max-width:720px) {
  .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }
  .social-icon-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-logo {
    font-size: 21px;
  }
  .footer-logo img {
    width: 52px;
    height: 52px;
  }
  .floating-cta {
    right: 18px;
    left: 18px;
    text-align: center;
  }
}

.social-settings-note {
  margin-top: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
}

.social-settings-note h3 {
  margin: 0 0 4px
}

.social-settings-note p {
  margin: 0
}


/* v4.4 Luxury footer and social icons */

.luxury-footer {
  position: relative;
  overflow: hidden;
  margin-top: 82px;
  padding: 0 clamp(18px, 6vw, 90px);
  display: block;
  color: #fff;
  background: radial-gradient(circle at 15% 0%, rgba(215, 180, 106, .22), transparent 34%), linear-gradient(135deg, var(--footer-bg), rgba(16, 10, 8, .96));
  border-top: 1px solid rgba(215, 180, 106, .22)
}

.luxury-footer:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), transparent 24%, rgba(215, 180, 106, .08) 52%, transparent 78%);
  pointer-events: none
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(245px, .85fr) minmax(190px, .55fr);
  gap: 24px;
  padding: 48px 0 32px
}

.footer-brand-panel,
.footer-card-luxury,
.footer-links-panel {
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .045));
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  text-align: center;
  backdrop-filter: blur(12px)
}

.footer-brand-panel {
  min-height: 100%;
  position: relative
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px
}

.footer-logo {
  width: min(230px, 70vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .24))
}

.luxury-footer h2 {
  font-family: 'Amiri', serif;
  font-size: 36px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff
}

.luxury-footer p {
  color: rgba(255, 255, 255, .74);
  line-height: 1.9;
  max-width: 100%
}

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px
}

.footer-badges span {
  border: 1px solid rgba(215, 180, 106, .35);
  background: rgba(215, 180, 106, .12);
  color: #f5ddac;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800
}

.footer-eyebrow {
  display: inline-flex;
  color: #f1d9a2;
  background: rgba(215, 180, 106, .12);
  border: 1px solid rgba(215, 180, 106, .25);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px
}

.footer-card-luxury strong {
  display: block;
  font-family: 'Amiri', serif;
  font-size: 31px;
  line-height: 1.25;
  color: #fff
}

.footer-phone {
  display: inline-flex;
  margin-top: 5px;
  color: #f3d58c;
  font-weight: 900;
  font-size: 21px;
  direction: ltr
}

.footer-contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px
}

.footer-action {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  transition: .2s
}

.footer-action:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 180, 106, .48);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18)
}

.footer-action.primary {
  background: linear-gradient(135deg, #b78d3c, var(--champagne));
  color: #fff;
  border-color: rgba(255, 255, 255, .18)
}

.footer-action svg {
  width: 19px;
  height: 19px;
  fill: currentColor
}

.footer-links-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
  color: #f1d9a2
}

.footer-links-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 11px 0;
  color: rgba(255, 255, 255, .82);
  font-weight: 800
}

.footer-links-panel a:after {
  content: "←";
  color: #f3d58c;
  opacity: .85
}

.footer-links-panel a:hover {
  color: #fff
}

.footer-social-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 22px 0
}

.footer-social-row strong {
  display: block;
  color: #fff;
  font-size: 18px
}

.footer-social-row span {
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  margin-top: 4px
}

.social-links-luxury {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  border-radius: 999px;
  padding: 8px 13px 8px 16px;
  font-weight: 900;
  transition: .2s
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(215, 180, 106, .5);
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16)
}

.social-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(215, 180, 106, .16);
  color: #f8e0a5;
  border: 1px solid rgba(215, 180, 106, .28);
  flex: 0 0 auto
}

.social-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, .62);
  font-size: 13px
}

.theme-royal .luxury-footer,
.theme-emerald .luxury-footer {
  background: radial-gradient(circle at 15% 0%, rgba(215, 180, 106, .25), transparent 34%), linear-gradient(135deg, var(--footer-bg), rgba(5, 5, 5, .98))
}

.theme-pearl .luxury-footer {
  background: radial-gradient(circle at 15% 0%, rgba(215, 180, 106, .24), transparent 34%), linear-gradient(135deg, var(--footer-bg), #17130f)
}

.theme-rose .luxury-footer {
  padding: 0 24px 0 24px;
  background: radial-gradient(circle at 15% 0%, rgba(244, 184, 194, .22), transparent 34%), linear-gradient(135deg, var(--footer-bg), #201012)
}

@media(max-width:980px) {
  .footer-main {
    grid-template-columns: 1fr
  }
  .footer-social-row,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr
  }
  .social-links-luxury {
    justify-content: flex-start
  }
}

@media(max-width:620px) {
  .luxury-footer {
    margin-top: 54px
  }
  .footer-main {
    padding-top: 32px
  }
  .footer-brand-panel,
  .footer-card-luxury,
  .footer-links-panel {
    border-radius: 24px;
    padding: 20px
  }
  .luxury-footer h2 {
    font-size: 30px
  }
  .footer-logo {
    width: min(205px, 78vw)
  }
  .social-link {
    width: 100%;
    justify-content: space-between
  }
  .social-links-luxury {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%
  }
  .footer-social-row {
    align-items: start
  }
  .footer-bottom {
    font-size: 12px
  }
  .floating-cta {
    right: 16px;
    left: 16px;
    text-align: center
  }
}


/* v4.4: فوتر فاخر + أيقونات وسائل التواصل بدون مكتبات خارجية */

.footer-luxury {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  padding: 56px clamp(18px, 6vw, 90px) 24px;
  background: var(--footer-bg);
  color: #fff;
  display: block;
  border-top: 1px solid rgba(255, 255, 255, .1);
  isolation: isolate
}

.footer-luxury:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%), radial-gradient(circle at 18% 18%, rgba(215, 180, 106, .22), transparent 24%), radial-gradient(circle at 82% 0%, rgba(255, 255, 255, .08), transparent 24%);
  z-index: -2
}

.footer-glow {
  position: absolute;
  inset: auto -120px -160px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 180, 106, .25), transparent 68%);
  z-index: -1
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .72fr 1fr;
  gap: 22px;
  align-items: stretch
}

.footer-brand-block,
.footer-card-lux {
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045));
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .16);
  backdrop-filter: blur(10px)
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.footer-brand-link {
  display: inline-flex;
  width: min(320px, 100%)
}

.footer-logo {
  max-width: 140px;
  border-radius: 22px;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, .22))
}

.footer-luxury p {
  color: rgba(255, 255, 255, .76);
  margin: 0
}

.footer-signature {
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(215, 180, 106, .28)
}

.footer-signature span,
.footer-kicker {
  font-size: 13px;
  color: #f4d994;
  font-weight: 800;
  letter-spacing: .4px
}

.footer-signature strong {
  color: #fff;
  font-size: 15px
}

.footer-card-lux {
  display: flex;
  flex-direction: column;
  gap: 13px
}

.footer-contact-card.footer-card-lux {
  min-width: 0
}

.footer-contact-card.footer-card-lux strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  font-family: 'Amiri', serif;
  color: #fff;
  line-height: 1.3
}

.footer-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 900;
  width: max-content;
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14)
}

.footer-phone-link svg {
  width: 20px;
  height: 20px;
  fill: #f4d994
}

.footer-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin-top: 4px;
  background: var(--accent-grad);
  color: #fff!important;
  border-radius: 999px;
  padding: 11px 17px;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18)
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, .84);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  font-weight: 700
}

.footer-links a:after {
  content: "←";
  color: #f4d994
}

.footer-links a:last-child {
  border-bottom: 0
}

.footer-links a:hover,
.footer-primary-action:hover,
.footer-phone-link:hover {
  transform: translateY(-1px)
}

.social-icon-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px
}

.social-icon {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  border-radius: 18px;
  padding: 3px 3px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .07);
  font-weight: 900;
  transition: transform .18s ease, background .18s ease, border-color .18s ease
}

.social-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  flex: 0 0 auto
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(244, 217, 148, .45)
}

.social-icon-whatsapp {
  color: #d6ffea
}

.social-icon-snapchat {
  color: #fff1a8
}

.social-icon-instagram {
  color: #ffd4ef
}

.social-icon-tiktok {
  color: #dff8ff
}

.footer-social-note {
  font-size: 13px;
  line-height: 1.7
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .68);
  font-size: 14px
}

.theme-royal .footer-brand-block,
.theme-royal .footer-card-lux {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .035));
  border-color: rgba(216, 170, 80, .22)
}

.theme-pearl .footer-luxury:before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 42%), radial-gradient(circle at 18% 18%, rgba(189, 167, 109, .2), transparent 24%)
}

.theme-emerald .footer-luxury:before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 42%), radial-gradient(circle at 18% 18%, rgba(47, 106, 79, .28), transparent 24%), radial-gradient(circle at 82% 0%, rgba(198, 164, 91, .15), transparent 24%)
}

@media(max-width:1180px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
  .footer-brand-block {
    grid-column: 1/-1
  }
  .footer-brand-link {
    width: 300px
  }
}

@media(max-width:700px) {
  .footer-luxury {
    padding: 42px 18px 22px;
    margin-top: 56px
  }
  .footer-grid {
    grid-template-columns: 1fr
  }
  .footer-brand-link {
    width: 100%;
    max-width: 330px
  }
  .footer-logo {
    max-width: 330px
  }
  .social-icon-row {
    grid-template-columns: 1fr 1fr
  }
  .footer-bottom {
    display: grid;
    gap: 8px
  }
  .footer-primary-action,
  .footer-phone-link {
    width: 100%;
    justify-content: center
  }
  .footer-links a {
    padding: 11px 0
  }
}

@media(max-width:420px) {
  .social-icon-row {
    grid-template-columns: 1fr
  }
  .social-icon {
    justify-content: center
  }
  .footer-signature {
    width: 100%
  }
}

.social-settings-note {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px
}

.social-settings-note label {
  margin-bottom: 0
}

.social-settings-note .hint {
  margin: 0
}


/* v4.4 specificity fixes against legacy footer rules */

.footer-card-luxury .footer-eyebrow {
  display: inline-flex;
  color: #f1d9a2;
  background: rgba(215, 180, 106, .12);
  border: 1px solid rgba(215, 180, 106, .25);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px
}

.footer-card-luxury .footer-phone {
  display: inline-flex;
  margin-top: 5px;
  color: #f3d58c;
  font-weight: 900;
  font-size: 21px;
  direction: ltr
}

.footer-card-luxury .footer-action {
  color: #fff
}

.footer-card-luxury .footer-action.primary {
  color: #fff
}

.footer-card-luxury .footer-action svg {
  display: inline-block;
  color: inherit
}