.gatekeeper-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-y: auto;
}

.gatekeeper-container {
  width: 100%;
  max-width: 1320px;
  padding: 1.8rem;
  border: 1px solid rgba(0, 242, 255, 0.38);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 28px rgba(0, 242, 255, 0.15);
  max-height: 94vh;
  overflow-y: auto;
}

.gatekeeper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(0, 242, 255, 0.25);
}

.gatekeeper-title {
  font-size: 1.15rem;
  color: var(--text-primary);
}

.gatekeeper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.gatekeeper-column {
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.65);
  border: 1px solid var(--border-subtle);
}

.regulations-scroll-box {
  height: 270px;
  overflow-y: auto;
  padding: 0.9rem;
  border-radius: 6px;
  background: #040407;
  border: 1px solid rgba(0, 242, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.regulation-article h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
  margin-bottom: 0.25rem;
}

.regulation-article p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cyber-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.cyber-checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-cyan);
  margin-top: 0.1rem;
  cursor: pointer;
}

.cookie-matrix-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.cookie-tier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem;
  border-radius: 6px;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.cookie-tier-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.cookie-tier-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
}

.cyber-switch {
  width: 20px;
  height: 20px;
  accent-color: var(--neon-violet);
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 2.6rem;
}

.eye-toggle-btn {
  position: absolute;
  right: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.eye-toggle-btn:hover {
  color: var(--neon-cyan);
}

.gatekeeper-divider {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  letter-spacing: 0.1em;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.auth-modal-card {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  border: 1px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 40px rgba(0, 242, 255, 0.18);
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.auth-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.icon-close-button {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
}

.icon-close-button:hover {
  color: var(--neon-cyan);
}

.crypto-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cyber-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
}

.cyber-field input,
.cyber-textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 6px;
  background: rgba(5, 5, 5, 0.88);
  border: 1px solid rgba(0, 242, 255, 0.32);
  font-family: var(--font-mono);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cyber-field input:focus,
.cyber-textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 255, 0.32);
}

.auth-telemetry-feedback {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.65rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  border-left: 3px solid var(--neon-gold);
  color: var(--neon-gold);
}

.auth-modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.modulator-sliders-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.slider-control-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem;
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.55);
  border: 1px solid var(--border-subtle);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #1a1d26;
  outline: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  cursor: pointer;
}

.routing-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.routing-profile-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid var(--border-subtle);
  text-align: left;
  transition: all 0.2s ease;
}

.routing-profile-button.active {
  border-color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.22);
}

.routing-profile-name {
  font-family: var(--font-title);
  font-size: 0.82rem;
  color: var(--neon-cyan);
}

.routing-profile-button.active .routing-profile-name {
  color: var(--neon-gold);
}

.routing-profile-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.intrusion-log-terminal {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  height: 210px;
  overflow-y: auto;
  padding: 0.85rem;
  border-radius: 8px;
  background: #040406;
  border: 1px solid rgba(188, 19, 254, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.log-entry {
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.log-entry.threat-blocked {
  color: var(--neon-orange);
}

.log-entry.clean-pass {
  color: var(--neon-green);
}

@media (max-width: 1120px) {
  .gatekeeper-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .routing-matrix-grid {
    grid-template-columns: 1fr;
  }
}