/* ═══════════════════════════════════════════════════════════
   Qalbi Plugin – Design System  v0.0.1
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Farben ───────────────────────────────────────────── */
  --q-primary:   #0F766E;
  --q-primary-h: #0B5F59;
  --q-secondary: #C9A227;
  --q-bg:        #FAFAF7;
  --q-surface:   #FFFFFF;
  --q-border:    #E5E7EB;
  --q-text:      #1F2937;
  --q-muted:     #6B7280;
  --q-success:   #16A34A;
  --q-error:     #DC2626;

  /* ── Border Radius ────────────────────────────────────── */
  --r-card:   16px;
  --r-btn:    12px;
  --r-input:  12px;
  --r-modal:  20px;
  --r-avatar: 24px;

  /* ── Schatten ─────────────────────────────────────────── */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 18px rgba(0,0,0,.10);
}

/* ── Globale Font + Box-Sizing ────────────────────────────── */
.qalbi-home,
.qalbi-home *,
.qalbi-profile-wrap,
.qalbi-profile-wrap *,
.qalbi-settings,
.qalbi-settings *,
.qalbi-matches,
.qalbi-matches *,
.qpv-wrap,
.qpv-wrap * {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ════════════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════════════ */

.qalbi-notice {
  padding: 1rem 1.25rem;
  background: #FFF8E1;
  border-left: 4px solid var(--q-secondary);
  border-radius: var(--r-card);
  color: var(--q-text);
  font-size: .9rem;
  line-height: 1.5;
}
.qalbi-notice a {
  color: var(--q-primary);
  font-weight: 600;
  text-decoration: none;
}

/* Buttons – !important nötig damit Bricks-Theme nicht überschreibt */
.qalbi-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem;
  padding: .65rem 1.4rem !important;
  border-radius: var(--r-btn) !important;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background .18s, transform .1s, color .18s;
  line-height: 1 !important;
  box-shadow: none !important;
}
.qalbi-btn:active { transform: scale(.97); }

.qalbi-btn--primary,
.qalbi-btn--primary:visited {
  background: var(--q-primary) !important;
  color: #fff !important;
  border: none !important;
}
.qalbi-btn--primary:hover {
  background: var(--q-primary-h) !important;
  color: #fff !important;
  border: none !important;
}

.qalbi-btn--secondary,
.qalbi-btn--secondary:visited {
  background: transparent !important;
  color: var(--q-primary) !important;
  border: 1.5px solid var(--q-primary) !important;
}
.qalbi-btn--secondary:hover {
  background: #ECFDF5 !important;
  color: var(--q-primary) !important;
}

/* Inline-Link */
.qalbi-link {
  font-size: .88rem;
  color: var(--q-primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.qalbi-link:hover { text-decoration: underline; }

/* Tag-Pill (allgemein) */
.qalbi-tag {
  display: inline-block;
  padding: .22rem .65rem;
  background: #ECFDF5;
  color: var(--q-primary);
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 500;
  margin-right: .25rem;
  margin-bottom: .25rem;
}
.qalbi-tag--relig { background: #FEF9C3; color: #92400E; }

/* Avatar (allgemein) */
.qalbi-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--r-avatar);
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.qalbi-avatar--initials {
  background: var(--q-primary);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Online-Badge */
.qalbi-badge {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--q-surface);
  display: inline-block;
  flex-shrink: 0;
}
.qalbi-badge--online  { background: var(--q-success); }
.qalbi-badge--recent  { background: var(--q-secondary); }
.qalbi-badge--offline { background: #CBD5E1; }

.qalbi-empty {
  color: var(--q-muted);
  font-style: italic;
  text-align: center;
  padding: 2.5rem 1rem;
}

/* ════════════════════════════════════════════════════════════
   HOME – WRAPPER
   ════════════════════════════════════════════════════════════ */

.qalbi-home {
  width: 100%;
  padding-bottom: 3rem;
  background: var(--q-bg);
}

/* ── Begrüßung ────────────────────────────────────────────── */
.qalbi-greeting {
  padding: 1.75rem 0 1.25rem;
}
.qalbi-greeting__salaam {
  font-size: .95rem;
  color: var(--q-muted);
  margin: 0 0 .2rem;
  font-weight: 400;
}
.qalbi-greeting__name {
  font-family: 'Kaisei Decol', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--q-text);
  margin: 0;
  line-height: 1.1;
}

/* ── Filter-Bar ───────────────────────────────────────────── */
.qalbi-filters {
  margin-bottom: 1.75rem;
}
.qalbi-filters__track {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.qalbi-filters__track::-webkit-scrollbar { display: none; }

/* Filter-Chip */
.qalbi-filter-wrap {
  position: relative;
  flex-shrink: 0;
}

.qalbi-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem 1.05rem;
  border-radius: 99px;
  border: 1.5px solid var(--q-border);
  background: var(--q-surface);
  color: var(--q-text);
  font-size: .83rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  flex-shrink: 0;
  line-height: 1;
}
.qalbi-chip:hover {
  border-color: var(--q-primary);
  color: var(--q-primary);
}
.qalbi-chip--active {
  background: var(--q-primary) !important;
  border-color: var(--q-primary) !important;
  color: #fff !important;
}
.qalbi-chip--active:hover { opacity: .9; }

/* Pfeil dreht sich wenn offen */
.qalbi-filter-wrap--open > .qalbi-chip { border-color: var(--q-primary); color: var(--q-primary); }
.qalbi-filter-wrap--open .qalbi-chip__arrow { display: inline-block; transform: rotate(180deg); }

/* × nur bei aktivem Filter sichtbar */
.qalbi-chip__remove { display: none; font-size: .9rem; line-height: 1; }
.qalbi-chip--active .qalbi-chip__arrow  { display: none; }
.qalbi-chip--active .qalbi-chip__remove { display: inline; }

.qalbi-chip__arrow { transition: transform .15s; }

.qalbi-chip--filter-all { gap: .4rem; }

/* ── Filter Dropdown ──────────────────────────────────────── */
/* Position wird per JS auf fixed gesetzt → entkommt dem overflow:auto */
.qalbi-filter-drop {
  display: none;
  position: fixed;          /* JS überschreibt top/left */
  top: 0; left: 0;
  z-index: 9990;
  background: var(--q-surface);
  border: 1.5px solid var(--q-border);
  border-radius: var(--r-card);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 200px;
  padding: .5rem;
}
.qalbi-filter-drop--range { min-width: 240px; padding: 1rem; }
.qalbi-filter-drop.qalbi-filter-drop--open { display: block; }

.qalbi-filter-drop__scroll {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .1rem;
  scrollbar-width: thin;
}

.qalbi-filter-option {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .86rem;
  color: var(--q-text);
  transition: background .12s;
}
.qalbi-filter-option:hover { background: #ECFDF5; }
.qalbi-filter-option input[type=radio] { accent-color: var(--q-primary); width: 15px; height: 15px; flex-shrink: 0; }

/* Alter-Range im Dropdown */
.qalbi-filter-range {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.qalbi-filter-range__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.qalbi-filter-range__field label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--q-muted);
}
.qalbi-filter-range__field input {
  width: 100%;
  padding: .45rem .6rem;
  border: 1.5px solid var(--q-border);
  border-radius: var(--r-input);
  font-size: .88rem;
  background: var(--q-bg);
  color: var(--q-text);
  outline: none;
}
.qalbi-filter-range__field input:focus { border-color: var(--q-primary); }
.qalbi-filter-range__sep { color: var(--q-muted); font-weight: 600; margin-top: 1.1rem; }

#apply-age-btn { width: 100%; justify-content: center; padding: .5rem !important; }

/* ── Filter Modal ─────────────────────────────────────────── */
.qalbi-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  align-items: flex-end;
  justify-content: center;
}
.qalbi-modal-overlay.qalbi-modal-overlay--open {
  display: flex;
}

.qalbi-modal {
  background: var(--q-surface);
  border-radius: var(--r-modal) var(--r-modal) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0,0,0,.15);
  animation: qalbi-slide-up .25s ease;
}

