:root {
  --green: #2ECF75;
  --green-soft: rgba(46, 207, 117, 0.16);
  --bg: #101010;
  --panel: #171717;
  --panel-strong: #1f1f1f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f7f4;
  --muted: #a7ada7;
  --danger: #ff7474;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(46, 207, 117, 0.12), transparent 32rem),
    linear-gradient(145deg, #101010 0%, #151515 52%, #0d0d0d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.hero {
  min-height: 36vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 36px 0;
}

.hero__badge,
.tool-kicker {
  width: fit-content;
  border: 1px solid rgba(46, 207, 117, 0.32);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero h1,
.tool-header h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 7vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p,
.tool-header p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  line-height: 1.6;
}

.hero__welcome {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.hero__welcome h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.hero .hero__support {
  max-width: 760px;
  color: #d8dcd8;
  font-size: 1rem;
  line-height: 1.6;
}

.start-guide {
  display: grid;
  gap: 24px;
  margin-bottom: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.start-guide__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.start-guide__header > span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.start-guide__header h2,
.tools-section__title {
  font-size: clamp(1.35rem, 2.7vw, 1.8rem);
  line-height: 1.2;
}

.start-guide__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.start-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding-right: 20px;
}

.start-step + .start-step {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.start-step__number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 207, 117, 0.34);
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.start-step h3 {
  margin-bottom: 7px;
  font-size: 1rem;
  line-height: 1.3;
}

.start-step p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tools-section {
  display: grid;
  gap: 18px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.tool-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(46, 207, 117, 0.74);
  background: linear-gradient(180deg, rgba(46, 207, 117, 0.11), rgba(255, 255, 255, 0.035));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), 0 0 26px rgba(46, 207, 117, 0.11), 0 0 0 3px rgba(46, 207, 117, 0.08);
  outline: none;
  transform: translateY(-4px);
}

.tool-card__arrow {
  align-self: flex-end;
  margin-top: auto;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease;
}

.tool-card:hover .tool-card__arrow,
.tool-card:focus-visible .tool-card__arrow {
  transform: translateX(3px);
}

.tool-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(46, 207, 117, 0.3);
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.tool-card__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card h2 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.55;
}

.home-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 24px 0 8px;
}

.home-footer p {
  max-width: 900px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.tool-page {
  max-width: 1040px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 750;
}

.back-link::before {
  content: "←";
  margin-right: 10px;
  color: var(--green);
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  outline: none;
}

.tool-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.calculator-panel,
.checklist-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.calculator-form,
.result-card,
.checklist-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(23, 23, 23, 0.82);
  box-shadow: var(--shadow);
}

.calculator-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.calculator-form label {
  display: grid;
  gap: 8px;
  color: #dfe4de;
  font-size: 0.95rem;
  font-weight: 700;
}

.calculator-form input,
.calculator-form select,
.calculator-form textarea,
.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #111;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.calculator-form textarea,
.admin-field textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.calculator-form input:focus,
.calculator-form select:focus,
.calculator-form textarea:focus,
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 207, 117, 0.12);
}

.calculator-form input.is-invalid,
.calculator-form select.is-invalid,
.calculator-form textarea.is-invalid,
.admin-field input.is-invalid,
.admin-field select.is-invalid,
.admin-field textarea.is-invalid {
  border-color: var(--danger);
}

.calculator-form button,
.secondary-button,
.admin-actions button,
.import-button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #061108;
  cursor: pointer;
  font-weight: 900;
}

