@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --mkq-primary: #6366f1;
  --mkq-primary-dark: #4f46e5;
  --mkq-secondary: #8b5cf6;
  --mkq-background: #f8f9ff;
  --mkq-dark: #1e1b4b;
  --mkq-surface: #ffffff;
  --mkq-border: #e2e8f0;
  --mkq-text: #334155;
  --mkq-text-light: #64748b;
  --mkq-success: #10b981;
  --mkq-danger: #ef4444;
  --mkq-warning: #f59e0b;
  --mkq-radius: 12px;
  --mkq-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --mkq-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --mkq-transition: 200ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--mkq-background);
  color: var(--mkq-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

/* ============================================================
   APP SHELL LAYOUT
   ============================================================ */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mkq-navbar {
  background: linear-gradient(135deg, var(--mkq-dark) 0%, #312e81 100%);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.75rem 1.5rem;
}

.mkq-navbar .navbar-brand {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.mkq-navbar .navbar-brand span:not(.navbar-area):not(.navbar-version) {
  color: #a5b4fc;
}

.mkq-navbar .navbar-brand {
  line-height: 1.1;
}

.mkq-navbar .navbar-area {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.8px;
  margin-top: 6px;
  text-transform: uppercase;
}

.mkq-navbar .navbar-version {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.5px;
}

.mkq-navbar .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-weight: 500;
  transition: color var(--mkq-transition), background var(--mkq-transition);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
}

.mkq-navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

.mkq-navbar .nav-link-active {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
  font-weight: 600;
}

.mkq-page {
  flex: 1;
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-mkq-primary {
  background: linear-gradient(135deg, var(--mkq-primary) 0%, var(--mkq-secondary) 100%);
  border: none;
  color: #fff;
  border-radius: var(--mkq-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: background var(--mkq-transition), filter var(--mkq-transition);
}

.btn-mkq-primary:hover {
  filter: brightness(1.12);
  color: #fff;
}

.btn-mkq-primary:active {
  filter: brightness(0.95);
}

.btn-mkq-secondary {
  background: transparent;
  border: 2px solid var(--mkq-primary);
  color: var(--mkq-primary);
  border-radius: var(--mkq-radius);
  padding: 0.55rem 1.5rem;
  font-weight: 600;
  transition: all var(--mkq-transition);
}

.btn-mkq-secondary:hover {
  background: var(--mkq-primary);
  color: #fff;
}

.btn-mkq-danger {
  background: var(--mkq-danger);
  border: none;
  color: #fff;
  border-radius: var(--mkq-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: all var(--mkq-transition);
}

.btn-mkq-danger:hover {
  background: #dc2626;
  color: #fff;
}

/* ============================================================
   CARDS
   ============================================================ */
.mkq-card {
  background: var(--mkq-surface);
  border-radius: var(--mkq-radius);
  box-shadow: var(--mkq-shadow);
  border: 1px solid var(--mkq-border);
  overflow: hidden;
}

.mkq-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--mkq-border);
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f0ff 100%);
}

.mkq-card-body {
  padding: 1.5rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.mkq-form-control {
  border: 1.5px solid var(--mkq-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  transition: border-color var(--mkq-transition), box-shadow var(--mkq-transition);
  background: #fff;
  width: 100%;
}

.mkq-form-control:focus {
  outline: none;
  border-color: var(--mkq-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ============================================================
   RATING STARS (1–6)
   ============================================================ */
.star-rating {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.star-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--mkq-border);
  background: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--mkq-transition);
  position: relative;
}

.star-btn:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  transform: scale(1.1);
}

.star-btn.selected {
  border-color: #f59e0b;
  background: #fef3c7;
  color: #d97706;
}

.star-btn .star-number {
  font-size: 0.7rem;
  font-weight: 700;
  position: absolute;
  bottom: 2px;
  right: 4px;
  color: var(--mkq-text-light);
}

/* ============================================================
   SKETCH CANVAS
   ============================================================ */
.sketch-container {
  border: 2px solid var(--mkq-border);
  border-radius: var(--mkq-radius);
  overflow: hidden;
  background: #fff;
}

.sketch-toolbar {
  padding: 0.5rem 1rem;
  background: var(--mkq-background);
  border-bottom: 1px solid var(--mkq-border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.sketch-toolbar .color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--mkq-border);
  cursor: pointer;
  transition: transform var(--mkq-transition);
}

.sketch-toolbar .color-btn:hover,
.sketch-toolbar .color-btn.active {
  transform: scale(1.2);
  border-color: var(--mkq-primary);
}

#sketch-canvas {
  display: block;
  cursor: crosshair;
  width: 100%;
  touch-action: none;
}

/* ============================================================
   CONSUMER FULL-PAGE LAYOUT
   ============================================================ */
.consumer-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mkq-background);
}

.consumer-header {
  background: linear-gradient(135deg, var(--mkq-dark) 0%, #312e81 100%);
  color: #fff;
  padding: 1rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.consumer-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.consumer-header h1 span {
  color: #a5b4fc;
}

.consumer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.consumer-question-card {
  background: var(--mkq-surface);
  border-radius: var(--mkq-radius);
  padding: 1.5rem;
  box-shadow: var(--mkq-shadow);
  margin-bottom: 1rem;
}

.consumer-question-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--mkq-dark);
  line-height: 1.5;
}

.consumer-footer {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--mkq-text-light);
  font-size: 0.75rem;
  opacity: .7;
}

.consumer-footer a {
  color: var(--mkq-primary);
  text-decoration: none;
  font-weight: 600;
}

