/* ================================
   PRICING SECTION SPACING
================================ */
#prices {
  padding-top: 120px;
  padding-bottom: 130px;
  background:
    radial-gradient(circle at top left, rgba(0,175,240,.08), transparent 40%),
    radial-gradient(circle at top right, rgba(15,94,168,.08), transparent 35%),
    linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 90px;
}

#prices::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: radial-gradient(circle at 30% 20%, rgba(0, 115, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.pricing-container {
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  #prices .pricing-container {
    padding-inline: clamp(16px, 3vw, 24px);
  }
}
/* ================================
   HEADINGS
================================ */
.pricing-heading {
  text-align: center;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(90deg, #0f5ea8, #00aff0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.pricing-subheading {
  text-align: center;
  color: #475569;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  max-width: 680px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

.pricing-subheading::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: linear-gradient(to right, #00aff0, #0073ff);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ================================
   CHANGE CITY BUTTON + REGION TITLE
================================ */
#change-city-btn {
  min-width: 160px;
  white-space: nowrap;
}

#region-title {
  margin-bottom: 50px;
}

#region-title .region-name {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0b3a66;
  margin-bottom: 10px;
}

#region-title .region-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  color: #64748b;
}

/* ================================
   GRID & SECTION
================================ */
.dpa-section {
  margin-bottom: 40px;
  width: 100%;
}

/* ================================
   BADGE
================================ */
.dpa-badge {
  position: static;
  margin-left: 6px;
  display: inline-flex;
  padding: 3px 8px;
  vertical-align: middle;
  font-size: clamp(0.55rem, 1.2vw, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff3d00);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  box-shadow: none;
  backdrop-filter: blur(6px);
}

/* ================================
   CARD STYLES
================================ */
.dpa-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;

  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;

  box-shadow:
    0 10px 30px rgba(15,94,168,.08),
    0 2px 10px rgba(0,0,0,.04);

  padding: 0;

  transition: all .4s cubic-bezier(.4,0,.2,1);
}

.dpa-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0f5ea8, #00aff0);
}

.dpa-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,175,240,.25);
  box-shadow: 0 25px 60px rgba(15,94,168,.15), 0 0 40px rgba(0,175,240,.12);
}

.dpa-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 115, 255, 0.12), rgba(0, 175, 240, 0.18), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Popular Plan */
.dpa-card.popular {
  border: 2px solid #00aff0;
  box-shadow: 0 20px 50px rgba(0,175,240,.18);
  margin-top: -8px;
}

.dpa-card.popular .dpa-badge {
  top: -10px;
  animation: pulseBadge 2s infinite;
  padding: 5px 10px;
  font-size: 9px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.22);
}

.dpa-card.popular .dpa-price {
  color: #0f5ea8;
}

.dpa-card.popular::after {
  background: linear-gradient(90deg, #00aff0, #4fd8ff);
}

@keyframes pulseBadge {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* Card Inner Elements */
.dpa-card-inner {
  display: flex;
  flex: 1;
  flex-direction: column;

  gap: clamp(7px, .9vw, 12px);

  padding: clamp(20px, 3vw, 28px);
}

.dpa-card .dpa-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 10px 0;
}

/* Image */
.dpa-card .dpa-image {
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f8fbff;
  border-radius: 12px;
  padding: 14px;
}

.dpa-card .dpa-image img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.dpa-card:hover .dpa-image img {
  transform: scale(1.06);
}

/* Price */
.dpa-price {
  display: inline-flex;
  justify-content: center;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #0b3a66;
  letter-spacing: -0.04em;
  gap: 2px;
  margin: 0;
}

.dpa-currency {
  font-size: 0.55em;
  margin-top: -0.25em;
  opacity: 0.85;
}

.dpa-price-value {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
}

.dpa-price-period {
  font-size: 0.9rem;
  font-weight: 700;
  color: #475569;
  margin-left: 4px;
  align-self: flex-end;
  margin-bottom: 6px;
}

/* Package Name */
.dpa-package-name {
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.dpa-package-name i {
  color: #00aff0;
}

/* Description & Features */
.dpa-description {
  text-align: center;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  color: #666;
  line-height: 1.4;
}

.dpa-features {
  padding: 0;
  min-height: 170px;
  max-height: 170px;
  overflow: hidden;
  position: relative;
}

.dpa-feature {
  position: relative;
  list-style: none;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid rgba(15,94,168,.06);
  line-height: 1.4;
  margin-bottom: 6px;
  color: #3a3a3a;
  font-size: 0.95rem;
}

.dpa-feature:last-child {
  border-bottom: none;
}

.dpa-feature:before {
  content: "\2713";
  color: #00c853;
  font-weight: bold;
  background: rgba(0, 200, 83, 0.1);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  position: absolute;
  left: 0;
  margin-top: 2px;
}

.dpa-features::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}

.dpa-show-more {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  color: #0073ff;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

/* Optional feature states */
.dpa-feature.highlight {
  font-weight: 600;
  color: #0073ff;
}

.dpa-feature.disabled {
  opacity: 0.4;
  text-decoration: line-through;
}

.dpa-card-actions {
  margin-top: auto;

  padding: 18px 24px 24px;

  border-top: 1px solid rgba(15,94,168,.08);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0),
      rgba(248,251,255,.96)
    );
}
/* ================================
   BUTTON BASE
================================ */
#prices .dpa-btn {
 flex: 1 1 0;
  min-width: 0;
  height: 52px;
  padding: 0 22px;       /* more breathing room */
  text-align: center;    /* force centering */
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 10px;

  font-weight: 600;
  font-size: 0.88rem;

  line-height: 1;
  white-space: nowrap;

  position: relative;
  overflow: hidden;

  transition: transform .18s ease, box-shadow .18s ease;
}

