:root {
  --wizard-primary: #a259f2;
  --wizard-primary-dark: #8d26ff;
  --wizard-header-height: 106px;
}

a.disabled {
  pointer-events: none !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  color: #000000;
}

.offcanvas.offcanvas-start {
  width: 280px;
}

.wizard-container .container {
  padding: 0 !important;
}

.immo-container {
  max-width: 1000px;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.progress {
  background-color: var(--wizard-primary-dark);
  width: 100%;
  height: 12px;
  padding: 2px;
  border-radius: 6px;
}

.progress-bar {
  background-color: white;
  height: 8px;
  border-radius: 4px;
}

.wizard-layout {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.wizard-sidebar {
  width: 100%;
  max-width: 300px;
  background-color: var(--wizard-primary);
  overflow-y: auto;
}

.wizard-sidebar.shadowed {
  position: relative;
  z-index: 1;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 12px;
}

.wizard-sidebar h2 {
  font-size: var(--text-2xl);
  color: white;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

.wizard-sidebar h3 {
  font-size: var(--text-lg);
  color: white;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

.wizard-sidebar h4 {
  font-size: var(--text-base);
  color: white;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

.wizard-sidebar h5,
.wizard-sidebar .h5 {
  font-size: var(--text-sm);
  color: white;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

.wizard-sidebar-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-sidebar-footer p {
  font-size: var(--text-xs);
}

.wizard-sidebar-footer p.headline {
  font-size: var(--text-sm);
}

.wizard-sidebar-footer h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.375rem;
}

.wizard-sidebar-footer p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.wizard-sidebar-footer textarea {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  padding: 0.5rem;
  min-height: 2.5rem;
}

.wizard-sidebar-footer textarea:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.wizard-sidebar-footer textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.wizard-sidebar-footer .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
}

.wizard-sidebar-footer .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

.wizard-sidebar-content {
  padding: 1.25rem 1.25rem;
  color: white;
}

.wizard-sidebar-header {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: white;
}

.wizard-sidebar-header .progress {
  height: 0.375rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.wizard-sidebar-header .progress-bar {
  background: #5bd22c;
  border-radius: 0.25rem;
  transition: width 0.3s ease;
}

.wizard-sidebar-header p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.wizard-sidebar-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
  gap: 0.25rem;
  padding: 0.375rem 0;
}

.wizard-sidebar-step {
  color: rgba(217, 217, 217, 0.7);
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
}

.wizard-sidebar-step:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.wizard-sidebar-step-height {
  line-height: 1.4;
}

.wizard-sidebar-step.active {
  cursor: pointer;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.wizard-sidebar-step a {
  color: #fff;
}

.wizard-sidebar-step i {
  margin-right: 0.5rem;
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.wizard-sidebar-step.active i,
.wizard-sidebar-step.done i {
  color: #5bd22c;
}

/* DONE Steps - müssen als letztes kommen für höchste Priorität */
.wizard-sidebar-steps .wizard-sidebar-step.done {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.wizard-sidebar-steps .wizard-sidebar-step.done a {
  color: #ffffff !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

.wizard-sidebar-steps .wizard-sidebar-step.done * {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.wizard-sidebar-steps .wizard-sidebar-step.done i {
  color: #5bd22c !important;
  font-weight: normal !important;
}

.wizard-sidebar-steps .wizard-sidebar-step.done:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.25) !important;
}

.wizard-sidebar-steps .wizard-sidebar-step.done:hover a {
  color: #ffffff !important;
}

.wizard-sidebar-steps .wizard-sidebar-step.done:hover * {
  color: #ffffff !important;
}

.wizard-sidebar-steps .wizard-sidebar-step.done:hover i {
  color: #5bd22c !important;
}

.wizard-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #f0edf8;
}

.wizard-mobile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--wizard-primary);
  height: var(--wizard-header-height);
  min-height: var(--wizard-header-height);
}

.wizard-mobile-header-info {
  /*padding: 2.75rem 0 0 0;*/
  padding: 0;
}

.wizard-mobile-header-info h2 {
  font-size: var(--text-base);
  color: white;
  text-align: center;
  font-weight: 800;
  margin-bottom: 0;
}

.wizard-mobile-header-info p {
  font-size: var(--text-sm);
  color: white;
  text-align: center;
  margin-bottom: 1rem;
}

.wizard-mobile-steps {
  display: flex;
  flex-direction: row;
  padding: 0 0 0.75rem;
  gap: 0.375rem;
}

.wizard-mobile-step {
  padding: 0.25rem 0.75rem;
  position: relative;
  cursor: pointer;
  color: var(--wizard-primary-dark);
  font-size: var(--text-2xl);
}

.wizard-mobile-step:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--wizard-primary-dark);
  border-radius: 3px;
}

.wizard-mobile-step.active {
  color: white;
}

.wizard-mobile-step.active:after {
  background-color: white;
}

.wizard-top-spacer {
  background: #f0edf8;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 1280px) {
  .wizard-top-spacer {
    display: none;
  }
}

.wizard-content {
  background-color: #f0edf8;
  flex-grow: 1;
  padding: 2.5rem 2rem 3rem 2rem;
  overflow-y: auto;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.wizard-content-main {
  flex-grow: 1;
}

.wizard-content-footer {
  display: flex;
  flex-direction: row;
  padding: 1rem 0 0;
  align-content: space-between;
  gap: 1rem;
}
.wizard-content-footer button,
.wizard-content-footer a {
  flex-grow: 1;
  flex-basis: 0;
}
.wizard-content-footer button:last-child,
.wizard-content-footer a:last-child {
  margin-left: auto;
}

.wizard-content-footer-feedback {
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
  padding: 0;
  margin-bottom: 0;
}

.wizard-content-footer-feedback p {
  padding: 0;
  margin: 0;
}

.wizard-content .gradient-fade {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  /*background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);*/
}

.wizard-content-header {
  padding: 0.25rem 0 1.2rem 0;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.wizard-content-header-subtitle {
  font-size: var(--text-sm);
  color: var(--wizard-primary-dark);
  margin-bottom: 0;
  max-width: 55ch;
}

.wizard-content-header-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: black;
  margin-bottom: 0;

  max-width: 55ch;
}

.wizard-content-header-description {
  font-size: var(--text-sm);
  margin-top: 0.5rem;
  margin-bottom: 0;
  max-width: 55ch;
}

.offcanvas-close {
  position: absolute;
  top: 55px;
  right: 1rem;
}

.menu-toggle-btn {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem !important;
  right: auto !important;
  margin: 0 !important;
  width: fit-content !important;
  max-width: max-content;
  min-width: 0 !important;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.78rem !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  line-height: 1.1;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.menu-toggle-btn i {
  font-size: 0.88rem !important;
}

.menu-toggle-btn .menu-toggle-label {
  letter-spacing: 0.02em;
}

.menu-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.menu-toggle-btn:active {
  transform: translateY(1px);
}

.side-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(160deg, #0f0220 0%, #1e0545 30%, #3a0d78 65%, #5c1ea8 100%);
  position: relative;
  overflow: hidden;
}

/* Grid-Overlay wie Login/Register */
.side-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163,82,245,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,82,245,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Inhalte über dem Grid */
.side-nav > * { position: relative; z-index: 1; }

/* Logo-Bereich */
.side-nav-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-nav-logo img {
  filter: brightness(0) invert(1);
  opacity: .9;
}

/* Content-Wrapper: füllt Rest, scrollbar */
.side-nav-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}

/* Hauptnav wächst, Footer bleibt unten */
.side-nav-main {
  flex: 1;
  padding: 20px 16px 12px;
}

.side-nav-footer {
  padding: 12px 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Link-Listen */
.side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav-item {}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.70);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.side-nav-link i {
  font-size: 1.15rem;
  flex-shrink: 0;
  color: rgba(255,255,255,.45);
  transition: color .15s;
}

.side-nav-link:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}
.side-nav-link:hover i {
  color: rgba(255,255,255,.8);
}

/* CTA-Link "Neue Abrechnung" */
.side-nav-link-cta {
  margin-top: 4px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-weight: 600;
}
.side-nav-link-cta i {
  color: rgba(255,255,255,.85);
}
.side-nav-link-cta:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

/* Gedämpfte Links (Impressum, Datenschutz) */
.side-nav-link-muted {
  color: rgba(255,255,255,.35);
  font-size: .8rem;
}
.side-nav-link-muted i {
  font-size: 1rem;
  color: rgba(255,255,255,.25);
}
.side-nav-link-muted:hover {
  color: rgba(255,255,255,.6);
  background: transparent;
}

/* Badge (z.B. "Neu") */
.side-nav-badge {
  margin-left: auto;
  font-size: .65rem;
  font-weight: 700;
  background: rgba(163,82,245,.35);
  color: #e2c4ff;
  border: 1px solid rgba(163,82,245,.4);
  border-radius: 20px;
  padding: 1px 7px;
  letter-spacing: .03em;
}

/* Trennlinie */
.side-nav-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 12px 0;
}

/* Support-Block */
.side-nav-support {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  margin-bottom: 4px;
}
.side-nav-support-icon {
  font-size: 1.1rem;
  color: rgba(255,255,255,.5);
  margin-top: 1px;
}
.side-nav-support-title {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  margin-bottom: 2px;
}
.side-nav-support-link {
  font-size: .8rem;
  color: rgba(163,82,245,.9);
  text-decoration: none;
}
.side-nav-support-link:hover {
  color: #c084fc;
  text-decoration: underline;
}

.offcanvas .btn-close {
  opacity: 0.8;
  --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.offcanvas .btn-close:hover {
  opacity: 1;
}
.modal-content {
  border-radius: 1rem;
}

.modal-header {
  padding: 2rem 2rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.modal-header .modal-subtitle {
  font-size: var(--text-sm);
  color: var(--wizard-primary-dark);
  margin-bottom: 0.5rem;
  max-width: 55ch;
}

.modal-header .modal-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: black;
  margin-bottom: 0;
  max-width: 55ch;
}

.modal-body {
  padding: 1rem 2rem;
}

.modal-footer > * {
  margin-top: 0;
}

.modal-footer {
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
}

.modal-footer button,
.modal-footer a {
  flex-grow: 1;
}

.form-control,
.form-select {
  color: black;
}

.form-control::placeholder {
  color: rgba(114, 129, 153, 0.75);
}

.nav-pills {
  --bs-nav-pills-border-radius: 7px;
  --bs-nav-pills-link-active-color: #fff;
  --bs-nav-pills-link-active-bg: var(--theme-color);
}
.nav-pills .nav-link {
  min-width: 100px;
  border: 1px solid var(--theme-color);
  line-height: 1;
}

.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus,
.nav-pills .nav-link.active:focus-visible {
  color: #fff !important;
}

/* Anleitung Section - Kompakter */
.wizard-sidebar .pb-3 {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-sidebar .pb-3 h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.375rem;
  text-align: center;
}

.wizard-sidebar .pb-3 p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
  text-align: center;
  margin-bottom: 0.5rem;
}

.wizard-sidebar .pb-3 .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.375rem 0.75rem;
}

