/* Cash Cloud Pricing — scoped presentation layer (pp-*) */
/* Cache-bust by bumping query string in blade when this file changes */

/* --------- Page shell --------- */
body.pp-pricing-body {
  background: #eef3f9 !important;
  min-height: 100vh;
}

/* --------- Custom top bar (never depends on default auth header) --------- */
.pp-topbar {
  background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 52%, #1d4ed8 100%) !important;
  background-color: #2563eb !important;
  color: #fff !important;
  width: 100%;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.35);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.pp-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  box-sizing: border-box;
}

.pp-topbar-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
}

.pp-topbar-start {
  justify-content: flex-start;
}

.pp-topbar-end {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pp-topbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none !important;
  color: #fff !important;
  flex: 0 0 auto;
}

.pp-topbar-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.pp-topbar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.pp-topbar-brand-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff !important;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-topbar-link {
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.pp-topbar-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
}

.pp-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.pp-topbar-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

/* Language button inside blue bar — keep summary/links white, menu items dark */
.pp-topbar .btn,
.pp-topbar button,
.pp-topbar .dropdown-toggle,
.pp-topbar details > summary,
.pp-topbar .pp-topbar-link,
.pp-topbar .pp-topbar-cta,
.pp-topbar .pp-topbar-brand {
  color: #fff !important;
}

.pp-topbar .btn,
.pp-topbar .dropdown-toggle {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* DaisyUI/details language menu (language_btn partial) + Bootstrap dropdown */
.pp-topbar .dropdown-menu,
.pp-topbar .tw-dw-dropdown-content,
.pp-topbar details ul,
.pp-topbar details .tw-dw-menu {
  color: #0f172a !important;
  background: #fff !important;
  z-index: 1100;
}

.pp-topbar .dropdown-menu a,
.pp-topbar .tw-dw-dropdown-content a,
.pp-topbar details ul a,
.pp-topbar a.change_lang {
  color: #0f172a !important;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
}

.pp-topbar .dropdown-menu a:hover,
.pp-topbar .tw-dw-dropdown-content a:hover,
.pp-topbar details ul a:hover,
.pp-topbar a.change_lang:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.pp-topbar details {
  position: relative;
  z-index: 1100;
}

.pp-topbar details > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.pp-topbar details > summary::-webkit-details-marker {
  display: none;
}

.pp-topbar details[open] > .tw-dw-dropdown-content,
.pp-topbar details[open] > ul {
  display: block;
  position: absolute;
  inset-inline-start: 0;
  top: 100%;
  min-width: 12rem;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  margin-top: 8px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  border-radius: 12px;
}

/* --------- WhatsApp FAB (bottom-left) --------- */
.pp-wa-fab {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  direction: ltr;
}

.pp-wa-fab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  position: relative;
  z-index: 2;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pp-wa-fab:hover .pp-wa-fab-btn {
  transform: scale(1.06);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55);
}

.pp-wa-fab-pulse {
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: 1;
  animation: pp-wa-pulse 2s ease-out infinite;
}

@keyframes pp-wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.pp-wa-fab-tip {
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pp-wa-fab:hover .pp-wa-fab-tip,
.pp-wa-fab:focus .pp-wa-fab-tip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 575.98px) {
  .pp-topbar-inner {
    padding: 10px 12px;
    min-height: 64px;
    gap: 8px;
  }

  .pp-topbar-logo-wrap {
    width: 48px;
    height: 48px;
  }

  .pp-topbar-logo {
    width: 38px;
    height: 38px;
  }

  .pp-topbar-brand-text {
    font-size: 11px;
    max-width: 90px;
  }

  .pp-topbar-link {
    font-size: 12.5px;
    padding: 6px 8px;
  }

  .pp-topbar-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .pp-wa-fab {
    left: 14px;
    bottom: 16px;
  }

  .pp-wa-fab-tip {
    display: none;
  }

  .pp-wa-fab-btn,
  .pp-wa-fab-pulse {
    width: 54px;
    height: 54px;
  }
}

