:root {
  --bg: #0a0a0b;
  --bg-2: #141417;
  --bg-3: #1e1e23;
  --line: #2a2a31;
  --text: #f6f6f7;
  --muted: #9a9aa6;
  --volt: #ffe500;
  --volt-ink: #0a0a0b;
  --pink: #ff2e88;
  --cyan: #00e5ff;
  --danger: #ff4d4d;
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  overscroll-behavior: none;
}
#app { position: fixed; inset: 0; max-width: 520px; margin: 0 auto; overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--volt); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 15px; letter-spacing: 0.04em; }

/* ---------- Screens ---------- */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; }
.screen.active { display: flex; animation: fade-in .18s ease-out; }
.screen.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + var(--safe-bottom)); }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } }

.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: calc(12px + var(--safe-top)) 16px 12px; background: linear-gradient(var(--bg) 70%, transparent);
}
.topbar h2 { font-size: 18px; }
.spacer { width: 40px; }
.pad { padding: 0 16px; }

/* Wortmarke: eigener Vektor-Blitz statt Emoji – sieht auf jedem Gerät gleich aus.
   Der Schriftzug „ZAPTA“ ist exakt zentriert; der Blitz hängt links davor und zählt nicht zur Breite. */
.wordmark { position: relative; display: inline-block; font-weight: 900; font-style: italic; font-size: 64px; letter-spacing: -0.045em; color: var(--volt); text-shadow: 0 0 40px rgba(255,229,0,.35); line-height: 1; }
.wordmark.small { font-size: 26px; text-shadow: none; }
.wordmark .bolt { position: absolute; right: calc(100% + .04em); top: 50%; width: .78em; height: .78em; fill: currentColor; transform: translateY(-50%) skewX(-8deg); filter: drop-shadow(0 0 .12em rgba(255,229,0,.55)); }
.wordmark.small .bolt { filter: none; }
.tagline { margin: 4px 0 0; color: var(--muted); font-weight: 600; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-3); font-weight: 700; cursor: pointer;
  text-decoration: none; color: var(--text); transition: transform .08s ease, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.big { min-height: 58px; font-size: 18px; width: 100%; }
.btn.small { min-height: 36px; font-size: 14px; padding: 0 14px; }
.btn.icon-only { width: 36px; padding: 0; flex: none; }
.btn.icon-only .i { width: 18px; height: 18px; }
.btn:disabled { opacity: .5; pointer-events: none; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-2); display: grid; place-items: center; cursor: pointer; font-size: 18px;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: var(--volt-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.link-btn { background: none; border: 0; color: var(--volt); font-weight: 700; cursor: pointer; padding: 6px 0; }

/* ---------- Icons ----------
   Regel: keine Emojis in Bedienelementen. Icons übernehmen die Textfarbe (immer genug Kontrast). In zentrierten
   Buttons „hängt“ das Icon neben der Beschriftung (wie der Blitz beim Schriftzug) – der Text bleibt exakt mittig.
   Geprüft mit `npm run test:ui`. */
svg.i:not(.i-bolt) { fill: none; stroke: currentColor; }
svg.i.i-bolt { fill: currentColor; stroke: none; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.lbl { position: relative; display: inline-block; }
.lbl > .ico-l, .lbl > .ico-r { position: absolute; top: 50%; transform: translateY(-50%); }
.lbl > .ico-l { right: calc(100% + .4em); }
.lbl > .ico-r { left: calc(100% + .4em); }
.btn:has(> .lbl > .ico-l, > .lbl > .ico-r) { padding-inline: calc(20px + 1.55em); }
.btn.small:has(> .lbl > .ico-l, > .lbl > .ico-r) { padding-inline: calc(12px + 1.55em); }
.link-btn:has(> .lbl > .ico-l, > .lbl > .ico-r) { padding-inline: 1.8em; }
h3 > .i:first-child { width: 1em; height: 1em; vertical-align: -.14em; margin-right: .4em; color: var(--volt); }
.t-ico { width: 1em; height: 1em; vertical-align: -.14em; margin-right: .35em; }
.t-ico.r { margin: 0 0 0 .3em; }
.big-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: rgba(255,229,0,.1); color: var(--volt); }
.big-icon .i { width: 40px; height: 40px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
label small { font-weight: 500; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
input:not([type=checkbox]), textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 16px; outline: none;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--volt); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--volt); flex: none; }
.form-error { color: var(--danger); min-height: 1em; margin: 8px 0 0; font-weight: 600; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px; padding: 8px 14px;
  font-weight: 700; font-size: 14px; cursor: pointer; user-select: none;
}
.chip.on { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }

