:root {
  --ink: #0b1229;
  --panel: rgba(10, 16, 34, 0.82);
  --muted: #a7b4c5;
  --text: #e8eef6;
  --brand1: #5d2de1;
  --brand2: #06b8ff;
  --accent: #ffd166;
  --ok: #06d6a0;
  --stroke: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --gap: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box
}

.is-hidden {
  display: none !important;
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 255, 255, .10), transparent 60%),
    url('logo-02.png'),
    linear-gradient(135deg, var(--brand1), var(--brand2));
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: cover, cover, cover;
  background-attachment: fixed, fixed, fixed;
  background-position: center, center, center;
  color: var(--text);
  font-family: "Poppins", "IBM Plex Sans Arabic", "Inter", "Segoe UI", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum", "tnum";
  min-height: 100vh;
}

body.maintenance-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

body.maintenance-mode .maintenance-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.maintenance-mode .maintenance-card {
  width: min(92vw, 820px);
  text-align: center;
  padding: 34px 32px;
}

body.maintenance-mode .maintenance-card .logo-row {
  justify-content: center;
  margin-bottom: 8px;
}

body.maintenance-mode .maintenance-card .logo-row img {
  max-width: 160px;
}

body.maintenance-mode .maintenance-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

body.maintenance-mode .maintenance-card p {
  margin: 0 0 16px;
  color: #b9c6dd;
  line-height: 1.8;
}

body.maintenance-mode .maintenance-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

body.maintenance-mode .maintenance-actions a {
  text-decoration: none;
  min-width: 110px;
}

@media (min-width: 641px) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 45, 225, 0.65) rgba(255, 255, 255, 0.06);
  }

  *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  *::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(93, 45, 225, 0.9), rgba(6, 184, 255, 0.9));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(93, 45, 225, 1), rgba(6, 184, 255, 1));
  }
}

.is-locked {
  overflow: hidden;
}

.below-fold {
  display: none !important;
}

.show-content .below-fold {
  display: block !important;
}

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

.wrap {
  max-width: 1100px;
  width: 100%;
  margin: auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0;
}

.hero-card {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
  padding-top: 24px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    padding .6s cubic-bezier(.25, .8, .25, 1),
    border-radius .6s cubic-bezier(.25, .8, .25, 1),
    box-shadow .6s cubic-bezier(.25, .8, .25, 1),
    max-width .6s cubic-bezier(.25, .8, .25, 1),
    transform .6s cubic-bezier(.25, .8, .25, 1),
    left .6s cubic-bezier(.25, .8, .25, 1),
    right .6s cubic-bezier(.25, .8, .25, 1),
    width .6s cubic-bezier(.25, .8, .25, 1);
}

.hero-card>*:not(.digital-scape) {
  position: relative;
  z-index: 2;
}

.hero-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 45%);
  z-index: 0;
  pointer-events: none;
}

.hero-subnote {
  margin: 34px 0 3px;
  color: #61c9b1;
  font-weight: 500;
  font-size: 11px;
}

.digital-scape {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  opacity: .95;
}

.digital-scape .grid-lines {
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(6, 184, 255, 0.08) 0 1px, transparent 1px 22px);
  mix-blend-mode: screen;
  filter: blur(.4px);
  animation: drift 16s ease-in-out infinite alternate;
  transform-origin: center;
}

.digital-scape .glow {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(6, 184, 255, 0.26), transparent 60%);
  filter: blur(38px);
  opacity: 0.8;
  animation: float 12s ease-in-out infinite alternate;
}

.digital-scape .glow.orb-a {
  inset-inline-start: -110px;
  bottom: -60px;
}

.digital-scape .glow.orb-b {
  inset-inline-end: -80px;
  bottom: -40px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(93, 45, 225, 0.3), transparent 60%);
  animation-duration: 16s;
  animation-delay: .6s;
}

.digital-scape .glow.orb-c {
  inset-inline-start: 22%;
  top: -120px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.16), transparent 62%);
  animation-duration: 18s;
  animation-delay: 1.2s;
}

@keyframes float {
  from {
    transform: translate3d(-6px, 0, 0) scale(1);
  }

  to {
    transform: translate3d(12px, -10px, 0) scale(1.07);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-4%, 0, 0) skewX(-3deg);
  }

  to {
    transform: translate3d(6%, 0, 0) skewX(-3deg);
  }
}

@keyframes flicker {

  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 16px 30px rgba(6, 184, 255, 0.22);
  }
}

.hero-card .logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1
}

.hero-card .logo-row img {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .25))
}

.hero-card .tagline {
  color: #d2dcf0;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 15px;
  margin: 0 0 8px;
  position: relative;
  z-index: 1
}

.hero h1 {
  padding: 26px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.1;
  margin: 4px 0 12px;
  position: relative;
}

.hero p {
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 18px);
  margin: 0 0 22px;
  position: relative;
  z-index: 1
}

.hero-card.nav-compact {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 30;
  width: calc(100% - 24px);
  max-width: 1100px;
  padding: 10px 14px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: right;
  transform: translateY(-6px) scale(.985);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px) saturate(120%);
  overflow: visible;
}

.hero-card.nav-compact .logo-row {
  margin-bottom: 0;
  justify-content: flex-start;
}

.hero-card.nav-compact .logo-row img {
  width: 96px;
}

.hero-card.nav-compact .tagline,
.hero-card.nav-compact p {
  display: none;
}

.hero-card.nav-compact h1 {
  font-size: 18px;
  margin: 0;
  text-align: right;
  line-height: 1.2;
  padding: 0;
}

.hero-card.nav-compact .cta-row {
  justify-content: flex-end;
  gap: 8px;
}

.hero-card.nav-compact .cta-row,
.hero-card.nav-compact #svcCartWrap {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.hero-card.nav-compact .btn {
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.hero-card.nav-compact .digital-scape {
  opacity: .35;
  filter: blur(1px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  position: relative;
  z-index: 1
}

.btn {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  /*gap: 10px;*/
  font-weight: 800;
  font-family: inherit;
  letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .2s ease;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #e5f1ff;
}

.sar-icon {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.price-lg .pkg-price .sar-icon {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}

.cycle-pill .sar-icon {
  width: 11px;
  height: 11px;
  vertical-align: -2px;
}

.pill-tag .sar-icon {
  width: 9px;
  height: 9px;
  vertical-align: -2px;
  filter: none;
  opacity: 1;
}

.svc-badge .sar-icon {
  width: 9px;
  height: 9px;
  vertical-align: -2px;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.coming-soon-tip {
  position: fixed;
  z-index: 2000;
  background: rgba(13, 20, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ff9f9f;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.services .dot {
  background: var(--accent)
}

.advisor .dot {
  background: var(--brand2)
}

.builder .dot {
  background: #61c9b1;
}

.btn.call-apple {
  background: linear-gradient(135deg, #7de87a, #2fb15a);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(47, 177, 90, 0.55);
  color: #0b1229;
}

.btn.call-apple .dot {
  background: #e7ffb8;
}

.btn.call-apple:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(47, 177, 90, 0.65);
}

.services-section {
  position: relative;
  width: 100%;
  margin-top: 26px;
  display: none;
  gap: 16px;
  scroll-margin-top: 140px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.services-section.show {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* قسم الخدمات والمنتجات */
.services-products,
.products-section {
  background: #0d1424;
  border-radius: 18px;
  padding: 30px 15px;
  margin: 50px auto;
  scroll-margin-top: 140px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .35s ease;
}

.services-products.show,
.products-section.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.services-products .section-head,
.products-section .section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: right;
}

.services-products .section-head>div:first-child,
.products-section .section-head>div:first-child {
  text-align: right;
  flex: 1 1 280px;
}

.svc-filters,
.product-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 320px;
  margin-inline-end: auto;
}

.svc-filters .svc-input,
.product-filters .svc-input {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 25, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eef6;
  padding: 12px 14px;
  border-radius: 14px;
  min-width: 190px;
  font-size: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
  transition: transform .15s ease, box-shadow .2s ease, border .15s ease, background .2s ease;
}

.svc-filters .svc-input:focus,
.product-filters .svc-input:focus {
  outline: none;
  border-color: rgba(97, 201, 177, 0.6);
  box-shadow: 0 18px 36px rgba(97, 201, 177, 0.25);
  transform: translateY(-1px);
}

.svc-filters select.svc-input,
.product-filters select.svc-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 6.5L13 1.5' stroke='%23cfe4ff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
  padding-inline-start: 32px;
}

.product-card {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(97, 201, 177, 0.5);
}

.product-thumb {
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a9bdd9;
  font-size: 12px;
  position: relative;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-head h5 {
  margin: 0;
  font-size: 16px;
}

.product-stock {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(6, 214, 160, 0.14);
  color: #9cf4d9;
  border: 1px solid rgba(6, 214, 160, 0.35);
}

.product-stock.out {
  background: rgba(239, 71, 111, 0.15);
  color: #ffb3c7;
  border-color: rgba(239, 71, 111, 0.35);
}

.product-stock.made-to-order {
  background: rgba(181, 122, 33, 0.18);
  color: #ffd9a6;
  border-color: rgba(255, 190, 102, 0.34);
}

.product-desc {
  font-size: 13px;
  color: #c6d3e6;
  min-height: 34px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.product-meta .price {
  font-weight: 800;
  color: #4cc9f0;
}

.product-meta .tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d7e3f2;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.service-status-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: help;
}

.service-status-badge.is-available {
  background: rgba(6, 214, 160, 0.14);
  color: #9cf4d9;
  border-color: rgba(6, 214, 160, 0.35);
}

.service-status-badge.is-busy {
  background: rgba(255, 190, 102, 0.16);
  color: #ffd9a6;
  border-color: rgba(255, 190, 102, 0.34);
}

.service-status-badge.is-paused {
  background: rgba(239, 71, 111, 0.15);
  color: #ffb3c7;
  border-color: rgba(239, 71, 111, 0.35);
}

.service-status-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 10px);
  min-width: 180px;
  max-width: min(240px, 72vw);
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(5, 10, 25, 0.96);
  color: #eef4ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 20;
}

.service-status-badge[data-tooltip]::before {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  bottom: calc(100% + 4px);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(5, 10, 25, 0.96) transparent transparent transparent;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 19;
}

.service-status-badge[data-tooltip]:hover::after,
.service-status-badge[data-tooltip]:hover::before,
.service-status-badge[data-tooltip]:focus-visible::after,
.service-status-badge[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}


.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card .product-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card .actions {
  align-items: center;
  flex-wrap: nowrap;
}

.product-card .actions .actions-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-card .btn-select,
.product-card .btn-detail {
  padding: 7px 9px;
  min-width: 44px;
}

.product-card .qty-control {
  width: 100%;
  justify-content: space-between;
}

.product-card .qty-control input {
  width: 42px;
}

.product-actions .actions-right {
  display: flex;
  gap: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 4px 6px;
}

.qty-control input {
  width: 48px;
  background: transparent;
  border: 0;
  color: #e8eef6;
  text-align: center;
  font-weight: 700;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e8eef6;
  border: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
}

.qty-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.products-note {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #9fb4d1;
}

.product-dialog .actions-primary {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-dialog .product-qty {
  background: rgba(255, 255, 255, 0.08);
}

.product-related-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.svc-dialog .detail-related .product-related-list {
  grid-template-columns: 1fr;
}

.product-dialog .product-related-list {
  gap: 12px;
}

.product-dialog .product-related-list .product-rel-item {
  display: block;
  position: relative;
  cursor: pointer;
}

.product-dialog .product-related-list .product-rel-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-dialog .product-related-list .product-rel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: transform .12s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 84px;
}

.product-dialog .product-related-list .product-rel-card::after {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  margin-inline-start: auto;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.product-dialog .product-related-list .product-rel-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.product-dialog .product-related-list .product-rel-item input:focus-visible + .product-rel-card {
  outline: 2px solid rgba(22, 197, 255, 0.6);
  outline-offset: 2px;
}

.product-dialog .product-related-list .product-rel-item input:checked + .product-rel-card {
  border-color: rgba(97, 201, 177, 0.65);
  background: rgba(97, 201, 177, 0.12);
  box-shadow: 0 14px 30px rgba(47, 177, 90, 0.2);
}

.product-dialog .product-related-list .product-rel-item input:checked + .product-rel-card::after {
  border-color: rgba(125, 232, 122, 0.9);
  background: radial-gradient(circle at 30% 30%, #d7ffe4, #2fb15a);
  box-shadow: 0 0 0 4px rgba(47, 177, 90, 0.2);
}

.product-rel-item {
  position: relative;
  display: grid;
  gap: 10px;
}

.product-rel-item .rel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: border .15s ease, background .15s ease, transform .15s ease;
  cursor: pointer;
}

.product-rel-item.is-added .rel-row {
  border-color: rgba(97, 201, 177, 0.6);
  background: rgba(97, 201, 177, 0.08);
}

.product-rel-item.open .rel-row {
  background: rgba(255, 255, 255, 0.06);
}

.product-rel-item .rel-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.product-rel-item .rel-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a9bdd9;
  font-size: 11px;
  flex-shrink: 0;
}

.product-rel-item .rel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-rel-item .rel-info {
  display: grid;
  gap: 6px;
  color: #e8eef6;
  min-width: 0;
}

.product-rel-item .rel-info strong {
  font-size: 13px;
}

.product-rel-item .rel-info small {
  color: #b8c7dd;
  font-size: 11px;
  line-height: 1.4;
}

.product-rel-item .rel-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.product-rel-item .rel-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.product-rel-item .rel-total {
  display: grid;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: #cfe4ff;
  text-align: center;
}

.product-rel-item .rel-total .label {
  font-size: 10px;
  color: #9fc7ff;
}

.product-rel-item .rel-total .value {
  font-weight: 800;
  color: #e9f6ff;
}

.product-rel-item .rel-added {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(109, 211, 255, 0.35);
  background: rgba(109, 211, 255, 0.12);
  color: #e9f6ff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.product-rel-item .rel-added.is-hidden {
  display: none;
}

.product-rel-item .rel-remove {
  border: 1px solid rgba(255, 120, 120, 0.4);
  background: rgba(255, 120, 120, 0.1);
  color: #ffd6d6;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
}

.product-rel-item .rel-remove.is-hidden {
  display: none;
}

.product-rel-item .rel-panel {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px;
  color: #dbe7f7;
  font-size: 12px;
}

.product-rel-item.open .rel-panel {
  display: block;
}

.product-rel-item .rel-panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

.product-rel-item .rel-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}

.product-rel-item .rel-option {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.product-rel-item .rel-option .label {
  font-size: 11px;
  color: #9fc7ff;
}

.product-rel-item .rel-option .value {
  font-weight: 700;
}

.product-rel-item .rel-option.total {
  border-color: rgba(109, 211, 255, 0.4);
  background: rgba(109, 211, 255, 0.12);
}

.product-rel-item .rel-option.out .value {
  color: #ffb3b3;
}

.product-rel-item .rel-desc {
  display: block;
  color: #b8c7dd;
  line-height: 1.5;
}

.product-rel-item .rel-preview {
  font-size: 12px;
  color: #cfe4ff;
  font-weight: 700;
}

.product-rel-item .rel-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.product-rel-item .rel-qty-label {
  font-size: 12px;
  color: #9fc7ff;
  font-weight: 700;
}

.product-rel-item .rel-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 25, 0.6);
}

.product-rel-item .rel-qty-control .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef6;
  cursor: pointer;
}