/* Nur der Filter-Sheet: kompakter */
.qalbi-modal--filter {
  max-height: 70vh;
}
@keyframes qalbi-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Schließen-Animation */
@keyframes qalbi-slide-down {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(40px); opacity: 0; }
}
@keyframes qalbi-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.qalbi-modal-overlay--closing {
  animation: qalbi-fade-out .22s ease forwards;
}
.qalbi-modal-overlay--closing .qalbi-modal {
  animation: qalbi-slide-down .22s ease forwards;
}

.qalbi-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--q-border);
  flex-shrink: 0;
}
.qalbi-modal__header h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.qalbi-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--q-muted);
  padding: .3rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.qalbi-modal__close:hover { background: var(--q-bg); color: var(--q-text); }

.qalbi-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: .75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qalbi-filter-group__title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--q-muted);
  margin: 0 0 .6rem;
}
.qalbi-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
/* Nationalität / Stadt: scrollable list im Modal */
.qalbi-filter-options--scroll {
  flex-direction: column;
  flex-wrap: nowrap;
  max-height: 160px;
  overflow-y: auto;
  gap: .2rem;
  padding-right: .25rem;
  scrollbar-width: thin;
}
/* In modal: pill-style options */
.qalbi-modal__body .qalbi-filter-option {
  padding: .4rem .9rem;
  border: 1.5px solid var(--q-border);
  border-radius: 99px;
  font-size: .82rem;
  background: var(--q-bg);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.qalbi-modal__body .qalbi-filter-option:hover { border-color: var(--q-primary); color: var(--q-primary); }
.qalbi-modal__body .qalbi-filter-option input[type=radio] { display: none; }
.qalbi-modal__body .qalbi-filter-option:has(input:checked) {
  background: var(--q-primary);
  border-color: var(--q-primary);
  color: #fff;
}
/* Fallback für Browser ohne :has() */
.qalbi-modal__body .qalbi-filter-option--selected {
  background: var(--q-primary) !important;
  border-color: var(--q-primary) !important;
  color: #fff !important;
}

.qalbi-modal__footer {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--q-border);
  flex-shrink: 0;
}
.qalbi-modal__footer .qalbi-btn { flex: 1; justify-content: center; }

