/* ============================================================
   PRICING PAGE STYLES — vikesh codes
   Premium, SaaS-grade, credit-based pricing calculator
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.pricing-hero {
  background: linear-gradient(
    135deg,
    hsl(220 30% 6%) 0%,
    hsl(210 35% 9%) 50%,
    hsl(175 40% 8%) 100%
  );
  position: relative;
  overflow: hidden;
  padding-block: 5rem 4rem;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(94, 234, 212, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff 40%, rgba(94, 234, 212, 0.85));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero p {
  max-width: 52rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

/* ── Currency Toggle ──────────────────────────────────────── */
.pricing-currency-toggle {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
}

.currency-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.currency-btn.is-active {
  background: var(--accent);
  color: #081017;
}

/* ── Main Layout ──────────────────────────────────────────── */
.pricing-main {
  padding-block: 3rem 5rem;
}

.pricing-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.pricing-section:last-child {
  border-bottom: none;
}

.pricing-section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.pricing-section-header h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.pricing-section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.pricing-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #081017;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 0.15rem;
  box-shadow: 0 0 20px rgba(94, 234, 212, 0.3);
}

/* ── Plan Grid ────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.plan-card {
  position: relative;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: var(--surface);
  padding: 1.6rem 1.3rem;
  cursor: pointer;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base),
    background var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(94, 234, 212, 0.1);
}

.plan-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(
    145deg,
    rgba(94, 234, 212, 0.06) 0%,
    rgba(94, 234, 212, 0.02) 100%
  );
  box-shadow: 0 0 0 1px var(--accent), 0 16px 50px rgba(94, 234, 212, 0.15);
}

.plan-card.is-popular::before {
  content: "Most Popular";
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-tier {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-name {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

.plan-price-display {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.plan-price-main {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.plan-price-range {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.plan-credits {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.plan-credits::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

.plan-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.plan-select-indicator {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  margin-top: auto;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.plan-card.is-selected .plan-select-indicator {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.5);
}

/* ── Feature Groups ───────────────────────────────────────── */
.feature-groups {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.feature-group {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
}

.feature-group-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.3rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.feature-group-icon {
  font-size: 1.1rem;
}

.feature-group-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
}

.feature-group-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-left: auto;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.feature-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition:
    background var(--transition-base);
  background: transparent;
}

.feature-item:nth-child(3n) {
  border-right: none;
}

.feature-item:nth-last-child(-n+3) {
  border-bottom: none;
}

.feature-item:hover {
  background: rgba(94, 234, 212, 0.03);
}

.feature-item.is-selected {
  background: rgba(94, 234, 212, 0.05);
}

.feature-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 4px;
  border: 2px solid var(--line);
  background: transparent;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.feature-item.is-selected .feature-checkbox {
  border-color: var(--accent);
  background: var(--accent);
}

.feature-item.is-selected .feature-checkbox::after {
  content: "✓";
  color: #081017;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
}

.feature-item-body {
  flex: 1;
  min-width: 0;
}

.feature-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1.3;
}

.feature-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  display: block;
}

.feature-item-credits {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-top: 0.1rem;
}

/* ── App Toggle ───────────────────────────────────────────── */
.app-addon-section .pricing-section-header {
  align-items: center;
}

.app-toggle-wrapper {
  margin-left: auto;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 3rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 2px solid var(--line);
  position: relative;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.toggle-switch input:checked ~ .toggle-track {
  background: var(--accent);
  border-color: var(--accent);
}

.toggle-knob {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-base);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked ~ .toggle-track .toggle-knob {
  left: calc(100% - 1.3rem);
  background: #081017;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.app-feature-panel {
  margin-top: 1.5rem;
  animation: panel-enter 300ms ease forwards;
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Config Layout ────────────────────────────────────────── */
.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.8rem;
  align-items: start;
}

.glass-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.8rem;
}

.config-card-title {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 1.4rem;
}

/* ── Complexity Options ───────────────────────────────────── */
.complexity-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.complexity-option {
  cursor: pointer;
}

.complexity-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.complexity-card-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-xs);
  border: 2px solid var(--line);
  background: var(--surface-soft);
  transition: all var(--transition-base);
}

.complexity-card-inner:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.complexity-option input:checked + .complexity-card-inner {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.05);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.3);
}

.complexity-icon {
  grid-row: 1 / 3;
  font-size: 1.5rem;
}

.complexity-name {
  font-weight: 700;
  font-size: 0.95rem;
  grid-column: 2;
  grid-row: 1;
}

.complexity-factor {
  grid-column: 3;
  grid-row: 1 / 3;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  font-family: "Syne", sans-serif;
}

.complexity-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  grid-column: 2;
  grid-row: 2;
}

/* ── Live Pricing Panel ───────────────────────────────────── */
.live-pricing-panel {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: linear-gradient(
    145deg,
    rgba(14, 20, 28, 0.95) 0%,
    rgba(10, 14, 20, 0.98) 100%
  );
  border-color: rgba(94, 234, 212, 0.18);
}

