/* ==========================================
   PRICING V3 — NEW PLAN CARDS & CALCULATOR
   ========================================== */

/* ---- Plan grid ---- */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* ---- Card base ---- */
.pkg-card {
  background: #fff;
  border-radius: 20px;
  border: 2px solid #ede8fb;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.pkg-card:hover {
  box-shadow: 0 8px 32px rgba(123,93,214,0.1);
  border-color: #d4c9f2;
}
.pkg-card.pkg-card-featured {
  border-color: #7b5dd6;
  box-shadow: 0 8px 36px rgba(123,93,214,0.16);
}
.pkg-card.pricing-campaign {
  border-color: #ef4444;
  box-shadow: 0 8px 36px rgba(239,68,68,0.16);
}

/* ---- Popular badge ---- */
.pkg-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #4bb34b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  white-space: nowrap;
}

/* ---- Checkout toggle knob — force perfect vertical centering ---- */
.co-plan-toggle .switcher:before {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

/* ---- Selected state (checkout) ---- */
.pkg-card.plan-selected {
  border-color: #7b5dd6;
  box-shadow: 0 0 0 3px rgba(123,93,214,0.25), 0 8px 36px rgba(123,93,214,0.16);
}
.pkg-card.plan-selected .pkg-cta {
  background: linear-gradient(135deg, #5a3fb8, #7b5dd6);
}

/* ---- Card Head ---- */
.pkg-card-head {
  padding: 32px 28px 24px;
  text-align: center;
  border-bottom: 1px solid #f4f1fb;
}
.pkg-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a3e;
  margin-bottom: 6px;
}
.pkg-price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 4px 0;
}
.pkg-price-old {
  font-size: 1.35rem;
  color: #9b9bb5;
}
.pkg-price-amount {
  font-size: 2.6rem;
  font-weight: 900;
  color: #7b5dd6;
  line-height: 1;
}
.pkg-price-amount sup {
  font-size: 1.2rem;
  top: -12px;
  position: relative;
}
.pkg-price-period {
  font-size: 0.78rem;
  color: #9b9bb5;
  font-weight: 500;
}
/* Reserves consistent vertical space so credits box always aligns */
.pkg-price-optional {
  min-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.pkg-price-save {
  display: inline-block;
  background: #fef08a;
  color: #1a1a3e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-top: 6px;
}
.pkg-price-promo {
  font-size: 0.78rem;
  color: #7b5dd6;
  margin-top: 4px;
  font-weight: 500;
}

/* ---- Credits box ---- */
.pkg-credits-box {
  margin: 16px 0 0;
  background: linear-gradient(135deg, #f8f6fe, #ede8fb);
  border-radius: 12px;
  padding: 14px 16px;
}
.pkg-credits-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: #7b5dd6;
  line-height: 1;
}
.pkg-credits-label {
  font-size: 0.72rem;
  color: #6b6b8d;
  font-weight: 600;
  margin-top: 3px;
}
.pkg-credits-sub {
  font-size: 0.68rem;
  color: #9b9bb5;
  margin-top: 6px;
  line-height: 1.5;
}

/* ---- Card Body ---- */
.pkg-card-body {
  padding: 24px 28px;
  flex: 1;
  text-align: left;
}
.pkg-section-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: #b5b5cf;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pkg-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #f0edf7;
}
.pkg-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.pkg-feat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.pkg-feat-icon.ic-desc  { background: #eef6ff; color: #3b82f6; }
.pkg-feat-icon.ic-seo   { background: #fef9e7; color: #f59e0b; }
.pkg-feat-icon.ic-trans { background: #ecfdf5; color: #10b981; }
.pkg-feat-icon.ic-report { background: #fdf2f8; color: #ec4899; }
.pkg-feat-text { flex: 1; }
.pkg-feat-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a3e;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pkg-feat-value {
  font-size: 0.78rem;
  color: #6b6b8d;
  margin-top: 2px;
  line-height: 1.45;
}
.pkg-feat-value strong { color: #7b5dd6; font-weight: 800; }
.pkg-feat-chars-note { font-size: 0.68rem; color: #9b9bb5; }
.pkg-feature.is-off { opacity: 0.35; }
.pkg-feat-badge-off {
  font-size: 0.58rem;
  font-weight: 700;
  background: #f0edf7;
  color: #9b9bb5;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
}
.pkg-report-sep {
  margin: 6px 0;
  border: none;
  border-top: 2px dashed #ede8fb;
}

/* ---- Card Foot ---- */
.pkg-card-foot { padding: 0 28px 28px; }
.pkg-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7b5dd6, #9b7fe8);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.pkg-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123,93,214,0.3);
  color: #fff;
}
.pkg-trial {
  text-align: center;
  font-size: 0.72rem;
  color: #9b9bb5;
  margin-top: 8px;
  font-weight: 500;
  margin-bottom: 0;
}

/* ---- Extra credits note ---- */
.extra-credits-note {
  max-width: 780px;
  margin: 32px auto 0;
  padding: 20px 28px;
  background: #fff;
  border: 1px solid #ede8fb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.extra-credits-note-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ede8fb, #d4c9f2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #7b5dd6;
  flex-shrink: 0;
}
.extra-credits-note > p {
  font-size: 0.84rem;
  color: #3d3d5c;
  line-height: 1.6;
  margin: 0;
}
.extra-credits-note > p strong { color: #7b5dd6; font-weight: 700; }

/* ---- Calculator section ---- */
.calc-section {
  padding: 60px 0 80px;
  background: #f9f7fe;
}
.calc-header { text-align: center; margin-bottom: 40px; }
.calc-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: #1a1a3e;
  margin-bottom: 8px;
}
.calc-header p {
  font-size: 0.95rem;
  color: #6b6b8d;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}
.calc-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #ede8fb;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(123,93,214,0.06);
}
.calc-rows { padding: 32px 36px 20px; }
.calc-row {
  padding: 18px 0;
  border-bottom: 1px solid #ede8fb;
}
.calc-row:last-child { border-bottom: none; }
.calc-row-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.calc-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.calc-row-icon.ic-desc  { background: #eef6ff; color: #3b82f6; }
.calc-row-icon.ic-seo   { background: #fef9e7; color: #f59e0b; }
.calc-row-icon.ic-trans { background: #ecfdf5; color: #10b981; }
.calc-row-label {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a1a3e;
}
.calc-row-output { text-align: right; min-width: 100px; }
.calc-row-number {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}
.calc-row-number.n-desc  { color: #3b82f6; }
.calc-row-number.n-seo   { color: #f59e0b; }
.calc-row-number.n-trans { color: #10b981; }
.calc-row-unit {
  font-size: 0.62rem;
  color: #9b9bb5;
  font-weight: 500;
  margin-top: 2px;
}
.calc-slider-wrap {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}
.calc-slider-track {
  position: absolute;
  left: 0; right: 0;
  height: 8px;
  background: #e8e3f3;
  border-radius: 4px;
  overflow: hidden;
  pointer-events: none;
}
.calc-slider-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.12s ease;
}
.calc-slider-fill.f-desc  { background: linear-gradient(90deg, #93c5fd, #3b82f6); }
.calc-slider-fill.f-seo   { background: linear-gradient(90deg, #fde68a, #f59e0b); }
.calc-slider-fill.f-trans { background: linear-gradient(90deg, #6ee7b7, #10b981); }
input[type="range"].calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  background: transparent;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(123,93,214,0.18);
  box-shadow: 0 0 0 5px rgba(123,93,214,0.08), 0 2px 8px rgba(0,0,0,0.12);
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 3.5L1 8l4.5 4.5' stroke='%237b5dd6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.5 3.5L15 8l-4.5 4.5' stroke='%237b5dd6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
input[type="range"].calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 7px rgba(123,93,214,0.12), 0 3px 12px rgba(0,0,0,0.15);
}
input[type="range"].calc-range::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.18);
  box-shadow: 0 0 0 9px rgba(123,93,214,0.15), 0 4px 16px rgba(0,0,0,0.18);
}
input[type="range"].calc-range::-moz-range-thumb {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid rgba(123,93,214,0.18);
  box-shadow: 0 0 0 5px rgba(123,93,214,0.08), 0 2px 8px rgba(0,0,0,0.12);
  cursor: grab;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 3.5L1 8l4.5 4.5' stroke='%237b5dd6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.5 3.5L15 8l-4.5 4.5' stroke='%237b5dd6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}
input[type="range"].calc-range::-moz-range-track {
  background: transparent;
  border: none;
  height: 8px;
}
.calc-result {
  background: linear-gradient(135deg, #1a1a3e, #2d2560);
  padding: 28px 36px;
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex-wrap: wrap;
}
.calc-result-left { flex: 1; min-width: 200px; }
.calc-result-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.calc-result-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-top: 4px;
}
.calc-result-number span { color: #c4b5e8; font-size: 1rem; font-weight: 600; }
.calc-result-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.calc-rec-label {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 6px;
}
.calc-rec-box {
  background: rgba(123,93,214,0.2);
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 260px;
  backdrop-filter: blur(4px);
}
.calc-rec-plan-row { display: flex; align-items: center; gap: 10px; }
.calc-rec-plan-row .bi-check-circle-fill { color: #4bb34b; font-size: 1.1rem; flex-shrink: 0; }
.calc-rec-plan-name  { font-size: 1.05rem; font-weight: 800; color: #fff; }
.calc-rec-plan-credits { font-size: 0.68rem; color: #c4b5e8; font-weight: 600; }
.calc-rec-extras {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: none;
}
.calc-rec-extras-row { display: flex; align-items: center; gap: 8px; }
.calc-rec-extras-row .bi-plus-circle-fill { color: #fbbf24; font-size: 0.9rem; flex-shrink: 0; }
.calc-rec-extras-text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  line-height: 1.4;
}
.calc-rec-extras-text strong { color: #fbbf24; font-weight: 800; }
.calc-rec-extras-cost {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: 3px;
  padding-left: 26px;
}
.calc-rec-contact { display: none; text-align: center; }
.calc-rec-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.calc-rec-contact a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239,68,68,0.35);
  color: #fff;
}
.calc-rec-contact-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  font-weight: 500;
}
.calc-rec-default {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.calc-note {
  padding: 16px 36px;
  background: #f9f7fe;
  border-top: 1px solid #ede8fb;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #9b9bb5;
  font-weight: 500;
}
.calc-note i { color: #c4b5e8; font-size: 0.85rem; flex-shrink: 0; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .pkg-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    gap: 24px;
  }
  .extra-credits-note { flex-direction: column; text-align: center; }
  .calc-rows { padding: 24px 20px 16px; }
  .calc-result { padding: 24px 20px; flex-direction: column; align-items: stretch; }
  .calc-result-right { align-items: stretch; }
  .calc-rec-box { min-width: unset; }
  .calc-note { padding: 14px 20px; }
}
@media (max-width: 767px) {
  .pkg-card-head { padding: 24px 20px 20px; }
  .pkg-card-body { padding: 20px; }
  .pkg-card-foot { padding: 0 20px 20px; }
}