.pp-page {
  --pp-bg: #eef3f9;
  --pp-btn: #2563eb;
  --pp-text: #0f172a;
  --pp-muted: #64748b;
  --pp-border: #e2e8f0;
  --pp-card-radius: 20px;
  --pp-accent: #2563eb;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
    linear-gradient(180deg, #e8f0fb 0%, #f8fafc 40%, #ffffff 100%);
  min-height: 70vh;
  padding: 28px 16px 72px;
  color: var(--pp-text);
  font-family: inherit;
}

.pp-container {
  max-width: 1540px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 16px;
  padding-right: 16px;
}

/* --------- Hero --------- */
.pp-hero {
  text-align: center;
  margin: 8px auto 40px;
  max-width: 720px;
  padding: 0 8px;
}

.pp-eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--pp-btn);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.pp-hero-title {
  font-size: clamp(1.55rem, 4.2vw, 2.35rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.35;
  color: var(--pp-text);
  letter-spacing: -0.02em;
}

.pp-hero-sub {
  margin: 0 auto;
  max-width: 520px;
  color: var(--pp-muted);
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
  line-height: 1.7;
}

/* --------- Monthly / Yearly pill switch (label — track — label) --------- */
.pp-billing-switch {
  --pp-switch: #22c55e;
  --pp-switch-bg: #ffffff;
  --pp-switch-border: #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
  max-width: 100%;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.pp-billing-label {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  cursor: default;
  pointer-events: none;
  user-select: none;
  transition: color 0.2s ease, transform 0.2s ease;
  min-width: 3.2em;
  text-align: center;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pp-billing-label:hover {
  color: #fff;
}

.pp-billing-label.is-active {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.pp-billing-label-years {
  min-width: auto;
}

.pp-yearly-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
  letter-spacing: 0.01em;
  max-width: 11em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-billing-track {
  border: 0;
  background: transparent;
  padding: 6px;
  margin: 0 -6px;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  position: relative;
  z-index: 2;
}

.pp-billing-track:hover .pp-billing-track-inner {
  border-color: #16a34a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.pp-billing-track:active .pp-billing-thumb {
  transform: translateY(-50%) scale(0.94);
}

.pp-billing-track-inner {
  position: relative;
  display: block;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--pp-switch-bg);
  border: 2px solid var(--pp-switch-border);
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pp-billing-thumb {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pp-switch);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.45);
  transform: translateY(-50%);
  /* logical: moves toward monthly (first label) or yearly (last label) in both LTR & RTL */
  inset-inline-start: 3px;
  inset-inline-end: auto;
  transition: inset-inline-start 0.22s cubic-bezier(0.4, 0, 0.2, 1),
              inset-inline-end 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Monthly → thumb beside "شهري" (inline-start side of track) */
.pp-billing-switch.is-months .pp-billing-thumb {
  inset-inline-start: 3px;
  inset-inline-end: auto;
}

/* Yearly → thumb beside "سنوي" (inline-end side of track) */
.pp-billing-switch.is-years .pp-billing-thumb {
  inset-inline-start: auto;
  inset-inline-end: 3px;
}

.pp-billing-track:focus-visible .pp-billing-track-inner,
.pp-billing-label:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Multi-category tabs (3+ billing categories) */
.pp-billing-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
  max-width: 100%;
}

.pp-billing-tab {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pp-billing-tab:hover {
  color: #fff;
}

.pp-billing-tab.is-active {
  color: #1e3a8a;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.pp-billing-tab:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* Legacy segmented control (subscription or old markup) */
.pp-toggle {
  display: inline-flex;
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  padding: 5px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  gap: 2px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.pp-toggle-btn {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: var(--pp-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.pp-toggle-btn.is-active {
  background: var(--pp-btn);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.pp-toggle-save {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
}

.pp-toggle-btn:not(.is-active) .pp-toggle-save {
  background: #dbeafe;
  color: #1d4ed8;
}

/* --------- Packages grid --------- */
.pp-packages {
  width: 100%;
}

.pp-packages .pp-grid,
.pp-grid {
  --pp-card-max: 360px;
  display: grid;
  /* Fixed card width band — never stretch a single card full-row */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), var(--pp-card-max)));
  gap: 22px;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.pp-card-wrap {
  display: flex;
  min-width: 0;
  width: 100%;
  max-width: var(--pp-card-max, 360px);
  justify-self: center;
}

.pp-card-wrap.is-hidden-interval {
  display: none !important;
}

.pp-card {
  --pp-card-bg: #fff;
  --pp-accent: #2563eb;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--pp-card-bg);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-card-radius);
  padding: 30px 26px 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-height: 100%;
}

.pp-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.pp-is-featured .pp-card {
  border-color: var(--pp-accent);
  border-width: 2px;
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pp-card-dark {
  background: linear-gradient(160deg, #0f2744 0%, #1e3a5f 100%);
  color: #fff;
  border-color: #1e3a5f;
}

.pp-card-dark .pp-plan-name,
.pp-card-dark .pp-price-main,
.pp-card-dark .pp-desc,
.pp-card-dark .pp-feature,
.pp-card-dark .pp-footer-note,
.pp-card-dark .pp-plan-name-sub {
  color: #fff;
}

.pp-card-dark .pp-desc,
.pp-card-dark .pp-footer-note,
.pp-card-dark .pp-plan-name-sub,
.pp-card-dark .pp-price-interval {
  color: rgba(255, 255, 255, 0.75);
}

.pp-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #1d4ed8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
  z-index: 2;
}

.pp-current-tag {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.pp-card-head {
  text-align: center;
  margin-top: 8px;
}

.pp-plan-icon {
  font-size: 22px;
  color: var(--pp-btn);
  margin-bottom: 8px;
}

.pp-plan-name {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--pp-text);
  word-break: break-word;
}

.pp-plan-name-sub {
  font-size: 12px;
  color: var(--pp-muted);
  margin-top: 3px;
}

.pp-price-block {
  text-align: center;
  margin: 16px 0 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.pp-card-dark .pp-price-block {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.pp-price-main {
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--pp-btn);
  word-break: break-word;
}

.pp-card-dark .pp-price-main {
  color: #fff;
}

.pp-price-interval {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--pp-muted);
  white-space: nowrap;
}

.pp-price-sub {
  font-size: 13px;
  color: var(--pp-muted);
  margin-top: 8px;
  line-height: 1.45;
}

.pp-price-sub-frame {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1.5px solid #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  max-width: 100%;
  letter-spacing: 0.01em;
}

.pp-card-dark .pp-price-sub-frame {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: none;
}

.pp-discount {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  background: #d1fae5;
  padding: 4px 11px;
  border-radius: 999px;
  line-height: 1.4;
}

.pp-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--pp-muted);
  line-height: 1.55;
}

/* --------- Features + View more --------- */
.pp-features {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  flex: 1 1 auto;
}

.pp-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 7px 0;
  color: #1e293b;
  border-bottom: 1px solid #f8fafc;
}

.pp-feature:last-child {
  border-bottom: 0;
}

/* Strong hide — wins over utility frameworks */
.pp-feature.pp-feature-extra.pp-hidden,
.pp-feature.pp-feature-extra.is-hidden,
.pp-features .pp-feature.pp-hidden,
.pp-features .pp-feature.is-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.pp-feature.pp-feature-extra:not(.pp-hidden):not(.is-hidden) {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
}

.pp-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.pp-card-dark .pp-check {
  background: rgba(125, 211, 252, 0.15);
  color: #7dd3fc;
}

.pp-view-more {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px dashed #93c5fd !important;
  border-radius: 12px;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 5;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}

.pp-view-more:hover,
.pp-view-more:focus {
  background: #eff6ff;
  border-color: #93c5fd;
  outline: none;
}

.pp-view-more .pp-vm-icon {
  font-size: 12px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.pp-view-more.is-expanded .pp-vm-icon {
  transform: rotate(180deg);
}

.pp-card-dark .pp-view-more {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}

.pp-card-footer {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
}

.pp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: 0.2s ease;
  box-sizing: border-box;
}

.pp-btn-outline {
  border: 1.5px solid var(--pp-btn);
  color: var(--pp-btn) !important;
  background: #fff;
}

.pp-btn-outline:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--pp-btn) !important;
}

.pp-btn-solid {
  background: var(--pp-btn);
  color: #fff !important;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.pp-btn-solid:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.pp-card-dark .pp-btn {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
  background: transparent;
}

.pp-card-dark .pp-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pp-btn-muted {
  background: #e2e8f0;
  color: #475569 !important;
  border: 0;
  cursor: default;
}

.pp-footer-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--pp-muted);
  line-height: 1.45;
}