.secondary-button {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.calculator-form button:hover,
.secondary-button:hover,
.admin-actions button:hover,
.import-button:hover {
  filter: brightness(1.05);
}

.result-card {
  min-height: 260px;
  padding: 24px;
}

.result-card__empty,
.result-note,
.error-message {
  color: var(--muted);
  line-height: 1.6;
}

.result-signature {
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(246, 247, 244, 0.54);
  font-size: 0.72rem;
  line-height: 1.5;
  padding-top: 14px;
  text-align: right;
}

.result-signature a,
.brand-footer__link {
  color: rgba(46, 207, 117, 0.86);
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

.result-signature a:hover,
.result-signature a:focus-visible,
.brand-footer__link:hover,
.brand-footer__link:focus-visible {
  color: var(--green);
  outline: none;
}

.brand-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 8px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(246, 247, 244, 0.48);
  font-size: 0.76rem;
  line-height: 1.5;
  padding: 20px 16px 28px;
  text-align: center;
}

.home-page .page-shell {
  position: relative;
  isolation: isolate;
}

.home-page .page-shell > :not(.home-watermark) {
  position: relative;
  z-index: 1;
}

.home-badge {
  box-shadow: 0 0 24px rgba(46, 207, 117, 0.08);
}

.home-watermark {
  position: absolute;
  top: 210px;
  right: 0;
  z-index: 0;
  color: var(--text);
  font-size: clamp(10rem, 26vw, 20rem);
  font-weight: 950;
  line-height: 0.8;
  opacity: 0.022;
  pointer-events: none;
  user-select: none;
}

.error-message {
  color: var(--danger);
  font-weight: 700;
}

.result-list {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.result-item {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.result-item:last-child {
  border-bottom: 0;
}

.result-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-item strong {
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.recommendation {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 8px 12px;
  font-weight: 900;
}

.recommendation.is-negative {
  background: rgba(255, 116, 116, 0.13);
  color: var(--danger);
}

.checklist-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px;
}

.progress-box {
  display: grid;
  gap: 12px;
}

.progress-box__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-box__detail {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b0b0b;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.checklist {
  display: grid;
  gap: 16px;
}

.checklist-notice {
  margin-bottom: 0;
}

.checklist-stage {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.checklist-stage h2 {
  font-size: 1rem;
}

.checklist-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-strong);
  cursor: pointer;
}

.checklist-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
}

.checklist-item span {
  line-height: 1.35;
}

.checklist-item:has(input:checked) {
  border-color: rgba(46, 207, 117, 0.45);
  background: rgba(46, 207, 117, 0.09);
}

.checklist-item:has(input:checked) span {
  color: #c8f6d9;
}

.notice-box {
  margin-bottom: 22px;
  border: 1px solid rgba(46, 207, 117, 0.26);
  border-radius: 18px;
  background: rgba(46, 207, 117, 0.09);
  color: #d7f7e4;
  line-height: 1.6;
  padding: 18px;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reference-card,
.admin-program-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(23, 23, 23, 0.82);
  box-shadow: var(--shadow);
  padding: 22px;
}

.reference-card {
  display: grid;
  gap: 16px;
}

.reference-card__head {
  display: grid;
  gap: 8px;
}

.reference-card h2 {
  font-size: 1.2rem;
}

.reference-type {
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.reference-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.price-pill {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111;
  padding: 12px;
}

.price-pill span,
.reference-meta,
.admin-field span {
  color: var(--muted);
  font-size: 0.82rem;
}

.price-pill strong {
  color: var(--text);
  font-size: 1rem;
}

.reference-note {
  color: var(--muted);
  line-height: 1.55;
}

.admin-shortcut {
  display: inline-flex;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 750;
}

.admin-shortcut:hover,
.admin-shortcut:focus-visible {
  color: var(--green);
  outline: none;
}

.admin-login {
  max-width: 520px;
}

.is-hidden {
  display: none !important;
}

.admin-panel {
  display: grid;
  gap: 18px;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-actions .secondary-button,
.import-button {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.import-button {
  display: grid;
  place-items: center;
  cursor: pointer;
  text-align: center;
}

.import-button input {
  display: none;
}

.form-message {
  min-height: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--green);
}

.form-message.is-error {
  color: var(--danger);
}

.admin-editor {
  display: grid;
  gap: 18px;
}

.admin-program-card {
  display: grid;
  gap: 16px;
}

.admin-program-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-program-card h2 {
  font-size: 1.05rem;
}

.remove-program-button {
  min-height: 40px;
  border: 1px solid rgba(255, 116, 116, 0.3);
  border-radius: 12px;
  background: rgba(255, 116, 116, 0.1);
  color: var(--danger);
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.remove-program-button:hover {
  filter: brightness(1.08);
}

.admin-updated-at {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 8px 11px;
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-field {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.admin-field--wide {
  grid-column: 1 / -1;
}

.field-hint {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.field-hint.is-success {
  color: #bcefd0;
}

.field-hint.is-error {
  color: var(--danger);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-section-title {
  margin-top: 8px;
  color: var(--green);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.calculator-form .dollar-rate-button {
  width: fit-content;
  min-height: 40px;
  border: 1px solid rgba(46, 207, 117, 0.3);
  background: var(--green-soft);
  color: var(--green);
  padding: 0 14px;
  font-size: 0.86rem;
}

.calculator-form .dollar-rate-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.input-with-action {
  position: relative;
  display: block;
}

.calculator-form .input-with-action input {
  padding-right: 54px;
}

.calculator-form .dollar-rate-icon-button {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 36px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 207, 117, 0.3);
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  padding: 0;
  transform: translateY(-50%);
}

.dollar-rate-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dollar-rate-icon-button[aria-busy="true"] svg {
  animation: dollar-rate-spin 700ms linear infinite;
}

.cashback-result {
  min-height: 360px;
}

@keyframes dollar-rate-spin {
  to { transform: rotate(360deg); }
}

.annuity-result {
  min-height: 420px;
}

.annuity-result-section {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.annuity-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.annuity-result-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111;
  padding: 14px;
}

.annuity-result-item--wide {
  grid-column: 1 / -1;
}

.annuity-result-item span,
.annuity-result-item small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.annuity-result-item strong {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.annuity-result-item p {
  color: var(--text);
  line-height: 1.55;
}

.annuity-result-section .annuity-result-grid {
  margin-bottom: 0;
}

.airlines-comparator,
.airlines-form {
  display: grid;
  gap: 22px;
}

.airlines-program-grid,
.airlines-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.airline-program-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(23, 23, 23, 0.82);
  box-shadow: var(--shadow);
  padding: 20px;
}

.airline-program-card h2 {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.3;
}

.airline-program-card label {
  display: grid;
  gap: 8px;
  color: #dfe4de;
  font-size: 0.92rem;
  font-weight: 700;
}

.airline-program-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #111;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.airline-program-card input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 207, 117, 0.12);
}

.airline-program-card input.is-invalid {
  border-color: var(--danger);
}

.airlines-actions {
  width: min(100%, 520px);
}

.airlines-actions .primary-button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #061108;
  cursor: pointer;
  font-weight: 900;
}

.airlines-actions .primary-button:hover {
  filter: brightness(1.05);
}

.airlines-result {
  min-height: 220px;
}

.explanation-box {
  display: grid;
  gap: 10px;
  margin: 24px 0 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(23, 23, 23, 0.82);
  box-shadow: var(--shadow);
  padding: 24px;
}

.explanation-box h2 {
  font-size: 1.2rem;
}

.explanation-box p {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 880px) {
  .calculator-panel,
  .reference-grid,
  .admin-actions {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .airlines-program-grid,
  .airlines-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-card {
    min-height: 190px;
  }

  .admin-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .home-watermark {
    display: none;
  }

  .result-signature {
    text-align: left;
  }

  .brand-footer {
    width: min(100% - 22px, 1120px);
    padding-inline: 8px;
  }

  .page-shell {
    width: min(100% - 22px, 1120px);
    padding: 22px 0;
  }

  .hero {
    min-height: auto;
    padding: 24px 0;
  }

  .hero__welcome {
    gap: 9px;
  }

  .hero .hero__lead {
    font-size: 1.05rem;
  }

  .start-guide {
    gap: 18px;
    margin: 10px 0 34px;
    padding: 22px 0;
  }

  .start-guide__header {
    display: grid;
    gap: 7px;
  }

  .start-guide__steps {
    grid-template-columns: 1fr;
  }

  .start-step {
    padding: 0 0 18px;
  }

  .start-step + .start-step {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 18px 0;
  }

  .hero h1,
  .tool-header h1 {
    font-size: clamp(2.35rem, 14vw, 3.65rem);
  }

  .tool-card,
  .calculator-form,
  .result-card,
  .checklist-panel,
  .reference-card,
  .admin-program-card {
    border-radius: 18px;
    padding: 18px;
  }

  .calculator-form input,
  .calculator-form select,
  .calculator-form textarea,
  .calculator-form button,
  .secondary-button,
  .admin-actions button,
  .import-button {
    min-height: 48px;
  }

  .calculator-form .dollar-rate-button {
    min-height: 40px;
  }

  .calculator-form .dollar-rate-icon-button {
    min-height: 36px;
  }

  .reference-prices,
  .admin-fields,
  .annuity-result-grid,
  .form-actions,
  .tools-grid,
  .airlines-program-grid,
  .airlines-result-grid {
    grid-template-columns: 1fr;
  }

  .airline-program-card {
    border-radius: 18px;
    padding: 18px;
  }
}

.auth-checking body {
  visibility: hidden;
}

.auth-locked main {
  pointer-events: none;
  user-select: none;
  filter: blur(5px);
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  background: rgba(8, 8, 8, 0.86);
  padding: 20px;
}

.auth-gate__panel {
  width: min(100%, 440px);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(46, 207, 117, 0.28);
  border-radius: 18px;
  background: #171717;
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-gate__panel h1 {
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  line-height: 1.1;
}

.auth-gate__panel > p,
.auth-gate__panel label {
  color: var(--muted);
  line-height: 1.55;
}

.auth-gate__panel label {
  display: grid;
  gap: 8px;
  font-weight: 750;
}

.auth-gate__panel input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #101010;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.auth-gate__panel input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 207, 117, 0.12);
}

.auth-gate__panel input.is-invalid {
  border-color: var(--danger);
}

.auth-gate__panel button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #061108;
  cursor: pointer;
  font-weight: 900;
}

.auth-logout {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 900;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.9);
  color: var(--muted);
  cursor: pointer;
  padding: 0 14px;
  font-weight: 800;
}

.auth-logout:hover,
.auth-logout:focus-visible {
  border-color: rgba(46, 207, 117, 0.52);
  color: var(--green);
  outline: none;
}
