/* §CLIENT-PREFS-2026-09-18 — Datenschutz-Schalter (ec-client-prefs.js) und
   das neu gestaltete „Gruppe erstellt“-Modal. */

/* ── Bilder unscharf anzeigen ─────────────────────────────────────────────── */
.media-blurred {
  filter: blur(16px) !important;
  cursor: pointer !important;
  transition: filter .2s ease;
}

/* ── Screenshot-Schutz im Web: App bei Fokusverlust unscharf ──────────────── */
html.ec-screen-shield body > * {
  filter: blur(18px) !important;
  transition: none !important;
}

/* ── „Gruppe erstellt“ — Cyber-Badge-Card ─────────────────────────────────── */
/* Zentriert auf allen Breiten: die Basis-.modal-overlay ist mobil ein
   Bottom-Sheet (align-items:flex-end) — für diese Karte bewusst nicht. */
#group-created-modal.modal-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  background: rgba(2, 4, 10, 0.72) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#group-created-modal .ec-gc-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 30px 24px 22px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(175, 175, 175, 0.16), transparent 58%),
    radial-gradient(ellipse at 100% 110%, rgba(113, 113, 113, 0.18), transparent 55%),
    #0e0e0e;
  border: 1px solid rgba(175, 175, 175, 0.22);
  box-shadow:
    0 0 0 1px rgba(113, 113, 113, 0.14) inset,
    0 0 42px rgba(175, 175, 175, 0.12),
    0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #ececec;
  animation: ec-gc-in .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes ec-gc-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
#group-created-modal .ec-gc-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #afafaf;
  background: linear-gradient(135deg, rgba(175, 175, 175, 0.14), rgba(113, 113, 113, 0.18));
  border: 1px solid rgba(175, 175, 175, 0.35);
  box-shadow: 0 0 26px rgba(175, 175, 175, 0.22);
}
#group-created-modal .ec-gc-badge svg { width: 28px; height: 28px; }
#group-created-modal .ec-gc-title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}
#group-created-modal .ec-gc-sub {
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #959595;
}
#group-created-modal .ec-gc-code-label {
  display: block;
  margin-bottom: 8px;
  font: 700 10.5px/1 var(--font-mono, ui-monospace, monospace);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8b8b8b;
}
#group-created-modal .ec-gc-code {
  padding: 16px 10px 16px 16px; /* rechts weniger: letter-spacing hängt am letzten Zeichen */
  border-radius: 16px;
  background: rgba(6, 6, 6, 0.9);
  border: 1px solid rgba(113, 113, 113, 0.32);
  box-shadow: 0 0 0 1px rgba(175, 175, 175, 0.08) inset, 0 0 24px rgba(113, 113, 113, 0.14);
  font: 800 30px/1.1 var(--font-mono, ui-monospace, 'SFMono-Regular', Menlo, monospace);
  letter-spacing: 6px;
  color: #cbcbcb;
  text-shadow: 0 0 14px rgba(175, 175, 175, 0.45);
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}
#group-created-modal .ec-gc-copy {
  margin: 12px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(175, 175, 175, 0.35);
  background: rgba(175, 175, 175, 0.08);
  color: #e3e3e3;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
#group-created-modal .ec-gc-copy:hover { background: rgba(175, 175, 175, 0.14); }
#group-created-modal .ec-gc-copy:active { transform: scale(.94); }
#group-created-modal .ec-gc-copy.is-copied {
  background: rgba(173, 173, 173, 0.16);
  border-color: rgba(173, 173, 173, 0.55);
  color: #cacaca;
  animation: ec-gc-pop .32s ease;
}
@keyframes ec-gc-pop {
  0% { transform: scale(.92); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
#group-created-modal .ec-gc-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#group-created-modal .ec-gc-btn {
  min-height: 46px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, filter .2s ease, background .2s ease;
}
#group-created-modal .ec-gc-btn:active { transform: scale(.98); }
#group-created-modal .ec-gc-primary {
  border: none;
  color: #0f0f0f;
  background: linear-gradient(135deg, #afafaf, #717171);
  box-shadow: 0 10px 26px rgba(175, 175, 175, 0.22);
}
#group-created-modal .ec-gc-primary:hover { filter: brightness(1.08); }
#group-created-modal .ec-gc-secondary {
  background: transparent;
  color: #b3b3b3;
  border: 1px solid rgba(179, 179, 179, 0.22);
}
#group-created-modal .ec-gc-secondary:hover { background: rgba(255, 255, 255, 0.04); color: #ececec; }
#group-created-modal .ec-gc-copy:focus-visible,
#group-created-modal .ec-gc-btn:focus-visible {
  outline: 2px solid #afafaf;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  #group-created-modal .ec-gc-card,
  #group-created-modal .ec-gc-copy.is-copied { animation: none; }
}