.product-rel-item .rel-qty-control .qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-rel-item .rel-qty-control .rel-qty-input {
  width: 64px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eef6;
  border-radius: 8px;
  padding: 4px 6px;
}

@media (max-width: 1100px) {
  .product-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-related-list {
    grid-template-columns: 1fr;
  }

  .product-rel-item .rel-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-rel-item .rel-side {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.svc-dialog .product-related-list {
  grid-template-columns: 1fr;
}
.svc-dialog .product-related-list.service-related-products,
.svc-dialog .product-related-list.service-related-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.svc-dialog .product-related-list.service-related-products .product-rel-item,
.svc-dialog .product-related-list.service-related-services .product-rel-item {
  height: 100%;
}
.svc-dialog .product-related-list.service-related-products .rel-row,
.svc-dialog .product-related-list.service-related-services .rel-row {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 10px;
}
.svc-dialog .product-related-list.service-related-products .rel-main,
.svc-dialog .product-related-list.service-related-services .rel-main {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.svc-dialog .product-related-list.service-related-products .rel-thumb,
.svc-dialog .product-related-list.service-related-services .rel-thumb {
  width: 96px;
  height: 96px;
}
.svc-dialog .product-related-list.service-related-products .rel-info,
.svc-dialog .product-related-list.service-related-services .rel-info {
  width: 100%;
}
.svc-dialog .product-related-list.service-related-products .rel-info strong,
.svc-dialog .product-related-list.service-related-services .rel-info strong {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 980px) {
  .svc-dialog .product-related-list.service-related-products,
  .svc-dialog .product-related-list.service-related-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .svc-dialog .product-related-list.service-related-products,
  .svc-dialog .product-related-list.service-related-services {
    grid-template-columns: 1fr;
  }
}

.product-dialog .product-related-list.product-related-services,
.product-dialog .product-related-list.product-related-products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-dialog .product-related-list.product-related-services .product-rel-item,
.product-dialog .product-related-list.product-related-products .product-rel-item {
  height: 100%;
}
.product-dialog .product-related-list.product-related-services .rel-row,
.product-dialog .product-related-list.product-related-products .rel-row {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 10px;
}
.product-dialog .product-related-list.product-related-services .rel-main,
.product-dialog .product-related-list.product-related-products .rel-main {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.product-dialog .product-related-list.product-related-services .rel-thumb,
.product-dialog .product-related-list.product-related-products .rel-thumb {
  width: 96px;
  height: 96px;
}
.product-dialog .product-related-list.product-related-services .rel-info,
.product-dialog .product-related-list.product-related-products .rel-info {
  width: 100%;
}
.product-dialog .product-related-list.product-related-services .rel-info strong,
.product-dialog .product-related-list.product-related-products .rel-info strong {
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 980px) {
  .product-dialog .product-related-list.product-related-services,
  .product-dialog .product-related-list.product-related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .product-dialog .product-related-list.product-related-services,
  .product-dialog .product-related-list.product-related-products {
    grid-template-columns: 1fr;
  }
}

.order-dialog .order-tree {
  display: grid;
  gap: 12px;
}

.order-dialog .order-group-title {
  font-weight: 800;
  color: #e7edf5;
  margin-top: 4px;
}

.order-dialog .order-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.order-dialog .order-parent .title {
  font-weight: 700;
}

.order-dialog .order-parent .meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cfe0f5;
  font-size: 12px;
}

.order-dialog .order-parent.is-service {
  border-style: dashed;
  background: rgba(97, 201, 177, 0.08);
}

.order-dialog .order-children {
  display: grid;
  gap: 6px;
  margin: 6px 0 10px;
  padding-inline-start: 14px;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.08);
}

.order-dialog .order-children-row td {
  padding-top: 0;
  border-bottom: 0;
}

.order-dialog .order-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #cfe0f5;
}

.order-dialog .order-child strong {
  font-weight: 700;
}

.svc-related-products {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.svc-rel-product {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  min-height: 190px;
  transition: border .15s ease, background .15s ease, transform .15s ease;
}

.svc-rel-product.active {
  border-color: rgba(97, 201, 177, 0.6);
  background: rgba(97, 201, 177, 0.12);
}

.svc-rel-product .rel-thumb {
  width: 100%;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a9bdd9;
  font-size: 11px;
}

.svc-rel-product .rel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-rel-product .rel-info {
  display: grid;
  gap: 6px;
  color: #e8eef6;
}

.svc-rel-product .rel-info strong {
  font-size: 14px;
}

.svc-rel-product .rel-info small {
  color: #b8c7dd;
  font-size: 12px;
  line-height: 1.4;
}

.svc-rel-product .rel-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.svc-rel-product .rel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-top: auto;
}

@media (max-width: 1100px) {
  .svc-related-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .svc-related-products {
    grid-template-columns: 1fr;
  }
}

.svc-cards {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 18px;
  margin-top: 18px;
  perspective: 1200px;
}

.svc-cards.products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .svc-cards.products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .svc-cards.products-grid {
    grid-template-columns: 1fr;
  }
}

.svc-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  width: 100%;
}

.svc-load-more {
  position: relative;
  display: inline-flex;
  width: 100%;
  border: none;
  background: radial-gradient(120% 160% at 20% 20%, rgba(97, 201, 177, 0.18), transparent 42%),
    radial-gradient(130% 160% at 80% 80%, rgba(6, 184, 255, 0.16), transparent 48%),
    linear-gradient(135deg, rgba(18, 40, 78, 0.92), rgba(42, 90, 170, 0.95));
  color: #e8eef6;
  padding: 15px 26px;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}

.svc-load-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  filter: saturate(1.1);
}

.svc-load-more::before {
  content: '';
  position: absolute;
  inset: -35% -30%;
  background: conic-gradient(from 120deg, rgba(255, 255, 255, 0.16), transparent 30%, rgba(255, 255, 255, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.svc-load-more:hover::before {
  opacity: 1;
  transform: translateY(-4px);
}

.svc-card-product {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 25, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2, .4, .2, 1), box-shadow .2s ease, border-color .2s ease;
  min-height: 260px;
  box-shadow:
    0 20px 45px rgba(5, 10, 25, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(120%);
  transform-style: preserve-3d;
}

.svc-card-product::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(18px);
  opacity: 0.4;
  pointer-events: none;
}

.svc-card-product .card-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: stretch;
  flex: 1;
  height: 100%;
}

.svc-card-product .thumb {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  height: auto;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.svc-card-product .thumb-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 16px);
}