/* ================================
   PRIMARY CTA (BUY / WHATSAPP)
================================ */
.dpa-btn-cta {
  background: linear-gradient(135deg, #0f5ea8 0%, #0073ff 55%, #00aff0 100%);
  color: #fff;

  box-shadow: 0 10px 24px rgba(0,115,255,.22);
}

/* WhatsApp override */
.dpa-btn-cta.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
}

/* ================================
   SECONDARY CTA (DETAILS)
================================ */
.dpa-btn-details {
  background: rgba(15, 94, 168, 0.12);
  color: #0f5ea8;

  border: 1px solid rgba(15, 94, 168, 0.25);

  box-shadow: none;
  opacity: 1;
}

/* ================================
   HOVER / ACTIVE
================================ */
.dpa-btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.dpa-btn:active {
  transform: translateY(0px) scale(0.98);
}

/* ================================
   SHINE EFFECT
================================ */
.dpa-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .7s ease;
}

.dpa-btn:hover::before {
  left: 140%;
}

@media (hover: hover) {
  .dpa-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    transition: left .7s ease;
  }

  .dpa-btn:hover::before {
    left: 140%;
  }
}
/* ================================
   ICON FIX
================================ */
.dpa-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  flex-shrink: 0;
}

/* ================================
   FOCUS STATES
================================ */
.dpa-btn:focus-visible {
  outline: 3px solid rgba(15,94,168,.35);
  outline-offset: 3px;
}

.dpa-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 10px;

  width: 100%;
}


/* ================================
   RegionGate Modal
================================ */
#regionGateModal .modal-header {
  background: #0f5ea8;
  color: #fff;
  border-bottom: none;
  text-align: center;
}

#regionGateModal .modal-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}

#regionGateModal .modal-footer {
  background: #f5f5f5;
  border-top: none;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

#regionGateModal .modal-content {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

#regionGateModal .modal-body {
  flex: 1;
  overflow-y: auto;
}

/* Search */
#regionGateModal #city-search {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

#regionGateModal #city-search:focus {
  border-color: #f9a825;
  box-shadow: 0 0 0 2px rgba(249, 168, 37, 0.22);
  outline: none;
}

/* Region List */
#regionGateModal #region-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: inherit;
}

/* Region Item */
#regionGateModal .region-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: #1f2937;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.region-item.active {
  border-color: #0f5ea8;
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(15, 94, 168, 0.15);
  font-weight: 600;
}

.region-icon { font-size: 16px; color: #0f5ea8; }
.region-title { font-size: 0.95rem; color: #1f2937; font-weight: 500; }
.region-empty {
  text-align: center;
  padding: 20px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* ================================
   Package Modal
================================ */
#dynamicPackageModal .modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  background: #ffffff;
}

#dynamicPackageModal .modal-header {
  background: linear-gradient(135deg, #0b3a66, #0f5ea8);
  color: #fff;
  border-bottom: none;
  padding: 18px 22px;
}

#dynamicPackageModal .modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: inherit;
}

/* ================================
   CLOSE BUTTON
================================ */
#dynamicPackageModal .btn-close {
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 12px;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  background-color: rgba(15, 94, 168, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

#dynamicPackageModal .btn-close:hover {
  background-color: rgba(15, 94, 168, 0.35);
  transform: scale(1.08);
}

#dynamicPackageModal .btn-close:active {
  transform: scale(0.92);
  background-color: rgba(15, 94, 168, 0.45);
}

#dynamicPackageModal .btn-close:focus {
  box-shadow: 0 0 0 3px rgba(15, 94, 168, 0.25);
  outline: none;
}

