/* Auth modal + account styles */

.account-pill-btn {
  background: linear-gradient(135deg, #f0edf5, #fff);
  border-color: rgba(107, 91, 149, 0.35);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(28, 42, 58, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

.auth-overlay[hidden] {
  display: none !important;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

.auth-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-dim);
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  background: var(--bg-soft);
  padding: 0.3rem;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dim);
  cursor: pointer;
  min-height: 42px;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  padding-right: 2rem;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.auth-field input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg-soft);
  color: var(--text);
  min-height: 48px;
}

.auth-field input:focus {
  outline: 2px solid rgba(26, 95, 158, 0.35);
  border-color: var(--accent);
}

.auth-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  min-height: 48px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footnote {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.65rem;
  text-align: center;
}

.auth-footnote .link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

@media (max-width: 600px) {
  .auth-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .auth-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92dvh;
  }
}

/* Landing marketing + price card */
.landing-nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.landing-price-card {
  margin: 1.25rem auto 1rem;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid rgba(201, 146, 10, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.lpc-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.lpc-prices {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}
.lpc-old {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
}
.lpc-new {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.lpc-new span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font);
}
.lpc-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.lpc-perks {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.landing-cancel-card {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.landing-cancel-card h3 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}
.landing-cancel-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.landing-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.landing-pricing-block {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 0.25rem;
}
.plan-price-old {
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
  vertical-align: middle;
}
.plan-cancel-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.55rem;
}
.footer-legal {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-legal .link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.hero-cta-secondary {
  margin-top: 0.85rem;
  justify-content: center;
}
.hidden { display: none !important; }

@media (max-width: 600px) {
  .landing-nav {
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .landing-nav-actions {
    width: 100%;
  }
  .landing-nav-actions .btn {
    flex: 1;
    min-height: 46px;
  }
  .landing-cancel-actions {
    flex-direction: column;
  }
  .landing-cancel-actions .btn {
    width: 100%;
  }
}
