/* Shared package cards and details dialogs. */
:root {
  --shop-ink: #151517;
  --shop-muted: #6c6c74;
  --shop-red: #e30613;
  --shop-line: #e6e6ea;
  --shop-font: "Inter", "Segoe UI", Arial, sans-serif;
  --shop-display: "Space Grotesk", "Inter", Arial, sans-serif;
}
html[lang="ar"] {
  --shop-font: "Tajawal", "Segoe UI", Arial, sans-serif;
  --shop-display: "Tajawal", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #f7f7f8; color: var(--shop-ink); font-family: var(--shop-font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
main { padding: 132px 0 72px; }
.shop-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.shop-hero { margin: 0 0 40px; padding: 0; }
.shop-hero img { display: block; width: 100%; height: auto; }
.shop-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.shop-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(18 18 22 / 3%);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
.shop-plan:hover { border-color: #cacace; box-shadow: 0 12px 32px rgb(18 18 22 / 7%); }
.shop-plan--featured { background: #171719; border-color: #171719; color: #fff; }
.shop-plan--featured::before { content: ""; position: absolute; inset: -1px -1px auto; height: 4px; border-radius: 8px 8px 0 0; background: var(--shop-red); }
.shop-plan-top { display: flex; flex-direction: column; gap: 0; }
.shop-plan-name { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.shop-plan-name h2 { margin: 0; font-family: var(--shop-display); font-size: 23px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.shop-plan-name span { font-size: 14px; font-weight: 500; color: var(--shop-muted); }
html[lang="en"] .shop-plan-name span { display: none; }
.shop-label { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--shop-red); }
.shop-price { display: flex; flex-wrap: wrap; direction: ltr; align-items: baseline; gap: 6px; margin-top: 24px; width: fit-content; }
.shop-price strong { font: 700 56px/1 var(--shop-display); color: var(--shop-ink); letter-spacing: 0; }
.shop-price > span { font-size: 13px; font-weight: 600; color: var(--shop-muted); }
.shop-old-price { flex-basis: 100%; margin-top: 4px; color: #919198; font-size: 13px; line-height: 1.6; }
.shop-plan-copy { min-height: 76px; margin: 16px 0 0; font-size: 14px; line-height: 1.8; color: var(--shop-muted); }
.shop-policy { margin: 24px 0 0; font-size: 14px; line-height: 1.8; color: var(--shop-muted); }
.shop-scope { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--shop-line); font-size: 17px; font-weight: 700; line-height: 1.5; }
.shop-core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 0; margin: 18px 0 22px; list-style: none; }
.shop-core li { display: flex; gap: 9px; align-items: baseline; font-size: 14px; font-weight: 500; line-height: 1.45; }
.shop-core li::before { content: "\2713"; color: var(--shop-red); font: 600 15px/1 Arial, sans-serif; flex: none; }
.shop-core li::after { content: none; }
.shop-details-toggle { display: flex; gap: 8px; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0; margin: 0 0 20px; border: 0; background: transparent; color: var(--shop-ink); cursor: pointer; font: 600 14px/1.5 var(--shop-font); touch-action: manipulation; }
.shop-details-toggle::after { content: "+"; color: var(--shop-red); font: 500 21px/1 Arial, sans-serif; }
.shop-details-toggle:hover { color: var(--shop-red); }
.shop-details-toggle, .shop-cta { scroll-margin-top: 112px; }
.shop-details[hidden] { display: none; }
.shop-plan-foot { display: grid; gap: 12px; margin-top: auto; }
.shop-saving { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--shop-muted); }
.shop-cta { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--shop-ink); border-radius: 6px; background: transparent; color: var(--shop-ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; }
.shop-cta:hover { background: var(--shop-ink); color: #fff; }
.shop-cta svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
[dir="rtl"] .shop-cta svg { transform: scaleX(-1); }
.shop-plan--featured .shop-plan-name span,
.shop-plan--featured .shop-plan-copy,
.shop-plan--featured .shop-saving,
.shop-plan--featured .shop-price > span { color: #b5b5bc; }
.shop-plan--featured .shop-price strong,
.shop-plan--featured .shop-details-toggle { color: #fff; }
.shop-plan--featured .shop-label { color: #ff626b; }
.shop-plan--featured .shop-scope { border-color: #353539; }
.shop-plan--featured .shop-cta { color: #fff; background: var(--shop-red); border-color: var(--shop-red); }
.shop-plan--featured .shop-cta:hover { background: #be0610; }
.shop-details-toggle:focus-visible,
.shop-cta:focus-visible,
.shop-modal-close:focus-visible { outline: 2px solid var(--shop-red); outline-offset: 4px; }
.shop-modal {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--shop-line);
  border-radius: 8px;
  background: #fff;
  color: var(--shop-ink);
  font-family: var(--shop-font);
  overscroll-behavior: contain;
  overflow: hidden;
}
.shop-modal::backdrop { background: rgb(10 10 15 / 58%); backdrop-filter: blur(4px); }
.shop-modal[open] { display: flex; flex-direction: column; animation: shopModalIn 220ms ease both; }
.shop-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex: none; padding: 24px 32px 16px; background: #fff; border-bottom: 1px solid var(--shop-line); }
.shop-modal-body { min-height: 0; padding: 0 32px 32px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.shop-modal h2 { margin: 0; font: 700 26px/1.3 var(--shop-display); }
.shop-modal-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: none; border: 0; border-radius: 6px; background: #f2f2f4; color: #111; cursor: pointer; }
.shop-modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.shop-modal-price { margin: 16px 0 0; color: var(--shop-red); font: 700 32px/1.4 var(--shop-display); direction: ltr; text-align: start; }
.shop-modal-copy { margin: 12px 0 20px; color: var(--shop-muted); font-size: 15px; line-height: 1.8; }
.shop-features { display: grid; gap: 0; padding: 0; margin: 0 0 24px; list-style: none; }
.shop-features li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--shop-line); font-size: 15px; line-height: 1.65; }
.shop-features li > span { flex: 1; min-width: 0; }
.shop-check { flex: none; color: var(--shop-red); }
.shop-check svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.shop-modal .shop-cta { color: #fff; background: var(--shop-red); border-color: var(--shop-red); font-size: 15px; }
html.shop-modal-open { overflow: hidden; }
html.shop-modal-open body { position: fixed; top: var(--shop-scroll-offset); inset-inline: 0; width: 100%; }
@keyframes shopModalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) and (min-width: 641px) {
  .shop-plan { padding: 22px 18px; }
  .shop-plan-name h2 { font-size: 19px; }
  .shop-plan-copy { min-height: 126px; }
  .shop-core { grid-template-columns: 1fr; }
  .shop-cta { padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 640px) {
  main { padding: 108px 0 40px; }
  .shop-shell { width: calc(100% - 24px); }
  .shop-hero { margin-bottom: 24px; }
  .shop-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-plan { padding: 20px 14px 16px; }
  .shop-plan-name { flex-direction: column; gap: 2px; }
  .shop-plan-name h2 { font-size: 17px; }
  .shop-plan-name span { font-size: 12px; }
  .shop-label { min-height: 39px; margin-top: 8px; font-size: 12px; line-height: 1.6; }
  .shop-price { margin-top: 14px; gap: 4px; }
  .shop-price strong { font-size: 38px; }
  .shop-price > span { font-size: 11px; }
  .shop-old-price { font-size: 12px; }
  .shop-plan-copy { display: none; }
  .shop-scope { margin-top: 14px; padding-top: 14px; font-size: 14px; }
  .shop-core { grid-template-columns: 1fr; gap: 8px; margin: 14px 0 8px; }
  .shop-core li { gap: 6px; font-size: 13px; line-height: 1.5; }
  .shop-core li::before { font-size: 12px; }
  .shop-details-toggle { margin-bottom: 12px; font-size: 13px; }
  .shop-saving { font-size: 12px; }
  .shop-cta { gap: 5px; padding: 10px 6px; font-size: 13px; }
  .shop-cta svg { width: 13px; height: 13px; }
  .shop-plan:last-child { grid-column: 1 / -1; }
  .shop-plan:last-child .shop-plan-top { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; }
  .shop-plan:last-child .shop-price { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .shop-plan:last-child .shop-label { min-height: 0; }
  .shop-plan:last-child .shop-core { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-plan:last-child .shop-plan-foot { grid-template-columns: 1fr auto; align-items: center; }
  .shop-plan:last-child .shop-cta { padding-inline: 16px; }
  .shop-modal { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
  .shop-modal-head { padding: 16px 22px; }
  .shop-modal-body { padding: 0 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-plan { transition: none; }
  .shop-modal[open] { animation: none; }
}
.social-terms, .social-comparison { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--shop-line); }
.social-terms h2, .social-comparison h2 { margin: 0 0 16px; font: 700 24px/1.4 var(--shop-display); }
.social-terms p { max-width: 900px; margin: 10px 0; font-size: 15px; line-height: 1.8; }
.social-table-wrap { overflow-x: auto; border: 1px solid var(--shop-line); background: #fff; }
.social-comparison table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.social-comparison th, .social-comparison td { padding: 16px; border-bottom: 1px solid var(--shop-line); text-align: start; }
.social-comparison th { font-weight: 600; }
.social-comparison thead th { background: #f0f0f3; }
.social-comparison th:nth-child(3), .social-comparison td:nth-child(3) { background: #fff0f1; }
.social-comparison small { display: block; color: #b00510; margin-top: 6px; }
.service-request { max-width: 860px; }
.service-request h1 { font: 700 36px/1.4 var(--shop-display); margin: 0 0 32px; }
.service-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-field { display: grid; min-width: 0; align-content: start; gap: 8px; }
.service-field--wide { grid-column: 1 / -1; }
.service-field label { font-size: 15px; font-weight: 600; line-height: 1.5; }
.service-field input, .service-field select, .service-field textarea { min-width: 0; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #b8b8c0; border-radius: 6px; color: var(--shop-ink); background: #fff; font: 400 16px/1.5 var(--shop-font); }
.service-field textarea { resize: vertical; }
.service-field input[type="tel"], .service-field input[type="email"] { direction: ltr; }
.service-field :is(input, select, textarea):focus-visible, .social-table-wrap:focus-visible { outline: 2px solid var(--shop-red); outline-offset: 3px; }
.service-submit { margin-top: 28px; }
.service-submit .shop-cta { width: fit-content; padding-inline: 24px; background: var(--shop-red); color: #fff; border-color: var(--shop-red); cursor: pointer; font-family: var(--shop-font); font-size: 15px; }
.service-status { line-height: 1.7; }
.service-continue { text-decoration: underline; color: #b00510; }
@media (max-width: 640px) {
  .shop-packages--social { grid-template-columns: 1fr; }
  .shop-packages--social .shop-plan { padding: 24px; }
  .shop-packages--social .shop-plan-top, .shop-packages--social .shop-plan:last-child .shop-plan-top { display: flex; flex-direction: column; }
  .shop-packages--social .shop-plan-name h2 { font-size: 23px; }
  .shop-packages--social .shop-label { min-height: 0; }
  .shop-packages--social .shop-price, .shop-packages--social .shop-plan:last-child .shop-price { margin-top: 18px; }
  .shop-packages--social .shop-plan-copy { display: block; min-height: 0; }
  .shop-packages--social .shop-core { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .shop-packages--social .shop-plan:last-child .shop-plan-foot { grid-template-columns: 1fr; }
  .social-terms, .social-comparison { margin-top: 28px; }
  .service-request h1 { font-size: 28px; }
  .service-fields { grid-template-columns: 1fr; gap: 20px; }
  .service-submit .shop-cta { width: 100%; }
}
@media (max-width: 380px) {
  .shop-packages--social .shop-plan .shop-core { grid-template-columns: 1fr; }
}
.shop-hero h1 { margin: 0; font-size: inherit; line-height: 0; }