/* ── Abschnitts-Kopfzeile ─────────────────────────────────── */
.qalbi-section {
  margin-bottom: 2rem;
}
.qalbi-section__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}
.qalbi-section__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--q-text);
  margin: 0 0 .15rem;
}
.qalbi-section__count {
  font-size: .82rem;
  color: var(--q-muted);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════
   CARD GRID
   ════════════════════════════════════════════════════════════ */

.qalbi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .875rem;
}
@media (min-width: 580px)  { .qalbi-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 900px)  { .qalbi-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Card ─────────────────────────────────────────────────── */
.qalbi-card {
  background: var(--q-surface);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--q-text);
  border: 1px solid var(--q-border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
}
.qalbi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.qalbi-card:active { transform: translateY(-1px); }

/* Cover (farbiger Hintergrund mit Initiale oder Foto) */
.qalbi-card__cover {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qalbi-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.qalbi-card__initial {
  font-family: 'Kaisei Decol', Georgia, serif; /* nur hier */
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: .01em;
  user-select: none;
}

/* Card Body */
.qalbi-card__body {
  padding: .8rem .9rem .95rem;
}
.qalbi-card__name {
  font-family: 'Kaisei Decol', Georgia, serif; /* nur hier */
  font-size: .95rem;
  font-weight: 700;
  color: var(--q-text);
  margin: 0 0 .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qalbi-card__location {
  display: flex;
  align-items: center;
  gap: .28rem;
  font-size: .78rem;
  color: var(--q-muted);
  margin: 0 0 .55rem;
  line-height: 1;
}
.qalbi-card__location svg { flex-shrink: 0; }
.qalbi-card__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: .35rem;
  overflow: hidden;
}
.qalbi-card__tag {
  display: inline-block;
  padding: .13rem .45rem;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
}
/* Tag 1 – Religiösität → Grün */
.qalbi-card__tag:nth-child(1) {
  background: #ECFDF5;
  color: #0F766E;
  border-color: #A7F3D0;
}
/* Tag 2 – Neutral */
.qalbi-card__tag:nth-child(2) {
  background: var(--q-bg);
  color: var(--q-muted);
  border-color: var(--q-border);
}
/* Tag 3+ – Neutral */
.qalbi-card__tag:nth-child(n+3) {
  background: var(--q-bg);
  color: var(--q-muted);
  border-color: var(--q-border);
}

/* ════════════════════════════════════════════════════════════
   PROFIL-SEITE (eigenes & Ansicht)
   ════════════════════════════════════════════════════════════ */

.qalbi-profile-wrap { width: 100%; }

.qalbi-profile__header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.qalbi-profile__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.qalbi-profile__avatar-wrap .qalbi-avatar {
  width: 90px;
  height: 90px;
  font-size: 2.2rem;
  border-radius: var(--r-avatar);
}
.qalbi-profile__avatar-wrap .qalbi-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
}
.qalbi-profile__headline h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.qalbi-profile__active {
  font-size: .8rem;
  color: var(--q-muted);
  margin: 0 0 .5rem;
}
.qalbi-tags { display: flex; flex-wrap: wrap; gap: .3rem; }

.qalbi-profile__body { display: flex; flex-direction: column; gap: 1rem; }

.qalbi-profile__block {
  padding: 1.25rem;
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.qalbi-profile__block h3 {
  font-size: .72rem;
  font-weight: 700;
  color: var(--q-primary);
  margin: 0 0 .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.qalbi-profile__block p {
  margin: 0;
  line-height: 1.7;
  color: var(--q-text);
  font-size: .92rem;
}

.qalbi-detail-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.qalbi-detail-table th,
.qalbi-detail-table td { padding: .5rem .25rem; text-align: left; }
.qalbi-detail-table th { color: var(--q-muted); font-weight: 500; width: 40%; }
.qalbi-detail-table tr + tr th,
.qalbi-detail-table tr + tr td { border-top: 1px solid var(--q-border); }

/* Q&A section */
.qalbi-profile__block--qa { display: flex; flex-direction: column; gap: .1rem; }
.qalbi-qa-item {
  padding: .75rem 0;
  border-bottom: 1px solid var(--q-border);
}
.qalbi-qa-item:last-child { border-bottom: none; }
.qalbi-qa-item__q {
  font-size: .72rem !important;
  font-weight: 700 !important;
  color: var(--q-muted) !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .3rem !important;
}
.qalbi-qa-item__a {
  font-size: .9rem !important;
  color: var(--q-text) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.qalbi-profile__actions {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   PROFIL-ANSICHT – Redesign (qpv-*)
   ════════════════════════════════════════════════════════════ */

.qpv-wrap {
  display: flex; flex-direction: column; gap: 1rem;
  width: 100%; max-width: 480px; margin: 0 auto; padding-bottom: 2rem;
}

/* ── Hero ── */
.qpv-hero {
  position: relative; width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.qpv-hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.qpv-hero__initial {
  font-family: 'Kaisei Decol', serif;
  font-size: clamp(5rem, 22vw, 9rem);
  font-weight: 700;
  position: relative; z-index: 1;
  user-select: none;
}
.qpv-hero__verified {
  position: absolute; top: .85rem; right: .85rem;
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-radius: 99px;
  padding: .3rem .75rem;
  font-size: .75rem; font-weight: 700;
  color: var(--q-primary);
  z-index: 2;
}
/* ── Fotos-Button (absolut im Hero, unten rechts) ── */
.qpv-photos-btn {
  position: absolute !important; bottom: .85rem !important; right: .85rem !important;
  display: flex !important; align-items: center !important; gap: .45rem !important;
  border: none !important; border-radius: 99px !important;
  padding: .5rem 1rem !important;
  font-size: .82rem !important; font-weight: 600 !important; line-height: 1 !important;
  cursor: pointer !important; z-index: 2 !important;
  transition: background .18s, color .18s, filter .18s;
  /* standard = grau/weiss (kein Match) */
  background: rgba(255,255,255,.88) !important;
  backdrop-filter: blur(6px) !important;
  color: var(--q-muted) !important;
  box-shadow: none !important;
  text-decoration: none !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.qpv-photos-btn--match {
  background: var(--q-secondary) !important;
  color: #fff !important;
  backdrop-filter: none !important;
}
.qpv-photos-btn--match:hover { filter: brightness(1.08) !important; }

/* ── Foto-Slider ── */
.qpv-slider { position: relative; overflow: hidden; border-radius: 10px; background: #000; }
.qpv-slider__track {
  display: flex;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.qpv-slide-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}
.qpv-slider__slide {
  width: 100%;
  max-height: 420px; object-fit: contain;
  display: block;
}
.qpv-slide-zoom {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background .18s, transform .15s;
  backdrop-filter: blur(4px);
}
.qpv-slide-zoom:hover {
  background: rgba(0,0,0,.8);
  transform: scale(1.08);
}

/* ── Lightbox ── */
#qpv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
  animation: qpv-lb-in .18s ease;
}
@keyframes qpv-lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#qpv-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
#qpv-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
  z-index: 1;
}
#qpv-lightbox-close:hover {
  background: rgba(255,255,255,.28);
}
.qpv-slider__prev,
.qpv-slider__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff;
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: background .18s;
}
.qpv-slider__prev { left: .5rem; }
.qpv-slider__next { right: .5rem; }
.qpv-slider__prev:hover,
.qpv-slider__next:hover { background: rgba(0,0,0,.7); }
.qpv-slider__dots {
  display: flex; justify-content: center; gap: .45rem;
  margin-top: .65rem;
}
.qpv-slider__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #D1D5DB; border: none; padding: 0; cursor: pointer;
  transition: background .18s;
}
.qpv-slider__dot--active { background: var(--q-secondary); }

/* ── Meta Row ── */
.qpv-meta {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  background: transparent;
  padding: .25rem .1rem;
}
.qpv-name {
  font-family: 'Kaisei Decol', serif !important;
  font-size: 1.5rem; font-weight: 700; margin: 0 0 .3rem; line-height: 1.2;
  color: var(--q-text);
}
.qpv-location {
  display: flex; align-items: center; gap: .3rem;
  font-size: .85rem; color: var(--q-muted); margin: 0;
}
.qpv-save-btn,
.qpv-save-btn.qpv-save-btn--saved {
  /* Feste Abmessungen – Theme darf nicht überschreiben */
  flex: 0 0 40px !important;
  width: 40px !important; min-width: 40px !important; max-width: 40px !important;
  height: 40px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  background: var(--q-bg) !important;
  border: 1.5px solid var(--q-border) !important;
  border-radius: var(--r-card) !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: color .18s;
}
.qpv-save-btn         { color: var(--q-muted) !important; }
.qpv-save-btn--saved  { color: var(--q-secondary) !important; }
.qpv-save-btn:hover   { color: var(--q-secondary) !important; }
.qpv-save-btn:focus,
.qpv-save-btn:active  { outline: none !important; box-shadow: none !important; }

/* ── Info Chips ── */
.qpv-chips {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem;
}
.qpv-chip {
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--r-card);
  padding: .85rem .6rem .75rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  box-shadow: var(--shadow-sm); text-align: center;
}
.qpv-chip__ico { color: var(--q-primary); margin-bottom: .2rem; }
.qpv-chip--gold .qpv-chip__ico { color: var(--q-secondary); }
.qpv-chip__lbl { font-size: .68rem; color: var(--q-muted); font-weight: 500; }
.qpv-chip__val { font-size: .88rem; font-weight: 700; color: var(--q-text); }

/* ── Action Buttons ── */
.qpv-actions {
  display: flex; gap: .7rem;
}
.qpv-btn {
  flex: 1; display: flex !important; align-items: center !important;
  justify-content: center !important; gap: .5rem;
  padding: .85rem 1rem !important;
  border-radius: var(--r-btn) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: .92rem !important; font-weight: 700 !important;
  cursor: pointer; transition: filter .18s, background .18s, color .18s;
  line-height: 1 !important;
}
.qpv-btn--primary {
  background: var(--q-primary) !important; color: #fff !important;
  border: none !important;
}
.qpv-btn--primary:hover:not(:disabled) {
  background: var(--q-primary-h) !important; color: #fff !important;
}
.qpv-btn--primary:disabled { opacity: .65; cursor: default; }
.qpv-btn--sent {
  background: transparent !important;
  color: var(--q-primary) !important;
  border: 1.5px solid var(--q-primary) !important;
}
.qpv-btn--sent:hover {
  background: #ECFDF5 !important;
  color: var(--q-primary) !important;
}
.qpv-btn--wali {
  flex: 0 0 auto; padding: .85rem 1.25rem !important;
  background: var(--q-secondary) !important;
  border: none !important;
  color: #fff !important;
  border-radius: var(--r-btn) !important;
}
.qpv-btn--wali:hover { filter: brightness(1.08) !important; }

/* Match beenden – roter Outline */
.qpv-btn--match-end {
  background: transparent !important;
  border: 1.5px solid var(--q-error) !important;
  color: var(--q-error) !important;
  border-radius: var(--r-btn) !important;
}
.qpv-btn--match-end:hover { background: rgba(220,38,38,.06) !important; }

/* Anfrage annehmen – Website-Grün gefüllt */
.qpv-btn--accept {
  background: var(--q-primary) !important;
  border: none !important;
  color: #fff !important;
  border-radius: var(--r-btn) !important;
}
.qpv-btn--accept:hover { background: var(--q-primary-h) !important; }
.qpv-btn--accept:disabled { opacity: .6; cursor: default; }

/* Anfrage ablehnen – roter Outline */
.qpv-btn--reject {
  background: transparent !important;
  border: 1.5px solid var(--q-error) !important;
  color: var(--q-error) !important;
  border-radius: var(--r-btn) !important;
}
.qpv-btn--reject:hover { background: rgba(220,38,38,.06) !important; }
.qpv-btn--reject:disabled { opacity: .6; cursor: default; }

.qpv-action-msg {
  font-size: .84rem; font-weight: 600; text-align: center;
  padding: .4rem 0; margin: 0;
}

/* ── Content Sections ── */
.qpv-section {
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--r-card);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow-sm);
}
.qpv-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--q-text);
  margin: 0 0 .85rem;
}
.qpv-text {
  font-size: .92rem; line-height: 1.75; color: var(--q-text); margin: 0;
}

/* ── Info Grid (icon + text, 2-col) ── */
.qpv-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
}

/* ── Info List (vertikale Variante, z.B. Herkunft & Wohnort) ── */
.qpv-list {
  display: flex; flex-direction: column; gap: .35rem;
}

/* Herkunft & Wohnort – kein Hintergrund auf den Items */
.qpv-section--location .qpv-gi,
.qpv-section--deen .qpv-gi {
  background: transparent !important;
  box-shadow: none !important;
  padding: .35rem .1rem !important;
}

/* Mahr-Text */
.qpv-mahr-text {
  font-size: .93rem; line-height: 1.65;
  color: var(--q-text);
  margin: 0; padding: 0 .1rem;
}

.qpv-gi {
  display: flex; align-items: center; gap: .6rem;
  background: var(--q-bg);
  border-radius: 10px;
  padding: .55rem .7rem;
}
.qpv-gi--full { grid-column: 1 / -1; align-items: flex-start; }
.qpv-gi__icon {
  flex-shrink: 0; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,118,110,.08);
  border-radius: 8px; color: var(--q-primary);
}
.qpv-gi span { font-size: .83rem; font-weight: 600; color: var(--q-text); line-height: 1.3; }
.qpv-gi__sub { display: block; font-size: .68rem; color: var(--q-muted); font-weight: 500; }

