:root {
  --cm-bg-0: #010207;
  --cm-bg-1: #050912;
  --cm-bg-2: #090f1d;
  --cm-text: #f3f7ff;
  --cm-muted: #acb9d5;
  --cm-line: rgba(255, 255, 255, 0.2);
  --cm-line-soft: rgba(255, 255, 255, 0.1);
  --cm-green: #40f2a7;
  --cm-green-strong: #12d084;
  --cm-purple: #8d6bff;
  --cm-purple-strong: #7046ff;
  --cm-glass: rgba(7, 10, 20, 0.82);
  --cm-glass-strong: rgba(5, 8, 16, 0.94);
}

body {
  background:
    radial-gradient(circle at 10% -10%, #0d2548 0%, transparent 28%),
    radial-gradient(circle at 95% 0%, #22114e 0%, transparent 32%),
    linear-gradient(160deg, var(--cm-bg-0), var(--cm-bg-1) 45%, var(--cm-bg-2));
  color: var(--cm-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.4));
}

.background-grid,
.scanline,
.ambient,
.client-bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.background-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.scanline {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0.015) 1px,
    transparent 2px,
    transparent 4px
  );
}

.ambient-green {
  background: radial-gradient(circle at 18% 24%, rgba(64, 242, 167, 0.18), transparent 55%);
}

.ambient-purple {
  background: radial-gradient(circle at 85% 20%, rgba(141, 107, 255, 0.16), transparent 50%);
}

.ambient-center {
  background: radial-gradient(circle at 50% 65%, rgba(32, 91, 184, 0.14), transparent 45%);
}

.client-bg-glow {
  background: radial-gradient(circle at center, rgba(64, 242, 167, 0.06), transparent 62%);
}

.client-shell {
  max-width: 1500px;
}

.manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.manager-head-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  justify-content: flex-end;
}

.client-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.34rem 0.62rem 0.34rem 0.34rem;
  border-radius: 999px;
  border: 1px solid var(--cm-line);
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.05);
}

.client-account-trigger:hover,
.client-account-trigger:focus-visible {
  border-color: rgba(64, 242, 167, 0.55);
  color: #fff;
}

.client-account-meta {
  line-height: 1.02;
}

.client-account-meta strong {
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}

.client-account-meta small {
  font-size: 0.68rem;
  color: var(--cm-muted);
}

.client-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(64, 242, 167, 0.45);
  background: radial-gradient(circle at 30% 25%, rgba(64, 242, 167, 0.35), rgba(141, 107, 255, 0.25));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.client-avatar img {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.client-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #f5fbff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.client-avatar-sm {
  width: 34px;
  height: 34px;
}

.client-avatar-sm .client-avatar-fallback {
  font-size: 0.82rem;
}

.client-avatar-lg {
  width: 64px;
  height: 64px;
}

.client-avatar-lg .client-avatar-fallback {
  font-size: 1.1rem;
}

.zone-card {
  border: 1px solid var(--cm-line-soft);
  border-radius: 24px;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(64, 242, 167, 0.03), rgba(141, 107, 255, 0.035)),
    var(--cm-glass);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.portal-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.portal-title .text-gradient {
  color: transparent;
  background: linear-gradient(90deg, var(--cm-green), var(--cm-purple));
  -webkit-background-clip: text;
  background-clip: text;
}

.portal-copy {
  color: var(--cm-muted);
  max-width: 72ch;
}

.portal-pill {
  border: 1px solid var(--cm-line);
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--cm-text) !important;
}

