/* © SNDR FX 2026 — All rights reserved · проприетарный код, копирование запрещено */
/* ───────────── SNDR FX — полноэкранное окно входа (SNDR FX // Crypto Screener) ─────────────
   Новый дизайн: сплит 50/50, живой canvas-фон (свечи), правая стеклянная панель.
   Всё скоупится под .auth-overlay.sndr-full, чтобы не трогать остальной продукт.
   Функционал (бот-ссылка, опрос, виджет-fallback, Google-заглушка) — в js/authmodal.js. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

.auth-overlay.sndr-full {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "ss01" 1, "cv11" 1, "cv02" 1;
  font-size: 16px;
  letter-spacing: -0.011em;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  animation: fadeIn 0.08s ease;
}
.auth-overlay.sndr-full.hidden { display: none; }
/* страховка: старый код может вешать .hidden на вложенные блоки */
.auth-overlay.sndr-full .hidden { display: none !important; }

/* CRT-сканлайны поверх всего (как в макете) */
.auth-overlay.sndr-full::after {
  content: " ";
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012), rgba(0, 0, 0, 0.008), rgba(255, 255, 255, 0.012));
  z-index: 50;
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 44%, rgba(0,0,0,0.6) 56%, rgba(0,0,0,0.6) 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 44%, rgba(0,0,0,0.6) 56%, rgba(0,0,0,0.6) 100%);
}

.sfx-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sfx-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.sfx-split {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

.sfx-left {
  position: relative;
  width: 50%;
  height: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.sfx-left .sfx-brand { pointer-events: auto; }

.sfx-right {
  position: relative;
  width: 50%;
  height: 100%;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: rgba(7, 7, 9, 0.68);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
          backdrop-filter: blur(26px) saturate(160%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    -40px 0 80px -30px rgba(0, 0, 0, 0.6);
}
.sfx-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0) 18%,
    rgba(0, 0, 0, 0) 62%,
    rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
  z-index: 0;
}
.sfx-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
.sfx-right > * { position: relative; z-index: 1; }

/* brand — SNDR FX слева сверху, якорь ширины держит позицию как в макете */
.sfx-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
}
.sfx-brand::after {
  content: "Crypto Screener";
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
  visibility: hidden;
  margin-right: -0.22em;
  pointer-events: none;
  user-select: none;
}
.sfx-brand-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.sfx-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #808080;
  text-transform: uppercase;
  line-height: 1.4;
}
.sfx-foot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #5e5e5e;
  text-transform: uppercase;
  line-height: 1.4;
}
.sfx-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 4.2vw, 56px);
  letter-spacing: -0.045em;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 12px 0;
}

/* кнопки входа */
.sfx-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;  background: rgba(15, 15, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background .3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color .3s cubic-bezier(0.4, 0, 0.2, 1),
    transform .3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  cursor: pointer;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.sfx-btn:hover:not(:disabled) {
  background: rgba(22, 22, 22, 0.82);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}
.sfx-btn:focus-visible {
  outline: 1px solid rgba(255,255,255,0.65);
  outline-offset: 2px;
}
.sfx-btn:active:not(:disabled) { transform: translateY(0); }
.sfx-btn:disabled { opacity: .6; cursor: wait; }

.sfx-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  color: #e2e2e2;
  white-space: nowrap;
  transition: color .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sfx-btn:hover:not(:disabled) .sfx-label { color: #ffffff; }
.sfx-icon {
  color: #8a8a8a;
  transition: color .3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: none;
  display: block;
  overflow: visible;
  width: 20px;
  height: 20px;
}
.sfx-btn:hover:not(:disabled) .sfx-icon { color: #ffffff; }
.sfx-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  line-height: 1;
  color: #6a6a6a;
  transition:
    color .3s cubic-bezier(0.4, 0, 0.2, 1),
    transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  flex: none;
}
.sfx-btn:hover:not(:disabled) .sfx-arrow { color: #fff; transform: translateX(4px); }

/* статус — только под реальные ошибки; пустой места не занимает (как в макете) */
.sfx-status:empty { display: none; }
.sfx-status {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  color: #808080;
  text-align: center;
}
.sfx-status.err { color: #ff7b7b; }

/* виджет-fallback: прозрачный iframe поверх кнопки Telegram */
.sfx-widget-wrap {
  position: relative;
}
.sfx-widget {
  position: absolute;
  inset: 0;
  opacity: 0;
  overflow: hidden;
}
.sfx-widget iframe {
  width: 100% !important;
  height: 100% !important;
  border: none;
}

/* крестик — только когда окно НЕ forced (открыто из профиля) */
.sfx-close {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #8a8a8a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.sfx-close:hover { color: #fff; border-color: rgba(255,255,255,.4); }
.auth-overlay.sndr-full.forced .sfx-close { display: none; }

/* Заголовки: десктоп — «Login», мобила — «SNDR FX» вместо бренда */
.sfx-title-mobile { display: none; }

.sfx-center {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}
.sfx-stack { width: 100%; display: flex; flex-direction: column; gap: 16px; }

/* старые #botMain/#authGgBtn-правила из profile.css (44px/240px) — гасим внутри нового окна */
.auth-overlay.sndr-full #botMain,
.auth-overlay.sndr-full #authGgBtn {
  height: auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  font-size: inherit;
  border-radius: 0;
}
.auth-overlay.sndr-full #botPane { position: relative; }

@media (max-width: 768px) {
  .sfx-split { flex-direction: column; }
  .sfx-left {
    width: 100%;
    height: 42%;
    padding: 28px;
  }
  .sfx-right {
    width: 100%;
    height: 58%;
    padding: 28px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
            backdrop-filter: blur(22px) saturate(150%);
  }
  .auth-overlay.sndr-full::after {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .sfx-brand-title { font-size: 20px; }
  .sfx-title { font-size: 40px; }

  /* На мобиле бренд слева прячем, заголовок меняем на SNDR FX */
  .sfx-brand { display: none; }
  .sfx-title-desktop { display: none; }
  .sfx-title-mobile { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .sfx-btn, .sfx-icon, .sfx-label, .sfx-arrow { transition-duration: .01ms; }
}

.auth-overlay.sndr-full ::-webkit-scrollbar { width: 3px; }
.auth-overlay.sndr-full ::-webkit-scrollbar-track { background: #000; }
.auth-overlay.sndr-full ::-webkit-scrollbar-thumb { background: #333; }
.auth-overlay.sndr-full ::-webkit-scrollbar-thumb:hover { background: #fff; }