/* ── Q&A Section ── */
.qpv-section--qa { display: flex; flex-direction: column; }
.qpv-qa { padding: .75rem 0; border-bottom: 1px solid var(--q-border); }
.qpv-qa:last-child { border-bottom: none; padding-bottom: 0; }
.qpv-qa__q {
  font-size: .7rem; font-weight: 700; color: var(--q-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin: 0 0 .35rem;
}
.qpv-qa__a {
  font-size: .9rem; color: var(--q-text); line-height: 1.7; margin: 0;
}

/* ── Zurück-Link ── */
.qpv-back-link {
  text-align: center; font-size: .84rem; color: var(--q-muted);
  display: block; padding: .5rem 0; text-decoration: none;
}
.qpv-back-link:hover { color: var(--q-primary); }

/* ── Overlays (Wali + Fotos) ── */
.qpv-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.qpv-overlay--open { opacity: 1; pointer-events: all; }
.qpv-modal {
  background: var(--q-surface); border-radius: 20px 20px 0 0;
  width: 100%; max-width: 520px;
  max-height: 85vh; overflow-y: auto;
  transform: translateY(30px);
  transition: transform .25s ease;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.qpv-overlay--open .qpv-modal { transform: translateY(0); }
.qpv-modal__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem .9rem;
  border-bottom: 1px solid var(--q-border);
  position: sticky; top: 0; background: var(--q-surface);
}
.qpv-modal__hd h3 {
  margin: 0; font-size: 1rem; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.qpv-modal__close {
  width: 32px; height: 32px; border: none; background: var(--q-bg);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--q-muted);
}
.qpv-modal__close:hover { color: var(--q-text); background: var(--q-border); }
.qpv-modal__body { padding: 1.25rem; }

/* Wali Modal */
.qpv-wali-relation {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--q-muted); margin: 0 0 .3rem;
}
.qpv-wali-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; }
.qpv-wali-phone {
  display: inline-block; font-size: .95rem; font-weight: 600;
  color: var(--q-primary); text-decoration: none;
  background: rgba(15,118,110,.07); border-radius: 8px;
  padding: .45rem .85rem; margin-bottom: .75rem;
}
.qpv-wali-phone:hover { background: rgba(15,118,110,.14); }
.qpv-wali-desc { font-size: .88rem; color: var(--q-muted); margin: 0; line-height: 1.6; }

/* Fotos Modal */
.qpv-modal--photos .qpv-modal__body { padding: .75rem; }
.qpv-photos-gallery { display: flex; flex-direction: column; gap: .75rem; }
.qpv-gallery-img {
  width: 100%; border-radius: 12px; display: block;
  object-fit: cover; max-height: 420px;
}

/* ════════════════════════════════════════════════════════════
   FORMULAR (eigenes Profil bearbeiten)
   ════════════════════════════════════════════════════════════ */

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

.qalbi-form__section {
  padding: 1.25rem;
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.qalbi-form__section h3 {
  font-size: .72rem;
  font-weight: 700;
  color: var(--q-primary);
  margin: 0 0 .9rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.qalbi-form__row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.qalbi-form__row:last-child { margin-bottom: 0; }

.qalbi-form label {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--q-muted);
}
.qalbi-form input,
.qalbi-form select,
.qalbi-form textarea {
  padding: .6rem .85rem;
  border: 1.5px solid var(--q-border);
  border-radius: var(--r-input);
  font-size: .9rem;
  background: var(--q-bg);
  color: var(--q-text);
  outline: none;
  width: 100%;
  transition: border-color .18s, box-shadow .18s, background .18s;
  font-family: inherit;
}
.qalbi-form input:focus,
.qalbi-form select:focus,
.qalbi-form textarea:focus {
  border-color: var(--q-primary);
  background: var(--q-surface);
  box-shadow: 0 0 0 3px rgba(15,118,110,.14);
}
.qalbi-form textarea { resize: vertical; }

.qalbi-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.qalbi-save-msg { font-size: .85rem; color: var(--q-success); font-weight: 600; }
.qalbi-save-msg.error { color: var(--q-error); }

/* ════════════════════════════════════════════════════════════
   SETTINGS
   ════════════════════════════════════════════════════════════ */

.qalbi-settings { width: 100%; display: flex; flex-direction: column; gap: 1.25rem; }

.qalbi-settings__block {
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: var(--r-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.qalbi-settings__block--danger {
  border-color: #FCA5A5;
  background: #FFF5F5;
}

.qalbi-settings__block-header { margin-bottom: 1.25rem; }
.qalbi-settings__block-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--q-text);
  margin: 0 0 .25rem;
}
.qalbi-settings__block--danger .qalbi-settings__block-header h2 { color: var(--q-error); }
.qalbi-settings__block-header p {
  font-size: .85rem;
  color: var(--q-muted);
  margin: 0;
  line-height: 1.5;
}

/* Logout button */
.qalbi-settings__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}

/* Visibility row */
.qalbi-settings__visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.qalbi-settings__vis-status {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: var(--q-text);
  font-weight: 500;
}

/* Status dot */
.qalbi-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.qalbi-status-dot--on  { background: var(--q-success); }
.qalbi-status-dot--off { background: #CBD5E1; }

/* Danger button */
.qalbi-btn--danger,
.qalbi-btn--danger:visited {
  background: var(--q-error) !important;
  color: #fff !important;
  border: none !important;
}
.qalbi-btn--danger:hover { background: #b91c1c !important; color: #fff !important; }

/* Match button */
.qalbi-btn--match,
.qalbi-btn--match:visited {
  background: var(--q-primary) !important;
  color: #fff !important;
  border: none !important;
  opacity: .85;
  cursor: default !important;
}
.qalbi-btn--match:disabled { opacity: .85; }

/* Delete confirm */
.qalbi-settings__confirm-hint {
  font-size: .88rem;
  color: var(--q-text);
  margin: 0 0 .6rem;
}
.qalbi-settings__confirm-input {
  width: 100%;
  max-width: 320px;
  padding: .6rem .85rem;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--r-input);
  font-size: .9rem;
  background: #fff;
  color: var(--q-text);
  outline: none;
}
.qalbi-settings__confirm-input:focus {
  border-color: var(--q-error);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.qalbi-settings__confirm-actions {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   MATCHES – TABS
   ════════════════════════════════════════════════════════════ */

.qalbi-matches { width: 100%; }

.qalbi-tabs {
  display: flex;
  gap: .25rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--q-border);
  padding-bottom: 0;
}

.qalbi-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  background: none;
  font-size: .88rem;
  font-weight: 600;
  color: var(--q-muted);
  cursor: pointer;
  border-radius: 0;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.qalbi-tab:hover { color: var(--q-text); }
.qalbi-tab--active {
  color: var(--q-primary);
  border-bottom-color: var(--q-primary);
}

.qalbi-tab__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--q-border);
  color: var(--q-text);
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
}
.qalbi-tab__count--new {
  background: var(--q-primary);
  color: #fff;
}

/* Tab panels */
.qalbi-tab-panel { display: none; }
.qalbi-tab-panel--active { display: block; }

/* Interessen-Tab – Trenner mit Label */
.qalbi-interests-label {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: var(--q-muted);
}
.qalbi-interests-label::before,
.qalbi-interests-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--q-border);
}
.qalbi-interests-label__text {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
}
/* Zweiter Trenner (Gesendet) hat mehr Abstand nach oben */
.qalbi-interests-label--sent {
  margin-top: 1.75rem;
}