.svc-card-product .badge.tiny {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(0 0 0 / 41%);
  color: #e9f1ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-weight: 700;
}

.svc-card-product .badge.tiny[data-kind="category"]::before {
  content: "≡";
  font-weight: 900;
  color: #6dd3ff;
  opacity: 0.9;
}

.svc-card-product .badge.tiny[data-kind="subcategory"]::before {
  content: "↳";
  font-weight: 900;
  color: #9fe2b5;
  opacity: 0.9;
}

.svc-card-product .badge.tiny[data-kind="type"]::before {
  content: "⚑";
  font-weight: 900;
  color: #f7d06b;
  opacity: 0.9;
}

.svc-card-product .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-card-product .thumb.placeholder {
  color: #9fb4d1;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.svc-card-product .thumb .thumb-desc {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #e8eef6;
  font-size: 12px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 4px rgba(0, 0, 0, 0.45);
}

.svc-card-product .card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.svc-card-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(97, 201, 177, 0.5);
  transform: translate3d(0, -4px, 12px) rotateX(-1deg);
}

.pkg-highlight {
  outline: 2px solid rgba(97, 201, 177, 0.7);
  outline-offset: -2px;
  box-shadow: 0 0 0 3px rgba(97, 201, 177, 0.25);
}

.svc-card-product.active {
  border-color: #5d2de1;
  box-shadow: 0 14px 30px rgba(93, 45, 225, 0.35);
}

.svc-card-product.is-paused {
  border-color: rgba(239, 71, 111, 0.28);
  box-shadow: 0 14px 28px rgba(239, 71, 111, 0.14);
}

.svc-card-product h5 {
  margin: 0;
  font-size: 16px;
}

.svc-card-product .meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: #9fb4d1;
}

.svc-card-product .price {
  font-weight: 800;
  color: #4cc9f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.svc-card-product .service-meta .price {
  flex: 1 1 auto;
}

.svc-card-product .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.svc-card-product .badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-card-product .badge.svc-tag-filter {
  cursor: pointer;
  transition: transform .12s ease, border .12s ease, background .12s ease;
}

.svc-card-product .badge.svc-tag-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 201, 177, 0.5);
  background: rgba(97, 201, 177, 0.12);
}

.svc-card-product .desc {
  font-size: 14px;
  color: #c6d3e6;
  min-height: 32px;
  line-height: 1.4;
}

.svc-card-product .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.svc-card-product .actions .btn-like {
  margin-inline-start: auto;
}

.svc-card-product .actions .actions-right {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-inline-end: 0;
}

.svc-card-product .btn-like {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9f1ff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;

  min-width: 74px;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border .15s ease, background .15s ease;
}

.pkg-card .btn-like {
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  /*padding: 9px 10px;*/
  background: rgba(255, 255, 255, 0.06);
  color: #e9f1ff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  /*gap: 8px;*/
  min-width: 60px;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 12px;
}

.pkg-card .btn-like .icon {
  width: 16px;
  height: 16px;
  background-image: url("thumbs-up-trust.svg");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center;
  filter: brightness(0) invert(1);
}

.pkg-card .btn-like .like-count {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.pkg-card .btn-like.liked {
  background: rgba(93, 45, 225, 0.16);
  border-color: rgba(93, 45, 225, 0.55);
  color: #dcd7ff;
}

.pkg-card .btn-like:hover {
  border-color: rgba(6, 184, 255, 0.45);
  background: rgba(6, 184, 255, 0.12);
}

.svc-card-product .btn-like .icon {
  font-size: 14px;
  line-height: 1;
}

.svc-card-product .btn-like .like-count {
  display: inline-block;
  min-width: 16px;
  text-align: center;
  font-weight: 500;
}

.svc-card-product .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

.svc-card-product .icon-like {
  background-image: url("thumbs-up-trust.svg");
}

.svc-card-product .icon-cart {
  background-image: url("basket-shopping-plus.svg");
}

.svc-card-product .icon-eye {
  background-image: url("eye.svg");
}

.svc-card-product .icon-cross {
  background-image: url("basket-shopping-minus.svg");
  filter: brightness(0) saturate(0) invert(17%) sepia(72%) saturate(5131%) hue-rotate(353deg) brightness(92%) contrast(99%);
}

.svc-card-product .icon-pause {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 5.5v13M16 5.5v13' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.svc-card-product .btn-like .like-count {
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

.svc-card-product .btn-like.liked {
  background: rgba(93, 45, 225, 0.16);
  border-color: rgba(93, 45, 225, 0.55);
  color: #dcd7ff;
}

.svc-card-product .btn-like:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 184, 255, 0.45);
  background: rgba(6, 184, 255, 0.12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.svc-card-product .btn-select {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #5d2de1, #06b8ff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 52px;
  font-size: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.svc-card-product.active .btn-select {
  background: rgba(255, 105, 105, 0.18);
  color: #ffdede;
  border: 1px solid rgba(255, 120, 120, 0.4);
  box-shadow: 0 5px 7px rgba(255, 105, 105, 0.2);
}

.svc-card-product .btn-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.svc-card-product .btn-select:disabled,
.svc-card-product .btn-detail:disabled,
.svc-dialog .btn:disabled,
.svc-dialog .btn.ghost:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.svc-card-product.is-paused .btn-select {
  background: rgba(239, 71, 111, 0.16);
  color: #ffd7df;
  border: 1px solid rgba(239, 71, 111, 0.32);
}

.svc-card-product .btn-detail {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e9f1ff;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 52px;
  font-size: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border .15s ease, background .15s ease;
}

.svc-card-product .btn-detail:hover {
  transform: translateY(-1px);
  border-color: rgba(6, 184, 255, 0.45);
  background: rgba(6, 184, 255, 0.12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.pkg-card .pkg-desc {
  padding: 0px 25px;

  color: #cfd8ff;
  font-size: 14px !important;
  line-height: 1.5;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.svc-fab {
  display: inline-flex;
  visibility: visible;
}

.svc-fab.is-hidden {
  visibility: hidden !important;
}

.svc-fab .count {
  display: none;
}

.cart-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #7de87a, #2fb15a);
  color: #0b1229;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(47, 177, 90, 0.35);
  padding: 12px 16px;
}

.cart-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-share {
  margin-right: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgb(141 229 37);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.cart-share:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.cart-share:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.share-menu {
  position: absolute;
  z-index: 1200;
  min-width: 190px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(12, 18, 36, 0.98), rgba(8, 14, 32, 0.96));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  direction: rtl;
}

.share-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e9f0ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: right;
  transition: transform .12s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.share-option::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #0b1229;
  background: rgba(255, 255, 255, 0.2);
}

.share-option[data-share="whatsapp"]::before {
  content: "WA";
  background: #25d366;
}

.share-option[data-share="telegram"]::before {
  content: "TG";
  background: #2aabee;
}

.share-option[data-share="copy"]::before {
  content: "CL";
  background: #f7c948;
}

.share-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.share-option:active {
  transform: translateY(0);
}
.cart-clear {
  display: none;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 120, 120, 0.4);
  background: rgba(255, 120, 120, 0.1);
  color: #ffdede;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.cart-clear svg {
  width: 18px;
  height: 18px;
  display: block;
}
.cart-clear:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 120, 120, 0.6);
  background: rgba(255, 120, 120, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.cart-clear:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.cart-share.copied {
  border-color: rgba(93, 45, 225, 0.8);
  background: rgba(93, 45, 225, 0.18);
}

.cart-share.copied::after {
  content: "تم النسخ";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(11, 19, 36, 0.95);
  color: #e9f0ff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.order-services {
  margin-top: 6px;
  font-size: 12px;
  color: #b7c6dc;
}

.cart-btn.active {
  background: linear-gradient(135deg, #7de87a, #2fb15a);
  border-color: rgba(255, 255, 255, 0.2);
  color: #0b1229;
  box-shadow: 0 16px 32px rgba(47, 177, 90, 0.4);
}

.cart-btn:hover .count.empty {
  background: linear-gradient(135deg, #ff6b6b, #c71b2f);
  color: #fff;
}

.cart-btn .count {
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #0b1229;
}

.cart-btn .count.empty {
  background: linear-gradient(135deg, #f9535c, #c71b2f);
  color: #fff;
}

.cart-btn:hover .count.empty {
  filter: brightness(1.05);
}

.cart-btn .icon {
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: center;
  filter: brightness(0) saturate(0);
  display: inline-block;
}

.cart-btn .icon-cart {
  background-image: url("basket-shopping-plus.svg");
}

.cart-btn.active .icon {
  filter: none;
}

.cart-btn .icon-remove {
  background-image: url("basket-shopping-minus.svg");
}

.cart-btn.hover-danger {
  background: linear-gradient(135deg, #ff6b6b, #c71b2f);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 16px 32px rgba(199, 27, 47, 0.35);
}

.cart-btn.hover-danger .icon {
  filter: none;
}

.cart-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-more {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.cart-more .more-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8eef6;
  display: block;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 50px;
}

.pkg-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0px 50px;
  margin-top: 15px;
  overflow-x: auto;
}

.pkg-tab {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef6;
  padding: 5px 25px;
  border-radius: 14px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  font-family: "Poppins", "IBM Plex Sans Arabic", "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .1px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.pkg-tab:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.pkg-tab.active {
  background: linear-gradient(135deg, #028afc, #16c5ff);
  border-color: transparent;
  box-shadow: 0 20px 36px rgba(2, 138, 252, 0.28);
}

.pkg-tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.pkg-slider-controls {
  display: flex;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}

.slider-btn {
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  pointer-events: auto;
}

.slider-btn::before {
  content: '‹';
  position: absolute;
  inset: 15%;
  /*transform: translate(-50%, -50%);*/
  color: #e8eef6;
  font-size: 20px;
  font-weight: 900;
}

.slider-btn.next::before {
  content: '›';
}

.slider-btn.prev {
  inset-inline-start: -22px;
}

.slider-btn.next {
  inset-inline-end: -22px;
}

.slider-status-dots {
  position: absolute;
  bottom: 5px;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: auto;
}

.slider-status-dots .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #feffff;
  padding: 0;
  cursor: pointer;
}

.slider-status-dots .dot.active {
  background: #16c5ff;
  border-color: #16c5ff;
  box-shadow: 0 0 0 6px rgba(22, 197, 255, 0.18);
}

.slider-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.section-head h3 {
  margin: 0;
  font-size: 24px;
  color: #f5f7ff;
}

.section-head .muted {
  color: #9bb3d1;
  margin: 6px 0 0;
  max-width: 640px;
}

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

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 12px;
  color: #9bb3d1;
  font-weight: 800;
}

.sheet {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 50
}

.sheet.active {
  display: grid
}

.sheet#advisorSheet {
  display: none !important;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px)
}

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(12, 18, 36, .95), rgba(8, 14, 32, .92));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  overflow: auto
}

.bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(15, 21, 34, .9);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(4px)
}

