/* ── Pricing Section ── */
.pricing-section {
  padding: 50px 20px; /* Reduced from 120px to fix the massive gap at the top */
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ── Controls: Tabs & Toggle ── */
.pricing-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 10px; /* Reduced to compensate for grid padding */
}

.pricing-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 40px;
  position: relative;
}

.tab-highlight {
  position: absolute;
  top: 6px; left: 0; bottom: 6px;
  background: #fff;
  border-radius: 30px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 10px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
  color: #000;
}

.billing-switch-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.save-badge {
  color: #F94D35;
  font-size: 12px;
  background: rgba(249, 77, 53, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  margin-left: 8px;
}

/* ── Minimal Switch for Billing ── */
.billing-switch-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.switch-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  transition: color 0.3s;
}

.switch-label.active {
  color: #fff;
}

.switch-track {
  width: 56px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  position: relative;
  transition: background 0.3s;
}

.switch-track.yearly-active {
  background: var(--primary);
}

.switch-thumb {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.switch-track.yearly-active .switch-thumb {
  transform: translateX(24px);
}

/* ── Pill Tabs restored ── */
.pricing-tabs {
  display: inline-flex;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(249, 77, 53, 0.15);
  padding: 6px;
  border-radius: 40px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.tab-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 10px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s ease;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tab-highlight {
  position: absolute;
  top: 6px; left: 0; bottom: 6px;
  background: var(--primary);
  border-radius: 30px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 15px rgba(249, 77, 53, 0.4);
}

/* ── Pricing Grids ── */
.pricing-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.pricing-tab-content.active {
  display: block;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
  padding: 40px 10px; /* Room for scaling and hover effects */
}

.pricing-card {
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Deutlichere Border! */
  border-radius: 24px;
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  backdrop-filter: blur(10px);
  text-align: center; /* Zentrierung */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); /* Scharfe, weiße Top-Kante! */
}

/* ── SPOTLIGHT EFFECT ── */
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 77, 53, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.pricing-card > * {
  position: relative;
  z-index: 2; /* Content über dem Spotlight */
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(249, 77, 53, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(249, 77, 53, 0.15);
}

.pricing-card.popular {
  transform: scale(1.06);
  z-index: 2;
  border-color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 20px rgba(249, 77, 53, 0.05), 0 20px 50px rgba(249, 77, 53, 0.2);
}

.pricing-card.popular:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 20px rgba(249, 77, 53, 0.1), 0 30px 60px rgba(249, 77, 53, 0.3);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(249, 77, 53, 0.4);
  white-space: nowrap;
}

.plan-name {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-bottom: 16px;
}

.plan-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-top: -12px;
  margin-bottom: 20px;
}

.main-feature-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin: -12px 0 24px 0; /* Negative top margin to reduce the gap! */
  align-self: flex-start;
  color: #fff;
}

.red-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.limit-pill {
  margin-left: auto;
  background: rgba(249, 77, 53, 0.15);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center; /* Zentrierung */
  gap: 6px;
  margin-bottom: 8px;
}

.price-val {
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.plan-currency {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
}

.plan-period {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.plan-savings {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 30px;
}

.plan-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
  text-align: left; /* Features bleiben linksbündig */
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 16px; /* Mehr Spacing für die Boxen */
}

/* Haken in einer Box */
.plan-features li svg {
  color: var(--primary);
  flex-shrink: 0;
  background: rgba(249, 77, 53, 0.1);
  padding: 4px;
  border-radius: 6px;
  width: 24px;
  height: 24px;
}

/* Fehlende Features (Kreuze) */
.plan-features li.missing-feature {
  color: rgba(255, 255, 255, 0.4);
}

.plan-features li.missing-feature svg {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.plan-features li.limit-feature {
  color: #fff;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
  margin-top: 16px;
  justify-content: center; /* Limit zentriert */
  text-align: center;
}

.btn-plan {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.pricing-card.popular .btn-plan {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-plan:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pricing-card.popular .btn-plan:hover {
  background: #E53E26;
  color: #fff;
  border-color: #E53E26;
}

/* Shine Hover Effect */
.btn-plan::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0s;
  pointer-events: none;
}

.btn-plan:hover::after {
  left: 120%;
  transition: left 0.7s ease-in-out;
}

/* ── Sleek Translator ── */
.translator-centered-wrap {
  display: flex;
  justify-content: center;
}

.translator-sleek-card {
  width: 100%;
  max-width: 950px;
  padding: 48px;
}

.translator-inner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.trans-grid-left {
  display: flex;
  flex-direction: column;
}

.trans-grid-right {
  display: flex;
  flex-direction: column;
}

.t-words-display {
  text-align: left;
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  margin-bottom: 30px;
}

#trans-words {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  display: block;
}

#trans-price {
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  transition: all 0.2s ease;
}

#trans-price.contact-mode {
  font-size: 32px;
  color: var(--primary);
}

.range-wrap-sleek {
  width: 85.71%;
  margin: 10px auto 30px auto;
  padding: 0;
}

.range-labels-sleek {
  position: relative;
  height: 20px;
  margin-top: 16px;
  margin-left: 10px; /* aligns perfectly with the center of the 20px slider thumb */
  margin-right: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

.range-labels-sleek span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: color 0.3s;
}

.range-labels-sleek span:nth-child(1) { left: 0%; }
.range-labels-sleek span:nth-child(2) { left: 16.667%; }
.range-labels-sleek span:nth-child(3) { left: 33.333%; }
.range-labels-sleek span:nth-child(4) { left: 50%; }
.range-labels-sleek span:nth-child(5) { left: 66.667%; }
.range-labels-sleek span:nth-child(6) { left: 83.333%; }
.range-labels-sleek span:nth-child(7) { left: 100%; }

