/* ======================
   Billing / Membership Page
   ====================== */

   .billing-page {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .billing-shell {
    width: min(1000px, 96vw);
    margin: 0 auto;
    padding: 24px 20px 32px;
    background: rgba(0, 0, 0, 0.82);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.18);
    color: #ddefff;
  }
  
  /* Header */
  
  .billing-header {
    text-align: center;
    margin-bottom: 24px;
  }
  
  .billing-user {
    font-size: 14px;
    color: #bcd6e5;
    margin: 0 0 4px;
  }
  
  .billing-tier {
    font-size: 13px;
    margin: 0 0 10px;
    color: #8be4ff;
  }
  
  .billing-header h1 {
    margin: 6px 0 6px;
    font-size: 26px;
    color: #00c8ff;
  }
  
  .billing-subtitle {
    margin: 0;
    font-size: 14px;
    color: #b4c9d8;
  }
  
  /* Grid of plans */
  
  .billing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
  }
  
  /* Card base */
  
  .billing-card {
    position: relative;
    border-radius: 14px;
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    border: 1px solid rgba(0, 200, 255, 0.35);
    background: radial-gradient(circle at top, rgba(0, 200, 255, 0.16), rgba(0, 0, 0, 0.95));
  }
  
  .billing-card-free {
    border-color: rgba(150, 150, 170, 0.7);
    background: radial-gradient(circle at top,
      rgba(140, 150, 170, 0.25),
      rgba(0, 0, 0, 0.96)
    );
  }

  /* Make the cancel button subtle when placed in the Free card */
.billing-end-btn{
  opacity: 0.75;
  transform: none;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.25);
}

.billing-end-btn:hover{
  opacity: 1;
}

  
  .billing-card-supporter {
    border-color: rgba(0, 200, 255, 0.8);
    background: radial-gradient(circle at top,
      rgba(0, 200, 255, 0.22),
      rgba(0, 4, 10, 0.98)
    );
  }
  
  .billing-card-enhanced {
    border-color: rgba(122, 255, 144, 0.9);
    background: radial-gradient(circle at top,
      rgba(122, 255, 144, 0.24),
      rgba(0, 10, 4, 0.98)
    );
  }
  
  /* POWER = magenta / orange “boss” feel */
  .billing-card-power {
    border-color: rgba(255, 120, 0, 0.85);
    background: radial-gradient(circle at top,
      rgba(255, 120, 0, 0.22),
      rgba(20, 0, 30, 0.98)
    );
  }
  
  /* Featured (Enhanced) keeps the subtle lift + thicker border */
  .billing-card-featured {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8);
    border-width: 2px;
  }

  .billing-featured-label {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #7aff90;      /* match the green theme */
    color: #00140a;
    letter-spacing: 0.08em;
  }
  
  /* Card header */
  
  .billing-card-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #eaf8ff;
  }
  
  .billing-price {
    margin: 0 0 6px;
    font-size: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  
  .price-main {
    font-size: 22px;
    font-weight: 700;
  }
  
  .price-sub {
    font-size: 12px;
    color: #9fb8c9;
  }
  
  .billing-tagline {
    margin: 0 0 8px;
    font-size: 13px;
    color: #bcd6e5;
  }
  
  /* Features */
  
  .billing-features {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    font-size: 12px;
    color: #d6e2ef;
    flex: 1;
  }
  
  .billing-features li {
    margin-bottom: 4px;
  }
  
  /* CTA button */
  
  .billing-cta-btn {
    width: 80%;
    padding: 9px;
    font-size: 13px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #00c8ff;
    color: #001018;
    transition: background 0.15s ease, transform 0.07s ease;
  }
  
  .billing-cta-btn:hover {
    background: #00a9dd;
  }
  
  .billing-cta-btn:active {
    transform: translateY(1px);
  }
  
  .billing-cta-current {
    background: transparent;
    color: #bcd6e5;
    border: 1px dashed rgba(180, 214, 229, 0.8);
    cursor: default;
  }
  
  .billing-cta-current:hover {
    background: transparent;
    transform: none;
  }


  /* Terms gate */
.tos-gate { margin: 18px 0 10px; }
.tos-gate-box {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  padding: 12px 14px;
  border-radius: 12px;
}
.tos-checkbox { display: flex; gap: 10px; align-items: flex-start; color: #ddd; }
.tos-checkbox input { margin-top: 4px; }
.tos-hint { margin: 6px 0 0; font-size: 12px; color: #aaa; }

  
  /* Message & footer */
  
  .billing-message {
    margin-top: 16px;
    font-size: 13px;
    color: #9fb8c9;
    text-align: center;
  }
  
  .billing-message.ok {
    color: #8cffc3;
  }
  
  .billing-message.error {
    color: #ff8080;
  }
  
  .billing-footer-links {
    margin-top: 10px;
    text-align: center;
  }
  
  .billing-back-link {
    font-size: 13px;
    color: #7be0ff;
  }
  
  .billing-back-link:hover {
    text-decoration: underline;
  }


  .billing-card-current {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
  }

  
  
  /* Responsive */
  
  @media only screen and (max-width: 899px) {
    .billing-grid {
      grid-template-columns: 1fr;
    }
  
    .billing-card-featured {
      transform: none;
    }
  
    .billing-shell {
      padding: 18px 14px 28px;
    }
  
    .billing-header h1 {
      font-size: 22px;
    }
  }
  
  @media only screen and (max-width: 599px) {
    .billing-page {
      padding-top: 70px;
      padding-bottom: 80px;
    }
  
    .billing-shell {
      width: 94vw;
    }
  }
  