.wizard-sidebar .pb-3 .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-1px);
}

@media (min-width: 1280px) {
  .wizard-container {
    background-color: white;
  }

  .wizard-mobile-header {
    display: none;
  }
  .wizard-top-spacer {
    border-radius: 0;
  }

  .wizard-content-header {
    padding-top: 2rem;
  }

  .wizard-content-footer {
    justify-content: space-between;
  }

  .wizard-content-footer button,
  .wizard-content-footer a {
    flex-grow: 0;
    width: auto;
    min-width: 300px;
    padding-inline: 2rem;
  }
}

@media (max-width: 1279px) {
  .wizard-sidebar {
    display: none;
  }

  .modal-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .modal-footer button,
  .modal-footer a {
    flex-grow: 0;
    width: 100%;
    padding-inline: 2rem;
  }
}

/* =====================================================
   APP SIDEBAR (.app-sidebar) – dark gradient 2026
   ===================================================== */

.app-sidebar {
  background: linear-gradient(160deg, #0f0220 0%, #1e0545 30%, #3a0d78 65%, #5c1ea8 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.app-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(163,82,245,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,82,245,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.app-sidebar > * {
  position: relative;
  z-index: 1;
}

.app-sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.app-sidebar-logo img {
  filter: brightness(0) invert(1);
  opacity: .9;
}

.app-sidebar-progress-block {
  padding: 16px 20px 12px;
  flex-shrink: 0;
}

.app-sidebar-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.app-sidebar-progress-label {
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.app-sidebar-progress-count {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
}

.app-sidebar-progress-done {
  font-size: .75rem;
  color: #4ade80;
  font-weight: 600;
}

.app-sidebar-progress-bar {
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  overflow: hidden;
}

.app-sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a352f5, #c084fc);
  transition: width .4s ease;
}

.app-sidebar-steps-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(163,82,245,.3) transparent;
}