/* Empty state */
.qalbi-empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--q-text);
}
.qalbi-empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
  line-height: 1;
}
.qalbi-empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}
.qalbi-empty-state p {
  font-size: .88rem;
  color: var(--q-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.qalbi-empty-state--sm {
  padding: 1.25rem .5rem;
  text-align: left;
}
.qalbi-empty-state--sm p { margin-bottom: .75rem; }

/* ════════ NATIVES SELECT (Stadt) ════════ */
.qalbi-native-select {
  width: 100%;
  height: 2.44rem;
  padding: 0 2rem 0 .85rem;
  border: 1.5px solid var(--q-border);
  border-radius: var(--r-input);
  font-size: .9rem;
  font-family: inherit;
  color: var(--q-text);
  background: var(--q-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 14px;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.qalbi-native-select:focus {
  outline: none;
  border-color: var(--q-primary);
  background-color: var(--q-surface);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}

/* ════════ DATUM-SELECTS (Tag / Monat / Jahr als cselect) ════════ */
.qalbi-date-selects {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .65rem;
  width: 100%;
}
.qalbi-date-selects .qalbi-cselect {
  min-width: 0 !important;
  width: 100% !important;
}
.qalbi-date-selects .qalbi-cselect__trigger {
  padding: .6rem .5rem;
  font-size: .82rem;
}
.qalbi-date-selects .qalbi-cselect__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Mobil: weiterhin nebeneinander, aber etwas kleinerer Gap */
@media (max-width: 600px) {
  .qalbi-date-selects {
    gap: .4rem;
  }
  .qalbi-date-selects .qalbi-cselect__trigger {
    padding: .6rem .35rem;
    font-size: .78rem;
  }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .qalbi-greeting__name  { font-size: 1.9rem; }
  .qalbi-profile__header { flex-direction: column; }
  .qalbi-form__row       { flex-direction: column; }
  .qalbi-card__initial   { font-size: 2.8rem; }
  .qalbi-tab             { font-size: .68rem; padding: .6rem .5rem; }
  .qalbi-tab__count      { min-width: 16px; height: 16px; font-size: .65rem; }

}

/* ════════ CUSTOM SELECT DROPDOWN ════════ */
.qalbi-cselect { position: relative; width: 100%; }

.qalbi-cselect__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .85rem;
  border: 1.5px solid var(--q-border);
  border-radius: var(--r-input);
  background: var(--q-bg);
  cursor: pointer;
  font-size: .9rem;
  color: var(--q-text);
  user-select: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.qalbi-cselect__trigger:focus,
.qalbi-cselect--open .qalbi-cselect__trigger {
  outline: none;
  border-color: var(--q-primary);
  background: var(--q-surface);
  box-shadow: 0 0 0 3px rgba(15,118,110,.14);
}
.qalbi-cselect__label { flex: 1; text-align: left; }
.qalbi-cselect__chevron {
  flex-shrink: 0;
  color: var(--q-primary);
  transition: transform .2s;
}
.qalbi-cselect--open .qalbi-cselect__chevron { transform: rotate(180deg); }

.qalbi-cselect__drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--q-surface);
  border: 1.5px solid var(--q-primary);
  border-radius: var(--r-card);
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  z-index: 10001; /* above modal overlay (9999) when using position:fixed in modal */
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}
.qalbi-cselect--open .qalbi-cselect__drop { display: block; }

.qalbi-cselect__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .9rem;
  font-size: .88rem;
  color: var(--q-text);
  cursor: pointer;
  transition: background .1s, color .1s;
}
.qalbi-cselect__opt + .qalbi-cselect__opt {
  border-top: 1px solid var(--q-border);
}
.qalbi-cselect__opt:hover {
  background: #ECFDF5;
  color: var(--q-primary);
}
.qalbi-cselect__opt--active {
  background: #ECFDF5;
  color: var(--q-primary);
  font-weight: 600;
}
.qalbi-cselect__check { flex-shrink: 0; color: var(--q-primary); }

/* ════════ RANGE SLIDER ════════ */
.qalbi-range-wrap { display: flex; flex-direction: column; gap: .4rem; width: 100%; }
.qalbi-range-top { display: flex; justify-content: space-between; align-items: center; }
.qalbi-range-val {
  font-size: .88rem; font-weight: 700; color: var(--q-primary);
  background: #ECFDF5; padding: .15rem .55rem; border-radius: 99px;
}
.qalbi-range,
.qalbi-range:focus,
.qalbi-range:active {
  -webkit-appearance: none !important; appearance: none !important;
  width: 100% !important; height: 6px !important; border-radius: 99px !important;
  outline: none !important; cursor: pointer !important;
  background: linear-gradient(to right, var(--q-primary) 0%, var(--q-primary) var(--q-pct, 50%), var(--q-border) var(--q-pct, 50%), var(--q-border) 100%) !important;
  border: none !important; padding: 0 !important; box-shadow: none !important;
}
.qalbi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--q-primary); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(15,118,110,.18), 0 1px 4px rgba(0,0,0,.15);
  transition: transform .1s;
}
.qalbi-range::-webkit-slider-thumb:hover,
.qalbi-range::-webkit-slider-thumb:active { transform: scale(1.12); }
.qalbi-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: var(--q-primary); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(15,118,110,.18);
}
.qalbi-range::-moz-range-track {
  height: 6px; border-radius: 99px; background: var(--q-border);
}
.qalbi-range-limits { display: flex; justify-content: space-between; font-size: .72rem; color: var(--q-muted); margin-top: -.15rem; }

/* ════════ MODAL RANGE PAIR (Filter-Schieberegler min/max) ════════ */
.qalbi-modal-range-pair { display: flex; flex-direction: column; gap: .9rem; }
.qalbi-range-pair-label { font-size: .78rem; font-weight: 600; color: var(--q-muted); margin: 0 0 .35rem; }

/* ════════ FOTO-UPLOAD PANEL ════════ */
.qalbi-photos-intro {
  font-size: .85rem; color: var(--q-muted); margin: 0 0 1rem;
}
.qalbi-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.qalbi-photo-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--q-bg);
  border: 2px dashed var(--q-border);
  transition: border-color .15s;
}
.qalbi-photo-slot:has(.qalbi-photo-img) { border-style: solid; border-color: transparent; }
.qalbi-photo-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.qalbi-photo-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .3rem; width: 100%; height: 100%;
  cursor: pointer; color: var(--q-muted);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  transition: color .15s, background .15s;
}
.qalbi-photo-add:hover {
  color: var(--q-primary);
  background: rgba(15,118,110,.05);
}
.qalbi-photo-del {
  position: absolute; top: .4rem; right: .4rem;
  background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
  -webkit-appearance: none; appearance: none;
  padding: 0;
}
.qalbi-photo-del:hover { background: rgba(200,30,30,.85); }
.qalbi-photo-loading {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.72);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-card);
}
.qalbi-photo-spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--q-border);
  border-top-color: var(--q-primary);
  border-radius: 50%;
  animation: qalbi-spin .7s linear infinite;
}
.qalbi-cities-spinner {
  width: 40px; height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--q-primary);
  border-radius: 50%;
  animation: qalbi-spin .75s linear infinite;
  margin: 0 auto;
}
@keyframes qalbi-spin { to { transform: rotate(360deg); } }
/* "Ausstehend"-Badge auf staged (noch nicht hochgeladenen) Foto-Slots */
.qalbi-photo-staged-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: center;
  padding: .22rem 0;
  pointer-events: none;
}