.bar h3 {
  margin: 0;
  font-size: 18px
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: #141b2b;
  cursor: pointer
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 18px
}

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(110%);
  position: relative;
  overflow: hidden;
  height: 100%;
  gap: 8px;
  flex: 1 1 auto;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

.pkg-card {
  padding: 18px;
  gap: 12px;
  background:
    radial-gradient(130% 160% at 85% -15%, rgba(93, 45, 225, 0.16), rgba(6, 184, 255, 0.06)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f2f5ff;
  position: relative;
  padding-top: 18px;
  opacity: 1;
  transform: none;
  direction: rtl;
}

.pkg-card.pkg-active {
  box-shadow: 0 20px 46px rgba(22, 197, 255, 0.32), 0 0 0 2px rgba(22, 197, 255, 0.25);
  border-color: rgba(22, 197, 255, 0.35);
}

.pkg-card .pkg-head {
  display: grid;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  padding-top: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: visible;
}

.pkg-share-btn {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(97, 201, 177, 0.5);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pkg-share-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' aria-hidden='true' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 8.5C19.933 8.5 21.5 6.933 21.5 5C21.5 3.067 19.933 1.5 18 1.5C16.067 1.5 14.5 3.067 14.5 5C14.5 5.243 14.523 5.48 14.566 5.709L8.91 8.776C8.237 8.029 7.214 7.5 6.09 7.5C4.157 7.5 2.59 9.067 2.59 11C2.59 12.933 4.157 14.5 6.09 14.5C7.214 14.5 8.237 13.971 8.91 13.224L14.566 16.291C14.523 16.52 14.5 16.757 14.5 17C14.5 18.933 16.067 20.5 18 20.5C19.933 20.5 21.5 18.933 21.5 17C21.5 15.067 19.933 13.5 18 13.5C16.876 13.5 15.853 14.029 15.18 14.776L9.524 11.709C9.567 11.48 9.59 11.243 9.59 11C9.59 10.757 9.567 10.52 9.524 10.291L15.18 7.224C15.853 7.971 16.876 8.5 18 8.5Z' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pkg-share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(97, 201, 177, 0.8);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.pkg-share-btn.copied {
  border-color: rgba(93, 45, 225, 0.8);
  background: rgba(93, 45, 225, 0.18);
}

.pkg-share-btn.copied::after {
  content: "تم النسخ";
  position: absolute;
  bottom: -30px;
  inset-inline: auto;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 19, 36, 0.95);
  color: #e9f0ff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  z-index: 5;
}

.pkg-card.pkg-inactive {
  position: relative;
  filter: grayscale(0.35);
  opacity: 0.9;
}

.pkg-card.pkg-inactive::after {
  content: "متوقفة للاعتماد الإداري";
  position: absolute;
  top: 27px;
  inset-inline-end: 12px;
  background: linear-gradient(135deg, #ff9f1c, #ff6b6b);
  color: #0b1229;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.pkg-card.pkg-inactive::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 40%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 8px, transparent 8px 16px);
  pointer-events: none;
  z-index: 1;
}

.notify-inline {
  display: flex;
  gap: 8px;
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  position: relative;
  z-index: 3;
}

.notify-inline input {
  flex: 1 1 200px;
  padding: 14px 12px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #0b1229;
  font-weight: 700;
}

.notify-inline input:focus {
  outline: none;
  border-color: #3dc9ff;
  box-shadow: 0 0 0 2px rgba(61, 201, 255, 0.25), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.notify-inline input::placeholder {
  color: #6c7a92;
  font-weight: 600;
}

.notify-inline .btn {
  flex: 0 0 auto;
  padding: 14px 14px;
  min-height: 48px;
  min-width: 80px;
}

@keyframes pkg-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

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

.slide-next .pkg-card {
  animation: none;
}

.slide-prev .pkg-card {
  animation: none;
}

@keyframes pkg-slide-next {
  from {
    transform: translateX(18px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* شبكة الباقات: ديسكتوب فقط */
#packagesGrid {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 16px;
  padding: 16px 16px 50px 16px;
  width: 100%;
  align-items: stretch;
  direction: ltr;
  justify-content: flex-start;
}

#packagesGrid.desktop-track {
  overflow: hidden;
  scroll-snap-type: none;
  direction: ltr;
}

#packagesGrid .pkg-card {
  flex: 0 0 calc((100% - 32px) / 3);
  max-width: calc((100% - 32px) / 3);
  scroll-snap-align: unset;
  margin-inline: 0;
  min-height: 100%;
}

#packagesGrid.desktop-track .pkg-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  width: 100%;
  direction: ltr;
}

#packagesGrid.desktop-track .pkg-track .pkg-card {
  flex: 0 0 calc((100% - 32px) / var(--pkg-visible, 3));
  max-width: calc((100% - 32px) / var(--pkg-visible, 3));
}

/* لا يوجد نمط مختلف للجوال */


@keyframes pkg-slide-prev {
  from {
    transform: translateX(-18px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.chip {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.card h4 {
  margin: initial;
  font-size: inherit;
  font-weight: inherit;
}

.pkg-card h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: .2px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.card p {
  margin: initial;
  color: inherit;
  font-size: inherit;
}

.price {
  font-weight: 800
}

.price-lg {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 30px;
  color: #f7fbff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  justify-items: center;
}

.price-lg .price-main {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-lg .pkg-price .currency {
  font-size: 0.55em;
  font-weight: 700;
  opacity: 0.9;
  margin-inline-start: 2px;
}

.price-lg .pkg-cycle {
  color: #d1def0;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.price-lg .price-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: #cfd8ea;
  font-weight: 700;
  font-size: 13px;
}

.price-lg .pkg-old {
  color: #2f3669;
  font-size: 12px;
  text-decoration: line-through;
  justify-self: end;
}

.price-lg .pkg-old:empty {
  display: none;
}

.pkg-charge-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pkg-charge-summary span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7e3f3;
  font-size: 12px;
  font-weight: 700;
}

.cycle-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  align-content: end;
}

.cycle-list-inline {
  margin-top: 6px;
}

.cycle-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 13px;
  color: #e6f1ff;
  width: 100%;
  min-width: unset;
  height: auto;
  position: relative;
}

.cycle-pill:hover {
  border-color: #3a4f6b;
  transform: translateY(-1px);
}

.cycle-pill.active {
  border-color: #5d2de1;
  background: linear-gradient(135deg, rgba(93, 45, 225, 0.22), rgba(6, 184, 255, 0.12));
  box-shadow: 0 10px 26px rgba(93, 45, 225, 0.2);
}

.cycle-pill .cy-text {
  display: grid;
  gap: 4px;
  text-align: right;
  line-height: 1.25;
  flex: 1 1 auto;
}

.cycle-pill .cy-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cycle-pill .cy-price {
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 13px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.cycle-pill .cy-price .currency {
  font-size: 0.6em;
  opacity: 0.9;
  font-weight: 700;
}

.cycle-pill .pill-tag {
  position: absolute;
  top: 0;
  inset-inline-end: 12px;
  transform: translateY(-50%);
  padding: 3px 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd166, #fca311);
  color: #0b1229;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.cycle-row {
  display: none;
}

.pkg-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 6px;
  min-height: 28px;
  color: #0b1229;
  position: absolute;
  top: -13px;
  inset-inline-start: 12px;
  transform: translateY(-4px);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #0b1229;
  background: linear-gradient(135deg, #ffd166, #f7b733);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  letter-spacing: .2px;
}

.tag-badge .dot {
  width: 8px;
  height: 8px;
  background: #0b1229
}

.tag-badge.value {
  background: linear-gradient(135deg, #06d6a0, #2be0b6);
  color: #0b1229;
}

.tag-badge.best {
  background: linear-gradient(135deg, #5d2de1, #7843ff);
  color: #fff;
}

.pkg-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: auto;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid var(--stroke);
}

.pkg-card.pkg-inactive .pkg-actions {
  flex-direction: column;
  align-items: stretch;
}

.pkg-actions .btn {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.pkg-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  filter: brightness(1.08);
}

.order-package-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-package-summary span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dbe8fb;
  font-size: 12px;
  font-weight: 700;
}

.order-addon-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.order-addon-product {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f0fb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.order-addon-product:hover {
  border-color: rgba(93, 45, 225, 0.45);
  background: rgba(93, 45, 225, 0.14);
}

.pkg-actions .btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.pkg-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: #1563fe8a;
}

.pkg-actions .btn.icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 18px;
}

.pkg-actions .btn.icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.25);
}

/* حوار طلب الباقة */
.order-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 12px;
}

.order-dialog.active {
  display: flex;
}

.svc-dialog.order-dialog .panel {
  padding: 0px 18px 0px;
  max-width: 640px;
  width: min(660px, 92vw);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  height: auto;
  overflow: hidden;
}

.order-dialog .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.order-dialog .card {
  position: relative;
  max-width: 620px;
  width: min(640px, 92vw);
  height: 85vh;
  max-height: 85vh;
  overflow: hidden;
  background: linear-gradient(180deg, #0f1828, #0b1324);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 20px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #e9f0ff;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior: contain;
}

.order-dialog .card::-webkit-scrollbar {
  width: 6px;
}

.order-dialog .card::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.order-dialog header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.96), rgba(15, 24, 40, 0.9));
  z-index: 2;
}

.order-dialog header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.order-dialog .order-head-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.order-dialog .order-desc {
  margin: 0;
  font-size: 12px;
  color: #9fb4d1;
  line-height: 1.5;
}

.order-dialog .order-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 25px;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 16px;
  flex: 1 1 auto;
}

.order-dialog .head-close {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e9f1ff;
  font-size: 18px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.order-dialog .head-close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.order-dialog .invoice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.6;
}

.order-dialog .order-total-row {
  margin-top: 10px;
}

.order-dialog .order-total-row .row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 2px 0;
}

.order-dialog .order-total-row .row.total strong {
  font-size: 16px;
  color: #fff;
}

.order-dialog .order-total-row .row.total.after strong {
  color: #9ff1d8;
}

.order-dialog .order-total-row .row.cycle strong {
  color: #cfe4ff;
}

.order-dialog .order-products {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 6px;
  font-size: 13px;
}

.order-dialog .order-shipping {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 6px;
  font-size: 13px;
}

.order-dialog .order-shipping-body {
  display: grid;
  gap: 12px;
}

.shipping-methods {
  display: grid;
  gap: 8px;
}

.shipping-methods .ship-option {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(16,23,38,0.7);
  cursor: pointer;
}

.shipping-methods .ship-option.active {
  border-color: #3aa9ff;
  box-shadow: 0 0 0 1px rgba(58,169,255,0.4);
}

.shipping-methods .ship-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.shipping-methods .ship-title {
  font-weight: 700;
}

.shipping-methods .ship-meta {
  font-size: 12px;
  color: #9fb5d8;
}

