/* Login gate — Seiteninhalt ausblenden, Login-Overlay bleibt interaktiv */
body.auth-locked .header,
body.auth-locked .main,
body.auth-locked .footer,
body.auth-locked .bg-glow {
  visibility: hidden;
  pointer-events: none;
}

body.auth-locked .cookie-banner {
  visibility: visible;
  pointer-events: auto;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 5, 10, 0.92);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

.auth-gate,
.auth-gate * {
  pointer-events: auto;
}

.auth-gate.hidden {
  display: none;
}

.auth-gate__card {
  width: 100%;
  max-width: 420px;
  background: #12121f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(124, 92, 255, 0.25);
  animation: authPop 0.35s ease;
}

@keyframes authPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-gate__icon {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.auth-gate__title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff, #7c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-gate__sub {
  text-align: center;
  color: #8888a0;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-gate__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8888a0;
  margin-bottom: 0.4rem;
}

.auth-gate__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #0a0a12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f0f0f5;
  -webkit-text-fill-color: #f0f0f5;
  caret-color: #f0f0f5;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.auth-gate__input:-webkit-autofill,
.auth-gate__input:-webkit-autofill:hover,
.auth-gate__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f0f0f5;
  box-shadow: 0 0 0 1000px #0a0a12 inset;
  caret-color: #f0f0f5;
}

.auth-gate__input:focus {
  outline: none;
  border-color: #7c5cff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}

.auth-gate__btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c5cff, #ff6bcb);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-gate__btn:hover {
  filter: brightness(1.05);
}

.auth-gate__btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.auth-gate__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.85rem;
  color: #666680;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-gate__divider::before,
.auth-gate__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-gate__twitch {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 10px;
  background: #9146ff;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
}

.auth-gate__twitch:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.auth-gate__twitch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.auth-gate__twitch-icon {
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11.64 5.93 9.9 10.2H7.5V5.93H4.64V16h2.86v-4.66h2.4l1.9 4.66h3.16l-2.2-5.04 2.22-5.03h-3.14ZM18.5 5.93h2.86V16H18.5V5.93Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11.64 5.93 9.9 10.2H7.5V5.93H4.64V16h2.86v-4.66h2.4l1.9 4.66h3.16l-2.2-5.04 2.22-5.03h-3.14ZM18.5 5.93h2.86V16H18.5V5.93Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-gate__divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-gate__divider::before,
.auth-gate__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-gate__demo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 231, 160, 0.45);
  background: rgba(110, 231, 160, 0.12);
  color: #6ee7a0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s, background 0.15s;
}

.auth-gate__demo:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  background: rgba(110, 231, 160, 0.18);
}

.auth-gate__demo--disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.auth-gate__panel-hint--twitch {
  margin-top: 0.75rem;
}

.header__user--demo {
  color: #6ee7a0;
  font-weight: 700;
}

.demo-link-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.demo-link-box__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font-family: inherit;
  font-size: 0.95rem;
}

.demo-link-box__btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm, 10px);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent, #7c5cff), var(--accent-2, #ff6bcb));
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--accent-glow, rgba(124, 92, 255, 0.35));
  transition: transform 0.15s, filter 0.15s;
}

.demo-link-box__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.user-twitch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(145, 70, 255, 0.18);
  color: #c4a5ff;
  border: 1px solid rgba(145, 70, 255, 0.35);
  white-space: nowrap;
}

.auth-gate__error {
  min-height: 1.2em;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #ff8888;
  text-align: center;
}

.header__logout {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #8888a0;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.header__logout:hover {
  color: #ff8888;
  border-color: rgba(255, 136, 136, 0.35);
}

.header__user {
  font-size: 0.85rem;
  color: #8888a0;
  margin-right: 0.25rem;
}

a.header__user {
  text-decoration: none;
}

a.header__user:hover {
  color: #c8c8d8;
}

.header__session {
  font-size: 0.78rem;
  color: #ffc850;
  margin-right: 0.5rem;
}

.header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.header__idea-btn {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(124, 92, 255, 0.15);
  background-color: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: #c4b5fd;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.header__idea-btn:hover {
  background: rgba(124, 92, 255, 0.25);
  color: #e9d5ff;
}

.header__ext-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #67e8f9;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.header__ext-btn:hover {
  background: rgba(34, 211, 238, 0.22);
  color: #a5f3fc;
}

.idea-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.idea-modal.hidden {
  display: none !important;
}

.idea-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.75);
  backdrop-filter: blur(4px);
}

.idea-modal__card {
  position: relative;
  width: min(100%, 480px);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #121829 0%, #0a0e1a 100%);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(124, 92, 255, 0.2);
}

.idea-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: #8888a0;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.idea-modal__close:hover {
  color: #fff;
}

.idea-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.idea-modal__sub {
  color: #8888a0;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.idea-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.idea-modal__message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.idea-modal__message--success {
  color: #6ee7a0;
}

.idea-modal__message--error {
  color: #ff8888;
}

.auth-gate__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-gate__tab {
  flex: 1;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: #8888a0;
  font-family: inherit;
  cursor: pointer;
}

.auth-gate__tab--active {
  color: #f0f0f5;
  border-color: #7c5cff;
  background: rgba(124, 92, 255, 0.15);
}

.auth-gate__panel.hidden {
  display: none;
}

.auth-gate__hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #8888a0;
  text-align: center;
}

.auth-gate__panel-hint {
  font-size: 0.85rem;
  color: #8888a0;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.auth-gate__link-btn {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: #7c5cff;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-gate__link-btn:hover {
  color: #a78bff;
}

.auth-gate__textarea {
  resize: vertical;
  min-height: 4rem;
  margin-bottom: 1rem;
}

.user-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.user-status--pending { background: rgba(255, 200, 80, 0.15); color: #ffc850; }
.user-status--approved { background: rgba(110, 231, 160, 0.15); color: #6ee7a0; }
.user-status--rejected { background: rgba(255, 136, 136, 0.15); color: #ff8888; }

.idea-chat-card {
  width: min(520px, 94vw);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
}

.idea-chat-messages {
  flex: 1;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.idea-chat-empty {
  color: #71717a;
  font-size: 0.9rem;
  text-align: center;
  margin: auto;
}

.idea-chat-msg {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.idea-chat-msg--admin {
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.08);
}

.idea-chat-msg--streamer {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
}

.idea-chat-msg__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-bottom: 0.35rem;
}

.idea-chat-msg__text {
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.92rem;
}

.idea-chat-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.header__idea-btn--chat {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
}

.header__idea-btn--chat:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
}

.idea-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.idea-status-badge--pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.idea-status-badge--accepted {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.my-ideas-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.my-ideas-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f5;
  font-family: inherit;
  cursor: pointer;
}

.my-ideas-list__item:hover {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.1);
}

.my-ideas-list__item span {
  color: #a1a1aa;
  font-size: 0.82rem;
}

.demo-sessions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.9rem;
}

.demo-sessions-header h3 {
  margin: 0;
}

.demo-session-item__remaining {
  min-width: 6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.demo-session-item__remaining-label {
  font-size: 0.78rem;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .demo-link-box,
  .demo-sessions-header {
    flex-direction: column;
  }

  .demo-sessions-header,
  .demo-session-item__remaining {
    align-items: flex-start;
  }

  .demo-session-item__remaining {
    min-width: 0;
  }
}