/* Auswahl-Kacheln: Icon + linksbündige Beschriftung (Themen, Interessen) */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.opt {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none;
}
.opt-ico { width: 20px; height: 20px; color: var(--volt); }
.opt-lbl { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.opt.on, .tile.on { background: var(--volt); color: var(--volt-ink); border-color: var(--volt); }
.opt.on .opt-ico, .tile.on .opt-ico { color: var(--volt-ink); }
/* Mini-Kacheln: Icon über kurzer Beschriftung (Feedback-Art) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg-3); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer;
}
.tile .opt-ico { width: 22px; height: 22px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg-btn { border: 0; background: transparent; border-radius: 999px; min-height: 40px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg-btn.active { background: var(--bg-3); color: var(--text); }

.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card.wide { width: 100%; text-align: left; }

/* ---------- Auth ---------- */
#screen-auth { overflow-y: auto; padding: calc(32px + var(--safe-top)) 16px calc(24px + var(--safe-bottom)); gap: 24px; }
.auth-hero { text-align: center; padding-top: 4vh; }
.auth-card { padding: 16px; }

/* ---------- Home ---------- */
.avatar-btn { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--volt); padding: 0; background: var(--bg-3); cursor: pointer; }
.avatar-btn img, .avatar-xl, .peer-chip img, .conn img { object-fit: cover; background: var(--bg-3); }
.avatar-btn img { width: 100%; height: 100%; display: block; }
/* Verteilt den Platz gleichmäßig (auto-Ränder); passt nicht alles auf kleine Bildschirme, wird gescrollt statt abgeschnitten. */
.home-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 16px calc(16px + var(--safe-bottom)); text-align: center; }
.home-body > * { margin-block: auto; flex: none; }
.home-body > .mode-block { width: 100%; }
.online { margin: 0; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.online b { color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2bd96b; box-shadow: 0 0 10px #2bd96b; }
.zap-hour { background: linear-gradient(90deg, var(--pink), var(--volt)); color: var(--volt-ink); font-weight: 800; padding: 10px calc(16px + 1.55em); border-radius: 999px; font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; max-width: 320px; margin: 0; }

.zap-button {
  position: relative; width: min(56vw, 220px, 30vh); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; margin: 18px 0;
  background: radial-gradient(circle at 35% 30%, #fff59a, var(--volt) 45%, #e6b800);
  box-shadow: 0 0 0 10px rgba(255,229,0,.08), 0 0 80px rgba(255,229,0,.45), inset 0 -10px 30px rgba(0,0,0,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--volt-ink);
  transition: transform .12s ease;
}
.zap-button:active { transform: scale(.95); }
.zap-button svg { width: 42%; fill: var(--volt-ink); filter: drop-shadow(0 4px 0 rgba(0,0,0,.15)); }
.zap-label { font-weight: 900; font-style: italic; font-size: 28px; letter-spacing: -0.03em; margin-top: -4px; }
.zap-button .ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(255,229,0,.5); animation: ring 2.4s ease-out infinite; }
.zap-button .ring.r2 { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.25); opacity: 0; } }

/* ---------- Permission / center layouts ---------- */
.center-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(24px + var(--safe-top)) 16px calc(24px + var(--safe-bottom)); text-align: center; overflow-y: auto; }
.center-col .btn { width: 100%; }
#screen-connected .center-col { justify-content: flex-start; }