.order-dialog .shipping-address {
  display: grid;
  gap: 8px;
}

.order-dialog .shipping-address label,
.order-dialog .address-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #9fb4d1;
}

.order-dialog .shipping-address select,
.order-dialog .address-form input,
.order-dialog .address-form select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #e9f0ff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.order-dialog select {
  background: #0f1625;
  color: #e9f0ff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  appearance: none;
  -webkit-appearance: none;
}

.order-dialog select option {
  background: #0f1625;
  color: #e9f0ff;
}

.order-dialog .address-form .svc-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order-dialog .address-form .svc-grid .address-actions {
  grid-column: 1 / -1;
}

.order-dialog .address-form .svc-grid label.full {
  grid-column: 1 / -1;
}

.order-dialog .address-form > .address-actions {
  justify-content: flex-end;
}

.order-dialog .btn.map-pick {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(15, 22, 37, 0.96), rgba(15, 22, 37, 0.96)) padding-box,
    linear-gradient(135deg, #7de87a, #2fb15a) border-box;
  box-shadow: none;
}

.order-submit-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 22, 0.55);
  z-index: 10050;
  backdrop-filter: blur(2px);
}

.order-submit-overlay.show {
  display: flex;
}

.order-submit-overlay .overlay-card {
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.96), rgba(11, 19, 36, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 260px;
  max-width: 420px;
  width: 86%;
  text-align: center;
  color: #e9f1ff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.address-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.address-form {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.1);
  background: rgba(12,18,33,0.6);
}

.order-dialog .order-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.order-dialog .order-products-list {
  display: grid;
  gap: 6px;
}

.order-dialog .order-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.order-dialog .order-product-row .qty {
  font-weight: 700;
  color: #dfe9f7;
}

.order-dialog .order-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 12px;
}

.order-dialog .order-table th,
.order-dialog .order-table td {
  text-align: right;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-dialog .order-table .svc-price {
  text-align: left;
}

.order-dialog .order-table th {
  color: #9fb4d1;
  font-weight: 600;
  font-size: 12px;
}

.order-dialog .order-table .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
}

.order-dialog .order-table .status-pill.ok {
  background: rgba(97, 201, 177, 0.18);
  color: #9ff1d8;
}

.order-dialog .order-table .status-pill.danger {
  background: rgba(229, 57, 53, 0.15);
  color: #ffb3b0;
}

.order-dialog .order-table .is-removed td {
  color: #8a9bb5;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.order-dialog .order-table tfoot td {
  border-bottom: 0;
  padding-top: 8px;
}

.order-dialog .order-table .total-label {
  color: #9fb4d1;
  font-weight: 600;
}

.order-dialog .order-table .total-value {
  font-weight: 700;
  color: #e9f0ff;
  text-align: left;
}

.order-dialog .order-products-table .prod-price,
.order-dialog .order-products-table .prod-subtotal {
  text-align: left;
  white-space: nowrap;
}

.order-dialog .order-products-table .prod-qty {
  min-width: 140px;
}

.order-dialog .order-products-table .prod-action {
  text-align: left;
}

.order-dialog .order-table .order-prod {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-dialog .order-table .order-prod .thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cdd8ea;
  font-size: 11px;
}

.order-dialog .order-table .order-prod .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-dialog .order-table .order-prod .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-dialog .order-table .order-prod .meta span {
  font-size: 11px;
  color: #9fb4d1;
}

.order-dialog .order-products-table .order-qty-control {
  padding: 3px 6px;
  border-radius: 10px;
}

.order-dialog .order-products-table .order-qty-input {
  width: 40px;
  font-size: 12px;
}

.order-dialog .services-empty {
  margin-top: 6px;
  color: #9fb4d1;
  font-size: 12px;
}

.order-dialog .invoice .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.order-dialog .invoice .row.total strong {
  font-size: 16px;
  color: #fff;
}

.order-dialog textarea {
  width: 100%;
  min-height: 96px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #e9f0ff;
  padding: 10px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
}

.order-dialog .order-body {
  flex: 0 0 auto;
  overflow: visible;
  padding: 6px 2px 14px 2px;
  margin-bottom: 12px;
}

.order-dialog .fields {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.order-dialog .fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #9fb4d1;
}

.order-dialog .fields input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #e9f0ff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.order-dialog .footer.order-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin: -18px -17px 0px;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.96), rgba(15, 24, 40, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 16px 16px;
  z-index: 3;
  margin-top: auto;
  flex: 0 0 auto;
}

.order-dialog .order-footer-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  order: 3;
}

.order-dialog .actions-primary {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0;
  width: auto;
  order: 1;
}

.svc-dialog .actions-primary {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0;
  width: auto;
  order: 1;
}

.order-dialog .footer.order-footer .btn[data-close] {
  margin: 0;
}

.svc-dialog .footer .btn[data-close] {
  order: 3;
  margin: 0;
}

.order-dialog .footer.order-footer .btn {
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.svc-dialog .footer .btn {
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.order-dialog .footer.order-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.svc-dialog .footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.order-dialog .footer.order-footer .btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.svc-dialog .footer .btn:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.order-dialog .order-meta {
  display: none;
}

.order-dialog .order-meta .tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e9f1ff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.order-dialog .actions .btn {
  padding: 10px 14px;
  min-width: 140px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border .15s ease;
}

.order-dialog .actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.order-dialog .actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.order-dialog .icon-inline,
.svc-dialog .icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-inline-start: 6px;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: center;
  filter: brightness(0) invert(1);
}

.order-dialog .icon-cart-plus,
.svc-dialog .icon-cart-plus {
  background-image: url('basket-shopping-plus.svg');
}

.order-dialog .icon-cart,
.svc-dialog .icon-cart {
  background-image: url('basket-shopping-plus.svg');
}

.order-dialog .icon-cross,
.svc-dialog .icon-cross {
  background-image: url('basket-shopping-minus.svg');
  filter: brightness(0) saturate(0) invert(17%) sepia(72%) saturate(5131%) hue-rotate(353deg) brightness(92%) contrast(99%);
}

.order-dialog .icon-pause,
.svc-dialog .icon-pause {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 5.5v13M16 5.5v13' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.svc-dialog #svcAddToCart,
.svc-dialog #productAddBtn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #5d2de1, #06b8ff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, border .15s ease, background .15s ease;
}

.svc-dialog #svcAddToCart:hover,
.svc-dialog #productAddBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

.svc-dialog #svcAddToCart.is-added,
.svc-dialog #productAddBtn.is-added {
  background: rgba(255, 105, 105, 0.18);
  color: #ffdede;
  border: 1px solid rgba(255, 120, 120, 0.4);
  box-shadow: 0 5px 7px rgba(255, 105, 105, 0.2);
}

.svc-dialog #svcAddToCart:disabled,
.svc-dialog #productAddBtn:disabled {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c3d0e2;
}

.order-dialog .icon-eye,
.svc-dialog .icon-eye {
  background-image: url('eye.svg');
}

.order-dialog .icon-whatsapp,
.svc-dialog .icon-whatsapp {
  background-image: url('whatsapp.svg');
}

.order-dialog .icon-mail,
.svc-dialog .icon-mail {
  background-image: url('envelope.svg');
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--stroke);
  color: #dce6f5
}

.list {
  margin: 6px 0 0 0;
  padding: 0 1.1rem;
  color: #b5c4d6
}

.pkg-body {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
}

.pkg-card .list {
  margin: 5px;
  padding: 0;
  display: grid;
  gap: 1px;
  list-style: none;
  color: #edf3ff;
  align-content: start;
  align-items: start;
}

.pkg-card .list li {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  line-height: 1.4;
  color: #e9f1ff;
  justify-content: flex-start;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
  min-width: 0;
}

.pkg-card .list li.svc-removed {
  text-decoration: line-through;
  opacity: 0.45;
}

.pkg-card .list li.svc-cycle-block {
  grid-column: 1/-1;
  display: block;
  padding: 2px 0 0;
  cursor: default;
  background: transparent;
  transform: none;
}

.pkg-card .list li.svc-cycle-block::before {
  display: none;
}

.pkg-card .list li.svc-cycle-block:hover {
  background: transparent;
  transform: none;
}

.pkg-card .list .svc-group {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #c9d8ff;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.pkg-card .list .svc-group .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.pkg-card .list .svc-group .label {
  white-space: nowrap;
  font-size: 12px;
  color: #e7f1ff;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pkg-card .list .svc-group .label::before {
  content: "≡";
  color: #7ee0ff;
  font-weight: 800;
}

.pkg-card .list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-inline-start: 0;
  margin-inline-end: 6px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.22);
  vertical-align: middle;
}

.pkg-card .list li.hint-remove {
  position: relative;
  outline: 2px solid #ff5b5b;
  box-shadow: 0 0 0 6px rgba(255, 91, 91, 0.18);
  animation: hintPulse 1.2s ease-in-out infinite;
  border-radius: 10px;
  padding: 6px 10px;
  z-index: 3;
  background: rgba(255, 91, 91, 0.06);
}

.pkg-card .list li.hint-remove::after {
  content: attr(data-hint);
  position: absolute;
  inset-inline-start: 12px;
  top: -30px;
  background: #1a0f14;
  color: #ffd6d6;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid #ff5b5b;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  z-index: 4;
  animation: hintDance 1.3s ease-in-out infinite;
}

.pkg-card .list li.hint-remove .svc-badge.price {
  animation: hintDance 1.1s ease-in-out infinite;
  animation-delay: .1s;
}

@keyframes hintPulse {
  0% {
    box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.16);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(255, 91, 91, 0.26);
  }

  100% {
    box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.16);
  }
}

@keyframes hintDance {
  0% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-2px) rotate(-1deg);
  }

  40% {
    transform: translateX(3px) rotate(1deg);
  }

  60% {
    transform: translateX(-2px) rotate(-1deg);
  }

  80% {
    transform: translateX(2px) rotate(1deg);
  }

  100% {
    transform: translateX(0);
  }
}