/* --------- Special / CTA / Slider --------- */
.pp-special {
  margin-top: 48px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  width: 100%;
  background: linear-gradient(145deg, #22c55e 0%, #16a34a 48%, #15803d 100%);
  border-radius: 22px;
  padding: 22px 18px 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Soft light wash — keeps green, cleaner depth */
.pp-special::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 0, 0, 0.08), transparent 50%);
  pointer-events: none;
}

.pp-special-header {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.pp-special-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.pp-special-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}

.pp-special-chip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 0;
  height: auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: start;
}

.pp-special-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  color: #fff !important;
}

.pp-special-chip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pp-special-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pp-special-chip-text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: start;
  max-width: none;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .pp-special {
    padding: 24px 22px 20px;
    max-width: 1060px;
  }

  .pp-special-header {
    margin-bottom: 16px;
  }

  .pp-special-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pp-special-chip {
    padding: 11px 14px;
    font-size: 13.5px;
    gap: 12px;
  }

  .pp-special-icon {
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 1100px) {
  .pp-special {
    max-width: 1120px;
    padding: 26px 24px 22px;
  }

  .pp-special-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .pp-special-chip {
    padding: 12px 14px;
  }

  .pp-special-chip-text {
    font-size: 13.5px;
  }
}

.pp-slider-section {
  margin-top: 40px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.pp-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.pp-slide {
  display: none;
  position: relative;
  min-height: 200px;
  color: var(--slide-fg, #fff);
  background: var(--slide-bg, #1d4ed8);
  overflow: hidden;
}

/* soft decorative orbs — keep banner from feeling empty */
.pp-slide::before,
.pp-slide::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.pp-slide::before {
  width: 260px;
  height: 260px;
  top: -90px;
  inset-inline-end: -60px;
  background: rgba(255, 255, 255, 0.1);
}

.pp-slide::after {
  width: 180px;
  height: 180px;
  bottom: -70px;
  inset-inline-start: -40px;
  background: rgba(0, 0, 0, 0.08);
}

.pp-slide.is-active {
  display: block;
}

.pp-slide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* نص ~35% | صورة ~65% — يشبه الإطار الأحمر في التصميم */
  grid-template-columns: minmax(200px, 0.9fr) minmax(58%, 1.7fr);
  align-items: stretch;
  gap: 14px 20px;
  min-height: 220px;
  padding: 12px 16px 12px 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Media column first in visual RTL when DOM is body then media — reorder for RTL layout:
   body (text) then media in HTML — with grid, place media in the second column toward left in RTL */
.pp-slide-body {
  grid-column: 1;
  grid-row: 1;
  flex: none;
  min-width: 0;
  max-width: none;
  text-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-inline: 8px 4px;
  box-sizing: border-box;
}

.pp-slide-media {
  grid-column: 2;
  grid-row: 1;
  flex: none;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  min-height: 196px;
  align-self: stretch;
}

.pp-slide-img {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 196px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.1);
  display: block;
}

.pp-slide-icon {
  width: 100%;
  min-height: 196px;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pp-slide.no-media .pp-slide-inner {
  grid-template-columns: 1fr;
  justify-content: center;
  min-height: 160px;
  padding: 28px 24px;
}

.pp-slide.no-media .pp-slide-body {
  grid-column: 1;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding-inline: 0;
}

.pp-slide-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: inherit;
}

.pp-slide-desc {
  margin: 0 0 16px;
  opacity: 0.92;
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 34em;
}

.pp-slide.no-media .pp-slide-desc {
  margin-left: auto;
  margin-right: auto;
}

.pp-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #fff;
  color: #0f172a !important;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: fit-content;
}

.pp-slide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  color: #0f172a !important;
}

