/* Pages CSS (auth, dashboard, pricing, etc) */

/* Auth Page */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 20px; background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(124,106,245,.15), transparent 60%); }
.auth-card { background: rgba(8,11,16,.85); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 420px; text-align: center; backdrop-filter: blur(20px); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.auth-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--text-primary), var(--accent-alt)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 2rem; }
.auth-title { font-size: 1.5rem; color: var(--text-primary); margin-bottom: .5rem; }
.auth-sub { font-size: .95rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.5; }
.auth-error { padding: .75rem; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); border-radius: 8px; color: #fca5a5; font-size: .85rem; margin-top: 1rem; }
.auth-legal { font-size: .75rem; color: var(--text-muted); margin-top: 2rem; }
.auth-legal a { color: var(--text-secondary); text-decoration: underline; }
.auth-legal a:hover { color: var(--text-primary); }

/* Dashboard */
.dash-page { min-height: 100vh; }
.dash-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
.dash-card { background: rgba(8,11,16,.6); border: 1px solid rgba(255,255,255,.05); border-radius: 16px; padding: 2rem; }
.dash-card.premium { border-color: rgba(124,106,245,.3); background: rgba(124,106,245,.03); }
.dash-card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: 1rem; }
.profile-row { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.avatar { width: 64px; height: 64px; border-radius: 32px; background: linear-gradient(135deg, var(--accent), var(--accent-alt)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,.3); flex-shrink: 0; }
.profile-name { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: .25rem; }
.profile-email { color: var(--text-muted); font-size: .95rem; }
.info-grid { display: grid; gap: 1rem; background: rgba(255,255,255,.02); border-radius: 12px; padding: 1.5rem; border: 1px solid rgba(255,255,255,.03); }
.info-row { display: flex; flex-direction: column; gap: .5rem; }
.info-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 600; }
.info-value { font-family: var(--font-mono); font-size: 1rem; color: var(--text-primary); }
.username-display { display: flex; align-items: center; gap: 1rem; }
.edit-btn { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--accent); background: rgba(124,106,245,.1); padding: .25rem .75rem; border-radius: 6px; transition: background .2s; }
.edit-btn:hover { background: rgba(124,106,245,.2); }
.status-line { font-size: 1.1rem; margin-bottom: 1rem; }
.status-note { color: var(--text-muted); font-size: .9rem; line-height: 1.5; max-width: 600px; }
.dash-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.license-item { padding: 1.25rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.license-key { font-family: var(--font-mono); font-size: 1.1rem; letter-spacing: .05em; color: var(--text-primary); margin-bottom: .5rem; }
.license-meta { display: flex; align-items: center; gap: 1rem; }
.dash-shell { padding: calc(var(--nav-height) + 3rem) 0 5rem; min-height: 100vh; }
.dashboard-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.dashboard-sidebar { position: sticky; top: calc(var(--nav-height) + 1.5rem); background: rgba(8,11,16,.5); border: 1px solid rgba(255,255,255,.05); border-radius: 18px; padding: 1.5rem; }
.dashboard-sidebar-head h1 { font-family: var(--font-display); font-size: 2rem; margin: .75rem 0 .5rem; }
.dashboard-sidebar-head p { color: var(--text-secondary); font-size: .92rem; }
.dashboard-tablist { display: grid; gap: .75rem; margin-top: 2rem; }
.dashboard-tab { text-align: left; padding: .9rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); color: var(--text-secondary); background: rgba(255,255,255,.02); font-weight: 600; }
.dashboard-tab.active { color: var(--text-primary); border-color: rgba(124,106,245,.35); background: rgba(124,106,245,.08); }
.dashboard-sidebar-note { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.06); color: var(--text-muted); font-size: .84rem; line-height: 1.6; }
.dashboard-main { display: grid; gap: 1.5rem; }
.dashboard-panel { display: none; gap: 1.5rem; }
.dashboard-panel.active { display: grid; }
.account-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.account-hero-copy h2 { font-family: var(--font-display); font-size: 2rem; margin: .75rem 0 .5rem; }
.account-status-grid { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 1rem; min-width: 250px; }
.account-status-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 1rem; }
.account-status-item strong { display: block; font-size: 1rem; margin-top: .4rem; color: var(--text-primary); }
.settings-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.account-avatar-row { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.avatar-image { width: 88px; height: 88px; object-fit: cover; border-radius: 28px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.account-avatar-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.settings-field { display: grid; gap: .55rem; }
.settings-field-full { grid-column: 1 / -1; }
.field-help { font-size: .82rem; color: var(--text-muted); }
.email-mask-input {
  filter: blur(6px);
  transition: filter var(--transition);
  cursor: default;
}
.email-mask-input:hover,
.email-mask-input:focus {
  filter: blur(0);
}
.settings-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.security-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.05); }
.security-row:first-of-type { border-top: 0; padding-top: 0; }
.billing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.billing-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 1.25rem; }
.billing-card strong { display: block; margin: .5rem 0; font-size: 1.15rem; color: var(--text-primary); }
.billing-warning { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.18); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.billing-warning strong { display: block; margin-bottom: .5rem; color: #fecaca; }
.billing-warning p { color: #fca5a5; font-size: .9rem; line-height: 1.6; }
.btn-danger-outline { background: transparent; color: #f87171; border: 1px solid rgba(248,113,113,.35); }
.btn-danger-outline:hover { background: rgba(239,68,68,.08); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,6,8,.82); backdrop-filter: blur(10px); display: grid; place-items: center; z-index: 200; padding: 1.5rem; }
.modal-backdrop[hidden] { display: none !important; }
.modal-card { width: min(100%, 520px); background: var(--bg-surface); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 1.6rem; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.modal-card h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .75rem; }
.modal-card p { color: var(--text-secondary); }
.modal-warning-list { margin: 1rem 0 1.25rem; padding-left: 1.25rem; list-style: disc; color: var(--text-secondary); }
.modal-warning-list li { margin-bottom: .6rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 980px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}
@media (max-width: 760px) {
  .account-hero { flex-direction: column; }
  .settings-grid, .billing-grid { grid-template-columns: 1fr; }
  .security-row { flex-direction: column; align-items: flex-start; }
}

/* Dashboard Skeleton */
.skel-title { height: 32px; width: 200px; background: rgba(255,255,255,.05); border-radius: 8px; margin-bottom: 2rem; animation: pulse 1.5s infinite; }
.skel-row { display: flex; gap: 1.5rem; align-items: center; }
.skel-avatar { width: 64px; height: 64px; border-radius: 32px; background: rgba(255,255,255,.05); animation: pulse 1.5s infinite; }
.skel-line { height: 16px; width: 150px; background: rgba(255,255,255,.05); border-radius: 4px; animation: pulse 1.5s infinite; }
.skel-short { width: 100px; }
.skel-btn { height: 40px; width: 120px; background: rgba(255,255,255,.05); border-radius: 20px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: .6; } 50% { opacity: .3; } 100% { opacity: .6; } }

/* Downloads / Content pages */
.dl-card { background: rgba(8,11,16,.8); border: 1px solid rgba(124,106,245,.2); border-radius: 24px; padding: 3rem; position: relative; max-width: 800px; margin: -2rem auto 4rem; z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,.6); overflow: hidden; }
.dl-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 20px 2px var(--accent); opacity: .6; }
.dl-header { text-align: center; margin-bottom: 2.5rem; }
.dl-header h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 1rem 0 .5rem; }
.dl-header p { color: var(--text-secondary); }
.dl-features { columns: 2; gap: 2rem; margin-bottom: 3rem; }
.dl-features li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; color: var(--text-primary); font-size: .95rem; break-inside: avoid; }
.check { color: #22c55e; font-weight: 700; }
.pro-check { color: var(--accent); }
.dl-actions { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.05); }
.dl-note { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.dl-buttons { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 600px) { .dl-features { columns: 1; } .dl-card { padding: 2rem; } }

.requirements { margin-bottom: 4rem; }
.requirements h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }
.req-list { display: grid; gap: 1rem; }
.req-row { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; }
.req-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border-radius: 8px; font-size: 1rem; flex-shrink: 0; }
.req-row strong { font-size: .9rem; width: 80px; flex-shrink: 0; }
.req-row span { color: var(--text-secondary); font-size: .9rem; }
@media (max-width: 500px) { .req-row { flex-direction: column; align-items: flex-start; gap: .5rem; text-align: left; } .req-row strong { width: auto; } }

