/* ==========================================================================
   TECHSAVVY IT LTD. — DYNAMIC SERVICE PRICING SYSTEM STYLES (v4.1 Light+Navy)
   Matches Homepage v4.0: Dark Navy Hero + Crisp Light Content + Orange CTA
   ========================================================================== */

.ts-pricing-root {
  font-family: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ts-pricing-hero {
  padding: 2.75rem 0 2.75rem;
  background: linear-gradient(135deg, #060913 0%, #0B1B3A 55%, #14305F 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.ts-pricing-lang-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 27, 58, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.ts-pricing-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #CBD5E1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ts-pricing-lang-btn:hover {
  color: #ffffff;
}

.ts-pricing-lang-btn.active {
  background: #2563EB;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.ts-pricing-preview-banner {
  background: #F97316;
  color: #0B1B3A;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* Sticky Category & Service Navigation (Crisp White Bar) */
.ts-pricing-catnav {
  position: sticky;
  top: 76px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  padding: 0.75rem 0;
  box-shadow: 0 4px 16px rgba(11, 27, 58, 0.06);
}

.ts-pricing-pill-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.ts-pricing-pill {
  white-space: nowrap;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0B1B3A;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ts-pricing-pill:hover,
.ts-pricing-pill.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

/* 3 Fixed Package Cards (Crisp White + Brand Blue Popular Border + Orange Tag) */
.ts-pricing-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  box-shadow: 0 6px 24px rgba(11, 27, 58, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ts-pricing-card:hover {
  transform: translateY(-4px);
  border-color: #2563EB;
  box-shadow: 0 12px 32px rgba(11, 27, 58, 0.12);
}

.ts-pricing-card--popular {
  border: 2px solid #2563EB;
  background: #FFFFFF;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.14);
}

.ts-pricing-popular-tag {
  position: absolute;
  top: -13px;
  right: 20px;
  background: #F97316;
  color: #0B1B3A;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.ts-pricing-tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.24rem 0.68rem;
  border-radius: 6px;
  background: #EAF2FF;
  color: #0B1B3A;
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.ts-pricing-price-row {
  margin: 1rem 0 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #F7F9FC;
  border: 1px solid #E2E8F0;
}

.ts-pricing-price-val {
  font-family: var(--font-en);
  font-size: 2.15rem;
  font-weight: 800;
  color: #0B1B3A;
  line-height: 1.1;
}

.ts-pricing-price-cycle {
  font-size: 0.84rem;
  color: #475569;
  margin-top: 0.2rem;
}

.ts-pricing-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ts-pricing-meta-pill {
  font-size: 0.8rem;
  color: #0B1B3A;
  background: #EAF2FF;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  padding: 0.3rem 0.68rem;
  font-weight: 600;
}

.ts-pricing-suitable {
  font-size: 0.86rem;
  color: #14532D;
  background: #DCFCE7;
  border-left: 3px solid #16A34A;
  padding: 0.55rem 0.8rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.1rem;
}

/* Feature Comparison Matrix */
.ts-pricing-matrix-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 27, 58, 0.06);
}

.ts-pricing-matrix {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}

.ts-pricing-matrix thead th {
  position: sticky;
  top: 0;
  background: #0B1B3A;
  color: #FFFFFF;
  padding: 1rem;
  border-bottom: 2px solid #14305F;
  text-align: center;
  z-index: 5;
}

.ts-pricing-matrix thead th:first-child {
  text-align: left;
  width: 34%;
}

.ts-pricing-group-row td {
  background: #EAF2FF;
  color: #0B1B3A;
  font-weight: 800;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.72rem 1rem;
  border-top: 1px solid #CBD5E1;
  border-bottom: 1px solid #CBD5E1;
}

.ts-pricing-matrix tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
  vertical-align: middle;
}

.ts-pricing-matrix tbody td:not(:first-child) {
  text-align: center;
}

.ts-state-included {
  color: #15803D;
  font-weight: 700;
}

.ts-state-limited {
  color: #B45309;
  font-weight: 700;
}

.ts-state-not {
  color: #94A3B8;
}

.ts-tooltip-btn {
  background: #EAF2FF;
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
}

.ts-tooltip-popover {
  display: none;
  margin-top: 0.45rem;
  padding: 0.55rem 0.75rem;
  background: #F7F9FC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #334155;
}

.ts-tooltip-popover.open {
  display: block;
}

/* Mobile Comparison Switcher */
.ts-mobile-compare {
  display: none;
}

.ts-mobile-tier-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.ts-mobile-tier-btn {
  padding: 0.65rem 0.4rem;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0B1B3A;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.ts-mobile-tier-btn.active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

/* Add-ons Section */
.ts-addon-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  height: 100%;
  box-shadow: 0 4px 16px rgba(11, 27, 58, 0.05);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.ts-addon-card.is-selected {
  border-color: #16A34A;
  background: #F0FDF4;
}

.ts-addon-card.is-included {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.ts-addon-card.is-incompatible {
  opacity: 0.58;
  border-style: dashed;
}

.ts-summary-tray {
  background: #0B1B3A;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  margin-top: 1.5rem;
  color: #FFFFFF;
}

.ts-summary-tray h3,
.ts-summary-tray h4,
.ts-summary-tray strong {
  color: #FFFFFF !important;
}

.ts-summary-tray p,
.ts-summary-tray span {
  color: #E2E8F0;
}

/* Modal */
.ts-pricing-modal .modal-content {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  border-radius: 16px;
}

.ts-pricing-modal .modal-header,
.ts-pricing-modal .modal-footer {
  border-color: #E2E8F0;
}

.ts-summary-box {
  background: #F7F9FC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
  color: #0F172A;
}

@media (max-width: 991.98px) {
  .ts-desktop-compare {
    display: none;
  }
  .ts-mobile-compare {
    display: block;
  }
  .ts-pricing-catnav {
    top: 68px;
  }
  .ts-pricing-price-val {
    font-size: 1.85rem;
  }
}