.app-sidebar-steps-nav::-webkit-scrollbar { width: 4px; }
.app-sidebar-steps-nav::-webkit-scrollbar-thumb { background: rgba(163,82,245,.35); border-radius: 2px; }

.app-sidebar-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-sidebar-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255,255,255,.65);
  font-size: .8125rem;
  transition: background .15s, color .15s;
  user-select: none;
}

.app-sidebar-step:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.app-step-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  color: rgba(255,255,255,.35);
  line-height: 1;
}

.app-sidebar-step.done .app-step-icon {
  color: #4ade80;
}

.app-sidebar-step.done {
  color: rgba(255,255,255,.85);
}

.app-step-label {
  line-height: 1.3;
}

.app-step-optional {
  font-size: .65rem;
  color: rgba(255,255,255,.35);
  margin-left: 3px;
  vertical-align: middle;
}

.app-sidebar-footer {
  padding: 12px 16px 16px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-sidebar-guide-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: rgba(163,82,245,.9);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(163,82,245,.1);
  border: 1px solid rgba(163,82,245,.2);
  transition: background .15s;
}

.app-sidebar-guide-link:hover {
  background: rgba(163,82,245,.18);
  color: #c084fc;
}

.app-sidebar-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-sidebar-feedback-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}

.app-sidebar-feedback-input {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: 8px 10px;
  resize: none;
  outline: none;
  transition: border-color .15s;
}

.app-sidebar-feedback-input::placeholder {
  color: rgba(255,255,255,.3);
}

.app-sidebar-feedback-input:focus {
  border-color: rgba(163,82,245,.5);
}

.app-sidebar-feedback-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 7px;
  font-size: .8rem;
  padding: 7px 12px;
  cursor: pointer;
  transition: background .15s;
  align-self: flex-end;
}

.app-sidebar-feedback-btn:hover {
  background: rgba(255,255,255,.18);
}

.app-sidebar-feedback-response {
  font-size: .75rem;
  color: #4ade80;
  margin: 0;
  text-align: center;
}

/* App-page content header */
.app-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  gap: 16px;
}

.app-content-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-content-header-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e0545;
  margin: 0;
  line-height: 1.3;
}

.app-content-header-subtitle {
  font-size: .8rem;
  color: #6b7280;
  margin: 0;
}

.app-content-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.app-download-hint {
  font-size: .75rem;
  color: #9ca3af;
  text-align: right;
}

/* A4 card styling */
.app-a4-card {
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(30,5,69,.10), 0 1px 4px rgba(30,5,69,.06);
  border: 1px solid rgba(163,82,245,.08);
}
