#pricing-page {
  min-height: 100vh;
  position: relative;
  padding: 52px 0 72px;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
}

.pricing-header {
  text-align: center;
  margin-bottom: 34px;
  animation: riseIn 0.8s ease both;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid var(--g30);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.35s ease;
}

.back-link:hover {
  border-color: var(--gold);
  color: #fff;
  background: var(--g10);
}

.pricing-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 14px;
  font-weight: 500;
}

.pricing-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}

.calculator-card,
.summary-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--w10);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-line,
.summary-line {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g50), transparent);
}

.calculator-card {
  padding: 24px;
  display: grid;
  gap: 20px;
  animation: riseIn 0.9s ease both;
}

.calc-section {
  border: 1px solid var(--w10);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 18px;
}

.calc-section h2 {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.calc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calc-section-head h2 {
  margin-bottom: 0;
}

.collapse-toggle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--g30);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.collapse-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.24);
}

.collapsible-options.is-collapsed {
  display: none;
}

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

.choice-stack {
  display: grid;
  gap: 10px;
}

.pack-details {
  margin-top: 14px;
  border: 1px solid var(--g20);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
  padding: 12px;
}

.pack-details-title {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.pack-details-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.pack-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.35;
}

.pack-details-dot {
  color: var(--gold);
  flex: 0 0 auto;
}

.choice-pill,
.choice-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--w10);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: all 0.3s ease;
}

.choice-pill {
  min-height: 68px;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.choice-row {
  min-height: 52px;
  padding: 0 14px;
}

.choice-pill:hover,
.choice-row:hover {
  border-color: var(--g30);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.choice-pill input,
.choice-row input {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--w40);
  position: relative;
  flex: 0 0 auto;
}

.checkbox-row input {
  border-radius: 4px;
}

.choice-pill input:checked,
.choice-row input:checked {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 45%, transparent 50%);
}

.checkbox-row input:checked {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
}

.choice-pill:has(input:checked),
.choice-row:has(input:checked) {
  border-color: var(--gold);
  background: var(--g10);
  color: #fff;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.12);
}

.choice-pill span,
.choice-row span {
  font-size: 0.92rem;
  line-height: 1.35;
}

.summary-card {
  padding: 24px;
  position: sticky;
  top: 20px;
  animation: riseIn 1s ease both;
}

.summary-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.summary-logo {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 84px;
  height: auto;
  opacity: 0.86;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  pointer-events: none;
}

.breakdown-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.84);
}

.breakdown-item strong {
  color: var(--gold);
  font-weight: 500;
}

.total-wrap {
  border: 1px solid var(--g30);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04));
  margin-bottom: 18px;
}

.total-wrap p {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.total-price {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.2);
}

.summary-cta {
  width: 100%;
  margin-bottom: 12px;
}

.summary-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  line-height: 1.45;
}

.mobile-total-fab {
  display: none;
}

.summary-card.is-exporting {
  background: #121212 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border-color: rgba(212, 175, 55, 0.38) !important;
  opacity: 1 !important;
  filter: none !important;
}

.summary-card.is-exporting .breakdown-item {
  color: rgba(255, 255, 255, 0.94);
}

.summary-card.is-exporting .summary-note {
  color: rgba(255, 255, 255, 0.82);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.is-loading {
  opacity: 0.78;
}

.error-box {
  border: 1px solid rgba(255, 100, 100, 0.4);
  color: #ffc4c4;
  border-radius: 12px;
  padding: 12px;
  font-size: 0.86rem;
  background: rgba(120, 20, 20, 0.16);
}

.price-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
}

.original-price {
  text-decoration: line-through;
  font-size: 0.8em;
  display: block;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.89);
  margin-bottom: 2px;
}

.total-price-wrap .original-price {
  font-size: 0.55em;
  margin-bottom: -4px;
}

.discount-price {
  color: var(--gold);
  font-weight: 500;
}

.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FDE08B, var(--gold));
  color: #121212;
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 16px;
  position: relative;
  top: -6px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  animation: pulse-glow 2s infinite alternate;
}

.total-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FDE08B, var(--gold));
  color: #121212;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 8px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); transform: scale(1); }
  100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.7); transform: scale(1.05); }
}

@keyframes pulse-text-glow {
  0% { text-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
  100% { text-shadow: 0 0 15px rgba(212, 175, 55, 0.7); }
}

@media (max-width: 980px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

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

@media (max-width: 580px) {
  #pricing-page {
    padding-top: 34px;
    padding-bottom: 112px;
  }

  .container {
    padding: 0 16px;
  }

  .calculator-card,
  .summary-card {
    padding: 16px;
    border-radius: 18px;
  }

  .calc-section {
    padding: 14px;
  }

  .mobile-total-fab {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1400;
    display: grid;
    gap: 4px;
    min-width: 170px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--g30);
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(18, 18, 18, 0.98));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  }

  .mobile-total-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }

  .mobile-total-header p {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0;
  }

  .mobile-total-fab strong {
    color: var(--gold);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
  }

  .mobile-total-fab .total-price-wrap .original-price {
    font-size: 0.75em;
    margin-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-header,
  .calculator-card,
  .summary-card,
  .choice-pill,
  .choice-row,
  .back-link {
    animation: none !important;
    transition: none !important;
  }
}