/* ── Moderator-Label im Consumer-Header ─────────────────── */
.consumer-host-btn {
  background: none;
  border: none;
  padding: 0;
  color: #a5b4fc;
  font-size: .8rem;
  font-family: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Moderator Profile Bottom Sheet ─────────────────────── */
.consumer-mod-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,10,40,.6);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  animation: fadeIn .15s ease;
}
.consumer-mod-overlay[hidden] { display: none; }

.consumer-mod-sheet {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 2rem 2rem 2.5rem;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUpSheet .22s ease;
}

@keyframes slideUpSheet {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.consumer-mod-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #64748b;
  padding: .25rem .5rem;
  line-height: 1;
}

.consumer-mod-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--mkq-primary);
  margin: 0 auto 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consumer-mod-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.consumer-mod-initials {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.consumer-mod-name {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mkq-dark);
  margin: 0 0 .4rem;
}

.consumer-mod-email {
  text-align: center;
  color: var(--mkq-text-light);
  font-size: .875rem;
  margin-bottom: 1.25rem;
}

.consumer-mod-contacts {
  border-top: 1px solid var(--mkq-border);
  padding-top: .75rem;
}

.consumer-mod-contacts-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mkq-text-light);
  margin-bottom: .5rem;
}

.consumer-mod-contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 0;
  font-size: .875rem;
  color: var(--mkq-text);
  text-decoration: none;
}
.consumer-mod-contact-item:hover { color: var(--mkq-primary); }

.consumer-mod-contact-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  opacity: .6;
}