.changelog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: 1rem; }
.changelog-header h2 { font-family: var(--font-display); font-size: 1.5rem; }
.changelog-list { display: flex; flex-direction: column; gap: 1.5rem; }
.changelog-item { position: relative; padding-left: 2rem; border-left: 1px dashed rgba(255,255,255,.1); }
.changelog-item::before { content: ''; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); border: 2px solid var(--bg-base); }
.changelog-item:first-child::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(124,106,245,.2); }
.version-cell { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .25rem; }
.version-cell strong { font-family: var(--font-mono); font-size: 1.1rem; color: var(--text-primary); }
.release-title { font-size: .9rem; color: var(--text-muted); }
.date-cell { font-size: .8rem; color: var(--text-muted); display: block; margin-bottom: 1rem; }
.changelog-notes { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* Pricing */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: -2rem auto 4rem; position: relative; z-index: 2; max-width: 1000px; }
.plan-card { background: rgba(8,11,16,.6); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 2rem 1.5rem; cursor: pointer; transition: all .2s; outline: none; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.plan-card:hover { border-color: rgba(124,106,245,.2); background: rgba(255,255,255,.02); }
.plan-card.selected { border-color: var(--accent); background: rgba(124,106,245,.05); box-shadow: 0 8px 30px rgba(124,106,245,.1); transform: translateY(-4px); }
.plan-featured { border-color: rgba(124,106,245,.3); }
.plan-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-alt)); }
.plan-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.plan-label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-primary); }
.plan-badge { font-size: .7rem; padding: 2px 8px; border-radius: 10px; background: rgba(124,106,245,.15); color: var(--accent-alt); font-weight: 600; text-transform: uppercase; }
.plan-price { font-family: var(--font-display); margin-bottom: .5rem; display: flex; align-items: baseline; gap: .4rem; }
.plan-price strong { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); }
.plan-price span { color: var(--text-muted); font-size: .9rem; font-family: var(--font-body); }
.plan-desc { color: var(--text-secondary); font-size: .85rem; margin-bottom: 1.5rem; line-height: 1.5; }
.plan-features { list-style: none; padding: 0; margin: 0 0 2rem; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: .75rem; font-size: .85rem; color: var(--text-secondary); margin-bottom: .75rem; }
.plan-features li span { color: #22c55e; font-weight: 700; }
.plan-selector { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.05); font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.plan-card.selected .plan-selector { color: var(--accent); border-top-color: rgba(124,106,245,.15); }
.selector-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); position: relative; transition: border-color .2s; }
.selector-dot.active { border-color: var(--accent); }
.selector-dot.active::after { content: ''; position: absolute; inset: 3px; background: var(--accent); border-radius: 50%; }