html[dir="rtl"] .pp-slide-btn .fa {
  transform: scaleX(-1);
}

.pp-slide.no-media .pp-slide-btn {
  margin-inline: auto;
}

.pp-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.pp-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: width 0.15s ease, background 0.15s ease;
}

.pp-slider-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--pp-btn);
}

@media (max-width: 639.98px) {
  .pp-slide-inner {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
    min-height: 0;
  }

  .pp-slide-body,
  .pp-slide-media {
    grid-column: 1;
  }

  .pp-slide-media {
    min-height: 140px;
    grid-row: 1;
  }

  .pp-slide-body {
    grid-row: 2;
    text-align: center;
    padding-inline: 4px;
  }

  .pp-slide-img {
    min-height: 140px;
    height: 150px;
  }

  .pp-slide-icon {
    min-height: 120px;
  }

  .pp-slide-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .pp-slide-btn {
    margin-inline: auto;
  }
}

.pp-cta {
  --pp-cta-ink: #0f2744;
  margin-top: 36px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
  width: 100%;
  text-align: start;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0.96) 42%, #fff 100%),
    #fff;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 10px 28px rgba(30, 64, 175, 0.08);
  box-sizing: border-box;
}

/* Soft decorative wash */
.pp-cta::before {
  content: "";
  position: absolute;
  inset-inline-start: -40px;
  top: -50%;
  width: 220px;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 68%);
  pointer-events: none;
}