.live-panel-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.8s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(125, 237, 185, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(125, 237, 185, 0); }
}

.live-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--success);
}

.live-plan-name {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Credit Progress Bar ──────────────────────────────────── */
.credit-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.credit-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.credit-progress-bar {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: visible;
  position: relative;
}

.credit-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  min-width: 0;
}

.credit-progress-fill.is-over {
  background: linear-gradient(90deg, #facc15, #f59e0b);
}

.credit-progress-fill.is-way-over {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.credit-progress-zones {
  position: relative;
  height: 1.2rem;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.zone-marker {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}

.zone-discount1 { color: #facc15; }
.zone-discount2 { color: #f87171; }

/* ── Breakdown ────────────────────────────────────────────── */
.pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--line);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  gap: 0.5rem;
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row span:last-child {
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

.discount-row {
  background: rgba(248, 113, 113, 0.05);
}

.discount-value {
  color: var(--success) !important;
}

/* ── Formula ──────────────────────────────────────────────── */
.pricing-formula {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(94, 234, 212, 0.12);
  border-radius: var(--radius-xs);
  padding: 0.7rem 0.9rem;
  text-align: center;
}

.pricing-formula code {
  font-family: "Manrope", monospace;
  font-size: 0.72rem;
  color: rgba(94, 234, 212, 0.8);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ── Final Price ──────────────────────────────────────────── */
.final-price-block {
  text-align: center;
  padding: 1.2rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: linear-gradient(
    135deg,
    rgba(94, 234, 212, 0.04) 0%,
    transparent 100%
  );
}

.final-price-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.final-price {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), #fff 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 300ms ease;
}

.final-price-note {
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: #facc15;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.lock-icon {
  font-size: 0.8rem;
}

/* ── CTA Buttons ──────────────────────────────────────────── */
.live-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
}

.pricing-cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

.live-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* ── New Plan Fields ──────────────────────────────────────── */
.plan-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: -0.4rem;
}

.plan-audience {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* ── Feature Legend & Locked Features ─────────────────────── */
.feature-legend {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-locked { color: var(--text-muted); }
.legend-selected { color: var(--accent); }
.legend-open { color: var(--text); }

.feature-item.is-locked {
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

.feature-item.is-locked .feature-item-name,
.feature-item.is-locked .feature-item-desc {
  opacity: 0.6;
}

.lock-badge {
  font-size: 0.65rem;
  line-height: 1;
}

.plan-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ── Add-On Grid ──────────────────────────────────────────── */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.addon-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.addon-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: var(--surface-soft);
}

.addon-card.is-selected {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.04);
  box-shadow: 0 0 0 1px var(--accent);
}

.addon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.addon-icon {
  font-size: 1.5rem;
}

.addon-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.badge-monthly {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.badge-onetime {
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
}

.addon-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.addon-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.addon-price {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.5rem;
}

.addon-checkbox {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 4px;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.addon-card.is-selected .addon-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.addon-card.is-selected .addon-checkbox::after {
  content: "✓";
  color: #081017;
  font-size: 0.8rem;
  font-weight: 900;
}

/* ── Maintenance Section ──────────────────────────────────── */
.maintenance-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.maintenance-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.maint-tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
}

.maint-tier-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.maint-tier-card.is-selected {
  border-color: var(--accent);
  background: rgba(94, 234, 212, 0.04);
}

.maint-tier-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.maint-tier-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.maint-tier-rate {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.5rem;
}

.maint-tier-rate span {
  font-family: "Manrope", sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.maint-tier-select-indicator {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all var(--transition-base);
}

.maint-tier-card.is-selected .maint-tier-select-indicator {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.4);
}

/* Months Slider */
.months-slider-wrap {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 2rem;
  animation: panel-enter 300ms ease forwards;
}

.months-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.months-slider-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.months-value-badge {
  display: inline-block;
  background: var(--accent);
  color: #081017;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.3rem 1rem;
  border-radius: 999px;
}

.months-total-display {
  text-align: right;
}

.months-total-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.months-total-amount {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
}

.months-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
  margin: 1rem 0;
}

.months-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.4);
}

.months-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.months-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0 5px;
}

.maint-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--line);
}

.maint-note strong {
  color: var(--text);
}

/* ── Scroll Reveal ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .config-layout {
    grid-template-columns: 1fr;
  }

  .live-pricing-panel {
    position: static;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-item:nth-child(2n) {
    border-right: none;
  }

  .feature-item:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .feature-item:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .feature-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .feature-item:last-child {
    border-bottom: none !important;
  }

  .pricing-formula code {
    white-space: pre-wrap;
    word-break: break-word;
  }

  .app-addon-section .pricing-section-header {
    flex-wrap: wrap;
  }

  .app-toggle-wrapper {
    width: 100%;
    margin-left: 0;
    padding-left: calc(2.4rem + 1.2rem);
  }
}
