html.sf-locked,
html.sf-locked body {
  background: #070b1a;
  overflow: hidden;
}

#sf-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #070b1a;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #eef2ff;
}

#sf-gate.is-out {
  pointer-events: none;
  animation: sf-gate-out .45s ease forwards;
}

@keyframes sf-gate-out {
  to { opacity: 0; transform: scale(1.03); filter: blur(8px); }
}

.sf-gate-aurora,
.sf-gate-dots,
.sf-gate-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sf-gate-aurora {
  background:
    radial-gradient(520px 280px at 50% 38%, rgba(99, 102, 241, .28), transparent 62%),
    radial-gradient(420px 240px at 22% 78%, rgba(56, 189, 248, .14), transparent 60%),
    radial-gradient(380px 220px at 82% 18%, rgba(167, 139, 250, .16), transparent 58%);
  animation: sf-aurora 10s ease-in-out infinite;
  filter: blur(8px);
}

@keyframes sf-aurora {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); opacity: .85; }
  50% { transform: scale(1.12) translate3d(0, -16px, 0); opacity: 1; }
}

.sf-gate-dots {
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .4;
  animation: sf-dots 18s linear infinite;
}

@keyframes sf-dots {
  to { background-position: 22px 22px; }
}

.sf-gate-fx { z-index: 1; }

.sf-gate-inner {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100% - 40px));
  text-align: center;
  animation: sf-card-in .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes sf-card-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.sf-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #f4f7ff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  animation: sf-float 4.5s ease-in-out infinite;
}

.sf-gate-brand svg {
  width: 30px;
  height: 22px;
}

@keyframes sf-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.sf-gate-card {
  padding: 28px 24px 22px;
  border-radius: 22px;
  background: rgba(22, 27, 46, .92);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(99, 102, 241, .08);
  backdrop-filter: blur(10px);
}

.sf-gate-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.sf-gate-title svg {
  width: 16px;
  height: 16px;
  color: #c9d4ff;
}

.sf-gate-sub {
  margin: 8px 0 18px;
  color: #8b93b0;
  font-size: 13px;
}

.sf-turn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px 12px 16px;
  border: 0;
  border-radius: 4px;
  background: #f4f6fb;
  color: #1b1f2a;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .2s ease;
}

.sf-turn:hover {
  background: #eef1f8;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.sf-turn:active { transform: scale(.985); }

.sf-turn.is-wait { cursor: progress; }
.sf-turn.is-ok { box-shadow: 0 0 0 2px rgba(47, 158, 68, .18); }

.sf-turn-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.sf-box {
  width: 24px;
  height: 24px;
  border: 2px solid #4b5568;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: border-color .2s ease, transform .2s ease;
}

.sf-turn:hover .sf-box {
  border-color: #f48120;
  transform: scale(1.06);
}

.sf-turn.is-wait .sf-box {
  border-color: transparent;
  background: transparent;
}

.sf-spin {
  width: 18px;
  height: 18px;
  border: 2px solid #c7ccd8;
  border-top-color: #f48120;
  border-radius: 50%;
  animation: sfspin .7s linear infinite;
}

.sf-ok {
  width: 18px;
  height: 18px;
  color: #2f9e44;
  animation: sf-pop .28s cubic-bezier(.22, 1, .36, 1);
}

@keyframes sf-pop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.sf-cf {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 96px;
  color: #6b7280;
  font-size: 10px;
  line-height: 1.15;
}

.sf-cf strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #111827;
  font-size: 11px;
  letter-spacing: .03em;
}

.sf-cf a {
  color: #6b7280;
  text-decoration: underline;
}

@keyframes sfspin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .sf-gate-card { padding: 22px 16px 16px; }
  .sf-turn { min-height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-gate-aurora, .sf-gate-dots, .sf-gate-brand { animation: none; }
  .sf-gate-inner { animation: none; }
}