.pp-cta::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8 55%, #16a34a);
  border-radius: 0 18px 18px 0;
  pointer-events: none;
}

html[dir="rtl"] .pp-cta::after {
  border-radius: 18px 0 0 18px;
}

.pp-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px 22px;
  padding: 18px 22px 18px 18px;
}

.pp-cta-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pp-cta-icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32);
}

.pp-cta-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 0.78rem;
  opacity: 0.9;
}

.pp-cta-dots .fa {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef4ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.pp-cta-copy {
  min-width: 0;
}

.pp-cta-title,
.pp-cta h2,
.pp-cta .pp-cta-title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 800;
  color: var(--pp-cta-ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pp-cta-sub,
.pp-cta p,
.pp-cta .pp-cta-sub {
  margin: 0;
  color: #5b6b80;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 42em;
}

.pp-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
}

.pp-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  white-space: nowrap;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pp-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.35);
  color: #fff !important;
}

.pp-cta-btn .fa {
  font-size: 1.05rem;
}

.pp-cta-note {
  font-size: 11.5px;
  color: #7b8ba0;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 767.98px) {
  .pp-cta::after {
    width: 100%;
    height: 4px;
    top: auto;
    bottom: 0;
    inset-inline: 0;
    border-radius: 0 0 16px 16px;
  }

  .pp-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 12px;
    padding: 18px 16px 16px;
  }

  .pp-cta-visual {
    flex-direction: row;
    gap: 10px;
  }

  .pp-cta-sub,
  .pp-cta p {
    max-width: 28em;
  }

  .pp-cta-actions {
    width: 100%;
    max-width: 320px;
  }

  .pp-cta-btn {
    width: 100%;
  }
}

.pp-page-footer {
  text-align: center;
  color: var(--pp-muted);
  font-size: 13px;
  margin: 28px 0 0;
  line-height: 1.7;
  padding: 0 8px;
}

.pp-empty {
  grid-column: 1 / -1;
  padding: 24px;
}

/* ========== Subscription page layout ========== */
.pp-sub-wrap {
  max-width: 1280px;
  margin: 0 auto;
}

.pp-sub-wrap .pp-page {
  padding: 0;
  background: transparent;
  min-height: 0;
}

.pp-sub-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin: 0 0 20px;
  padding: 20px 20px 18px;
  background: linear-gradient(120deg, #eff6ff 0%, #fff 55%, #f0fdf4 100%);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}

.pp-sub-hero-main {
  flex: 1 1 auto;
}

.pp-sub-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.pp-sub-title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  color: #0f2744;
  line-height: 1.25;
}

.pp-sub-lead {
  margin: 0;
  color: #5b6b80;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 40em;
}

.pp-sub-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.pp-sub-nav[dir="rtl"] {
  direction: rtl !important;
  justify-content: flex-start;
}

.pp-sub-nav[dir="ltr"] {
  direction: ltr !important;
  justify-content: flex-start;
}

.pp-sub-nav .pp-sub-nav-link {
  order: 0 !important;
  width: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  justify-content: center;
}

.pp-sub-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #dbe7f8;
  background: #fff;
  color: #334155 !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: 0.15s ease;
}

.pp-sub-nav-link:hover {
  border-color: #93c5fd;
  color: #1d4ed8 !important;
  background: #f8fbff;
}

.pp-sub-nav-link.is-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.pp-sub-section {
  margin: 0 0 22px;
  padding: 18px 18px 20px;
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 80px;
}

.pp-sub-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

.pp-sub-section-title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f2744;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pp-sub-section-hint {
  margin: 0;
  color: #6b7c93;
  font-size: 13px;
  line-height: 1.5;
}

.pp-sub-packages {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.65) 0%, #fff 120px);
  overflow: hidden;
}

.pp-sub-pricing-page {
  padding: 4px 0 8px !important;
  background: transparent !important;
  min-height: 0 !important;
}