.pkg-card .list .svc-badge.price {
  min-width: 56px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pkg-card .list .svc-badge.price.toggle-remove {
  position: relative;
  transition: all 0.15s ease;
}

.svc-lock-hint {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 10px;
  color: #fff;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* الهوفر يتم عبر JS بإضافة is-hover، وليس بالـ :hover */
.pkg-card .list .svc-badge.price.toggle-remove.is-hover {
  background: #e53935;
  color: #fff;
}

.pkg-card .list li.svc-removed .svc-badge.price.toggle-remove {
  background: #9b1c1c;
  color: #fff !important;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

.pkg-card .list .svc-group::before {
  display: none;
  box-shadow: none;
}

.pkg-card .list li:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(-2px);
}

.pkg-card .list .svc-badge {
  margin-inline-start: 0;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(93, 45, 225, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7fbff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  text-align: center;
}

.pkg-card .list .svc-badge.price {
  background: rgba(93, 45, 225, 0.16);
  color: #f7fbff;
  border-color: rgba(93, 45, 225, 0.32);
}

.pkg-card .list .svc-badge.type {
  background: rgba(6, 184, 255, 0.18);
  color: #e7f7ff;
  border-color: rgba(6, 184, 255, 0.28);
}

.pkg-card .svc-name {
  flex: 1 1 0;
  min-width: 0;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  direction: ltr;
  text-align: right;
}

.pkg-card .svc-name.svc-cat-jump {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.pkg-card .svc-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.svc-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 12px;
  overflow: hidden;
}

.svc-dialog.open {
  display: flex;
}

.svc-dialog .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.svc-dialog .panel {
  scrollbar-width: none;
  position: relative;
  width: min(820px, 92vw);
  background: linear-gradient(180deg, #0f1828, #0b1324);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 0px 18px;
  color: #e9f1ff;
  transform-origin: center;
  animation: dialog-in .25s ease forwards;
  max-height: 85vh;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.svc-dialog .svc-head {
  position: sticky;
  top: 0;
  padding: 10px 14px;
  margin: -18px -18px 8px;
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.97), rgba(11, 19, 36, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.svc-dialog .svc-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.svc-dialog .dialog-share {
  margin: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.18);
}

.svc-dialog .dialog-share svg {
  width: 18px;
  height: 18px;
}

.svc-dialog .svc-head h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

/* الجسم يأخذ padding موحد من الحاوية؛ لا نضيف padding هنا حتى لا يختبئ المحتوى خلف الهيدر */

.svc-dialog .svc-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.svc-dialog .svc-cat-chip {
  font-size: 12px;
  color: #9fc8ff;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.svc-dialog .svc-cat-chip::before {
  content: "⟡";
  font-weight: 900;
  color: #7ee0ff;
}

.svc-dialog .head-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.3);
  color: #e9f1ff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.svc-dialog .head-close:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.svc-dialog #svcBody,
.svc-dialog #productBody {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  padding: 16px 0;
}

.svc-dialog .detail-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.svc-dialog .detail-media {
  display: grid;
  gap: 12px;
}

.svc-dialog .detail-media .detail-tabs {
  margin-top: 6px;
}

.svc-dialog .detail-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 5;
  min-height: 220px;
  display: grid;
  place-items: center;
}

.svc-dialog .detail-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.svc-dialog .detail-placeholder {
  color: #9fb4d1;
  font-size: 12px;
}

.svc-dialog .detail-media-tabs {
  display: grid;
  gap: 8px;
}

.svc-dialog .media-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 4px;
  margin-bottom: -1px;
}

.svc-dialog .media-tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  background: rgba(9, 14, 30, 0.6);
  color: #cfe4ff;
  padding: 7px 12px;
  border-radius: 10px 10px 0 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.svc-dialog .media-tab-btn:hover {
  transform: translateY(-1px);
}

.svc-dialog .media-tab-btn.active {
  background: linear-gradient(180deg, rgba(109, 211, 255, 0.22), rgba(11, 19, 36, 0.95));
  border-color: rgba(109, 211, 255, 0.65);
  color: #f5faff;
}

.svc-dialog .media-panels {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 12px;
  padding: 10px;
}

.svc-dialog .media-tab-panel {
  display: none;
}

.svc-dialog .media-tab-panel.active {
  display: block;
}

.svc-dialog .thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-dialog .detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.svc-dialog .detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-dialog .detail-thumb:hover {
  transform: translateY(-1px);
}

.svc-dialog .detail-thumb.active {
  border-color: rgba(109, 211, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(109, 211, 255, 0.2);
}

.svc-dialog .detail-empty {
  font-size: 12px;
  color: #9fb4d1;
}

.svc-dialog .detail-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.svc-dialog .detail-meta {
  margin: 0;
}

.svc-dialog .detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 4px;
  margin-bottom: -1px;
}

.svc-dialog .detail-tabs .tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  background: rgba(9, 14, 30, 0.6);
  color: #cfe4ff;
  padding: 8px 14px;
  border-radius: 10px 10px 0 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.svc-dialog .detail-tabs .tab-btn:hover {
  transform: translateY(-1px);
}

.svc-dialog .detail-tabs .tab-btn.active {
  background: linear-gradient(180deg, rgba(109, 211, 255, 0.22), rgba(11, 19, 36, 0.95));
  border-color: rgba(109, 211, 255, 0.65);
  color: #f5faff;
  box-shadow: 0 8px 18px rgba(19, 90, 140, 0.35);
  position: relative;
  z-index: 1;
}

.svc-dialog .tab-panels {
  display: block;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.svc-dialog .tab-panel {
  display: none;
}

.svc-dialog .tab-panel.active {
  display: block;
}

.svc-dialog .detail-info .section {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.svc-dialog .detail-info .section + .section {
  margin-top: 10px;
}

.svc-dialog .detail-media .section {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.svc-dialog .detail-media .section + .section {
  margin-top: 10px;
}

.svc-dialog .detail-related {
  margin-top: 12px;
}

.svc-dialog .detail-videos {
  display: grid;
  gap: 10px;
}

.svc-dialog .detail-videos video {
  width: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .svc-dialog .detail-layout {
    grid-template-columns: 1fr;
  }

  .svc-dialog .detail-main {
    aspect-ratio: 16 / 9;
  }

  .svc-dialog .detail-thumb {
    width: 56px;
    height: 56px;
  }
}

/* مساحة إضافية لأسفل الديالوج على الجوال لتفادي شريط المتصفح */
@media (max-width: 640px) {
  .svc-dialog {
    align-items: flex-start;
    padding: 10px;
  }

  .svc-dialog .panel {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
  }

  .svc-dialog #svcBody,
  .svc-dialog #productBody {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
  }

  .order-dialog .panel,
  .order-dialog .order-content,
  .svc-dialog .panel,
  .svc-dialog #svcBody,
  .svc-dialog #productBody,
  .sheet .panel,
  .call-dialog .call-card {
    scrollbar-width: thin;
    scrollbar-color: rgba(93, 45, 225, 0.65) rgba(255, 255, 255, 0.06);
  }

  .order-dialog .panel::-webkit-scrollbar,
  .order-dialog .order-content::-webkit-scrollbar,
  .svc-dialog .panel::-webkit-scrollbar,
  .svc-dialog #svcBody::-webkit-scrollbar,
  .svc-dialog #productBody::-webkit-scrollbar,
  .sheet .panel::-webkit-scrollbar,
  .call-dialog .call-card::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .order-dialog .panel::-webkit-scrollbar-track,
  .order-dialog .order-content::-webkit-scrollbar-track,
  .svc-dialog .panel::-webkit-scrollbar-track,
  .svc-dialog #svcBody::-webkit-scrollbar-track,
  .svc-dialog #productBody::-webkit-scrollbar-track,
  .sheet .panel::-webkit-scrollbar-track,
  .call-dialog .call-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  .order-dialog .panel::-webkit-scrollbar-thumb,
  .order-dialog .order-content::-webkit-scrollbar-thumb,
  .svc-dialog .panel::-webkit-scrollbar-thumb,
  .svc-dialog #svcBody::-webkit-scrollbar-thumb,
  .svc-dialog #productBody::-webkit-scrollbar-thumb,
  .sheet .panel::-webkit-scrollbar-thumb,
  .call-dialog .call-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(93, 45, 225, 0.9), rgba(6, 184, 255, 0.9));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }

  .order-dialog .panel::-webkit-scrollbar-thumb:hover,
  .order-dialog .order-content::-webkit-scrollbar-thumb:hover,
  .svc-dialog .panel::-webkit-scrollbar-thumb:hover,
  .svc-dialog #svcBody::-webkit-scrollbar-thumb:hover,
  .svc-dialog #productBody::-webkit-scrollbar-thumb:hover,
  .sheet .panel::-webkit-scrollbar-thumb:hover,
  .call-dialog .call-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(93, 45, 225, 1), rgba(6, 184, 255, 1));
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.svc-dialog .panel h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

.svc-dialog .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: #dfe7f5;
}

.svc-dialog .desc {
  color: #b8c7dd;
  margin: 0 0 10px;
  line-height: 1.5;
}

.svc-dialog .list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: #e6eefc;
}

.svc-dialog .section {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.svc-dialog .section h5 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #9fc7ff;
}

.svc-dialog .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.svc-dialog .pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #e9f1ff;
}

.svc-dialog .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.svc-dialog .fact {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: #dce7f9;
}

.svc-dialog .fact strong {
  display: block;
  color: #9fc7ff;
  font-size: 11px;
  margin-bottom: 4px;
}

.svc-dialog .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.svc-dialog .media-grid .media-thumb {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}

.svc-dialog .media-grid .media-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.svc-dialog .media-grid .media-thumb img,
.svc-dialog .media-grid .media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 80px;
}

.svc-dialog .media-grid .media-thumb.video {
  position: relative;
}

.svc-dialog .media-grid .media-thumb .video-tag {
  position: absolute;
  inset: 6px auto auto 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.svc-dialog .media-grid .video-thumb video {
  width: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: cover;
  max-height: 220px;
}

.svc-dialog .media-grid .video-thumb .link {
  margin-top: 4px;
  font-size: 11px;
}

/* Lightbox */
#svcLightbox {
  position: fixed;
  inset: 0;
  z-index: 1002;
  display: none;
}

#svcLightbox.open {
  display: block;
}

#svcLightbox .lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

#svcLightbox .lb-content {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 900px);
  max-height: 90vh;
  background: #0f1625;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

#svcLightbox .lb-body {
  height: 100%;
  max-height: 80vh;
  display: grid;
  place-items: center;
}

#svcLightbox .lb-body img,
#svcLightbox .lb-body video {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#svcLightbox .lb-caption {
  margin-top: 6px;
  text-align: center;
  color: #9fb4d1;
  font-size: 12px;
}

#svcLightbox .lb-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

#svcLightbox .lb-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
}

#svcLightbox .lb-nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

body.modal-open,
html.modal-open {
  overflow: hidden;
  height: 100%;
}

.svc-dialog .footer {
  position: sticky;
  bottom: 0;
  margin: -18px -17px 0px;
  padding: 12px 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.96), rgba(15, 24, 40, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 16px 16px;
  z-index: 3;
  margin-top: auto;
  flex: 0 0 auto;
}

.svc-dialog .footer .footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.wizard {
  display: grid;
  gap: 12px;
  padding: 18px
}

.bubble {
  background: linear-gradient(180deg, #121a2a, #0f1625);
  border: 1px solid var(--stroke);
  padding: 14px 16px;
  border-radius: 14px
}

.q {
  font-weight: 700;
  margin: 0 0 8px
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}

.opt {
  padding: 10px 14px;
  border: 1px solid #2c3a52;
  background: #101726;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600
}

.opt:hover {
  border-color: #3d5273
}

.opt[aria-checked="true"] {
  outline: 2px solid var(--brand);
  border-color: transparent
}

.result {
  display: grid;
  gap: 16px;
  padding: 12px 0
}

.pick {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1625, #0d1422)
}

.pick h5 {
  margin: 0 0 4px;
  font-size: 16px
}

.pick ul {
  margin: 0 0 4px 0;
  padding: 0 1.1rem;
  color: #b5c4d6
}

.pick .cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

/* Builder */
.builder-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 340px;
  gap: 16px;
  padding: 16px;
  min-height: 70vh;
}

