/* BigCatch — előfizetés UI (billing.js). A styles.css változóira épül (világos + sötét téma). */

.bc-intro {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, .25);
}
.bc-intro-lg { font-size: 12.5px; padding: 5px 14px; }
.bc-intro-note { margin: 8px 0 4px; font-size: 13px; color: var(--text-muted); }
.bc-save {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: rgba(22, 163, 74, .14); color: #15803d;
}
html[data-theme="dark"] .bc-save { color: #4ade80; }

/* --- Pricing --- */
.bc-pricing { max-width: 980px; margin: 0 auto; }
.bc-pricing-hero { text-align: center; padding: 8px 4px 18px; }
.bc-pricing-hero h1 { font-size: 26px; line-height: 1.2; margin: 12px 0 8px; letter-spacing: -0.02em; }
.bc-cycle {
  display: flex; gap: 4px; width: max-content; margin: 0 auto 20px; padding: 4px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
}
.bc-cycle-btn {
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  color: var(--text-muted); background: transparent; border: 0; cursor: pointer;
  transition: all 180ms var(--ease);
}
.bc-cycle-btn.active { background: var(--brand-700); color: #fff; box-shadow: 0 4px 12px rgba(14, 116, 144, .30); }
.bc-cycle-btn.active .bc-save { background: rgba(255, 255, 255, .22); color: #fff; }

.bc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.bc-plan {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg, 18px);
  padding: 22px 20px; box-shadow: var(--card-shadow);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.bc-plan:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-hover); }
.bc-plan h3 { font-size: 20px; font-weight: 800; margin: 0; }
.bc-plan > .btn, .bc-plan > div:last-child { margin-top: auto; }
.bc-featured { border: 2px solid var(--brand-500); box-shadow: 0 14px 36px rgba(6, 182, 212, .20); }
.bc-plan-pro { background: linear-gradient(160deg, var(--surface) 55%, rgba(124, 58, 237, .08)); }
.bc-ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--brand-600); color: #fff;
}
.bc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.bc-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.bc-per { font-size: 14px; color: var(--text-muted); }
.bc-features { list-style: none; padding: 0; margin: 6px 0 8px; display: grid; gap: 7px; font-size: 14px; }
.bc-features li { position: relative; padding-left: 24px; }
.bc-features li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  background: rgba(6, 182, 212, .16); color: var(--brand-700);
}
.bc-btn-pro { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; box-shadow: 0 6px 18px rgba(91, 33, 182, .30); }
.bc-btn-pro:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bc-pricing-foot { margin: 22px auto 8px; max-width: 720px; text-align: center; display: grid; gap: 6px; }

/* --- Profil: Csomagom --- */
.bc-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bc-plan-name { font-size: 18px; font-weight: 800; }
.bc-tier-plus { color: var(--brand-700); }
.bc-tier-pro { color: #6d28d9; }
html[data-theme="dark"] .bc-tier-plus { color: var(--brand-300); }
html[data-theme="dark"] .bc-tier-pro { color: #c4b5fd; }
.bc-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bc-badge.bc-ok { background: rgba(22, 163, 74, .14); color: #15803d; }
.bc-badge.bc-warn { background: rgba(217, 119, 6, .14); color: #b45309; }
.bc-badge.bc-bad { background: rgba(220, 38, 38, .14); color: #b91c1c; }
.bc-badge.bc-muted { background: var(--surface-2); color: var(--text-muted); }
.bc-warn-text { color: #b45309; margin-top: 4px; }
.bc-usage-row { margin: 8px 0; }
.bc-usage-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 4px; }
.bc-usage-num { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.bc-bar { height: 7px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bc-bar-fill { height: 100%; border-radius: 99px; transition: width 300ms var(--ease); }
.bc-bar-fill.bc-ok { background: var(--brand-500); }
.bc-bar-fill.bc-warn { background: #f59e0b; }
.bc-bar-fill.bc-bad { background: #dc2626; }

/* --- Modál + toast --- */
.bc-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(4, 20, 26, .62); backdrop-filter: blur(4px);
  animation: bcFade 180ms ease-out;
}
.bc-modal {
  width: 100%; max-width: 420px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); color: var(--text); border-radius: 18px; padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: center;
}
.bc-modal-icon { font-size: 40px; margin-bottom: 6px; }
.bc-modal h2 { font-size: 21px; margin-bottom: 8px; color: var(--brand-800); }
html[data-theme="dark"] .bc-modal h2 { color: var(--brand-200); }
.bc-modal p { line-height: 1.5; }
.bc-modal-actions { display: grid; gap: 10px; margin-top: 16px; }
.bc-toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 1100; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 12px;
  background: var(--brand-900); color: #fff; font-size: 14px; font-weight: 600; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .30); animation: bcFade 200ms ease-out;
}
@keyframes bcFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 520px) {
  .bc-pricing-hero h1 { font-size: 22px; }
  .bc-amount { font-size: 30px; }
}