.pp-sub-pricing-hero {
  padding-top: 8px;
  padding-bottom: 8px;
}

.pp-sub-pricing-hero .pp-hero-title {
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
}

.pp-sub-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 800;
}

.pp-mod-empty {
  text-align: center;
  color: #64748b;
  padding: 18px 10px;
  font-size: 13.5px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

.pp-mod-extra.is-collapsed {
  display: none !important;
}

.pp-mod-cards {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.pp-mod-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.pp-mod-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pp-mod-card-name {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.pp-mod-card-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.pp-status-pill.is-muted {
  background: #f1f5f9;
  color: #64748b;
}

.pp-mod-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.pp-mod-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
}

.pp-mod-card-meta .fa {
  color: #2563eb;
  font-size: 11px;
}

.pp-mod-card-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #475569;
}

.pp-mod-card-dates strong {
  display: block;
  color: #0f172a;
  font-size: 11px;
  margin-bottom: 2px;
}

.pp-mod-card-bill {
  font-size: 12.5px;
  border-top: 1px solid #eef2f7;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pp-mod-card-bill a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.pp-mod-card-bill .pp-mod-inspect {
  flex-shrink: 0;
  margin-inline-start: auto;
}

.pp-mod-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.pp-mod-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.pp-mod-more:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.pp-mod-more .fa {
  transition: transform 0.2s ease;
  font-size: 12px;
}

.pp-mod-more.is-expanded .fa {
  transform: rotate(180deg);
}

.pp-sub-packages-body {
  padding-top: 4px;
}

.pp-active-card {
  background: linear-gradient(135deg, #f8fbff 0%, #fff 55%);
  border: 1px solid #dbe7f8;
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 18px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.05);
}

.pp-active-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.pp-active-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2744;
}

.pp-active-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
}

.pp-active-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.pp-active-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
  line-height: 1.4;
}

.pp-active-features .pp-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #dbeafe;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.pp-active-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
}

.pp-active-stat .fa {
  color: #2563eb;
  width: 14px;
  text-align: center;
}

.pp-active-stat.is-warn {
  background: #fff7ed;
  border-color: #fed7aa;
}

.pp-active-stat.is-warn .fa {
  color: #ea580c;
}

.pp-active-meta strong {
  color: #0f172a;
  margin-inline-end: 4px;
}

.pp-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d1fae5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}

.pp-active-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pp-active-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8 !important;
  white-space: nowrap;
}

.pp-active-actions a.pp-renew {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
}

.pp-active-actions a.pp-upgrade-btn {
  background: #fff;
  border-color: #93c5fd;
  color: #1d4ed8 !important;
}

.pp-upgrade-modal .modal-header {
  background: linear-gradient(120deg, #eff6ff, #fff);
  border-bottom: 1px solid #dbeafe;
}

.pp-upgrade-hint {
  color: #475569;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.pp-upgrade-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-upgrade-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.pp-upgrade-item h5 {
  margin: 0 0 6px;
  font-weight: 800;
  color: #0f172a;
  font-size: 15px;
}

.pp-upgrade-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 12.5px;
  color: #334155;
}

.pp-upgrade-diff {
  color: #047857;
  font-weight: 700;
}

.pp-upgrade-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  white-space: nowrap;
}

.pp-upgrade-pay:hover {
  background: #1d4ed8;
  color: #fff !important;
}

@media (max-width: 767.98px) {
  .pp-upgrade-item {
    flex-direction: column;
    align-items: stretch;
  }
  .pp-upgrade-pay {
    justify-content: center;
    width: 100%;
  }
}

.pp-active-empty {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed #fca5a5;
  background: #fff7f7;
}

.pp-active-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fee2e2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pp-active-empty h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #991b1b;
}

.pp-active-empty p {
  margin: 0;
  color: #7f1d1d;
  font-size: 13px;
}

.pp-sub-empty-cta {
  min-height: 42px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

.pp-sub-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pp-mini-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fafbfd;
}

.pp-mini-card.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.pp-mini-card.is-warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.pp-mini-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.pp-mini-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
}

.pp-mini-badge.is-warn {
  background: #fef3c7;
  color: #b45309;
}

.pp-mini-card p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}

.pp-mini-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  background: #16a34a;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none !important;
}

.pp-sub-table-card {
  border: 1px solid #e8eef5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.pp-sub-table {
  margin: 0 !important;
}