.checkout-panel { background: rgba(8,11,16,.9); border: 1px solid rgba(255,255,255,.05); border-radius: 20px; padding: 2.5rem; max-width: 500px; margin: 0 auto; }
.checkout-header { text-align: center; margin-bottom: 2rem; }
.checkout-header h2 { font-family: var(--font-display); font-size: 1.5rem; margin-top: .75rem; }
.summary { background: rgba(255,255,255,.02); border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,.03); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: .95rem; }
.summary-row:last-child { margin-bottom: 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.05); }
.summary-row span { color: var(--text-muted); }
.summary-row strong { color: var(--text-primary); font-weight: 500; }
.trust-box { display: flex; gap: 1rem; padding: 1rem; background: rgba(124,106,245,.05); border-radius: 12px; margin-bottom: 2rem; border: 1px solid rgba(124,106,245,.1); }
.trust-box span { font-size: 1.5rem; }
.trust-box strong { display: block; font-size: .85rem; color: var(--text-primary); margin-bottom: .25rem; }
.trust-box p { font-size: .8rem; color: var(--text-secondary); line-height: 1.5; }
.paypal-shell { min-height: 150px; }
.login-prompt { text-align: center; padding: 2rem 0; }
.coupon-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.05); }
.coupon-label { font-size: .85rem; color: var(--text-muted); margin-bottom: .75rem; }
.coupon-row { display: flex; gap: .5rem; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; font-size: .75rem; color: var(--text-muted); text-align: center; }

.free-cta { text-align: center; margin: 4rem 0; padding: 2rem; border-radius: 16px; background: rgba(255,255,255,.02); display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.free-cta span { color: var(--text-secondary); font-size: .95rem; }
@media (max-width: 600px) { .free-cta { flex-direction: column; text-align: center; gap: 1rem; } }

.faq { max-width: 700px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 2rem; }
.faq-header h2 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: .5rem; }
.faq-header p { color: var(--text-secondary); }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); border-radius: 12px; overflow: hidden; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 500; color: var(--text-primary); text-align: left; }
.faq-btn:hover { background: rgba(255,255,255,.02); }
.faq-chevron { font-size: 1.5rem; font-family: var(--font-mono); color: var(--text-muted); transition: transform .3s; }
.faq-item.open .faq-chevron { transform: rotate(90deg); color: var(--accent); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }
.faq-item.open .faq-answer { display: block; }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; max-width: 400px; } }