/* ---------- Searching ---------- */
.search-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); filter: blur(14px) brightness(.45); }
.search-overlay { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; }
.search-overlay p { margin: 0; }
.pulse-bolt { width: 84px; height: 84px; animation: pulse 1s ease-in-out infinite alternate; filter: drop-shadow(0 0 30px rgba(255,229,0,.7)); }
.pulse-bolt svg, .burst svg { width: 100%; height: 100%; fill: var(--volt); }
@keyframes pulse { from { transform: scale(.9) rotate(-6deg); } to { transform: scale(1.08) rotate(6deg); } }

/* ---------- Match ---------- */
#screen-match { background: #000; }
#remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#local-video {
  position: absolute; top: calc(84px + var(--safe-top)); right: 12px; width: 96px; aspect-ratio: 3/4; object-fit: cover;
  border-radius: 14px; border: 2px solid rgba(255,255,255,.25); transform: scaleX(-1); background: #111; z-index: 3;
}
#local-video.cam-off { opacity: .25; }
.match-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; padding: calc(12px + var(--safe-top)) 12px 24px; background: linear-gradient(rgba(0,0,0,.65), transparent);
}
.home-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.home-btn svg { width: 22px; height: 22px; fill: #fff; }
.peer-chip { flex: 1; display: flex; gap: 10px; align-items: center; min-width: 0; }
#home-sheet { z-index: 9; }
.peer-chip img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--volt); flex: none; }
.peer-chip b { font-size: 16px; }
.peer-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.peer-tags span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,229,0,.18); color: var(--volt); }
.timer {
  flex: none; font-variant-numeric: tabular-nums; font-weight: 900; font-size: 20px; padding: 6px 14px; border-radius: 999px;
  background: rgba(0,0,0,.55); border: 2px solid var(--volt); color: var(--volt); backdrop-filter: blur(8px);
}
.timer.urgent { border-color: var(--pink); color: var(--pink); animation: tick .5s ease-in-out infinite alternate; }
.timer.extended { border-color: var(--cyan); color: var(--cyan); }
@keyframes tick { to { transform: scale(1.08); } }
.peer-banner { position: absolute; top: calc(80px + var(--safe-top)); left: 12px; right: 120px; z-index: 4; background: rgba(0,0,0,.7); padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }

