/* Shared interface surfaces for the MIRAVPN website, account and administration. */
dialog.nova-auth { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; }
dialog.nova-auth::backdrop { background: transparent; }
body:is(.mira-landing, .mira-admin, .mira-account) {
  --mira-bg: #0b1426;
  --mira-surface: #152238;
  --mira-raised: #1b2b43;
  --mira-line: #324761;
  --mira-text: #eef4ff;
  --mira-muted: #a1b3cc;
  --mira-accent: #9de5d4;
  --mira-danger: #ffb9c8;
  color-scheme: dark;
}
body:is(.mira-landing, .mira-admin, .mira-account) [hidden] { display: none !important; }
body:is(.mira-landing, .mira-admin, .mira-account):has(.nova-auth) { overflow: hidden; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth {
  padding: 24px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(3, 8, 20, .78);
  backdrop-filter: blur(6px);
  color: var(--mira-text);
  font: 14px/1.55 "Segoe UI", Arial, sans-serif;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-sizing: border-box;
  margin: auto;
  padding: 30px !important;
  background: var(--mira-surface);
  border: 1px solid #3c4f6b;
  border-radius: 23px;
  box-shadow: 0 25px 100px rgba(0, 0, 0, .45);
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card h2 {
  margin: 0 26px 12px 0;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -.035em;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card p {
  margin: 0 0 20px;
  color: var(--mira-muted);
  font-size: 13px;
  line-height: 1.7;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card .mira-inline-notice { padding: 12px 14px; margin: 14px 0 0; border: 1px solid #4d817b; border-radius: 10px; background: #19343c; color: #e4fff8; font-size: 12px; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card .mira-inline-notice.error { background: #392b40; border-color: #805468; color: #ffd8e0; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card button {
  padding: 12px 16px;
  color: var(--mira-text);
  background: var(--mira-raised);
  border: 1px solid var(--mira-line);
  border-radius: 13px;
  font: 600 14px/1.4 "Segoe UI", Arial, sans-serif;
  box-shadow: none;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card button:hover:not(:disabled) {
  border-color: #7599a4;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card .nova-submit {
  margin-top: 10px;
  color: #082c31;
  border-color: #8addcc;
  background: linear-gradient(105deg, #9de5d4, #6ccabf);
  font-size: 14px !important;
  border-radius: 13px !important;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card .nova-submit:hover:not(:disabled) {
  background: #a1eadc;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card .nova-auth-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 32px !important;
  height: 32px;
  min-height: 32px !important;
  padding: 0;
  border-radius: 50% !important;
  background: #223248;
  color: #cfdef5;
  font: 23px/1 Arial, sans-serif;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card input {
  height: 52px;
  margin: 9px 0 14px;
  padding: 0 14px;
  border: 1px solid #3d526e;
  border-radius: 12px;
  background: #101c30;
  color: var(--mira-text);
  font: 400 16px/1.5 "Segoe UI", Arial, sans-serif;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card input::placeholder { color: #8199b8; }
body:is(.mira-landing, .mira-admin, .mira-account) :is(.nova-auth-card input, .nova-support-form textarea):focus {
  border-color: #8addcc;
  outline: 2px solid rgba(138, 221, 204, .18);
  outline-offset: 2px;
}
body:is(.mira-landing, .mira-admin, .mira-account) :is(.nova-auth button, .nova-support-panel button, .nova-support-launcher):focus-visible {
  outline: 2px solid var(--mira-accent);
  outline-offset: 3px;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-trial-email-label { color: #d3e1f3; font-size: 12px; line-height: 1.6; font-weight: 500; }
body:is(.mira-landing, .mira-admin, .mira-account) :is(.nova-method-caption, .nova-telegram-hint, .nova-auth-divider) {
  color: #9eb2cb;
  font-size: 11px;
  line-height: 1.65;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-method-caption { margin-top: 12px; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-selected-offer {
  padding: 12px 14px;
  border-radius: 10px;
  background: #101c30;
  color: #b7ccdf !important;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-purchase-plans { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-purchase-plans button { font-size: 13px; font-weight: 600; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-purchase-plans button.selected { color: #bef5e6 !important; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-telegram-button,
body:is(.mira-landing, .mira-admin, .mira-account) .nova-telegram-button.ready {
  background: #20354e !important;
  border: 1px solid #466485 !important;
  border-radius: 13px !important;
  color: #dcefff !important;
  box-shadow: none;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-telegram-button.ready > b { font-size: 14px !important; font-weight: 600; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-telegram-status { color: #bfd4e9; margin-top: 12px; font-size: 12px; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-notice {
  padding: 14px 19px;
  border: 1px solid #4d817b;
  border-radius: 13px;
  background: #19343c;
  color: #e4fff8;
  font: 13px/1.6 "Segoe UI", Arial, sans-serif;
  pointer-events: none;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-notice.error { background: #392b40; border-color: #805468; color: #ffd8e0; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-launcher {
  min-width: 140px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #779cac;
  border-radius: 15px;
  color: #e6f5ff;
  background: #203650;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
  font: 600 13px/1.4 "Segoe UI", Arial, sans-serif;
  animation: none;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-launcher.alert { border-color: var(--mira-accent); background: #255046; animation: none; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-launcher svg { color: #a4e4d6; width: 20px; height: 20px; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-badge { color: #092d31; background: #9de5d4; border-color: #19343c; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-hint { background: #192d46; border-color: #4b6b80; color: #dbe9f6; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-panel {
  bottom: 82px;
  border: 1px solid #3c4f6b;
  border-radius: 21px;
  background: var(--mira-surface);
  color: var(--mira-text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
  font: 13px/1.55 "Segoe UI", Arial, sans-serif;
}
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-head { background: #1c2d44; border-color: #34465e; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-head strong { font-size: 14px; font-weight: 600; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-head small { color: #aad9cf; font-size: 11px; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-message { background: #233951; border-color: #36536c; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-message.user { background: #284b4e; border-color: #487670; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-message.system { background: none; border: 0; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-message time { color: #b2c5d8; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-form { border-color: #34465e; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-form textarea { background: #101c30; border-color: #3d526e; border-radius: 12px; font: 14px/1.4 "Segoe UI", Arial, sans-serif; }
body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-send { background: #9de5d4; border-color: #8addcc; border-radius: 12px; color: #123b3d; }
@media (max-width: 480px) {
  body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth { padding: 12px; }
  body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card { max-height: calc(100dvh - 24px); padding: 26px 20px !important; border-radius: 20px; }
  body:is(.mira-landing, .mira-admin, .mira-account) .nova-auth-card h2 { font-size: 24px; }
  body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-panel { bottom: 76px; height: min(570px, calc(100dvh - 96px)); }
  body:is(.mira-landing, .mira-admin, .mira-account) .nova-support-launcher { right: 12px; bottom: 12px; min-width: 128px; height: 48px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.mira-landing, .mira-admin, .mira-account) :is(.nova-notice, .nova-support-launcher) { transition: none; animation: none; }
}