/* Simple Docs & Legal Pages */
.text-page { max-width: 700px; margin: 0 auto; padding: calc(var(--nav-height) + 4rem) 20px 6rem; }
.text-page h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-bottom: 2rem; text-align: center; }
.text-content { background: rgba(8,11,16,.6); border: 1px solid rgba(255,255,255,.05); border-radius: 16px; padding: 2.5rem; color: var(--text-secondary); line-height: 1.7; }
.text-content h2 { color: var(--text-primary); font-size: 1.25rem; margin: 2rem 0 1rem; font-family: var(--font-display); }
.text-content h2:first-child { margin-top: 0; }
.text-content p { margin-bottom: 1.25rem; }
.text-content ul { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: disc; }
.text-content li { margin-bottom: .5rem; }
.text-content a { color: var(--accent); text-decoration: underline; }
.text-content a:hover { color: var(--accent-alt); }

/* Countdown Timer */
.countdown-timer {
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  background: rgba(124,106,245,.08);
  border: 1px solid rgba(124,106,245,.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.countdown-label { color: var(--text-secondary); font-size: .9rem; }
.countdown-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.countdown-value.countdown-urgent { color: var(--amber); }
.countdown-expired { color: var(--red); font-weight: 600; }
.countdown-warning { color: var(--amber); font-size: .9rem; }
.countdown-lifetime { color: var(--green); font-weight: 600; font-size: .95rem; }
.cd-unit { display: inline-flex; align-items: center; gap: .15rem; }
.cd-num { font-weight: 700; min-width: 2ch; text-align: center; }

/* Free / Premium status card states */
.dash-card.free { border-color: rgba(255,255,255,.05); background: rgba(8,11,16,.6); }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* License item date */
.license-date { color: var(--text-muted); font-size: .8rem; }

/* Loading state for save button */
#saveUsernameBtn.loading { opacity: .7; pointer-events: none; }

/* Plan card fieldset semantics */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: -2rem auto 4rem; position: relative; z-index: 2; max-width: 1000px; }
fieldset.plans-grid { border: none; padding: 0; margin: 0; }

/* Toast notifications */
.toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .875rem 1.25rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transform: translateX(120%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
  background: rgba(8,11,16,.95);
  border: 1px solid rgba(255,255,255,.08);
}
.toast.visible { transform: translateX(0); }
.toast-success { border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.toast-success span:first-child { color: var(--green); }
.toast-error { border-color: rgba(239,68,68,.3); color: #fca5a5; }
.toast-error span:first-child { color: var(--red); }
.toast-info { border-color: rgba(124,106,245,.3); color: #93c5fd; }
.toast-info span:first-child { color: var(--accent); }

/* PayPal loading */
.paypal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: .9rem;
}
.paypal-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   NEW PRICING PAGE LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

/* Compact page header */
.pricing-page-top {
  padding: calc(var(--nav-height) + 3rem) 0 2.75rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,106,245,.16), transparent 60%);
  position: relative;
  z-index: 1;
  text-align: center;
}

.pricing-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin: .75rem 0 .75rem;
}

.pricing-page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto .75rem;
}

.pricing-page-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: .75rem;
  font-size: .84rem;
  color: var(--text-muted);
}
.pricing-page-stats span { display: flex; align-items: center; gap: .4rem; }

/* Main layout */
.pricing-main {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 388px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4rem;
}

.pricing-plans-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-plans-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Compact horizontal plan cards ───────────────────────────────────────── */
.pricing-plans-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pricing-plans-stack .plan-card {
  display: grid;
  grid-template-columns: 1.75rem 1fr auto;
  gap: 0 1.1rem;
  padding: 1.25rem 1.4rem;
  align-items: start;
  cursor: pointer;
  transform: none !important;
}

.pricing-plans-stack .plan-card.selected {
  box-shadow: 0 4px 28px rgba(124,106,245,.18);
}

/* Radio dot — left column */
.pricing-plans-stack .plan-selector {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: .25rem 0 0;
  border: none;
  flex-direction: column;
  gap: 0;
  align-self: start;
}
.pricing-plans-stack .plan-selector span:last-child { display: none; }
.pricing-plans-stack .selector-dot { width: 17px; height: 17px; }

/* Card body — center column */
.pricing-plans-stack .plan-card-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.pricing-plans-stack .plan-top-row { margin-bottom: .35rem; }
.pricing-plans-stack .plan-label { font-size: .9rem; }
.pricing-plans-stack .plan-desc { font-size: .82rem; margin-bottom: .65rem; }