/* Prompt nimmt bewusst nur ~15 % ein – die Person bleibt im Fokus (§9). */
.prompt-card {
  position: absolute; left: 12px; right: 12px; bottom: calc(84px + var(--safe-bottom)); z-index: 4;
  background: rgba(10,10,11,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,229,0,.35); border-radius: var(--radius); padding: 12px 14px 6px; max-height: 18vh; overflow: auto;
}
.prompt-card p { margin: 4px 0 2px; font-weight: 700; font-size: 16px; }
.prompt-label { display: flex; width: 100%; justify-content: space-between; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: var(--volt); }
.prompt-card:not(.private) .prompt-label { cursor: default; }
.prompt-card.private .prompt-label::after { content: '–'; font-size: 16px; color: var(--muted); }
.prompt-card.collapsed .prompt-label::after { content: '+'; }
.prompt-card.collapsed .prompt-body { display: none; }
.prompt-card.collapsed { padding-bottom: 12px; }
.prompt-card.private { max-height: 30vh; }
.prompt-cats { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 2px; padding-bottom: 2px; scrollbar-width: none; }
.prompt-cats::-webkit-scrollbar { display: none; }
/* Themenwahl im privaten Zap: runde Icon-Knöpfe, der Name des Themas steht in der Überschrift */
.prompt-cats .topic {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff;
}
.prompt-cats .topic .i { width: 18px; height: 18px; }
.prompt-cats .topic.on { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.prompt-label > span { display: inline-flex; align-items: center; gap: 6px; }
.prompt-label .pl-ico { width: 13px; height: 13px; }
.prompt-hint { color: var(--muted); font-weight: 600; font-size: 14px; }
.prompt-card.swap { animation: swap .35s ease; }
@keyframes swap { from { transform: translateY(8px); opacity: 0; } }

.match-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; gap: 10px; align-items: center;
  padding: 12px 12px calc(12px + var(--safe-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.ctrl { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); display: grid; place-items: center; cursor: pointer; }
.ctrl svg { width: 24px; height: 24px; fill: #fff; }
.ctrl.off { background: var(--danger); }
.next-btn { flex: 1; min-height: 52px; background: #fff; color: #000; border: 0; font-weight: 900; letter-spacing: .04em; }
.next-btn.wrap { background: var(--cyan); }

.overlay {
  position: absolute; inset: 0; z-index: 6; display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; text-align: center; padding: 24px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
}
.overlay.show { display: flex; animation: fade-in .2s ease-out; }
.overlay.decision { background: rgba(10,10,11,.78); }
.overlay h2 { font-size: 34px; font-weight: 900; font-style: italic; color: var(--volt); text-shadow: 0 0 30px rgba(255,229,0,.4); }
.overlay p { margin: 0; max-width: 320px; }
.overlay h2 { margin: 0; }
.ov-bolt { color: var(--volt); margin-bottom: -8px; }
.ov-bolt .i { display: block; width: 44px; height: 44px; filter: drop-shadow(0 0 14px rgba(255,229,0,.6)); }
.countdown { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--volt); display: grid; place-items: center; font-weight: 900; font-size: 24px; }
.decision-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 360px; }
.btn.huge { min-height: 72px; font-size: 22px; font-weight: 900; border-radius: 22px; }
.btn.huge.yes { background: var(--volt); color: var(--volt-ink); border: 0; box-shadow: 0 0 40px rgba(255,229,0,.35); }
.btn.huge.next { background: var(--bg-3); }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--volt); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.flash {
  position: absolute; inset: 0; z-index: 7; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; pointer-events: none;
  font-size: 56px; font-weight: 900; font-style: italic; color: var(--volt); text-shadow: 0 0 60px rgba(255,229,0,.8);
}
.flash.show { display: flex; animation: flash 1.2s ease-out forwards; }
.flash.dim { font-size: 30px; color: #fff; text-shadow: none; background: rgba(0,0,0,.7); }
.flash-bolt .i { display: block; width: 72px; height: 72px; filter: drop-shadow(0 0 24px rgba(255,229,0,.8)); }
@keyframes flash { 0% { transform: scale(.4); opacity: 0; } 20% { transform: scale(1.1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

.sheet { position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; }
.sheet-inner { width: 100%; background: var(--bg-2); border-radius: 22px 22px 0 0; padding: 20px 16px calc(16px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 10px; max-height: 90%; overflow-y: auto; }
.sheet-inner p { margin: 0; }
.reason { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--bg-3); color: var(--text); font-size: 15px; font-weight: 600; }
.reason input { accent-color: var(--danger); width: 18px; height: 18px; }

/* ---------- Connected ---------- */
.burst { width: 72px; height: 72px; animation: pulse .7s ease-in-out 3 alternate; filter: drop-shadow(0 0 24px rgba(255,229,0,.6)); }
.neon { font-size: 44px; font-weight: 900; font-style: italic; color: var(--volt); text-shadow: 0 0 40px rgba(255,229,0,.55); }
.avatar-xl { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--volt); }
.social-link { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); text-decoration: none; color: var(--text); font-weight: 700; }
.social-link span { color: var(--volt); }
.share-opt { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-3); color: var(--text); font-weight: 700; font-size: 15px; }
.share-opt input { accent-color: var(--volt); width: 20px; height: 20px; }
.unlocked { color: var(--volt); }

/* ---------- Connections ---------- */
.list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.conn { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.conn-head { display: flex; gap: 12px; align-items: center; }
.conn img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--volt); }
.conn-head div { flex: 1; min-width: 0; }
.conn-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty .big-icon { margin-bottom: 8px; }

.avatar-edit { display: flex; align-items: center; gap: 16px; }

.toast {
  position: absolute; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 20px); z-index: 20;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .2s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Private Zaps auf der Startseite ---------- */
.home-calls { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.call-card { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.call-card.live { border-color: var(--volt); box-shadow: 0 0 24px rgba(255,229,0,.18); }
.call-card img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--volt); flex: none; }
.call-card .info { flex: 1; min-width: 0; font-size: 14px; }
.call-card .info b { display: block; }
.call-card .acts { display: flex; gap: 6px; flex: none; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2bd96b; margin-right: 4px; animation: pulse .8s ease-in-out infinite alternate; }

/* ---------- Chat ---------- */
#screen-chat { background: var(--bg); }
.chat-top { justify-content: flex-start; }
.chat-peer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chat-peer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--volt); }
.chat-actions { display: flex; gap: 8px; padding: 0 16px 10px; border-bottom: 1px solid var(--line); }
.chat-actions .btn { flex: 1; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; -webkit-overflow-scrolling: touch; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.35; word-wrap: break-word; white-space: pre-wrap; }
.msg.theirs { align-self: flex-start; background: var(--bg-3); border-bottom-left-radius: 6px; }
.msg.mine { align-self: flex-end; background: var(--volt); color: var(--volt-ink); border-bottom-right-radius: 6px; }
.msg time { display: block; font-size: 10px; opacity: .6; margin-top: 2px; text-align: right; }
.msg-day { align-self: center; font-size: 12px; color: var(--muted); margin: 8px 0 2px; }
.msg-call { align-self: stretch; background: var(--bg-2); border: 1px solid rgba(255,229,0,.35); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.msg-call .t { font-weight: 800; }
.msg-call .st { font-size: 13px; color: var(--muted); }
.msg-call .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.composer input { flex: 1; border-radius: 999px; }
.send-btn { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--volt); color: var(--volt-ink); cursor: pointer; display: grid; place-items: center; }
.send-btn .i { width: 20px; height: 20px; }
.conn-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { background: var(--pink); color: var(--volt-ink); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 2px 7px; flex: none; }
.chat-open { position: relative; }
.chat-open .unread { position: absolute; top: -7px; right: -4px; min-width: 20px; text-align: center; }

