/* ─────────────────────────────────────
   TIS EMAIL GATE — soft login for articles
   ───────────────────────────────────── */

.tis-gate-blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 300ms ease;
}

.tis-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.tis-gate-overlay.active { opacity: 1; visibility: visible; }
.tis-gate-overlay.unlocked { opacity: 0; pointer-events: none; }

.tis-gate-modal {
  position: relative;
  background: #fafafa;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 44px 40px 36px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,246,255,0.18);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}
.tis-gate-overlay.active .tis-gate-modal { transform: none; }
@media (max-width: 599px) { .tis-gate-modal { padding: 36px 24px 28px; } }

.tis-gate-mesh {
  position: absolute; inset: 0;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
}
.tis-gate-mesh span {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.tis-gate-mesh .m1 { background: #00f6ff; top: -100px; left: -80px; }
.tis-gate-mesh .m2 { background: #18269e; bottom: -120px; right: -80px; }
.tis-gate-mesh .m3 { background: #0ac186; top: 40%; right: 30%; width: 200px; height: 200px; }

.tis-gate-inner { position: relative; z-index: 1; }

.tis-gate-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #18269e;
  display: inline-block;
  margin-bottom: 18px;
}

.tis-gate-modal h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-bottom: 14px;
}

.tis-gate-grad {
  background: linear-gradient(110deg, #00f6ff 0%, #18269e 50%, #0ac186 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tis-gate-sub {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #3f3f46;
  margin-bottom: 24px;
}

.tis-gate-form {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.tis-gate-form input {
  flex: 1;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.tis-gate-form input:focus {
  border-color: #00f6ff;
  box-shadow: 0 0 0 4px rgba(0,246,255,0.15);
}
.tis-gate-form button {
  padding: 13px 22px;
  background: linear-gradient(135deg, #00f6ff 0%, #18269e 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 4px 14px -6px rgba(24,38,158,0.5);
}
.tis-gate-form button:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 22px -6px rgba(0,246,255,0.45);
}
@media (max-width: 480px) { .tis-gate-form { flex-direction: column; } }

.tis-gate-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tis-gate-list li {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: #3f3f46;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.tis-gate-list li::before {
  content: '✓';
  color: #0ac186;
  font-weight: 700;
  flex-shrink: 0;
}

.tis-gate-note {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #71717a;
  text-align: center;
  margin: 0;
}

/* ───────── MEMBER BADGE ───────── */
.tis-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 193, 134, 0.1);
  border: 1px solid rgba(10, 193, 134, 0.3);
  color: #059669;
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 10px;
}
.tis-member-dot {
  width: 6px; height: 6px;
  background: #0ac186;
  border-radius: 50%;
  animation: tisMemberPulse 1.6s ease-in-out infinite;
}
@keyframes tisMemberPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.tis-member-out {
  background: transparent;
  border: 0;
  color: #059669;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 4px;
  margin-left: 2px;
  opacity: 0.6;
  transition: opacity 160ms ease;
}
.tis-member-out:hover { opacity: 1; }
@media (max-width: 599px) { .tis-member-badge .tis-member-text { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .tis-gate-overlay, .tis-gate-modal, .tis-gate-blurred, .tis-member-dot {
    transition: none !important; animation: none !important;
  }
}