/* ════════ MULTI-SELECT (Languages) ════════ */
.qalbi-mselect { display: flex; flex-direction: column; gap: .5rem; }
.qalbi-mselect__pills { display: flex; flex-wrap: wrap; gap: .3rem; min-height: 1.5rem; }
.qalbi-mselect__pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .6rem; background: var(--q-primary); color: #fff;
  border-radius: 99px; font-size: .78rem; font-weight: 500;
}
.qalbi-mselect__pill-remove { cursor: pointer; font-size: .9rem; line-height: 1; opacity: .8; }
.qalbi-mselect__pill-remove:hover { opacity: 1; }
.qalbi-mselect__trigger {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .85rem;
  border: 1.5px solid var(--q-border); border-radius: var(--r-input);
  background: var(--q-bg); cursor: pointer; font-size: .88rem; color: var(--q-muted);
  transition: border-color .15s;
}
.qalbi-mselect__trigger:hover, .qalbi-mselect--open .qalbi-mselect__trigger { border-color: var(--q-primary); color: var(--q-text); }
.qalbi-mselect__drop {
  display: none; flex-direction: column; gap: .2rem;
  border: 1.5px solid var(--q-border); border-radius: var(--r-card);
  background: var(--q-surface); box-shadow: 0 4px 20px rgba(0,0,0,.1);
  overflow: hidden;
}
.qalbi-mselect--open .qalbi-mselect__drop { display: flex; }
.qalbi-mselect__search {
  padding: .55rem .85rem; border: none; border-bottom: 1px solid var(--q-border);
  outline: none; font-size: .86rem; background: var(--q-bg); color: var(--q-text);
}
.qalbi-mselect__list { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; }
.qalbi-mselect__opt {
  padding: .45rem .85rem; font-size: .85rem; color: var(--q-text);
  cursor: pointer; transition: background .1s;
}
.qalbi-mselect__opt:hover { background: #ECFDF5; color: var(--q-primary); }
.qalbi-mselect__opt--selected { background: #ECFDF5; color: var(--q-primary); font-weight: 600; }
.qalbi-mselect__empty { padding: .75rem .85rem; color: var(--q-muted); font-size: .82rem; font-style: italic; }

/* ════════ FIELD INFO TEXT ════════ */
.qalbi-field-info { font-size: .75rem; color: var(--q-muted); margin-top: .2rem; display: block; }


/* ════════ TEXTAREA CHAR COUNTER ════════ */
.qalbi-char-counter { font-size: .72rem; color: var(--q-muted); text-align: right; margin-top: .2rem; }
.qalbi-char-counter--ok  { color: var(--q-success); }
.qalbi-char-counter--err { color: var(--q-error); }

/* ════════ GENDER SECTION / ROW / LABEL VISIBILITY ════════ */
.qalbi-section--men,
.qalbi-section--women { display: none !important; }
/* Full section blocks */
.qalbi-gender-male   .qalbi-form__section.qalbi-section--men   { display: block !important; }
.qalbi-gender-female .qalbi-form__section.qalbi-section--women { display: block !important; }
/* Rows inside a section */
.qalbi-gender-male   .qalbi-form__row.qalbi-section--men   { display: flex !important; }
.qalbi-gender-female .qalbi-form__row.qalbi-section--women { display: flex !important; }
/* Individual labels inside a shared row */
.qalbi-gender-male   label.qalbi-section--men   { display: flex !important; flex: 1; min-width: 190px; }
.qalbi-gender-female label.qalbi-section--women { display: flex !important; flex: 1; min-width: 190px; }

/* ════════════════════════════════════════════════════════════
   PROFIL-DASHBOARD
   ════════════════════════════════════════════════════════════ */

.qalbi-dashboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ── Header Card ─────────────────────────────────────────── */
.qalbi-dash__header {
  border-radius: var(--r-card);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.qalbi-dash__avatar-wrap {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.qalbi-dash__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qalbi-dash__avatar-initial {
  font-family: 'Kaisei Decol', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
}

.qalbi-dash__meta { flex: 1; min-width: 0; }

.qalbi-dash__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .2rem;
  line-height: 1.2;
}

.qalbi-dash__location {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: rgba(255,255,255,.82);
  margin: 0 0 .55rem;
}

/* Visibility toggle button */
html body button.qalbi-vis-btn,
html body button.qalbi-vis-btn.qalbi-vis-btn--on {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: .4rem !important;
  width: fit-content !important;
  max-width: fit-content !important;
  min-width: 0 !important;
  background: rgba(0,0,0,.25) !important;
  border: 1.5px solid rgba(255,255,255,.2) !important;
  color: rgba(255,255,255,.75) !important;
  border-radius: 20px !important;
  padding: .3rem .8rem !important;
  font-size: .78rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background .2s, border-color .2s, color .2s !important;
  font-family: inherit !important;
  box-shadow: none !important;
  text-decoration: none !important;
  outline: none !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
html body button.qalbi-vis-btn:hover,
html body button.qalbi-vis-btn.qalbi-vis-btn--on:hover {
  background: rgba(0,0,0,.35) !important;
}

.qalbi-vis-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  flex-shrink: 0;
  flex-grow: 0;
  display: inline-block;
  transition: background .2s;
}
html body button.qalbi-vis-btn.qalbi-vis-btn--on .qalbi-vis-dot {
  background: #4ADE80 !important;
}

/* ── Stats ───────────────────────────────────────────────── */
.qalbi-dash__stats {
  display: flex;
  gap: 1px;
  background: var(--q-border);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qalbi-dash__stat {
  flex: 1;
  background: var(--q-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .85rem .5rem;
  gap: .15rem;
}
.qalbi-dash__stat strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--q-primary);
  line-height: 1;
}
.qalbi-dash__stat span {
  font-size: .72rem;
  color: var(--q-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
}

/* ── Section cards list ──────────────────────────────────── */
.qalbi-dash__sections {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.qalbi-dash__item { display: flex; flex-direction: column; }

/* Card */
.qalbi-dash__card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--q-surface);
  border-radius: var(--r-card);
  padding: .9rem 1rem;
  cursor: pointer;
  border: 1.5px solid var(--q-border);
  transition: border-color .18s, background .15s, border-radius .2s;
  user-select: none;
}
.qalbi-dash__card:hover {
  border-color: var(--q-primary);
  background: #F0FDF9;
}
.qalbi-dash__card--open {
  border-color: var(--q-primary);
  background: #F0FDF9;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

/* Card icon circle */
.qalbi-dash__card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ECFDF5;
  border: 1px solid #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--q-primary);
}

/* Card text */
.qalbi-dash__card-body { flex: 1; min-width: 0; }
.qalbi-dash__card-title {
  font-size: .92rem;
  font-weight: 650;
  color: var(--q-text);
  margin: 0 0 .18rem;
  line-height: 1.2;
}
.qalbi-dash__card-sub {
  font-size: .76rem;
  color: var(--q-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

/* Card end: badge or chevron */
.qalbi-dash__card-end {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ── Prozent-Badge ── */
.qalbi-pct-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.qalbi-pct-badge--ok      { background: #DCFCE7; color: #166534; }
.qalbi-pct-badge--partial { background: #FEF3C7; color: #92400E; }
.qalbi-pct-badge--empty   { background: #FEE2E2; color: #991B1B; }

.qalbi-badge--ok {
  background: #DCFCE7;
  color: #166534;
  font-size: .68rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.qalbi-dash__chevron {
  color: var(--q-muted);
  display: flex;
  transition: transform .2s;
}
.qalbi-dash__card--open .qalbi-dash__chevron { transform: rotate(90deg); }

/* ── Inline panel ────────────────────────────────────────── */
.qalbi-dash__panel {
  display: none;
  background: var(--q-surface);
  border: 1.5px solid var(--q-primary);
  border-top: none;
  border-radius: 0 0 var(--r-card) var(--r-card);
  /* NO overflow:hidden – dropdowns inside must be able to overflow */
}

.qalbi-panel__inner {
  padding: 1.1rem 1rem 1rem;
}

/* Panel label above groups of questions */
.qalbi-panel__group-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--q-primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .6rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--q-border);
}
.qalbi-panel__group-label span {
  font-weight: 400;
  color: var(--q-muted);
  text-transform: none;
  letter-spacing: 0;
}
.qalbi-panel__group-label + .qalbi-panel__group-label,
.qalbi-form__row + .qalbi-panel__group-label {
  margin-top: 1rem;
}

/* Panel action bar */
.qalbi-panel__actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--q-border);
  flex-wrap: wrap;
}

.qalbi-section-msg {
  font-size: .82rem;
  font-weight: 500;
  display: none;
  flex: 1;
}
.qalbi-section-msg--ok  { color: var(--q-success); }
.qalbi-section-msg--err { color: var(--q-error); }

/* Reuse form row inside panels */
.qalbi-dash__panel .qalbi-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}
.qalbi-dash__panel .qalbi-form__row:last-of-type { margin-bottom: 0; }
.qalbi-dash__panel .qalbi-form__row label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  min-width: 190px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--q-text);
}
.qalbi-dash__panel .qalbi-form__row label input[type="text"],
.qalbi-dash__panel .qalbi-form__row label input[type="date"],
.qalbi-dash__panel .qalbi-form__row label input[type="tel"],
.qalbi-dash__panel .qalbi-form__row label input[type="number"],
.qalbi-dash__panel .qalbi-form__row label textarea {
  padding: 0 .85rem;
  height: 2.44rem;
  border: 1.5px solid var(--q-border);
  border-radius: var(--r-input);
  font-size: .9rem;
  font-family: inherit;
  color: var(--q-text);
  background: var(--q-bg);
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
  box-sizing: border-box;
}
.qalbi-dash__panel .qalbi-form__row label textarea {
  height: auto;
  padding: .6rem .85rem;
}
.qalbi-dash__panel .qalbi-form__row label input:focus,
.qalbi-dash__panel .qalbi-form__row label textarea:focus {
  outline: none;
  border-color: var(--q-primary);
  background: var(--q-surface);
  box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.qalbi-dash__panel .qalbi-field-info {
  font-size: .72rem;
  color: var(--q-muted);
  font-weight: 400;
}

/* ── Custom conflict dialog ──────────────────────────────── */
.qalbi-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: qalbi-fade-in .18s ease;
}
@keyframes qalbi-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.qalbi-dialog {
  background: var(--q-surface, #1a2e2b);
  border: 1.5px solid var(--q-border, rgba(255,255,255,.1));
  border-radius: 18px;
  padding: 1.75rem 1.5rem 1.5rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: qalbi-slide-up .22s ease;
}
@keyframes qalbi-slide-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.qalbi-dialog__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--q-primary, #0F766E);
  font-size: 1.35rem;
}
.qalbi-dialog__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--q-text, #f1f5f9);
  margin: 0;
  line-height: 1.3;
}
.qalbi-dialog__body {
  font-size: .875rem;
  color: var(--q-muted, rgba(255,255,255,.55));
  line-height: 1.55;
  margin: 0;
}
.qalbi-dialog__body strong {
  color: var(--q-text, #f1f5f9);
  font-weight: 600;
}
.qalbi-dialog__actions {
  display: flex;
  gap: .65rem;
  margin-top: .35rem;
}
.qalbi-dialog__actions .qalbi-btn {
  flex: 1;
  justify-content: center;
}

/* ── Wali section (gold theme) ───────────────────────────── */
[data-section="wali"] .qalbi-dash__card {
  border-color: rgba(201,162,39,.3);
}
[data-section="wali"] .qalbi-dash__card:hover {
  border-color: rgba(201,162,39,.6) !important;
  background: rgba(201,162,39,.05) !important;
}
[data-section="wali"] .qalbi-dash__card--open {
  border-color: rgba(201,162,39,.6) !important;
  background: rgba(201,162,39,.05) !important;
  border-bottom-color: transparent !important;
}
[data-section="wali"] .qalbi-dash__card-icon {
  background: rgba(201,162,39,.12) !important;
  border-color: rgba(201,162,39,.28) !important;
  color: #C9A227 !important;
}
[data-section="wali"] .qalbi-dash__panel {
  border-color: rgba(201,162,39,.35);
  border-top-color: transparent;
}
[data-section="wali"] .qalbi-save-section {
  background: #C9A227 !important;
  border-color: #C9A227 !important;
  color: #fff !important;
}
[data-section="wali"] .qalbi-save-section:hover {
  background: #b8901f !important;
}
[data-section="wali"] .qalbi-btn--secondary {
  border-color: rgba(201,162,39,.5) !important;
  color: #C9A227 !important;
}
[data-section="wali"] .qalbi-btn--secondary:hover {
  background: rgba(201,162,39,.08) !important;
}

.qalbi-wali-intro {
  font-size: .82rem;
  color: var(--q-muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.qalbi-wali-radios {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.1rem;
}

.qalbi-wali-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: .35rem .9rem;
  border-radius: 99px;
  border: 1.5px solid var(--q-border);
  font-size: .83rem;
  font-weight: 500;
  color: var(--q-muted);
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
}
.qalbi-wali-radio input[type="radio"] {
  display: none;
}
.qalbi-wali-radio:hover {
  border-color: rgba(201,162,39,.5);
  color: #C9A227;
}
.qalbi-wali-radio--active {
  border-color: #C9A227 !important;
  color: #C9A227 !important;
  background: rgba(201,162,39,.1) !important;
  font-weight: 600;
}

.qalbi-wali-fields {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.qalbi-field-info--gold {
  color: #C9A227 !important;
  font-weight: 600 !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .qalbi-dash__header { gap: .85rem; padding: 1.2rem 1rem 1rem; }
  .qalbi-dash__avatar-wrap { width: 60px; height: 60px; }
  .qalbi-dash__avatar-initial { font-size: 1.6rem; }
  .qalbi-dash__name { font-size: 1.15rem; }
  .qalbi-dash__card-sub { max-width: 160px; }
  .qalbi-panel__inner { padding: .9rem .85rem .85rem; }
  .qalbi-dialog__actions { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════
   Nutzer melden – Button & Survey Dialog
   ══════════════════════════════════════════════════════════ */

/* ── Report-Button (unter Zurück-Link) ───────────────────── */
.qpv-report-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .85rem auto 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--q-muted);
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s, color .15s;
  text-decoration: none;
}
.qpv-report-btn:hover {
  opacity: 1;
  color: var(--q-error);
}
.qpv-report-btn--done {
  display: inline-flex !important;
  align-items: center !important;
  gap: .35rem !important;
  margin: .85rem auto 0 !important;
  padding: .35rem .85rem !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 99px !important;
  color: #9ca3af !important;
  font-size: .75rem !important;
  font-weight: 500 !important;
  cursor: default !important;
  pointer-events: none !important;
  opacity: 1 !important;
  letter-spacing: .01em !important;
}

/* ── Danger-Variant für primären Button ─────────────────── */
.qalbi-btn--danger {
  background: var(--q-error) !important;
  color: #fff !important;
  border: none !important;
}
.qalbi-btn--danger:hover {
  background: #b91c1c !important;
}

/* ── Report-Dialog Overlay ───────────────────────────────── */
.qrep-overlay .qalbi-dialog {
  max-width: 480px;
  width: 100%;
}

/* ── Untertitel ──────────────────────────────────────────── */
.qrep-subtitle {
  font-size: .88rem;
  color: var(--q-muted);
  margin: -.25rem 0 .85rem;
  line-height: 1.4;
}

/* ── Reasons-Liste ───────────────────────────────────────── */
.qrep-reasons {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.1rem;
  max-height: 320px;
  overflow-y: auto;
}

/* ── Einzelne Reason ─────────────────────────────────────── */
.qrep-reason {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .65rem .85rem;
  border: 1.5px solid var(--q-border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  position: relative;
}
.qrep-reason input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.qrep-reason:hover {
  border-color: var(--q-primary);
  background: #f0fdf4;
}
.qrep-reason--selected {
  border-color: var(--q-primary) !important;
  background: #f0fdf4 !important;
}

.qrep-reason__label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--q-text);
  line-height: 1.3;
}
.qrep-reason__desc {
  font-size: .76rem;
  color: var(--q-muted);
  line-height: 1.4;
}

/* ── Step 2: Bestätigen ──────────────────────────────────── */
.qrep-confirm-reason {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .85rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  margin-bottom: .85rem;
}
.qrep-confirm-label {
  font-size: .78rem;
  color: var(--q-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.qrep-confirm-val {
  font-size: .85rem;
  color: var(--q-primary);
  font-weight: 600;
}

.qrep-detail-hint {
  font-size: .82rem;
  color: var(--q-muted);
  margin: 0 0 .45rem;
}

.qrep-details {
  width: 100%;
  border: 1.5px solid var(--q-border);
  border-radius: 10px;
  padding: .6rem .75rem;
  font-size: .85rem;
  color: var(--q-text);
  resize: vertical;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  margin-bottom: .75rem;
  box-sizing: border-box;
}
.qrep-details:focus {
  border-color: var(--q-primary);
}

.qrep-confirm-note {
  font-size: .76rem;
  color: var(--q-muted);
  margin: 0 0 .85rem;
  line-height: 1.5;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════
   Login / Registrierung – Auth-Seite
   ══════════════════════════════════════════════════════════ */

/* ── Outer Wrapper ───────────────────────────────────────── */
.qauth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Brand ───────────────────────────────────────────────── */
.qauth-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 2rem;
}
.qauth-brand__logo-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
}
.qauth-brand__name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1f2937;
  font-family: 'Kaisei Decol', serif;
  line-height: 1;
}
.qauth-brand__tag {
  font-size: .78rem;
  color: #6b7280;
  margin-top: .2rem;
  letter-spacing: .03em;
}

/* ── Card ────────────────────────────────────────────────── */
.qauth-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
  overflow: hidden;
}

/* ── Tabs ────────────────────────────────────────────────── */
.qauth-tabs {
  display: flex;
  position: relative;
  background: #f9fafb;
  border-bottom: 1px solid var(--q-border);
}
.qauth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--q-muted);
  cursor: pointer;
  transition: color .2s;
  position: relative;
  z-index: 1;
  text-align: center;
}
.qauth-tab--active {
  color: var(--q-primary);
}
.qauth-tab-line {
  position: absolute;
  bottom: 0;
  height: 2.5px;
  background: var(--q-primary);
  border-radius: 2px 2px 0 0;
  transition: left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1);
}