/* ---------- Eingehende Call-Anfrage (global) ---------- */
.call-banner {
  position: absolute; top: calc(10px + var(--safe-top)); left: 10px; right: 10px; z-index: 30; display: flex; align-items: center; gap: 10px;
  background: rgba(20,20,23,.96); border: 1px solid var(--volt); border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
  animation: fade-in .2s ease-out;
}
.call-banner img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.call-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.call-banner-actions { display: flex; gap: 6px; }
.timer.private { border-color: #2bd96b; color: #2bd96b; }

/* ---------- Home-Bildschirm-Anleitung & Feedback ---------- */
.install-card { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 40px 12px 12px; }
.install-icon img { width: 44px; height: 44px; border-radius: 11px; display: block; }
.install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.install-text b { color: var(--text); font-size: 14px; }
.install-text .share-ico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; fill: var(--volt); }
.icon-btn.small-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; font-size: 12px; }
.feedback-link { font-size: 14px; color: var(--muted); }
.muted-link { color: var(--muted); font-size: 14px; align-self: center; }

/* ---------- E-Mail bestätigen ---------- */
.verify-card { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--bg-2); border: 1px solid var(--pink); border-radius: var(--radius); padding: 12px; }
.verify-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.verify-text > b { color: var(--text); font-size: 14px; }
.verify-text span b { color: var(--text); word-break: break-all; }

/* ---------- In-App-Browser-Hinweis ---------- */
.inapp { position: absolute; inset: 0; z-index: 50; background: var(--bg); display: flex; }
.inapp .center-col .btn { width: 100%; }
.inapp-steps { text-align: left; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.inapp-steps b { color: var(--volt); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
