﻿/* Extracted from site-new.css. Legacy rules remain in site-new.css until visual verification is complete. */

.auth-modal[hidden],
.email-auth-form[hidden],
.auth-divider[hidden],
.telegram-auth-block[hidden] {
  display: none !important;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(7 10 18 / 0.48);
}

.auth-modal-panel {
  position: relative;
  width: min(26rem, 100%);
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
  box-shadow: 0 24px 70px rgb(7 10 18 / 0.28);
}

.auth-modal-panel h2 {
  margin: 0 2rem 1rem 0;
  color: var(--foreground);
  font-size: 1.2rem;
  line-height: 1.2;
}

.auth-modal-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

.auth-modal-message,
.auth-modal-note,
.telegram-auth-block p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.35;
}

.auth-modal-note {
  margin-bottom: 0.2rem;
}

.auth-modal-message {
  color: #dc2626;
}

.auth-modal-message.is-success {
  color: #15803d;
}

.auth-text-button { justify-self: end; padding: 0; border: 0; background: transparent; color: var(--primary); cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700; }

.auth-text-button:hover { text-decoration: underline; }

.legacy-plan-modal-badge[hidden] { display: none; }

.payment-email-modal .subscription-email-form { display: grid; gap: .75rem; margin: 0; }

.payment-email-modal .subscription-email-form label { display: grid; gap: .35rem; }

.payment-email-modal .subscription-email-form .button { width: 100%; }

.legacy-plan-modal {
  overflow-y: auto;
}

.legacy-plan-modal-panel {
  width: min(58rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.legacy-plan-modal-heading {
  margin: 0 2.25rem 1.1rem 0;
}

.legacy-plan-modal-heading h2 {
  margin: 0.45rem 0 0.5rem;
}

.legacy-plan-modal-heading p {
  max-width: 43rem;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
}

.legacy-plan-modal-badge {
  display: inline-flex;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legacy-plan-modal-message:empty {
  display: none;
}

.minute-topup-panel { width: min(25rem, 100%); }

.minute-package-picker { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; gap: .75rem; margin: 1rem 0; }

.minute-package-picker button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--secondary); color: var(--foreground); cursor: pointer; font: inherit; font-size: 1.35rem; font-weight: 800; }

.minute-package-picker button:disabled { cursor: default; opacity: .45; }

.minute-package-picker output { text-align: center; color: var(--foreground); font-family: var(--font-headings); font-size: 1.25rem; font-weight: 800; }

.minute-topup-panel > .button { width: 100%; }

.billing-back-button { display: inline-flex; margin: 0 2.5rem .8rem 0; }

.billing-back-button[hidden] { display: none; }