/* ── Panel ───────────────────────────────────────────────── */
.qauth-panel {
  display: none;
  padding: 1.75rem 1.75rem 2rem;
}
.qauth-panel--active { display: block; }

/* ── Form ────────────────────────────────────────────────── */
.qauth-form { display: flex; flex-direction: column; gap: 1rem; }

.qauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.qauth-field { display: flex; flex-direction: column; gap: .4rem; }

.qauth-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--q-text);
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
}
.qauth-label__note {
  font-size: .72rem;
  font-weight: 400;
  color: var(--q-muted);
}

.qauth-input-wrap {
  position: relative;
  display: flex;
}
.qauth-input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--q-border);
  border-radius: 10px;
  font-size: .9rem;
  color: var(--q-text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
  box-sizing: border-box;
}
.qauth-input-wrap .qauth-input {
  padding-right: 2.5rem;
  border-radius: 10px;
}
.qauth-input:focus {
  border-color: var(--q-primary);
  box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}
.qauth-eye {
  position: absolute;
  right: .7rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--q-muted);
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .15s;
}
.qauth-eye:hover { color: var(--q-primary); }

/* ── Geschlecht-Auswahl ──────────────────────────────────── */
.qauth-gender-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.qauth-gender-opt {
  position: relative;
  cursor: pointer;
}
.qauth-gender-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.qauth-gender-opt__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  padding: .85rem .5rem;
  border: 1.5px solid var(--q-border);
  border-radius: 12px;
  background: #f9fafb;
  transition: border-color .15s, background .15s;
}
.qauth-gender-opt:hover .qauth-gender-opt__inner {
  border-color: var(--q-primary);
  background: #f0fdf4;
}
.qauth-gender-opt--selected .qauth-gender-opt__inner {
  border-color: var(--q-primary) !important;
  background: #f0fdf4 !important;
  box-shadow: 0 0 0 3px rgba(15,118,110,.1);
}
.qauth-gender-opt__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.qauth-gender-opt__lbl {
  font-size: .82rem;
  font-weight: 600;
  color: var(--q-text);
}