.builder-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.builder-head h4 {
  margin: 0;
  font-size: 18px;
  color: #eaf3ff;
}

.builder-head p {
  margin: 4px 0 0;
  color: #9bb3d1;
  font-size: 13px;
}

@media (max-width: 640px) {
  .builder-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .builder-panel {
    position: static;
  }

  .summary-list {
    max-height: none;
  }

  .svc-list {
    max-height: none;
  }
}

.svc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 4px;
}

.svc-list::-webkit-scrollbar {
  width: 6px;
}

.svc-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.svc-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 12px;
  background: #0f1625;
  display: grid;
  gap: 6px;
  cursor: pointer;
  transition: border-color .2s ease, transform .15s ease;
}

.svc-card:hover {
  transform: translateY(-2px);
  border-color: #3a4d6a;
}

.svc-card.active {
  border-color: var(--brand);
  box-shadow: 0 10px 28px rgba(76, 201, 240, 0.16);
}

.svc-card h5 {
  margin: 0;
  font-size: 15px;
}

.svc-meta {
  color: #9bb3d1;
  font-size: 12px;
}

.builder-panel {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1522, #0c121e);
  padding: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  position: sticky;
  top: 12px;
  align-self: start;
}

.builder-panel .muted-sm {
  color: #9bb3d1;
  font-size: 12px;
  margin: 0;
}

.summary-box {
  display: grid;
  gap: 10px;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  max-height: 36vh;
  overflow: auto;
}

.summary-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
  color: #dce6f5;
  font-size: 13px;
}

.summary-list .svc-id {
  color: #8ea5c6;
  font-weight: 700;
  font-size: 12px;
}

.summary-list .svc-price {
  color: #ffd166;
  font-weight: 800;
  font-size: 13px;
}

.summary-empty {
  color: #8ea5c6;
  font-size: 13px;
  padding: 8px 0;
}

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.summary-total small {
  color: #9bb3d1;
  font-weight: 700;
  margin-inline-start: 4px;
}

/* Services cards responsive tweaks */
@media (max-width: 640px) {
  .services-products .section-head,
  .products-section .section-head {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    justify-content: center;
  }

  .services-products .section-head>div:first-child,
  .products-section .section-head>div:first-child {
    text-align: center;
  }

  .svc-filters,
  .product-filters {
    justify-content: center;
    margin-inline-end: 0;
  }

  .svc-fab {
    inset-inline-end: 12px;
    inset-inline-start: 12px;
    top: auto;
    bottom: 18px;
    justify-content: space-between;
  }

  .svc-filters .svc-input,
  .product-filters .svc-input {
    min-width: 140px;
    width: 100%;
  }

  .services-products,
  .products-section {
    padding: 14px;
  }

  .svc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .svc-card-product {
    min-height: 0;
    border-radius: 14px;
  }

  .svc-card-product .thumb {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .svc-card-product .thumb img {
    object-fit: contain;
  }

  .svc-card-product .card-body {
    padding: 12px 12px 14px;
    gap: 8px;
  }

  .svc-card-product h5 {
    font-size: 13px;
  }

  .svc-card-product .price {
    font-size: 13px;
  }

  .svc-card-product .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    align-items: stretch;
  }

  .svc-card-product .actions .actions-right {
    display: contents;
    margin-inline-end: 0;
  }

  .svc-card-product .btn-select,
  .svc-card-product .btn-detail,
  .svc-card-product .btn-like {
    padding: 6px 6px;
    min-width: 0;
    font-size: 11px;
    border-radius: 9px;
    justify-content: center;
    width: 100%;
  }

  .svc-card-product .btn-like {
    margin-inline-start: 0;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #2b3a52;
  background: #0f1625;
  cursor: pointer;
  color: #dfe7f0;
  font-size: 13px;
}

.pill input {
  accent-color: initial;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

footer {
  margin-top: 60px;
  padding: 52px 20px 28px;
  color: #cfd8ff;
  background: #050b18;
  width: 100%;
  box-shadow: 0 20px 45px rgba(2, 6, 22, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wrap::after {
  content: "";
  display: block;
  height: 0;
}

.site-footer {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.footer-grid {
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  align-items: start;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #b7c6ea;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #f5f7ff;
  letter-spacing: 0.4px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.footer-links li {
  font-size: 14px;
  color: #ccd6f5;
  opacity: 0.8;
}

.footer-links li a {
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-links li a:hover {
  opacity: 1;
  color: #fff;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfd8ff;
  font-size: 14px;
}

.contact-item a {
  color: inherit;
  font-weight: 700;
}

.icon-pill {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.icon-pill img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

.icon-pill.text-icon {
  font-size: 14px;
}

.ltr-num {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
  text-align: left;
  letter-spacing: 0.3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #94a6ce;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

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

.socials a {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.socials a img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}

.socials a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* ====== موبايل ====== */
@media (max-width: 640px) {
  .wrap {
    padding: 0 12px;
    align-items: stretch;
  }

  .hero {
    padding: 16px 0 32px;
  }

  .hero-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .hero-card .logo-row img {
    width: 120px;
  }

  .hero-card .tagline {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 20px;
    padding: 50px 0px;
    margin: 8px 0 10px;
    white-space: normal;
  }

  .hero p {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .cta-row {
    gap: 10px;
    justify-content: center;
  }

  .cta-row .btn {
    flex: 1 1 100%;
    justify-content: center;
    padding: 12px 14px;
  }

  .cart-clear {
    display: inline-flex;
  }

  .hero-card.nav-compact {
    inset-inline: 8px;
    top: 20px;
    max-width: calc(100% - 16px);
    padding: 10px 12px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-areas:
      "logo cta1"
      "logo cta2"
      "cart cart";
    gap: 6px 10px;
    align-items: center;
  }

  .hero-card.nav-compact .btn {
    font-size: 13px;
    padding: 3px 3px;
    min-height: 5px;
  }

  .hero-card.nav-compact h1 {
    display: none;
  }

  .hero-card.nav-compact .logo-row {
    grid-area: logo;
    justify-content: flex-start;
    justify-self: start;
    gap: 8px;
  }

  .hero-card.nav-compact .logo-row img {
    width: 160px;
  }

  .hero-card.nav-compact .tagline {
    display: none;
  }

  .hero-card.nav-compact .cta-row {
    display: contents;
  }

  .hero-card.nav-compact #openServices,
  .hero-card.nav-compact #openServicesProducts {
    align-self: center;
    width: 100%;
    justify-content: center;
  }

  .hero-card.nav-compact #openServices {
    grid-area: cta1;
  }

  .hero-card.nav-compact #openServicesProducts {
    grid-area: cta2;
  }

  .hero-card.nav-compact #svcCartWrap {
    grid-area: cart;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
  }

  .hero-card.nav-compact #svcCartWrap .cart-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-card.nav-compact #svcCartWrap .cart-share {
    margin-right: 0;
  }

  .services-section {
    scroll-margin-top: 200px;
    padding-top: 80px;
    gap: 12px;
  }

  .services-section .section-head {
    padding-inline: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    grid-row: 1;
  }

  .services-section .section-head>div {
    width: 100%;
  }

  .services-section .section-head h3,
  .services-section .section-head .muted {
    text-align: center;
  }

  .pkg-tabs {
    padding-inline: 0;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    overflow-x: visible;
    grid-row: 2;
  }

  .pkg-tab {
    flex: 0 0 calc(50% - 6px);
    width: calc(50% - 6px);
    white-space: normal;
    font-size: 13px;
    padding: 6px 12px;
    text-align: center;
  }

  #packagesGrid {
    padding: 16px 0 50px;
    justify-content: center;
    grid-row: 3;
  }

  #packagesGrid .pkg-card {
    flex: 0 0 100%;
    max-width: 90%;
  }

  .pkg-slider-controls .slider-btn {
    top: 39%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
  }

  .pkg-slider-controls .slider-btn.prev {
    inset-inline-start: 6px;
  }

  .pkg-slider-controls .slider-btn.next {
    inset-inline-end: 6px;
  }

  .slide-next .pkg-card {
    animation: pkg-slide-next 0.35s ease;
  }

  .slide-prev .pkg-card {
    animation: pkg-slide-prev 0.35s ease;
  }

  .pkg-card {
    padding: 14px;
  }

  .pkg-card .pkg-head {
    padding: 10px;
  }

  .notify-inline {
    flex-wrap: wrap;
  }

  .notify-inline input,
  .notify-inline .btn {
    min-height: 44px;
    flex: 1 1 100%;
  }

  .order-dialog {
    align-items: flex-start;
    padding: 10px;
  }

  .svc-dialog.order-dialog .panel {
    padding: 0px 18px 0px;
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    height: auto;
  }

}

.svc-badge.price .cancel-btn {
  width: 100%;
  display: block;
  text-align: center;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 2px 0;
  cursor: pointer;
}

/* Bridge section (light glass) */
.bridge-section {
  margin: 80px auto;
  padding: 0 18px;
}

.bridge-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  color: #0f1625;
  backdrop-filter: blur(10px);
}

.bridge-copy {
  flex: 1 1 320px;
  display: grid;
  gap: 10px;
}

.bridge-copy h3 {
  margin: 0;
  font-size: 26px;
  color: #0c1428;
}

.bridge-copy .muted {
  color: #4c5c74;
}

.bridge-copy .cta-row .btn.builder {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border: none;
}

.bridge-copy .cta-row .btn.call-apple {
  background: linear-gradient(135deg, #7de87a, #2fb15a);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 34px rgba(47, 177, 90, 0.55);
  color: #0b1229;
}

.bridge-copy .cta-row .btn.secondary {
  background: #e6ecf6;
  color: #0f1625;
  border: 1px solid rgba(15, 22, 37, 0.1);
}

.bridge-stats {
  flex: 1 1 260px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.bridge-steps {
  flex: 1 1 320px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.bridge-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(12, 20, 40, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.bridge-step .num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0c1428;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
}

.bridge-step .text {
  font-size: 13px;
  color: #1f2a3d;
  line-height: 1.4;
}

.bridge-stat {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(12, 20, 40, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.bridge-stat .label {
  margin: 0 0 6px 0;
  font-size: 12px;
  color: #4c5c74;
}

.bridge-stat .value {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0c1428;
}

@media (max-width: 640px) {
  .bridge-section {
    margin: 60px auto;
  }

  .bridge-card {
    padding: 22px 18px;
  }

  .bridge-copy h3 {
    font-size: 22px;
  }
}

/* === Call dialog (merged) === */
.call-dialog {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 60;
}

.call-dialog.open {
  display: grid;
}

.call-dialog .call-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.call-dialog .call-card {
  background: rgba(10, 16, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px;
  width: 90%;
  max-width: 360px;
  color: #e8eef6;
  position: relative;
  z-index: 2;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.call-dialog .call-card h4 {
  margin: 0 0 14px;
}

.call-dialog .call-close {
  position: absolute;
  inset-inline-end: 10px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #dce6f5;
  font-size: 18px;
  cursor: pointer;
}

.call-dialog h4 {
  margin: 0 0 12px;
}

.call-dialog form {
  display: grid;
  gap: 10px;
}

.call-field {
  position: relative;
}

.call-field input {
  padding-inline-end: 34px;
}

.call-field .input-icon {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.75;
}

.call-dialog input,
.call-dialog textarea,
.call-dialog button.pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #e8eef6;
  padding: 10px;
  width: 100%;
}

.call-dialog input,
.call-dialog button.pill {
  cursor: pointer;
}

.call-dialog button[type="submit"] {
  background: linear-gradient(135deg, var(--brand1, #5d2de1), var(--brand2, #06b8ff));
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.call-picker {
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: calc(100% + 4px);
  background: rgba(14, 20, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  padding: 10px;
  display: none;
  z-index: 3;
}

.call-picker.open {
  display: block;
}

.call-picker .picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 700;
}

.call-picker .picker-head button {
  background: transparent;
  border: 0;
  color: #cfe2ff;
  cursor: pointer;
  font-size: 16px;
}

.call-picker .grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.call-picker .day {
  padding: 8px 0;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
}

.call-picker .day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.call-picker .day.today {
  border-color: rgba(97, 201, 177, 0.5);
}

.call-picker .day.active {
  background: linear-gradient(135deg, #5d2de1, #06b8ff);
  color: #fff;
  border-color: transparent;
}

.time-list {
  max-height: 160px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.time-list button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #e8eef6;
  padding: 8px 10px;
  cursor: pointer;
}

.time-list button.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.time-list button.active {
  background: linear-gradient(135deg, #5d2de1, #06b8ff);
  color: #fff;
  border-color: transparent;
}

.detail-options {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1625, #0d1422);
}

.detail-options h5 {
  margin: 0 0 4px;
  font-size: 15px;
}

.detail-header {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(12,18,33,0.6);
}

.detail-title {
  font-size: 18px;
  font-weight: 800;
}

.detail-sub {
  color: #9fb5d8;
  font-size: 13px;
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(14,22,38,0.7);
}

.detail-summary .sum-item {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #9fb5d8;
}

.detail-summary .sum-item strong {
  color: #e7edf5;
  font-size: 14px;
}

.detail-summary .detail-summary-media {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.detail-media-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(14,22,38,0.7);
}

.option-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #1e2b43;
  border-radius: 12px;
}

.option-item .opt-input {
  padding-top: 2px;
}

.option-item .opt-input > .opt-select,
.option-item .opt-input > input,
.option-item .opt-input > textarea {
  min-height: 40px;
}

.option-item .opt-input input[type="radio"],
.option-item .opt-input input[type="checkbox"] {
  margin-top: 2px;
}

.option-item.is-hidden {
  display: none;
}

.opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
}

.opt-delta {
  font-size: 12px;
  color: #a9c6ff;
}

.opt-input {
  display: grid;
  gap: 6px;
}

.opt-input select,
.opt-input input,
.opt-input textarea {
  width: 100%;
}

/* تنسيق خيار رفع الملف */
.detail-options .opt-input input[type="file"] {
  display: none;
}

.opt-file {
  display: grid;
  gap: 10px;
}

.opt-file-preview {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: #0f1625;
  display: grid;
  place-items: center;
  color: #9fb5d8;
  font-size: 12px;
  position: relative;
  overflow: hidden;
}

.opt-file-preview::after {
  content: "استعراض الصورة";
  opacity: .6;
}

.opt-file-preview.has-image::after {
  content: "";
}

.opt-file-preview.has-image {
  background-size: cover;
  background-position: center;
}

.opt-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #5d2de1, #06b8ff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  width: max-content;
}

.opt-file-name {
  font-size: 12px;
  color: #9fb5d8;
}

.opt-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #101726;
  border: 1px solid #1f2a3f;
}

.opt-item .opt-label {
  flex: 1;
}

.opt-select {
  position: relative;
  display: grid;
  gap: 6px;
}

.opt-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 14px 14px;
  min-height: 54px;
  border-radius: 10px;
  background: #0f1625;
  border: 1px solid #1f2a3f;
  color: #e7edf5;
  cursor: pointer;
  font-weight: 600;
}

.opt-select-trigger em {
  font-style: normal;
  font-size: 12px;
  color: #9fb5d8;
  margin-inline-start: auto;
}

.opt-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #7f93b3;
}

.opt-select-list {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  background: #0f1625;
  border: 1px solid #1f2a3f;
  border-radius: 12px;
  padding: 8px;
  display: none;
  max-height: 320px;
  overflow: auto;
  z-index: 30;
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.opt-select.open .opt-select-list {
  display: grid;
  gap: 6px;
}

.opt-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  min-height: 54px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(16,23,38,0.8);
  color: #e7edf5;
  cursor: pointer;
}

.opt-select-item em {
  font-style: normal;
  font-size: 12px;
  color: #9fb5d8;
}

.opt-select-item .opt-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opt-select-item.active,
.opt-select-item:hover {
  border-color: #2d4b7a;
  background: rgba(19,32,54,0.9);
}

.opt-select-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opt-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.opt-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #1f2a3f;
  background: #0f1625;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}

.opt-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt-card:hover {
  border-color: #2d4b7a;
  background: #111c2f;
  transform: translateY(-1px);
}

.opt-card.active,
.opt-card:has(input:checked) {
  border-color: #3aa9ff;
  box-shadow: 0 0 0 1px rgba(58,169,255,0.4);
  background: #0f1f36;
}

.opt-card-media {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 96px;
  border-radius: 10px;
  background: #0b1220;
  border: 1px dashed rgba(255,255,255,0.08);
}

.opt-card-media .opt-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
}

.opt-card-title {
  font-weight: 700;
  font-size: 13px;
}

.opt-card-price {
  font-size: 12px;
  color: #9fb5d8;
}

.opt-media {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.opt-thumb {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid #2a3a55;
  object-fit: cover;
}

.opt-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #2a3a55;
}

/* تكبير دروب سلكت داخل مودل المنتج والخدمات */
.product-dialog .detail-options .opt-select-trigger,
#svcDialog .detail-options .opt-select-trigger {
  min-height: 62px;
  padding: 16px 16px;
}

.product-dialog .detail-options .opt-select-item,
#svcDialog .detail-options .opt-select-item {
  min-height: 62px;
  padding: 14px 14px;
}

.product-dialog .detail-options .opt-select .opt-thumb,
.product-dialog .detail-options .opt-select-item .opt-thumb,
#svcDialog .detail-options .opt-select .opt-thumb,
#svcDialog .detail-options .opt-select-item .opt-thumb {
  width: 30px;
  height: 30px;
}

.product-dialog .detail-options .opt-select .opt-swatch,
.product-dialog .detail-options .opt-select-item .opt-swatch,
#svcDialog .detail-options .opt-select .opt-swatch,
#svcDialog .detail-options .opt-select-item .opt-swatch {
  width: 22px;
  height: 22px;
}

.opt-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opt-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #9fb5d8;
}

.opt-item em {
  margin-inline-start: auto;
  font-size: 12px;
  color: #9fb5d8;
}

.opt-note {
  font-size: 12px;
  color: #9fb5d8;
}

.opt-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
}