/* Modal Body */
#dynamicPackageModal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 22px;
  background: #f7f9fc;
  color: #1f2937;
  scrollbar-width: thin;
  scrollbar-color: #0f5ea8 #e5e7eb;
}

/* Footer */
#dynamicPackageModal .dpa-footer {
  padding: 18px 20px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
}

#dynamicPackageModal .dpa-btn-cta {
  min-height: 46px;
  max-width: 260px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #128c7e);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ================================
   SECTIONS & CONTENT
================================ */
#dynamicPackageModal .modal-section {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(15, 94, 168, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#dynamicPackageModal .modal-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f5ea8;
  margin-bottom: 12px;
}

/* Lists */
#dynamicPackageModal .dpa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#dynamicPackageModal .dpa-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
  margin-bottom: 12px;
}

#dynamicPackageModal .dpa-list li i {
  margin-top: 3px;
  font-size: 0.9rem;
  min-width: 16px;
}

#dynamicPackageModal .dpa-list li strong {
  color: #111827;
}

/* Apps Grid */
#dynamicPackageModal .modal-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  align-items: stretch;
}

/* APP CARD */
#dynamicPackageModal .app-item {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 6px;

  text-align: center;

  /* KEY FIX: reduce "bulk" */
  min-height: 92px;
  padding: 10px 8px;

  border-radius: 12px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(15, 94, 168, 0.06);

  cursor: pointer;

  transition: all 0.18s ease;
}

/* HOVER (subtle only) */
#dynamicPackageModal .app-item:hover {
  transform: translateY(-2px);

  background: #fbfdff;

  border-color: rgba(0, 115, 255, 0.14);

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

/* ICON */
#dynamicPackageModal .dpa-app-icon {
  width: 38px;
  height: 38px;

  object-fit: contain;

  border-radius: 10px;

  background: #f8fbff;

  padding: 5px;

  box-shadow: inset 0 0 0 1px rgba(15, 94, 168, 0.04);

  transition: transform 0.18s ease, background 0.18s ease;
}

#dynamicPackageModal .app-item:hover .dpa-app-icon {
  transform: scale(1.04);
  background: #f0f7ff;
}

/* LABEL */
#dynamicPackageModal .app-name {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;

  color: #475569;

  letter-spacing: -0.01em;

  max-width: 100%;
}

/* ================================
   FEATURES (UNCHANGED BUT CLEANER FEEL)
================================ */

#dynamicPackageModal .feature-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #374151;
  border: 1px solid rgba(15, 94, 168, 0.06);
  display: flex;
  align-items: flex-start;
}

/* ================================
   TAGS (UNCHANGED)
================================ */

#dynamicPackageModal .dpa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#dynamicPackageModal .dpa-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 9px;

  font-size: 0.72rem;
  font-weight: 600;

  border-radius: 999px;

  background: #f0f7ff;
  color: #0f5ea8;

  border: 1px solid rgba(15,94,168,.12);
}

#dynamicPackageModal .dpa-tag i {
  font-size: 0.7rem;
}

/* ================================
   RESPONSIVE SYSTEM (CLEAN)
================================ */
/* ================================
   TABLET (≤ 991px)
   Layout tightening only
================================ */
@media (max-width: 991px) {

  .dpa-card,
  #dynamicPackageModal .app-item {
    backdrop-filter: none;
  }

  .dpa-btn {
    min-height: 46px;
  }

  .dpa-btn-group {
    gap: 8px;
  }
}

/* ================================
   SMALL TABLET (≤ 768px)
   Typography + spacing adjustments
================================ */
@media (max-width: 768px) {

  #region-title .region-name {
    font-size: 1.85rem;
  }

  #region-title .region-subtitle {
    font-size: 1rem;
  }

  #change-city-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
  }

  .dpa-card.popular {
    transform: none;
  }
}

/* ================================
   MOBILE (≤ 599px)
   Layout shift + stacking allowed here only
================================ */
@media (max-width: 599px) {

  /* Card spacing */
  .dpa-card {
    padding: 16px;
  }

  /* Button system becomes flexible */
.dpa-btn-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

  #prices .dpa-btn {
  flex: unset;
  width: 100%;
  }

  /* Feature cleanup */
  .dpa-features {
    min-height: auto;
    max-height: none;
  }
}

/* Touch devices only */
@media (hover: none) {
  .dpa-btn-cta:hover,
  .dpa-btn-details:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  }

  .dpa-btn::before {
    display: none;
  }
}

/* ================================
   TRUE ISOLATION MODE
================================ */

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

/* HARD freeze background interaction */
body.modal-isolated > *:not(.modal) {
  pointer-events: none;
  user-select: none;
}

/* Prevent scrollbar shift without position: fixed */
body.modal-isolated {
  padding-right: var(--scrollbar-compensation, 0px);
} 