/* ── Error ───────────────────────────────────────────────── */
.qauth-error {
  display: none;
  align-items: center;
  gap: .45rem;
  padding: .6rem .85rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 9px;
  font-size: .82rem;
  color: var(--q-error);
  line-height: 1.4;
}
.qauth-error::before {
  content: '⚠';
  flex-shrink: 0;
}

/* ── Submit-Button ───────────────────────────────────────── */
.qauth-submit-btn {
  text-align: center;
  width: auto;
  min-width: 180px;
  padding: .8rem 2rem;
  background: var(--q-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, transform .1s;
  font-family: inherit;
  margin-top: .25rem;
}
.qauth-submit-btn:hover { background: var(--q-primary-h); }
.qauth-submit-btn:active { transform: scale(.98); }
.qauth-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* ── Geschlecht-Sperre im Profil ─────────────────────────── */
.qalbi-gender-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .85rem;
  background: #f9fafb;
  border: 1.5px solid var(--q-border);
  border-radius: 10px;
  margin-top: .3rem;
}
.qalbi-gender-locked__val {
  font-size: .9rem;
  font-weight: 600;
  color: var(--q-text);
}
.qalbi-gender-locked__hint {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .73rem;
  color: var(--q-muted);
}

/* ── Willkommens-Dialoge ─────────────────────────────────── */
.qwelcome-dialog {
  max-width: 420px !important;
  text-align: center !important;
}
.qwelcome-emoji {
  font-size: 2.5rem;
  margin-bottom: .5rem;
  line-height: 1;
}
.qwelcome-cb-wrap {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .75rem 1rem;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  margin: .5rem 0 .25rem;
}
.qwelcome-cb {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--q-primary);
  cursor: pointer;
}
.qwelcome-cb-label {
  font-size: .88rem;
  color: var(--q-text);
  line-height: 1.45;
}

@media (max-width: 480px) {
  .qauth-panel { padding: 1.4rem 1.25rem 1.75rem; }
  .qauth-row   { grid-template-columns: 1fr; }
  .qauth-brand { margin-bottom: 1.5rem; }
}

/* ════════════════════════════════════════════════════════════
   BENACHRICHTIGUNGEN – GLOCKE + DROPDOWN
   ════════════════════════════════════════════════════════════ */

.qalbi-notif-wrap {
  position: relative;
  display: inline-flex;
}

/* Glocken-Button */
.qalbi-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--q-border);
  background: var(--q-surface);
  color: var(--q-text);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  flex-shrink: 0;
}
.qalbi-notif-bell:hover {
  background: var(--q-bg);
  border-color: var(--q-primary);
  color: var(--q-primary);
}

/* Badge (rote Zahl) */
.qalbi-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: #DC2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--q-surface);
  transition: transform .2s;
}
.qalbi-notif-badge--hidden {
  display: none;
}

/* Dropdown-Panel */
.qalbi-notif-drop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  z-index: 99999;
  overflow: hidden;
  animation: qalbi-notif-in .18s ease;
}
.qalbi-notif-drop--open {
  display: flex;
  flex-direction: column;
}
@keyframes qalbi-notif-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.qalbi-notif-drop__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem .75rem;
  border-bottom: 1px solid var(--q-border);
  flex-shrink: 0;
}
.qalbi-notif-drop__title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--q-text);
}
.qalbi-notif-mark-all {
  font-size: .75rem;
  color: var(--q-primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.qalbi-notif-mark-all:hover { text-decoration: underline; }

/* Liste */
.qalbi-notif-list {
  overflow-y: auto;
  max-height: 400px;
  display: flex;
  flex-direction: column;
}

/* Einzelne Notification */
.qalbi-notif-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  text-decoration: none;
  color: var(--q-text);
  border-bottom: 1px solid var(--q-border);
  transition: background .14s;
}
.qalbi-notif-item:last-child { border-bottom: none; }
.qalbi-notif-item:hover { background: var(--q-bg); }
.qalbi-notif-item--unread { background: rgba(15,118,110,.04); }
.qalbi-notif-item--unread:hover { background: rgba(15,118,110,.08); }

/* Icon-Kreis */
.qalbi-notif-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Textblock */
.qalbi-notif-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.qalbi-notif-msg {
  font-size: .83rem;
  line-height: 1.4;
  color: var(--q-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qalbi-notif-item--unread .qalbi-notif-msg { font-weight: 600; }
.qalbi-notif-time {
  font-size: .72rem;
  color: var(--q-muted);
}

/* Ungelesen-Punkt */
.qalbi-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--q-primary);
  flex-shrink: 0;
}

/* Leer-Zustand */
.qalbi-notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 2.5rem 1rem;
  color: var(--q-muted);
  font-size: .85rem;
}