/* PRO-Lock: Kontaktbereich verwischen */
.consumer-mod-contacts-locked {
  position: relative;
}
.consumer-mod-contacts-locked .consumer-mod-contacts {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.consumer-mod-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.consumer-mod-lock-label {
  font-size: .8rem;
  color: var(--mkq-text-light);
  text-align: center;
}

.wait-screen {
  text-align: center;
  padding: 3rem 1rem;
}

.wait-screen .spinner-ring {
  width: 60px;
  height: 60px;
  border: 4px solid var(--mkq-border);
  border-top-color: var(--mkq-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

.wait-screen .wait-icon {
  font-size: 3.5rem;
  margin: 0 auto 1.5rem;
  line-height: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}

.mkq-toast {
  background: var(--mkq-surface);
  border-radius: var(--mkq-radius);
  box-shadow: var(--mkq-shadow-lg);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--mkq-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.mkq-toast.toast-success { border-left-color: var(--mkq-success); }
.mkq-toast.toast-danger  { border-left-color: var(--mkq-danger); }
.mkq-toast.toast-warning { border-left-color: var(--mkq-warning); }

.mkq-toast .toast-icon { font-size: 1.2rem; }
.mkq-toast .toast-msg  { flex: 1; }

.mkq-toast .toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--mkq-text-light);
  padding: 0;
  line-height: 1;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

@keyframes badgeBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}
.badge-blink {
  animation: badgeBlink 1.4s ease-in-out infinite;
}

.mkq-toast.removing {
  animation: fadeOut 0.3s ease forwards;
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.page-enter {
  animation: pageEnter 0.25s ease;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LICENSE BADGES
   ============================================================ */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.license-badge.free {
  background: #f1f5f9;
  color: var(--mkq-text-light);
  border: 1px solid var(--mkq-border);
}

.license-badge.pro {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  border: none;
}

.license-badge.enterprise {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  border: none;
}

.navbar-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  white-space: nowrap;
}

.navbar-pro-badge.enterprise {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
}

/* ── Upgrade Page ── */
.upgrade-plan-card {
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.upgrade-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(99,102,241,.12);
}
.upgrade-plan-featured {
  border: 2px solid var(--mkq-primary) !important;
}
.upgrade-plan-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mkq-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .8rem;
  border-radius: 999px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.upgrade-plan-header {
  text-align: center;
  padding: 1.5rem 1rem;
}
.upgrade-plan-free   { background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.upgrade-plan-pro    { background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.upgrade-plan-enterprise { background: linear-gradient(135deg, #f5f3ff, #ede9fe); }
.upgrade-plan-icon   { font-size: 2rem; line-height: 1; margin-bottom: .4rem; }
.upgrade-plan-name   { font-size: 1.1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.upgrade-plan-price  { font-size: 2rem; font-weight: 700; margin: .4rem 0 .1rem; line-height: 1.1; }
.upgrade-plan-price small { font-size: .9rem; font-weight: 400; }
.upgrade-plan-sub    { font-size: .8rem; color: var(--mkq-text-light); }
.upgrade-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.upgrade-feature-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 0;
  font-size: .88rem;
  border-bottom: 1px solid var(--mkq-border);
}
.upgrade-feature-list li:last-child { border-bottom: none; }
.upgrade-duration-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.upgrade-duration-card {
  position: relative;
  border: 1px solid var(--mkq-border);
  border-radius: 10px;
  padding: .6rem .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: #fff;
}
.upgrade-duration-popular { border-color: var(--mkq-primary); background: #f0f0ff; }
.upgrade-duration-best    { border-color: #8b5cf6; background: #f5f3ff; }
.upgrade-duration-label   { font-size: .85rem; font-weight: 600; color: var(--mkq-text); flex: 1; }
.upgrade-duration-price   { font-size: 1rem; font-weight: 700; color: var(--mkq-text); }
.upgrade-duration-per     { font-size: .7rem; color: var(--mkq-text-light); min-width: 70px; text-align: right; }
.upgrade-duration-badge {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--mkq-primary);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.mkq-table {
  width: 100%;
  border-collapse: collapse;
}

.mkq-table th {
  background: var(--mkq-background);
  color: var(--mkq-text-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--mkq-border);
  text-align: left;
}

.mkq-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--mkq-border);
  vertical-align: middle;
}

.mkq-table tr:last-child td {
  border-bottom: none;
}

.mkq-table tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}

/* ============================================================
   PANEL EDITOR
   ============================================================ */
.panel-item {
  background: var(--mkq-surface);
  border: 1.5px solid var(--mkq-border);
  border-radius: var(--mkq-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--mkq-transition), box-shadow var(--mkq-transition);
}

.panel-item:hover {
  border-color: var(--mkq-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.panel-item .panel-reorder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.panel-item .panel-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mkq-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.panel-item .panel-info {
  flex: 1;
  min-width: 0;
}

.panel-item .panel-question {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--mkq-dark);
}

/* Panel types info list alignment */
.panel-types-list .panel-type-row {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.3rem;
}
.panel-types-list .pti {
  flex-shrink: 0;
  width: 1.4rem;
  text-align: center;
  line-height: 1.5;
}

/* Drag & Drop */
.panel-item-draggable {
  cursor: default;
}
.panel-drag-handle {
  font-size: 1.1rem;
  color: var(--mkq-text-light);
  cursor: grab;
  padding: 0 4px;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
  align-self: center;
}
.panel-item-draggable.panel-drag-over {
  background: rgba(99,102,241,.08);
  border-color: var(--mkq-primary);
}

/* Start Panel special styling in editor */
.panel-item-start {
  background: rgba(99,102,241,.04);
  border-color: rgba(99,102,241,.3);
  border-left: 3px solid var(--mkq-primary);
}

.panel-item .panel-number-start {
  background: var(--mkq-primary);
  border-color: var(--mkq-primary);
  color: #fff;
  font-size: .7rem;
}

.panel-type-badge {
  font-size: 0.75rem;
  color: var(--mkq-text-light);
  background: #f1f5f9;
  border: 1px solid var(--mkq-border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

/* ============================================================
   SURVEY RUN VIEW
   ============================================================ */
.run-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 620px);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .run-layout {
    grid-template-columns: 1fr;
  }
}

.panels-nav-list {
  background: var(--mkq-surface);
  border-radius: var(--mkq-radius);
  border: 1px solid var(--mkq-border);
  overflow: hidden;
}

.panel-nav-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--mkq-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background var(--mkq-transition);
}

.panel-nav-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.panel-nav-question {
  font-size: .85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.panel-nav-badges {
  display: flex;
  gap: 4px;
  padding-left: 38px;
  flex-wrap: wrap;
}

.panel-nav-item:last-child,
.panel-nav-stats-row:last-child { border-bottom: none; }

.panel-nav-item:hover {
  background: rgba(99, 102, 241, 0.05);
}

.panel-nav-item.active {
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid #10b981;
}

.panel-nav-item.shown {
  background: rgba(16, 185, 129, 0.04);
}

.nav-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mkq-background);
  border: 1.5px solid var(--mkq-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav-num.active,
.panel-nav-item.active .nav-num {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.panel-nav-item.shown .nav-num {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  font-size: .85rem;
}

.run-panel-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1e293b;
  color: #fff;
  padding: .6rem .85rem;
  border-radius: 8px;
  font-size: .85rem;
  max-width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  pointer-events: none;
  line-height: 1.6;
}

/* ◀/▶ nav buttons: light green default, full green on hover */
.btn-run-nav {
  background: rgba(16,185,129,.18);
  border: none;
  color: #059669;
  border-radius: var(--mkq-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: background var(--mkq-transition), color var(--mkq-transition);
}
.btn-run-nav:hover  { background: #10b981; color: #fff; }
.btn-run-nav:active { background: #059669; color: #fff; }

/* Start/Pause – enabled: light green like nav buttons */
.btn-run-ctrl {
  background: rgba(16,185,129,.18);
  border: none;
  color: #059669;
  border-radius: var(--mkq-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: background var(--mkq-transition), color var(--mkq-transition);
}
.btn-run-ctrl:hover:not(:disabled) { background: #10b981; color: #fff; }
.btn-run-ctrl:active:not(:disabled){ background: #059669; color: #fff; }

/* Start/Pause – clicked: stays dark green (disabled after click) */
.btn-run-ctrl-clicked {
  background: #10b981;
  border: none;
  color: #fff;
  border-radius: var(--mkq-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  opacity: 1 !important;  /* override Bootstrap's .btn:disabled opacity:.65 */
  cursor: default;
  pointer-events: none;
}

/* Start/Pause – idle disabled: light green, not yet activated in this state */
.btn-run-ctrl-idle {
  background: rgba(16,185,129,.18);
  border: none;
  color: #059669;
  border-radius: var(--mkq-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  opacity: 1 !important;  /* override Bootstrap's .btn:disabled opacity:.65 */
  cursor: default;
  pointer-events: none;
}

/* Start/Pause – aktiver Zustand blinkt mit dunkelgrünem Rahmen */
@keyframes runCtrlBlink {
  0%, 100% { box-shadow: 0 0 0 2px #065f46; }
  50%       { box-shadow: 0 0 0 4px #065f46, 0 0 10px rgba(6,95,70,.35); }
}
.btn-run-ctrl-blink {
  animation: runCtrlBlink 1.2s ease-in-out infinite;
}

/* General-purpose green button (editor save, add panel, lock panel, close session) */
.btn-mkq-green {
  background: rgba(16,185,129,.18);
  border: 2px solid #059669;
  color: #059669;
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--mkq-transition), color var(--mkq-transition), border-color var(--mkq-transition);
}
.btn-mkq-green:hover  { background: #059669; color: #fff; border-color: #059669; }
.btn-mkq-green:active { background: #047857; color: #fff; border-color: #047857; }
.btn-mkq-green:disabled { opacity: .5; pointer-events: none; }

/* Blinking green border around the active panel card */
@keyframes panelLivePulse {
  0%, 100% { box-shadow: 0 0 0 2px #10b981; }
  50%       { box-shadow: 0 0 0 4px #10b981, 0 0 14px rgba(16,185,129,.4); }
}
.panel-live-active {
  animation: panelLivePulse 1.4s ease-in-out infinite;
  border-radius: var(--mkq-radius);
}

/* LIVE badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(16,185,129,.15);
  color: #065f46;
  border: 1px solid rgba(16,185,129,.4);
  border-radius: 20px;
  padding: .15rem .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.live-badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: liveDot 1.2s ease-in-out infinite;
}

/* 4-button grid for QR utility actions */
.run-qr-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Start panel in nav list */
.panel-nav-start {
  border-left: 3px solid var(--mkq-primary);
  background: rgba(99,102,241,.03);
}
.panel-nav-start:hover { background: rgba(99,102,241,.07); }
.panel-nav-start.active {
  border-left-color: var(--mkq-primary);
  background: rgba(99,102,241,.1);
}
.nav-num-start {
  background: var(--mkq-primary);
  border-color: var(--mkq-primary);
  color: #fff;
  font-size: .65rem;
}

/* Panel nav: number column (num + lock icon stacked) */
.panel-nav-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 2px;
}

.nav-lock-icon {
  font-size: .6rem;
  line-height: 1;
}

/* Stats sub-row in panel nav */
.panel-nav-stats-row {
  padding: .3rem 1rem .3rem calc(1rem + 34px);
  border-bottom: 1px solid var(--mkq-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(99,102,241,.03);
  transition: background var(--mkq-transition);
}

.panel-nav-stats-row:hover {
  background: rgba(99,102,241,.1);
}

.panel-nav-stats-row.active {
  background: rgba(99,102,241,.12);
  border-left: 3px solid #6366f1;
}

.panel-nav-stats-label {
  font-size: .78rem;
  color: var(--mkq-text-muted);
}

.panel-nav-stats-row.active .panel-nav-stats-label {
  color: #6366f1;
  font-weight: 600;
}

.nav-num.stats-num {
  width: 20px;
  height: 20px;
  font-size: .6rem;
  background: rgba(99,102,241,.12);
  border-color: #6366f1;
  color: #6366f1;
}

/* Consumer: Start Panel 0 */
.consumer-start-panel {
  text-align: center;
  padding: 1.5rem .5rem 1rem;
}

.consumer-start-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid rgba(255,255,255,.25);
}

.consumer-start-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(99,102,241,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--mkq-primary);
  margin: 0 auto 1rem;
}

.consumer-start-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mkq-dark);
  margin-bottom: .4rem;
  line-height: 1.3;
}

.consumer-start-desc {
  color: var(--mkq-text-light);
  font-size: .9rem;
  margin-bottom: 1.2rem;
}

.consumer-start-wait {
  font-size: .88rem;
  color: var(--mkq-text-light);
  background: rgba(16,185,129,.1);
  border-radius: 999px;
  padding: .35rem 1rem;
  display: inline-block;
  margin-bottom: 0;
}

.btn-mkq-gray {
  background: #6b7280;
  border: none;
  color: #fff;
  border-radius: var(--mkq-radius);
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: filter var(--mkq-transition);
}
.btn-mkq-gray:hover  { background: #4b5563; color: #fff; }
.btn-mkq-gray:active { filter: brightness(0.92); }

.qr-container {
  text-align: center;
  padding: 1.5rem;
}

#qrcode canvas, #qrcode img {
  border-radius: 8px;
  box-shadow: var(--mkq-shadow);
}

.join-code-display {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--mkq-dark);
  font-family: monospace;
  text-align: center;
  margin: 0.5rem 0;
}

/* ============================================================
   YES/NO BUTTONS
   ============================================================ */
.yn-btn {
  padding: 1rem 2rem;
  border-radius: var(--mkq-radius);
  border: 2.5px solid var(--mkq-border);
  background: var(--mkq-surface);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--mkq-transition);
  min-width: 120px;
}

.yn-btn:hover { transform: translateY(-2px); box-shadow: var(--mkq-shadow); }
.yn-btn.yes:hover, .yn-btn.yes.selected { border-color: var(--mkq-success); background: #d1fae5; color: #065f46; }
.yn-btn.no:hover, .yn-btn.no.selected  { border-color: var(--mkq-danger);  background: #fee2e2; color: #991b1b; }

/* ============================================================
   MULTIPLE CHOICE OPTIONS
   ============================================================ */
.mc-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--mkq-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all var(--mkq-transition);
  background: var(--mkq-surface);
}

.mc-option:hover {
  border-color: var(--mkq-primary);
  background: rgba(99, 102, 241, 0.05);
}

.mc-option.selected {
  border-color: var(--mkq-primary);
  background: rgba(99, 102, 241, 0.1);
}

.mc-option input[type="checkbox"] {
  accent-color: var(--mkq-primary);
  width: 18px;
  height: 18px;
}

/* ============================================================
   STATS AREA
   ============================================================ */
.stats-area {
  background: var(--mkq-surface);
  border-radius: var(--mkq-radius);
  padding: 1.5rem;
  box-shadow: var(--mkq-shadow);
  margin-top: 1rem;
}

.stats-chart-wrap {
  position: relative;
  max-height: 300px;
}

/* ============================================================
   FEATURE COMPARISON TABLE
   ============================================================ */
.feature-table th { text-align: center; }
.feature-table td:not(:first-child) { text-align: center; }
.feature-check { color: var(--mkq-success); font-size: 1.2rem; }
.feature-cross  { color: var(--mkq-danger);  font-size: 1.2rem; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary-mkq { color: var(--mkq-primary) !important; }
.bg-primary-mkq   { background-color: var(--mkq-primary) !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--mkq-primary), var(--mkq-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--mkq-text-light);
}

.empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.answer-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--mkq-primary);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.answer-open-badge {
  background: rgba(251,191,36,.15);
  color: #92400e;
}

.answer-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16,185,129,.15);
  color: #065f46;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
  .mkq-page { padding: 1rem; }
  .join-code-display { font-size: 1.8rem; }
  .star-btn { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* ── Custom Modal ─────────────────────────────────────────── */
.mkq-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,10,40,0.55);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease;
}
.mkq-modal-box {
  background: #fff;
  border-radius: var(--mkq-radius, 12px);
  box-shadow: 0 20px 60px rgba(99,102,241,0.18), 0 4px 16px rgba(0,0,0,0.12);
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  animation: modalSlideIn 0.2s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.95) translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
.mkq-modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.mkq-modal-title { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--mkq-dark, #1e1b4b); }
.mkq-modal-body  { color: #64748b; margin-bottom: 1.5rem; line-height: 1.6; }
.mkq-modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }

/* Results modal – wider */
.mkq-modal-box.wide { max-width: 720px; }

/* Email compose fields */
.email-compose-field {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--mkq-border);
}
.email-compose-field:last-of-type { border-bottom: none; }
.email-label {
  flex-shrink: 0;
  width: 72px;
  padding-top: .42rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--mkq-text-light);
}
.email-compose-field .form-control {
  flex: 1;
  border: none;
  box-shadow: none;
  padding-left: 0;
  background: transparent;
}
.email-compose-field .form-control:focus {
  box-shadow: none;
  background: transparent;
}
.mkq-results-panel { border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.mkq-results-panel h6 { font-weight: 600; margin-bottom: 1rem; color: var(--mkq-dark, #1e1b4b); }
.mkq-results-list { list-style: none; padding: 0; margin: 0; }
.mkq-results-list li { padding: 0.3rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.mkq-results-list li:last-child { border-bottom: none; }

/* Extra-small buttons */
.btn-xs { padding: .15rem .5rem; font-size: .78rem; line-height: 1.4; }

/* Contact card (consumer view) */
.contact-card {
  background: var(--mkq-background);
  border: 1px solid var(--mkq-border);
  border-radius: var(--mkq-radius);
  padding: 1.25rem 1.5rem;
  line-height: 2;
}
.contact-card-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.contact-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--mkq-border);
}
.contact-card-avatar-default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mkq-primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.contact-card > div { color: var(--mkq-text); font-size: .95rem; }
.contact-card a { color: var(--mkq-primary); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ============================================================
   LOGIN SPLIT LAYOUT
   ============================================================ */
.login-split {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Linke Seite: Diashow */
.login-split-image {
  display: none;
  flex: 1;
  position: relative;
  overflow: hidden;
  border-right: 6px solid #fff;
  height: 100vh;
  background: #1a1a2e;
}

/* Einzelne Diashow-Slides (per JS eingefügt) */
/* Basis: alle Slides */
.diashow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.5s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}

/* Bild-Slides: sanfter Ken-Burns-Zoom */
.diashow-slide--image {
  background-size: cover;
  background-position: center;
  /* kein transform hier – wird per JS eingefroren beim Fade-out */
}

.diashow-slide--image.active {
  opacity: 1;
  animation: diashow-kenburns 8s ease-in-out forwards;
}

@keyframes diashow-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Video-Slides: kein Zoom, nur Fade */
.diashow-slide--video {
  background: #000;
}

.diashow-slide--video.active {
  opacity: 1;
}

.diashow-slide--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dunkler Gradient-Overlay für Lesbarkeit des Logos */
.login-split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.10) 50%,
    rgba(0, 0, 0, 0.30) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Feature-Streifen unten auf dem Diashow-Bild */
.login-image-features {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-image-feature {
  flex: 1;
  padding: 0.9rem 0.75rem;
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.login-image-feature:last-child {
  border-right: none;
}

.login-image-feature-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-image-feature-title::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mkq-primary);
  border-radius: 2px;
  margin: 0 auto 0.4rem;
}

.login-image-feature-text {
  display: block;
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 0.15rem;
}

/* Tagline unter der Login-Headline */
.login-headline-tagline {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

/* Logo-Overlay oben links auf dem Bild */
.login-image-brand {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  text-decoration: none;
}

.login-image-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  flex-shrink: 0;
  border: 3px solid #fff;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.55));
}

.login-image-appname {
  color: #fff;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
  line-height: 1;
}

.login-image-appname strong {
  font-weight: 900;
  color: #a5b4fc;
}

/* Rechte Seite: Formular */
.login-split-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 4rem 2rem 1.25rem 5rem;
  height: 100vh;
  overflow-y: auto;
  background: linear-gradient(to bottom, #ffffff 0%, #c7c9f0 100%);
}

.login-split-inner {
  width: 100%;
  max-width: 460px;
  overflow: visible;
}

/* Headline im Formular-Panel */
.login-headline {
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}

.login-headline-main {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--mkq-primary) 0%, var(--mkq-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
  padding-bottom: 0.1em;
}

.login-headline-sub {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mkq-dark);
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.login-headline-sub::after {
  content: '';
  display: block;
  height: 3px;
  width: 48px;
  background: linear-gradient(90deg, var(--mkq-primary), var(--mkq-secondary));
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* Informationen-Button */
.btn-login-info {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid var(--mkq-primary);
  border-radius: var(--mkq-radius);
  color: var(--mkq-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-login-info:hover {
  background: var(--mkq-primary);
  color: #fff;
}

/* Infotext auf der "Was ist voteify?"-Unterseite */
.login-info-content {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #374151;
}

.login-info-content p strong {
  color: var(--mkq-dark);
}

/* Teaser-Text unter dem Info-Button */
.login-info-teaser {
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 0.65rem;
  margin-bottom: 0;
  line-height: 1.55;
}

/* Footer im rechten Login-Panel */
.login-split-footer {
  width: 100%;
  text-align: center;
  padding: 3rem 0 0.25rem;
  font-size: 0.8rem;
  line-height: 1.8;
}

.login-footer-links {
  margin-bottom: 1rem;
}

.login-split-footer a {
  color: var(--mkq-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.login-split-footer a:hover {
  color: var(--mkq-primary);
}

.login-footer-sep {
  color: var(--mkq-text-light);
  margin: 0 0.4rem;
}

/* CSS-only tooltips via [data-tooltip] */
.mkq-tooltip {
  position: relative;
}
.mkq-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
  padding: .28rem .6rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 9999;
}
.mkq-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1e293b;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 9999;
}
.mkq-tooltip:hover::after,
.mkq-tooltip:hover::before { opacity: 1; }

/* Dashboard feature tile icons */
.dashboard-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.5rem;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.12));
  border-radius: 12px;
  color: var(--mkq-primary);
}
.dashboard-feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Navbar feature chips */
.navbar-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}
.navbar-feature-chip {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0.1rem 0.45rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Account 2FA */
.account-2fa-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.account-2fa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.account-2fa-badge--active {
  background: rgba(16,185,129,.15);
  color: #065f46;
}
.account-2fa-badge--inactive {
  background: rgba(100,116,139,.15);
  color: #475569;
}
.account-2fa-input {
  font-size: 1.5rem !important;
  letter-spacing: 0.4em;
  text-align: center;
  max-width: 220px;
}
.account-2fa-secret {
  display: block;
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--mkq-primary);
  word-break: break-all;
  margin-bottom: 0.75rem;
}
.account-2fa-qr {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.dashboard-footer {
  margin-top: 2.5rem;
  padding: 1rem 0 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--mkq-text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.dashboard-footer a {
  color: var(--mkq-primary);
  text-decoration: none;
}
.dashboard-footer a:hover { text-decoration: underline; }

.login-footer-copy {
  color: var(--mkq-text-light);
}

.login-footer-credit {
  color: var(--mkq-text-light);
}

/* Sub-Pages (Info, Impressum, Datenschutz) im rechten Panel */
.login-info-back {
  margin-bottom: 1.5rem;
}

.login-info-content {
  width: 100%;
}

.login-subpage-body {
  overflow-y: visible;
}

/* Doppelte Überschrift aus info.html im Sub-Page-Kontext ausblenden */
.login-subpage-body .info-page-heading {
  display: none;
}

/* Legal-Seiten */
.legal-page {
  width: 100%;
}

.legal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.legal-section {
  margin-bottom: 1.75rem;
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--mkq-primary);
}

.legal-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.legal-section p,
.legal-section ul,
.legal-section address {
  font-size: 0.9rem;
  color: var(--mkq-text);
  line-height: 1.6;
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-section a {
  color: var(--mkq-primary);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .login-split-image {
    display: block;
  }
  .login-split-form {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* ============================================================
   FEEDBACK WIDGET
   ============================================================ */

/* Trigger-Tab */
.feedback-trigger {
  position: fixed;
  bottom: 80px;
  left: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--mkq-primary);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 12px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  box-shadow: 3px 0 12px rgba(99, 102, 241, 0.35);
  transition: background var(--mkq-transition), box-shadow var(--mkq-transition);
  line-height: 1;
}

.feedback-trigger:hover,
.feedback-trigger:focus-visible {
  background: var(--mkq-primary-dark);
  box-shadow: 3px 0 18px rgba(99, 102, 241, 0.5);
  outline: none;
}

.feedback-trigger svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Panel */
.feedback-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1055;
  width: 340px;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  background: var(--mkq-surface);
  border-radius: var(--mkq-radius);
  box-shadow: var(--mkq-shadow-lg), 0 0 0 1px var(--mkq-border);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
}

.feedback-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.feedback-panel-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.875rem 1rem 0.75rem;
  border-bottom: 1px solid var(--mkq-border);
  flex-shrink: 0;
}

.feedback-panel-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mkq-dark);
  flex: 1;
}

.feedback-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--mkq-text-light);
  cursor: pointer;
  padding: 0 2px;
  transition: color var(--mkq-transition);
}
.feedback-close:hover { color: var(--mkq-text); }

/* Back button */
.fb-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mkq-text-light);
  padding: 2px 4px 2px 0;
  display: flex;
  align-items: center;
  transition: color var(--mkq-transition);
}
.fb-back:hover { color: var(--mkq-primary); }
.fb-back svg { width: 18px; height: 18px; }

/* Scrollable body */
.feedback-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.feedback-question {
  font-size: 0.875rem;
  color: var(--mkq-text);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Typ-Auswahl */
.fb-types {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fb-type-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.875rem;
  background: var(--mkq-background);
  border: 1.5px solid var(--mkq-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mkq-text);
  transition: border-color var(--mkq-transition), background var(--mkq-transition);
}
.fb-type-btn:hover {
  border-color: var(--mkq-primary);
  background: #eef2ff;
}
.fb-type-icon  { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.fb-type-label { flex: 1; }
.fb-type-arrow { width: 14px; height: 14px; color: var(--mkq-text-light); flex-shrink: 0; }

/* Emoji rating */
.feedback-ratings {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.feedback-rating-btn {
  flex: 1;
  background: var(--mkq-background);
  border: 2px solid var(--mkq-border);
  border-radius: 10px;
  padding: 0.5rem 0;
  font-size: 1.5rem;
  cursor: pointer;
  transition: border-color var(--mkq-transition), background var(--mkq-transition), transform var(--mkq-transition);
  line-height: 1.3;
}
.feedback-rating-btn:hover {
  border-color: var(--mkq-primary);
  background: #eef2ff;
  transform: scale(1.08);
}
.feedback-rating-btn.selected {
  border-color: var(--mkq-primary);
  background: #eef2ff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Label */
.fb-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mkq-text);
  margin-bottom: 0.4rem;
}

/* Textarea */
.feedback-textarea {
  width: 100%;
  border: 1.5px solid var(--mkq-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--mkq-text);
  background: var(--mkq-background);
  resize: vertical;
  min-height: 72px;
  transition: border-color var(--mkq-transition), box-shadow var(--mkq-transition);
}
.feedback-textarea:focus {
  outline: none;
  border-color: var(--mkq-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: #fff;
}
.feedback-textarea::placeholder { color: var(--mkq-text-light); }

/* Screenshot-Button */
.fb-screenshot-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  background: var(--mkq-background);
  border: 1.5px dashed var(--mkq-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--mkq-text-light);
  font-weight: 500;
  transition: border-color var(--mkq-transition), color var(--mkq-transition), background var(--mkq-transition);
}
.fb-screenshot-btn:hover {
  border-color: var(--mkq-primary);
  color: var(--mkq-primary);
  background: #eef2ff;
}
.fb-screenshot-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.fb-screenshot-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Screenshot-Vorschau */
.fb-screenshot-preview {
  position: relative;
  margin-top: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--mkq-border);
}
.fb-screenshot-preview img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 110px;
  object-fit: cover;
}
.fb-screenshot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--mkq-transition);
}
.fb-screenshot-remove:hover { background: rgba(0,0,0,0.85); }

/* Kontakt-Abschnitt */
.fb-contact {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--mkq-border);
}
.fb-contact-question {
  font-size: 0.8rem;
  color: var(--mkq-text-light);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.fb-radio-group {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
.fb-radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--mkq-text);
  cursor: pointer;
}
.fb-radio input[type="radio"] { accent-color: var(--mkq-primary); cursor: pointer; }

/* E-Mail-Eingabe */
.feedback-email {
  width: 100%;
  border: 1.5px solid var(--mkq-border);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--mkq-text);
  background: var(--mkq-background);
  transition: border-color var(--mkq-transition), box-shadow var(--mkq-transition);
}
.feedback-email:focus {
  outline: none;
  border-color: var(--mkq-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  background: #fff;
}
.feedback-email::placeholder { color: var(--mkq-text-light); }

/* Senden-Button */
.feedback-submit {
  display: block;
  width: 100%;
  margin-top: 0.875rem;
  padding: 0.6rem 1rem;
  background: linear-gradient(135deg, var(--mkq-primary), var(--mkq-secondary));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--mkq-transition), transform var(--mkq-transition);
}
.feedback-submit:hover:not(:disabled) { filter: brightness(1.1); }
.feedback-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Erfolgs-Ansicht */
.fb-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 2rem 1rem;
  text-align: center;
}
.fb-success svg { width: 48px; height: 48px; color: var(--mkq-success); }
.fb-success p { margin: 0; font-weight: 600; color: var(--mkq-text); font-size: 0.95rem; }

@media (max-width: 400px) {
  .feedback-panel { left: 8px; right: 8px; width: auto; }
}

/* ── Account Avatar ───────────────────────────────────────── */
.account-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  cursor: pointer;
  border-radius: 50%;
}
.account-avatar-wrapper #account-avatar {
  width: 100%;
  height: 100%;
  margin: 0;
}
.account-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.account-avatar-wrapper:hover .account-avatar-overlay { opacity: 1; }