.range-labels-sleek span.active {
  color: var(--primary);
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  margin: 0;
  padding: 0;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
input[type=range]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -8px;
  box-shadow: 0 0 15px rgba(249, 77, 53, 0.5);
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ── Translator Pricing Chart ── */
.trans-chart-container {
  margin-top: 35px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
}

.trans-chart-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: left;
}

.trans-chart-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 100px;
  gap: 8px;
  padding-top: 20px;
  margin-bottom: 30px;
}

.trans-chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
}

.trans-chart-bar-value {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: absolute;
  top: -16px;
  white-space: nowrap;
}

.trans-chart-bar-fill {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.trans-chart-bar-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0;
  transition: all 0.3s ease;
  position: absolute;
  bottom: -28px;
  left: 0;
  width: 100%;
  text-align: center;
}

/* Active Bar Styling */
.trans-chart-bar-col.active .trans-chart-bar-fill {
  background: linear-gradient(180deg, #F94D35 0%, #E62A10 100%);
  box-shadow: 0 0 15px rgba(249, 77, 53, 0.4);
}

.trans-chart-bar-col.active .trans-chart-bar-value {
  color: var(--primary);
  transform: translateY(-2px) scale(1.1);
}

.trans-chart-bar-col.active .trans-chart-bar-label {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 450px;
    margin: 0 auto;
    gap: 32px;
  }
  .pricing-card.popular {
    transform: none !important;
  }
  .pricing-card.popular:hover {
    transform: translateY(-5px) !important;
  }
}

@media (max-width: 768px) {
  .translator-inner-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .translator-sleek-card {
    padding: 32px 16px;
    max-width: 100%;
  }

  .t-words-display {
    text-align: center;
  }

  .range-wrap-sleek {
    width: 100%;
    margin-bottom: 20px;
  }

  .range-labels-sleek {
    font-size: 10px;
    margin-left: 5px;
    margin-right: 5px;
  }

  .pricing-tabs {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .tab-highlight {
    display: none;
  }

  .tab-btn.active {
    background: var(--primary);
    box-shadow: 0 4px 15px rgba(249, 77, 53, 0.4);
    color: #fff;
  }

  .trans-chart-bars {
    gap: 4px;
  }

  .trans-chart-bar-value {
    font-size: 7.5px !important;
  }

  .trans-chart-bar-label {
    font-size: 9px !important;
  }

  .trans-chart-bar-col:last-child .trans-chart-bar-label {
    font-size: 16px !important;
  }
}





/* Make infinity signs larger for better readability */
.range-labels-sleek span:nth-child(7) {
  font-size: 20px !important;
  font-family: Arial, sans-serif !important;
  line-height: 1 !important;
  transform: translateX(-50%) translateY(-2px);
}
.trans-chart-bar-col:last-child .trans-chart-bar-label {
  font-size: 24px !important;
  font-family: Arial, sans-serif !important;
  line-height: 1 !important;
  margin-top: 4px;
}


/* Fix alignment of bottom labels so they don't push the bars up unevenly */
.trans-chart-bar-label {
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  bottom: -28px !important;
  left: 0 !important;
  width: 100% !important;
}

/* ===================================================================
   BETA PRICING  — every plan is free during the beta.
   Injected by initBetaPricing() in js/main.js on every pricing page.
   The normal price stays visible (struck through); a prominent "0 €"
   becomes the active price and a banner sits in the section header.
   =================================================================== */

/* Prominent beta banner under the pricing section title */
.beta-pricing-banner {
  width: fit-content;
  max-width: 92%;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(230, 42, 16, 0.10);
  border: 1px solid rgba(230, 42, 16, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.beta-pricing-banner .bp-tag {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
}
.beta-pricing-banner .bp-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  line-height: 1.35;
}
.beta-pricing-banner .bp-text strong { font-weight: 800; }

/* Normal price kept visible but struck through + dimmed */
.pricing-card.is-beta .plan-price,
.pricing-card.is-beta .plan-price > span {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-decoration-thickness: 2px;
}
.pricing-card.is-beta .plan-price { opacity: 0.42; margin-bottom: 6px; }
.pricing-card.is-beta .plan-savings { color: rgba(255, 255, 255, 0.4); opacity: 1; margin-bottom: 16px; }

/* The active "0 €" beta price */
.beta-free {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 0 0 26px;
}
.beta-free-amount {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.beta-free-label {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 100px;
}

/* Translator card is left-aligned, so its beta price follows suit */
.translator-sleek-card.is-beta .plan-price,
.translator-sleek-card.is-beta .plan-savings { margin-left: 0; }
.translator-sleek-card .beta-free { align-items: flex-start; }

@media (max-width: 600px) {
  .beta-pricing-banner { flex-direction: column; gap: 8px; text-align: center; padding: 12px 16px; }
  .beta-pricing-banner .bp-text { text-align: center; font-size: 13px; }
  .beta-free-amount { font-size: 34px; }
}

/* ── Coming soon (Bot & Translator not live yet) ── */
.coming-soon-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a2e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 4;
}
/* A coming-soon plan can't be the "most popular" — drop that badge to avoid
   two clashing tags at the top of the card. */
.pricing-card.is-coming-soon .popular-badge { display: none; }
.btn-plan.is-disabled,
.pricing-card.popular .btn-plan.is-disabled {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