.pp-sub-table thead th {
  background: #f8fafc !important;
  color: #334155;
  font-weight: 700;
  font-size: 12.5px;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap;
}

.pp-sub-table > tbody > tr > td {
  font-size: 13px;
  vertical-align: middle;
}

.box-body .pp-grid {
  width: 100%;
  clear: both;
}

@media (max-width: 767.98px) {
  .pp-sub-hero {
    padding: 16px;
  }

  .pp-sub-nav {
    gap: 6px;
  }

  .pp-sub-nav-link {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    min-height: 40px;
    padding: 8px 10px;
  }

  .pp-active-card,
  .pp-active-empty {
    grid-template-columns: 1fr;
  }

  .pp-active-actions,
  .pp-sub-empty-cta {
    width: 100%;
  }

  .pp-active-actions a,
  .pp-sub-empty-cta {
    justify-content: center;
    flex: 1 1 auto;
  }

  .pp-sub-section {
    padding: 14px 12px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .pp-mod-cards {
    display: flex;
  }

  .pp-mod-table-wrap {
    display: none !important;
  }

  .pp-sub-pricing-hero {
    margin-bottom: 8px;
  }

  .pp-billing-switch {
    width: 100%;
    max-width: 100%;
    gap: 10px;
    padding: 10px 12px;
    justify-content: space-between;
  }

  .pp-billing-label {
    font-size: 13px;
    min-width: 0;
  }

  .pp-yearly-badge {
    max-width: 7.5em;
    font-size: 10px;
    padding: 2px 7px;
  }

  .pp-mod-card-dates {
    grid-template-columns: 1fr;
  }

  .pp-special-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pp-special-chip {
    font-size: 12px;
    padding: 10px 8px;
  }
}

@media (min-width: 768px) {
  .pp-mod-cards {
    display: none !important;
  }

  .pp-mod-table-wrap {
    display: block;
  }
}

/* --------- Responsive --------- */
@media (max-width: 639.98px) {
  .pp-packages .pp-grid,
  .pp-grid {
    grid-template-columns: minmax(0, var(--pp-card-max, 360px));
    justify-content: center;
  }
}

@media (min-width: 640px) and (max-width: 1099.98px) {
  .pp-packages .pp-grid,
  .pp-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, var(--pp-card-max, 360px)));
    gap: 18px;
    justify-content: center;
  }
}

@media (min-width: 1100px) {
  .pp-page {
    padding: 36px 20px 80px;
  }

  .pp-packages .pp-grid,
  .pp-grid {
    --pp-card-max: 360px;
    grid-template-columns: repeat(auto-fill, minmax(320px, var(--pp-card-max)));
    gap: 24px;
    justify-content: center;
  }

  .pp-is-featured .pp-card {
    transform: translateY(-4px);
  }
}

@media (min-width: 1500px) {
  .pp-packages .pp-grid,
  .pp-grid {
    --pp-card-max: 380px;
    grid-template-columns: repeat(auto-fill, minmax(340px, var(--pp-card-max)));
    max-width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .pp-page {
    padding: 16px 12px 48px;
  }

  .pp-hero {
    margin-bottom: 24px;
  }

  .pp-card {
    padding: 22px 18px 18px;
  }

  .pp-is-featured .pp-card {
    transform: none;
  }

  .pp-active-card {
    grid-template-columns: 1fr;
  }

  .pp-active-actions {
    width: 100%;
  }

  .pp-active-actions a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .pp-toggle-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .pp-billing-switch {
    gap: 10px;
    padding: 9px 14px;
    margin-top: 20px;
  }

  .pp-billing-label {
    font-size: 14px;
    min-width: 2.8em;
  }

  .pp-billing-track-inner {
    width: 48px;
    height: 26px;
  }

  .pp-billing-thumb {
    width: 18px;
    height: 18px;
  }

  .pp-special {
    padding: 18px 12px 14px;
    border-radius: 16px;
  }

  .pp-special-header {
    margin-bottom: 12px;
  }

  .pp-special-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pp-special-chip {
    min-height: 0;
    padding: 10px 12px;
    font-size: 12.5px;
    gap: 10px;
  }

  .pp-special-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .pp-special-chip-text {
    max-width: none;
    text-align: start;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .pp-card,
  .pp-view-more,
  .pp-special-chip,
  .pp-billing-thumb,
  .pp-billing-label {
    transition: none;
  }
}