/* ── Protected Email ───────────────────────────────────────── */
.protected-email {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: var(--mkq-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  border-radius: 4px;
  transition: color 0.2s;
  outline-offset: 3px;
}
.protected-email:hover,
.protected-email:focus-visible { color: var(--mkq-primary-dark); }
.protected-email--light {
  color: rgba(255, 255, 255, 0.9);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}
.protected-email--light:hover,
.protected-email--light:focus-visible { color: #fff; }
.protected-email-icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ── E-Mail-Modal ───────────────────────────────────────────── */
.email-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.email-modal-overlay[hidden] { display: none; }
.email-modal-box {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  padding: 2.5rem 2.5rem 2rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.email-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.email-modal-close:hover { color: #0f172a; background: #f8faff; }
.email-modal-close svg   { width: 1.1rem; height: 1.1rem; }
.email-modal-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.email-modal-icon svg { width: 1.5rem; height: 1.5rem; }
.email-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}
.email-modal-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.email-modal-code-display {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--mkq-primary);
  font-variant-numeric: tabular-nums;
  background: #f8faff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  margin: 0 auto 1.25rem;
  display: inline-block;
  min-width: 8rem;
  user-select: none;
}
.email-modal-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 280px;
  margin: 0 auto;
}
.email-modal-input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.email-modal-input:focus {
  border-color: var(--mkq-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.email-modal-btn { width: 100%; }
.email-modal-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #ef4444;
  font-weight: 500;
}
.email-modal-result {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
}
.email-modal-success-label {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.email-modal-address {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mkq-primary);
  word-break: break-all;
}
.email-modal-address:hover { color: var(--mkq-primary-dark); }
body.modal-open { overflow: hidden; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.email-modal-input.shake { animation: shake 0.35s ease; }

/* ============================================================
   COOKIE BANNER – Responsive
   ============================================================ */
@media (max-width: 575px) {
  #cookieBanner .container > div {
    flex-direction: column;
    gap: 16px !important;
  }
  #cookieBanner .container > div > div:last-child {
    width: 100%;
  }
  #cookieBanner .container > div > div:last-child button {
    flex: 1;
  }
}