.order-options {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  color: #9fb5d8;
}

.order-option {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.opt-section {
  display: grid;
  gap: 10px;
}

.opt-section-title {
  font-size: 12px;
  color: #9fb5d8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.opt-summary-bar {
  display: grid;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.opt-summary.highlight strong {
  color: #7fd0ff;
}

/* تنظيم خيارات المنتج والخدمات */
.product-dialog .detail-options .opt-section,
#svcDialog .detail-options .opt-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-dialog .detail-options .opt-section-title,
#svcDialog .detail-options .opt-section-title {
  grid-column: 1 / -1;
}

.product-dialog .detail-options .option-item,
#svcDialog .detail-options .option-item {
  background: rgba(12, 18, 33, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
}

.product-dialog .detail-options .option-item:has(.opt-card-grid),
.product-dialog .detail-options .option-item:has(textarea),
#svcDialog .detail-options .option-item:has(.opt-card-grid),
#svcDialog .detail-options .option-item:has(textarea) {
  grid-column: 1 / -1;
}

.product-dialog .detail-options .option-item:has(.opt-select),
.product-dialog .detail-options .option-item[data-option-type="select"],
#svcDialog .detail-options .option-item:has(.opt-select),
#svcDialog .detail-options .option-item[data-option-type="select"] {
  grid-column: 1 / -1;
}

.product-dialog .detail-options .option-item:has(.opt-file),
.product-dialog .detail-options .option-item[data-option-type="file"],
#svcDialog .detail-options .option-item:has(.opt-file),
#svcDialog .detail-options .option-item[data-option-type="file"] {
  grid-column: 1 / -1;
}

.product-dialog .detail-options .option-item[data-option-type="text"],
.product-dialog .detail-options .option-item[data-option-type="textarea"],
.product-dialog .detail-options .option-item[data-option-type="color"],
.product-dialog .detail-options .option-item[data-option-type="date"],
.product-dialog .detail-options .option-item[data-option-type="number"],
#svcDialog .detail-options .option-item[data-option-type="text"],
#svcDialog .detail-options .option-item[data-option-type="textarea"],
#svcDialog .detail-options .option-item[data-option-type="color"],
#svcDialog .detail-options .option-item[data-option-type="date"],
#svcDialog .detail-options .option-item[data-option-type="number"] {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .product-dialog .detail-options .opt-section,
  #svcDialog .detail-options .opt-section {
    grid-template-columns: 1fr;
  }
}

/* شبكة خيارات المنتج والخدمات: 3 مربعات متساوية */
.product-dialog .detail-options .opt-card-grid,
#svcDialog .detail-options .opt-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .product-dialog .detail-options .opt-card-grid,
  #svcDialog .detail-options .opt-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-dialog .detail-options .opt-card-grid,
  #svcDialog .detail-options .opt-card-grid {
    grid-template-columns: 1fr;
  }
}

.map-box {
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

.map-address {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.map-address input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0f1625;
  color: #e8eef6;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
}

.dialog-backdrop.show {
  display: flex;
}

.dialog-card {
  background: #0f1625;
  color: #e8eef6;
  padding: 16px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 640px;
  width: 92%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
}

.dialog-card .pin-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e9f0ff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}

.dialog-card .form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #9fb4d1;
}

.dialog-card .pin-hint {
  margin: 0;
  font-size: 12px;
  color: #93a6c4;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