.btn-neon,
.btn-purple,
.btn-glass {
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-neon {
  color: #022f1f;
  border-color: rgba(64, 242, 167, 0.7);
  background: linear-gradient(135deg, var(--cm-green), var(--cm-green-strong));
}

.btn-neon:hover {
  color: #022f1f;
  background: linear-gradient(135deg, #53f7b5, #2fe39a);
}

.btn-purple {
  color: #f4f1ff;
  border-color: rgba(141, 107, 255, 0.7);
  background: linear-gradient(135deg, var(--cm-purple), var(--cm-purple-strong));
}

.btn-purple:hover {
  color: #fff;
  background: linear-gradient(135deg, #9b7dff, #7e56ff);
}

.btn-glass {
  color: #dce5ff;
  border-color: var(--cm-line);
  background: rgba(255, 255, 255, 0.04);
}

.btn-glass:hover {
  color: #fff;
  border-color: var(--cm-green);
}

.client-shell .btn-outline-light,
.client-shell .btn-outline-success,
.client-shell .btn-outline-primary,
.client-shell .btn-outline-danger {
  color: #e6eeff;
  border-color: var(--cm-line);
  background: rgba(255, 255, 255, 0.03);
}

.client-shell .btn-outline-light:hover,
.client-shell .btn-outline-success:hover,
.client-shell .btn-outline-primary:hover {
  color: #fff;
  border-color: rgba(64, 242, 167, 0.6);
  background: rgba(64, 242, 167, 0.09);
}

.client-shell .btn-outline-danger:hover {
  color: #fff;
  border-color: rgba(255, 104, 145, 0.55);
  background: rgba(255, 104, 145, 0.14);
}

.text-secondary {
  color: var(--cm-muted) !important;
}

.form-control,
.form-select,
textarea {
  border: 1px solid var(--cm-line);
  border-radius: 14px;
  color: #f2f6ff;
  background: rgba(5, 11, 24, 0.88);
}

.form-control::placeholder,
textarea::placeholder {
  color: #95a6c8;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: rgba(64, 242, 167, 0.62);
  background: rgba(8, 14, 29, 0.96);
  box-shadow: 0 0 0 0.2rem rgba(64, 242, 167, 0.15);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.stat-box {
  padding: 0.72rem;
  border: 1px solid var(--cm-line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.stat-box small {
  display: block;
  color: var(--cm-muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-box strong {
  font-size: 1.2rem;
}

.feature-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.feature-chip-grid .form-check {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--cm-line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.feature-chip-grid .form-check-input:checked {
  background-color: var(--cm-green);
  border-color: var(--cm-green);
}

.project-grid {
  display: grid;
  gap: 0.8rem;
}

.project-card {
  border: 1px solid var(--cm-line-soft);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.project-head strong {
  font-size: 1.02rem;
}

.project-meta {
  margin-top: 0.15rem;
  color: var(--cm-muted);
  font-size: 0.86rem;
}

.project-controls {
  margin-top: 0.8rem;
}

.stack-list {
  display: grid;
  gap: 0.6rem;
  max-height: 360px;
  overflow: auto;
}

.client-ftm-shell {
  display: grid;
  gap: 0.85rem;
}

.client-ftm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.client-ftm-stat {
  border: 1px solid var(--cm-line-soft);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.client-ftm-stat span {
  display: block;
  color: var(--cm-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.client-ftm-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.5rem;
  line-height: 1;
}

.client-ftm-stat small {
  color: var(--cm-muted);
  font-size: 0.8rem;
}

.client-ftm-stat.pending {
  border-left: 3px solid #5fbfff;
}

.client-ftm-stat.missing {
  border-left: 3px solid #8d6bff;
}

.client-ftm-stat.ready {
  border-left: 3px solid #40f2a7;
}

.client-ftm-main-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(260px, 0.8fr);
  gap: 0.8rem;
  align-items: stretch;
}

.client-ftm-upload-card,
.client-ftm-missing-card,
.client-ftm-downloads-card {
  border: 1px solid var(--cm-line-soft);
  background: rgba(255, 255, 255, 0.04);
}

.client-ftm-upload-card,
.client-ftm-missing-card {
  min-height: 100%;
}

.client-ftm-missing-card {
  display: flex;
  flex-direction: column;
}

#client-file-missing-list {
  flex: 1 1 auto;
  align-content: start;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

[data-client-screen="dateien"] .zone-card {
  transition: border-color 160ms ease, background 160ms ease;
}

[data-client-screen="dateien"] .zone-card:hover,
[data-client-screen="dateien"] .zone-card:focus-within {
  transform: none;
  border-color: rgba(64, 242, 167, 0.26);
  background:
    linear-gradient(135deg, rgba(64, 242, 167, 0.035), rgba(141, 107, 255, 0.04)),
    var(--cm-glass);
}

.client-ftm-download-grid {
  display: grid;
  gap: 0.55rem;
  max-height: 380px;
  overflow: auto;
}

.client-ftm-download-item {
  border-color: rgba(141, 107, 255, 0.28);
  background: rgba(141, 107, 255, 0.08);
}

.stack-item.is-missing {
  border-color: rgba(141, 107, 255, 0.45);
  background: rgba(141, 107, 255, 0.12);
}

.stack-item.is-ready {
  border-color: rgba(64, 242, 167, 0.42);
  background: rgba(64, 242, 167, 0.1);
}

.client-upload-drop {
  display: grid;
  gap: 0.2rem;
  place-items: center;
  text-align: center;
  padding: 0.9rem 0.8rem;
  border: 1px dashed rgba(64, 242, 167, 0.48);
  border-radius: 14px;
  background: rgba(64, 242, 167, 0.08);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.client-upload-drop i {
  font-size: 1.15rem;
  color: var(--cm-green);
}

.client-upload-drop strong {
  font-size: 0.92rem;
}

.client-upload-drop small {
  color: var(--cm-muted);
  font-size: 0.8rem;
}

.client-upload-drop:hover,
.client-upload-drop:focus-visible,
.client-upload-drop.is-dragover {
  transform: none;
  border-color: rgba(64, 242, 167, 0.62);
  background: rgba(64, 242, 167, 0.11);
  box-shadow: 0 0 0 1px rgba(64, 242, 167, 0.18), 0 0 14px rgba(64, 242, 167, 0.1);
}

.client-upload-drop.has-file {
  border-style: solid;
  border-color: rgba(141, 107, 255, 0.62);
  background: rgba(141, 107, 255, 0.14);
}

.stack-item {
  border: 1px solid var(--cm-line-soft);
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
}

.client-missing-summary {
  border-color: rgba(141, 107, 255, 0.38);
  background: linear-gradient(140deg, rgba(141, 107, 255, 0.12), rgba(64, 242, 167, 0.08));
}

.client-missing-task {
  display: grid;
  gap: 0.4rem;
}

.client-missing-actions,
.client-missing-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.3rem;
}

button.stack-item[data-client-notification-index] {
  color: var(--cm-text);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, background 180ms ease;
}

button.stack-item[data-client-notification-index]:hover,
button.stack-item[data-client-notification-index]:focus-visible {
  border-color: rgba(64, 242, 167, 0.45);
  background: rgba(64, 242, 167, 0.1);
}

button.stack-item.is-read[data-client-notification-index] {
  opacity: 0.72;
}

.file-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
}

.file-meta {
  color: var(--cm-muted);
  font-size: 0.83rem;
}

.chat-thread {
  display: grid;
  gap: 0.55rem;
  max-height: 360px;
  overflow: auto;
  align-content: start;
}

.chat-item {
  border: 1px solid var(--cm-line-soft);
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  width: 100%;
  max-width: 100%;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 54px;
}

.chat-item.client {
  border-color: rgba(64, 242, 167, 0.4);
  background: rgba(64, 242, 167, 0.11);
}

.chat-item.support {
  border-color: rgba(141, 107, 255, 0.42);
  background: rgba(141, 107, 255, 0.12);
}

.chat-item.is-targeted {
  border-color: rgba(64, 242, 167, 0.9);
  box-shadow: 0 0 0 2px rgba(64, 242, 167, 0.18), 0 14px 32px rgba(64, 242, 167, 0.12);
}

.chat-item.is-short {
  min-height: 46px;
  padding: 0.5rem 0.65rem;
}

.chat-item.is-medium {
  min-height: 62px;
}

.chat-item.is-long {
  min-height: 84px;
}

.chat-role {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cm-muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-read-status {
  margin-top: 0.38rem;
  color: var(--cm-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.audio-preview-box {
  border: 1px solid var(--cm-line-soft);
  border-radius: 12px;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.045);
}

.audio-preview-box audio {
  display: block;
  width: 100%;
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, var(--cm-green), var(--cm-purple));
}

@media (max-width: 980px) {
  .client-ftm-main-grid,
  .client-ftm-stats {
    grid-template-columns: 1fr;
  }
}

.client-sidebar {
  position: fixed;
  top: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1040;
  width: 286px;
  border: 1px solid var(--cm-line-soft);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--cm-glass-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.client-sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem;
}

.client-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.client-brand-logo {
  width: min(172px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.client-brand-fallback {
  color: var(--cm-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.client-brand-fallback[hidden] {
  display: none;
}

.client-brand.logo-fallback-active .client-brand-logo {
  display: none;
}

.client-nav {
  display: grid;
  gap: 0.62rem;
  margin-top: calc(1.3rem + 20px);
}

.client-brand-mobile {
  margin-bottom: 1rem;
}

.client-offcanvas .client-nav {
  margin-top: 0.4rem;
}

.client-nav a {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-height: 46px;
  padding: 0.72rem 0.86rem;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--cm-muted);
  text-decoration: none;
  background: transparent;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.client-nav a i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--cm-green);
  background: rgba(64, 242, 167, 0.08);
}

.client-nav a:hover,
.client-nav a.active {
  transform: translateX(3px);
  border-color: rgba(64, 242, 167, 0.3);
  color: #fff;
  background: linear-gradient(135deg, rgba(64, 242, 167, 0.14), rgba(141, 107, 255, 0.11));
}

.client-main {
  min-height: 100vh;
  padding: 18px 18px 18px 322px;
}

.client-topbar {
  position: sticky;
  top: 18px;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  margin-bottom: 18px;
}

.client-topbar-title {
  display: grid;
  line-height: 1.05;
}

.client-topbar-title strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.client-topbar-title small {
  color: var(--cm-muted);
  font-size: 0.74rem;
}

.client-mobile-menu {
  width: 46px;
  height: 46px;
  border: 1px solid var(--cm-line);
  border-radius: 15px;
  color: var(--cm-text);
  background: rgba(255, 255, 255, 0.05);
}

.client-content {
  padding-top: 0;
}

.client-screen {
  animation: clientScreenFade 220ms ease;
}

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

.client-offcanvas {
  border-right: 1px solid var(--cm-line);
  background:
    radial-gradient(circle at 0% 0%, rgba(64, 242, 167, 0.16), transparent 20rem),
    radial-gradient(circle at 100% 15%, rgba(141, 107, 255, 0.16), transparent 20rem),
    #070d19;
  color: var(--cm-text);
}

.client-support-cta {
  position: relative;
  overflow: hidden;
}

.client-support-cta::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -56px;
  bottom: -62px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 107, 255, 0.26), rgba(141, 107, 255, 0));
  pointer-events: none;
}

.client-support-cta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.client-support-cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.client-support-cta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--cm-line-soft);
  border-radius: 999px;
  color: var(--cm-muted);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.03);
}

.client-chat-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1080;
  width: 66px;
  height: 66px;
  padding: 0 1rem;
  border: 1px solid rgba(64, 242, 167, 0.62);
  border-radius: 999px;
  color: #f4fffb;
  background: linear-gradient(135deg, rgba(64, 242, 167, 0.3), rgba(141, 107, 255, 0.3));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42), 0 0 30px rgba(64, 242, 167, 0.24);
  overflow: hidden;
  transition: width 240ms ease, transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.client-chat-fab:hover,
.client-chat-fab:focus-visible {
  width: 172px;
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(64, 242, 167, 0.88);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.48), 0 0 34px rgba(64, 242, 167, 0.34);
}

.client-chat-fab i {
  font-size: 1.35rem;
}

.client-chat-fab-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: max-width 240ms ease, opacity 180ms ease;
}

.client-chat-fab:hover .client-chat-fab-label,
.client-chat-fab:focus-visible .client-chat-fab-label {
  max-width: 90px;
  opacity: 1;
}

.client-support-offcanvas {
  width: min(95vw, 560px);
  border-left: 1px solid var(--cm-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(64, 242, 167, 0.14), transparent 22rem),
    radial-gradient(circle at 0% 18%, rgba(141, 107, 255, 0.18), transparent 24rem),
    #070d19;
  color: var(--cm-text);
}

.client-notifications-offcanvas {
  width: min(95vw, 520px);
  border-left: 1px solid var(--cm-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(64, 242, 167, 0.14), transparent 22rem),
    radial-gradient(circle at 0% 18%, rgba(141, 107, 255, 0.18), transparent 24rem),
    #070d19;
  color: var(--cm-text);
}

.client-support-offcanvas .offcanvas-body {
  display: grid;
  gap: 0.8rem;
}

.client-support-layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  height: 100%;
}

.client-support-project-wrap {
  display: grid;
  gap: 0.42rem;
  padding: 0.85rem;
  border: 1px solid var(--cm-line-soft);
  border-radius: 16px;
  background: rgba(5, 10, 23, 0.66);
}

.client-support-thread-wrap {
  display: grid;
  gap: 0.42rem;
  min-height: 0;
}

.client-support-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dce7ff;
}

.client-support-thread {
  flex: 1 1 auto;
  min-height: clamp(280px, 42vh, 520px);
  max-height: clamp(320px, 54vh, 640px);
  padding: 0.6rem;
  border: 1px solid var(--cm-line-soft);
  border-radius: 16px;
  background: rgba(4, 8, 20, 0.72);
}

.client-support-compose {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
  border: 1px solid var(--cm-line-soft);
  border-radius: 16px;
  background: rgba(5, 10, 23, 0.66);
}

.client-support-compose textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.client-account-offcanvas {
  width: min(95vw, 420px);
  border-left: 1px solid var(--cm-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(64, 242, 167, 0.14), transparent 22rem),
    radial-gradient(circle at 0% 18%, rgba(141, 107, 255, 0.18), transparent 24rem),
    #070d19;
  color: var(--cm-text);
}

.client-profile-offcanvas {
  width: min(95vw, 480px);
  border-left: 1px solid var(--cm-line);
  background:
    radial-gradient(circle at 100% 0%, rgba(64, 242, 167, 0.14), transparent 22rem),
    radial-gradient(circle at 0% 18%, rgba(141, 107, 255, 0.18), transparent 24rem),
    #070d19;
  color: var(--cm-text);
}

.client-account-card {
  border: 1px solid var(--cm-line-soft);
  border-radius: 16px;
  padding: 0.95rem;
  background: rgba(7, 12, 25, 0.7);
}

.client-account-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.client-account-head-meta {
  display: grid;
  line-height: 1.1;
  gap: 0.2rem;
}

.client-account-head-meta strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.client-account-head-meta small {
  color: var(--cm-muted);
  font-size: 0.74rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.purple {
  color: #ebddff;
  border: 1px solid rgba(141, 107, 255, 0.45);
  background: rgba(141, 107, 255, 0.16);
}

.client-inline-tabs .nav-link {
  border-radius: 999px;
  color: var(--cm-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
}

.client-inline-tabs .nav-link.active {
  color: #08120f;
  border-color: rgba(116, 255, 198, 0.5);
  background: linear-gradient(135deg, #74ffc6 0%, #8cc7ff 100%);
}

.client-calc-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(9, 13, 22, 0.65);
  display: grid;
  gap: 6px;
}

.client-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.94rem;
  color: #c7d2e6;
}

.client-calc-row strong {
  font-weight: 700;
  color: #f1f6ff;
}

.client-calc-row.total {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 1.02rem;
}

.transfer-link-list {
  display: grid;
  gap: 8px;
}

.transfer-link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.raps-app-modal .modal-content,
.raps-transfer-modal .modal-content,
.raps-upload-modal .modal-content {
  border: 1px solid rgba(116, 255, 198, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(116, 255, 198, 0.12), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(140, 199, 255, 0.13), transparent 34%),
    rgba(7, 12, 22, 0.97);
  color: #f6f8fb;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.raps-app-modal .modal-header,
.raps-app-modal .modal-footer,
.raps-transfer-modal .modal-header,
.raps-transfer-modal .modal-footer,
.raps-upload-modal .modal-header,
.raps-upload-modal .modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.raps-app-modal-kicker {
  display: block;
  margin-bottom: 4px;
  color: #90a3bd;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.raps-app-modal-message,
.raps-transfer-subtitle,
.raps-transfer-section-head small,
.raps-transfer-link-meta,
.raps-transfer-empty span {
  color: #90a3bd;
}

.raps-upload-subtitle {
  color: #90a3bd;
}

.raps-upload-status-card,
.raps-upload-file-box {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.raps-upload-status-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
}

.raps-upload-status-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(116, 255, 198, 0.12);
  color: #74ffc6;
}

.raps-upload-status-icon.is-error {
  background: rgba(255, 128, 128, 0.12);
  color: #ffc2c2;
}

.raps-upload-status-copy {
  display: grid;
  gap: 4px;
}

.raps-upload-status-copy span {
  color: #90a3bd;
  font-size: 0.9rem;
}

.raps-upload-file-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  color: #90a3bd;
}

.raps-upload-debug-box,
.raps-upload-report-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(5, 9, 17, 0.52);
}

.raps-upload-debug-head,
.raps-upload-report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.raps-upload-debug-head span,
.raps-upload-report-actions span {
  color: #90a3bd;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.raps-upload-debug-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.raps-upload-debug-grid div {
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.raps-upload-debug-grid dt {
  color: #90a3bd;
  font-size: 0.72rem;
}

.raps-upload-debug-grid dd {
  margin: 2px 0 0;
  color: #f8fafc;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.raps-upload-debug-box pre {
  max-height: 140px;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(248, 250, 252, 0.86);
  white-space: pre-wrap;
  overflow: auto;
}

.raps-upload-report-box .form-label {
  color: #90a3bd;
  font-size: 0.82rem;
}

.raps-upload-report-box .form-select,
.raps-upload-report-box .form-control {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
}

.raps-upload-report-actions {
  margin-top: 10px;
}

@media (max-width: 575.98px) {
  .raps-upload-debug-grid {
    grid-template-columns: 1fr;
  }

  .raps-upload-debug-head,
  .raps-upload-report-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.raps-transfer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.raps-transfer-grid > *,
.raps-transfer-create,
.raps-transfer-list-panel {
  min-width: 0;
}

.raps-transfer-create,
.raps-transfer-list-panel,
.raps-transfer-link-card,
.raps-transfer-empty,
.raps-transfer-result {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.raps-transfer-create,
.raps-transfer-list-panel {
  padding: 14px;
}

.raps-transfer-section-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.raps-transfer-section-head > div {
  min-width: 0;
}

.raps-transfer-section-head h3,
.raps-transfer-section-head small,
.raps-transfer-link-card strong,
.raps-transfer-link-meta,
.raps-transfer-result {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.raps-transfer-section-head i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(116, 255, 198, 0.12);
  color: #74ffc6;
}

.raps-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.raps-transfer-dialog-list {
  display: grid;
  gap: 8px;
}

.raps-transfer-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
}

.raps-transfer-link-card > div {
  min-width: 0;
  flex: 1 1 auto;
}

.raps-transfer-link-url {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}

.raps-transfer-link-url .form-control {
  min-width: 0;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.raps-transfer-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 140px;
  padding: 18px;
  text-align: center;
}

.raps-transfer-empty i {
  color: #74ffc6;
  font-size: 1.6rem;
}

.raps-transfer-result {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.raps-transfer-result.is-success {
  border-color: rgba(116, 255, 198, 0.3);
  color: #bdfbdc;
}

.raps-transfer-result.is-error {
  border-color: rgba(255, 128, 128, 0.38);
  color: #ffc2c2;
}

.audio-preview-box.is-loading {
  color: #90a3bd;
}

.audio-preview-box.is-error {
  border-color: rgba(255, 128, 128, 0.34);
  background: rgba(255, 128, 128, 0.08);
}

.audio-preview-loading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.audio-preview-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #ffc2c2;
  font-size: 0.9rem;
  line-height: 1.35;
}

.audio-preview-error i {
  color: #ffce73;
  margin-top: 0.08rem;
}

.audio-preview-fallback {
  margin-top: 8px;
  border: 1px solid rgba(255, 193, 7, 0.28);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 193, 7, 0.08);
  color: #ffe6a0;
  font-size: 0.86rem;
}

.transfer-link-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #90a3bd;
  font-size: 0.86rem;
}

.raps-transfer-modal .form-control,
.raps-app-modal .form-control {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(4, 8, 16, 0.78);
  color: #f8fafc;
}

.raps-transfer-modal .form-control:focus,
.raps-app-modal .form-control:focus {
  border-color: rgba(116, 255, 198, 0.72);
  box-shadow: 0 0 0 0.2rem rgba(116, 255, 198, 0.15);
}

@media (max-width: 991.98px) {
  .stats-grid,
  .feature-chip-grid {
    grid-template-columns: 1fr;
  }

  .file-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1199.98px) {
  .client-main {
    padding-left: 18px;
  }

  .client-topbar {
    top: 12px;
  }
}

@media (max-width: 767.98px) {
  .raps-transfer-grid {
    grid-template-columns: 1fr;
  }

  .raps-transfer-actions .btn,
  .raps-transfer-modal .modal-footer .btn,
  .transfer-link-compact .btn {
    width: 100%;
  }

  .transfer-link-compact {
    align-items: stretch;
    flex-direction: column;
  }

  .raps-transfer-link-card,
  .raps-transfer-link-url {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .raps-transfer-link-card {
    flex-direction: column;
  }

  .client-main {
    padding: 10px;
  }

  .client-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: auto;
  }

  .manager-head-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .client-account-meta {
    display: none;
  }

  .client-support-open-btn {
    display: none;
  }

  .client-chat-fab {
    right: 14px;
    bottom: 14px;
    width: 58px;
    height: 58px;
    padding: 0;
  }

  .client-chat-fab:hover,
  .client-chat-fab:focus-visible {
    width: 58px;
  }

  .client-chat-fab-label {
    display: none;
  }
}