/* ============================================================
   CONSUMER COUNTDOWN (auto-flow Zeitintervall)
   ============================================================ */
.consumer-countdown-wrap {
  padding: .5rem 1.25rem .1rem;
}
.consumer-countdown-bar {
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}
.consumer-countdown-fill {
  height: 100%;
  background: #10b981;
  border-radius: 4px;
  transition: width 1s linear;
  width: 100%;
}
.consumer-countdown-text {
  text-align: center;
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  margin-top: .25rem;
  font-variant-numeric: tabular-nums;
}

/* ── Landing-Page KI-Assistent Chat-Widget ──────────────────── */

.lc-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mkq-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 18px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 4px 18px rgba(99,102,241,.45);
  transition: background var(--mkq-transition), box-shadow var(--mkq-transition), transform .15s;
  white-space: nowrap;
}
.lc-trigger:hover {
  background: var(--mkq-primary-dark);
  box-shadow: 0 6px 22px rgba(99,102,241,.55);
  transform: translateY(-2px);
}
.lc-trigger svg { flex-shrink: 0; }

/* Kleiner Puls-Indikator */
.lc-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6);
  animation: lcPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes lcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

/* Panel */
.lc-panel {
  position: fixed;
  bottom: 82px;
  right: 24px;
  z-index: 1055;
  width: 360px;
  height: 500px;
  display: flex;
  flex-direction: column;
  background: var(--mkq-surface);
  border-radius: var(--mkq-radius);
  box-shadow: var(--mkq-shadow-lg), 0 0 0 1px var(--mkq-border);
  overflow: hidden;
  transform: translateY(16px) scale(.97);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms cubic-bezier(.16,1,.3,1), opacity 200ms ease;
}
.lc-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.lc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--mkq-primary);
  color: #fff;
  flex-shrink: 0;
}
.lc-header-info { flex: 1; min-width: 0; }
.lc-header-title {
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.2;
}
.lc-header-sub {
  font-size: .7rem;
  opacity: .75;
  margin-top: 1px;
}
.lc-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}
.lc-close:hover { color: #fff; background: rgba(255,255,255,.15); }

/* Messages */
.lc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.lc-messages::-webkit-scrollbar { width: 4px; }
.lc-messages::-webkit-scrollbar-thumb { background: var(--mkq-border); border-radius: 4px; }

.lc-msg {
  max-width: 88%;
  font-size: .83rem;
  line-height: 1.55;
  padding: 9px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  animation: lcMsgIn .18s ease;
}
@keyframes lcMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lc-msg-user {
  align-self: flex-end;
  background: var(--mkq-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.lc-msg-bot {
  align-self: flex-start;
  background: var(--mkq-bg);
  color: var(--mkq-text);
  border: 1px solid var(--mkq-border);
  border-bottom-left-radius: 4px;
}
.lc-msg-bot a { color: var(--mkq-primary); }

/* Typing indicator */
.lc-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 10px 14px;
  background: var(--mkq-bg);
  border: 1px solid var(--mkq-border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.lc-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mkq-text-light);
  animation: lcBounce 1.3s infinite ease-in-out;
}
.lc-dot:nth-child(2) { animation-delay: .18s; }
.lc-dot:nth-child(3) { animation-delay: .36s; }
@keyframes lcBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40%           { transform: translateY(-5px); opacity: 1; }
}

/* Footer / Input */
.lc-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--mkq-border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: flex-end;
}
.lc-input {
  flex: 1;
  border: 1px solid var(--mkq-border);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: .83rem;
  background: var(--mkq-bg);
  color: var(--mkq-text);
  outline: none;
  resize: none;
  line-height: 1.45;
  max-height: 80px;
  overflow-y: auto;
  transition: border-color .15s;
  font-family: inherit;
}
.lc-input:focus { border-color: var(--mkq-primary); }
.lc-input::placeholder { color: var(--mkq-text-light); }
.lc-send {
  background: var(--mkq-primary);
  border: none;
  border-radius: 10px;
  color: #fff;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.lc-send:hover:not(:disabled) { background: var(--mkq-primary-dark); transform: scale(1.06); }
.lc-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.lc-hint {
  font-size: .68rem;
  color: var(--mkq-text-light);
  text-align: center;
  padding: 3px 12px 6px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .lc-panel  { left: 8px; right: 8px; width: auto; bottom: 76px; }
  .lc-trigger { right: 16px; bottom: 16px; }
}