.pricing-plans-stack .plan-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem .4rem;
  margin: 0;
}
.pricing-plans-stack .plan-features li { font-size: .79rem; margin: 0; color: var(--text-secondary); }

/* Price — right column */
.pricing-plans-stack .plan-price-col {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  align-self: start;
}
.pricing-plans-stack .plan-price-col .plan-price {
  margin: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: .05rem;
}
.pricing-plans-stack .plan-price-col .plan-price strong { font-size: 1.65rem; line-height: 1.1; }
.pricing-plans-stack .plan-price-col .plan-price span   { font-size: .78rem; }

/* Trust bar under plan cards */
.pricing-trust-bar {
  display: flex;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: .875rem 0;
  border-top: 1px solid rgba(124,106,245,.1);
}
.pricing-trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .79rem;
  color: var(--text-muted);
}

/* Free download inline CTA */
.pricing-free-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1.25rem;
  border-radius: 12px;
  background: rgba(124,106,245,.04);
  border: 1px solid rgba(124,106,245,.1);
}
.pricing-free-line span { font-size: .875rem; color: var(--text-secondary); flex: 1; }

/* ── Sticky checkout column ──────────────────────────────────────────────── */
.pricing-checkout-side {
  position: sticky;
  top: calc(var(--nav-height) + 1.75rem);
}

/* ── New checkout panel (v2) ─────────────────────────────────────────────── */
.checkout-v2 {
  background: rgba(13,15,26,.98);
  border: 1px solid rgba(124,106,245,.22);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(124,106,245,.06) inset;
}

.checkout-v2-top {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(124,106,245,.13), transparent 80%);
  border-bottom: 1px solid rgba(124,106,245,.12);
}
.checkout-v2-brand {
  display: flex; align-items: center; gap: .6rem;
  font-size: .95rem; font-weight: 700; color: var(--text-primary);
}

.checkout-v2-summary {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(124,106,245,.08);
}
.checkout-v2-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 0; font-size: .9rem;
}
.checkout-v2-row span   { color: var(--text-muted); }
.checkout-v2-row strong { color: var(--text-primary); font-weight: 500; }
.checkout-v2-total {
  border-top: 1px solid rgba(124,106,245,.12);
  margin-top: .3rem; padding-top: .65rem;
}
.checkout-v2-total strong { font-size: 1rem; font-weight: 700; color: var(--accent-alt); }

.checkout-v2-trust {
  padding: .9rem 1.5rem;
  display: flex; gap: .75rem; align-items: flex-start;
  background: rgba(124,106,245,.05);
  border-bottom: 1px solid rgba(124,106,245,.08);
}
.checkout-v2-trust p {
  font-size: .82rem; color: var(--text-secondary); line-height: 1.55; margin: 0;
}

.checkout-v2-action { padding: 1.25rem 1.5rem; }
.checkout-v2-btn {
  width: 100%; justify-content: center;
  font-size: 1rem; padding: .875rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 28px rgba(124,106,245,.38);
}
.checkout-v2-btn:hover { box-shadow: 0 8px 40px rgba(124,106,245,.56); }

.checkout-v2-status {
  text-align: center; font-size: .78rem;
  color: var(--text-muted); margin: .7rem 0 0;
}

.checkout-v2-badges {
  display: flex; justify-content: center;
  gap: 1.1rem; flex-wrap: wrap;
  padding: .875rem 1.5rem 1.1rem;
  font-size: .74rem; color: var(--text-muted);
  border-top: 1px solid rgba(124,106,245,.07);
}
.checkout-v2-badges span { display: flex; align-items: center; gap: .3rem; }

/* FAQ under the two-col layout */
.pricing-faq { max-width: 640px; margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }
  .pricing-checkout-side { position: static; }
  .pricing-plans-stack .plan-features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pricing-plans-stack .plan-card {
    grid-template-columns: 1.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .pricing-plans-stack .plan-price-col {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .pricing-plans-stack .plan-price-col .plan-price {
    flex-direction: row;
    align-items: baseline;
    gap: .3rem;
  }
  .pricing-plans-stack .plan-card-body {
    grid-column: 2;
    grid-row: 2;
  }
  .pricing-plans-stack .plan-features { grid-template-columns: 1fr; }
}

/* ── Home page plan cards ────────────────────────────────────────────────── */
.home-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.5rem auto 0;
  max-width: 960px;
}

.home-plan-cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

.home-plans-grid .plan-card { cursor: default; }
.home-plans-grid .plan-card:hover { transform: translateY(-4px); }

@media (max-width: 860px) {
  .home-plans-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}
