/* ==========================================================================
   Фиолетовая «живая» тема: сияние, лучи, стекло и мягкие анимации
   Подключается после styles.css и переопределяет палитру и эффекты.
   ========================================================================== */

:root {
  --bg: #0a0512;
  --panel: #150c28;
  --panel-2: #1f1236;
  --hover: #2a1a4a;
  --active: #43267d;
  --text: #f3ecff;
  --muted: #a692cc;
  --accent: #c58cff;
  --accent-strong: #8b5cf6;
  --bubble-in: #241740;
  --bubble-out: #6d28d9;
  --border: #2a1848;
  --danger: #fb7185;
  --ok: #34d399;
  --shadow: 0 30px 80px rgba(10, 4, 26, 0.65);
}

body {
  color: var(--text);
  background: #08040f;
}

/* ------------------------------- фон-аврора ------------------------------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.68;
  filter: blur(70px);
  mix-blend-mode: screen;
  animation: blobDrift 26s ease-in-out infinite;
}

.blob-1 {
  top: -14vw;
  left: -10vw;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle at 35% 35%, rgba(124, 58, 237, 0.9), transparent 68%);
}

.blob-2 {
  top: 10vh;
  right: -12vw;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle at 60% 40%, rgba(217, 70, 239, 0.75), transparent 68%);
  animation-delay: -8s;
}

.blob-3 {
  bottom: -20vw;
  left: 22vw;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.7), transparent 70%);
  animation-delay: -15s;
}

.aurora::before {
  content: '';
  position: absolute;
  top: -32%;
  left: 50%;
  width: 92vw;
  height: 92vw;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 32%, rgba(197, 140, 255, 0.2), transparent 56%);
  filter: blur(40px);
  animation: spotPulse 15s ease-in-out infinite;
}

.rays {
  position: absolute;
  inset: -25%;
  background:
    linear-gradient(
      115deg,
      transparent 34%,
      rgba(196, 132, 252, 0.18) 45%,
      rgba(255, 255, 255, 0.12) 50%,
      rgba(139, 92, 246, 0.18) 55%,
      transparent 66%
    ),
    linear-gradient(62deg, transparent 38%, rgba(217, 70, 239, 0.12) 50%, transparent 62%),
    linear-gradient(150deg, transparent 44%, rgba(99, 102, 241, 0.1) 52%, transparent 58%);
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: raysDrift 28s ease-in-out infinite alternate;
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(125% 95% at 50% 35%, transparent 42%, rgba(3, 1, 8, 0.6) 100%);
}

/* световые лучи поверх интерфейса */

.lighting {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.beam {
  position: absolute;
  top: -55vh;
  width: 58vw;
  height: 170vh;
  opacity: 0.38;
  filter: blur(34px);
}

.beam-1 {
  left: 4vw;
  transform: rotate(17deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(197, 140, 255, 0.26),
    rgba(255, 255, 255, 0.16),
    rgba(197, 140, 255, 0.22),
    transparent
  );
  animation: beamDrift 19s ease-in-out infinite alternate;
}

.beam-2 {
  right: 2vw;
  transform: rotate(-13deg);
  background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.2), rgba(255, 255, 255, 0.12), transparent);
  animation: beamDrift2 24s ease-in-out infinite alternate-reverse;
}

/* ------------------------------- каркас -------------------------------- */

.app {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(168, 85, 247, 0.22), transparent 55%),
    linear-gradient(135deg, rgba(28, 15, 52, 0.62), rgba(12, 6, 24, 0.72) 45%, rgba(22, 11, 42, 0.66));
  background-size: 200% 200%;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.45);
  animation: appShift 24s ease-in-out infinite alternate;
}

.sidebar {
  background: linear-gradient(180deg, rgba(38, 22, 68, 0.55), rgba(14, 8, 26, 0.7));
  border-right: 1px solid rgba(178, 138, 255, 0.12);
  backdrop-filter: blur(20px);
}

.sidebar-head {
  border-bottom: 1px solid rgba(178, 138, 255, 0.08);
}

.search-box input {
  border: 1px solid rgba(178, 138, 255, 0.14);
  background: rgba(12, 7, 24, 0.65);
  color: var(--text);
}

.search-box input::placeholder {
  color: #7b66a6;
}

.search-box input:focus {
  border-color: rgba(197, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 0 20px rgba(139, 92, 246, 0.22);
}

/* ------------------------------- аватары ------------------------------- */

.avatar {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.avatar-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(197, 140, 255, 0.45), 0 0 18px rgba(139, 92, 246, 0.45);
}

.avatar-btn .avatar:hover {
  box-shadow: 0 0 0 2px rgba(197, 140, 255, 0.5), 0 0 20px rgba(139, 92, 246, 0.5);
}

.av-0 { background: linear-gradient(135deg, #818cf8, #6d28d9); }
.av-1 { background: linear-gradient(135deg, #f0abfc, #a21caf); }
.av-2 { background: linear-gradient(135deg, #c084fc, #4f46e5); }
.av-3 { background: linear-gradient(135deg, #f472b6, #be185d); }
.av-4 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.av-5 { background: linear-gradient(135deg, #67e8f9, #0ea5e9); }
.av-6 { background: linear-gradient(135deg, #fcd34d, #d97706); }
.av-7 { background: linear-gradient(135deg, #94a3b8, #475569); }

/* ------------------------------- список чатов ---------------------------- */

.chat-item {
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.chat-item:hover {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.04));
  transform: translateX(2px);
}

.chat-item.active {
  background: linear-gradient(95deg, rgba(139, 92, 246, 0.42), rgba(168, 85, 247, 0.14));
  box-shadow: inset 0 0 0 1px rgba(197, 140, 255, 0.22), 0 10px 26px rgba(76, 29, 149, 0.35);
}

.badge {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  animation: badgePulse 2.6s ease-in-out infinite;
}

.search-result {
  background: rgba(178, 138, 255, 0.08);
  border: 1px solid rgba(178, 138, 255, 0.12);
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-result:hover {
  background: rgba(178, 138, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.3);
}

/* ------------------------------- чат ----------------------------------- */

.chat-pane {
  background: transparent;
}

.chat-head {
  background: rgba(20, 11, 38, 0.72);
  border-bottom: 1px solid rgba(178, 138, 255, 0.12);
  backdrop-filter: blur(18px);
}

.messages {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(88, 28, 135, 0.2), transparent 60%),
    linear-gradient(180deg, rgba(10, 5, 20, 0.62), rgba(7, 3, 14, 0.78));
}

.bubble {
  border: 1px solid rgba(178, 138, 255, 0.1);
  background: linear-gradient(160deg, rgba(58, 36, 96, 0.92), rgba(35, 21, 60, 0.95));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.msg-row.mine .bubble {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6 55%, #a21caf);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 26px rgba(109, 40, 217, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.msg-row.mine .msg-meta {
  color: rgba(255, 255, 255, 0.72);
}

.msg-row:last-child {
  animation: bubbleIn 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}

.msg-check.read {
  color: #a5f3fc;
}

.day-sep {
  border: 1px solid rgba(178, 138, 255, 0.12);
  background: rgba(30, 18, 54, 0.85);
  color: var(--muted);
}

.load-more {
  background: rgba(178, 138, 255, 0.1);
  color: var(--accent);
}

.load-more:hover {
  background: rgba(178, 138, 255, 0.18);
}

.chat-placeholder .placeholder-logo {
  background: radial-gradient(circle at 40% 35%, rgba(139, 92, 246, 0.35), rgba(20, 11, 38, 0.9));
  color: rgba(197, 140, 255, 0.55);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.25);
}

/* ------------------------------- ввод ---------------------------------- */

.composer {
  border-top: 1px solid rgba(178, 138, 255, 0.12);
  background: rgba(18, 10, 34, 0.78);
  backdrop-filter: blur(18px);
}

.composer textarea {
  border: 1px solid rgba(178, 138, 255, 0.12);
  background: rgba(12, 7, 24, 0.7);
  color: var(--text);
}

.composer textarea::placeholder {
  color: #7b66a6;
}

.composer textarea:focus {
  border-color: rgba(197, 140, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16), 0 0 20px rgba(139, 92, 246, 0.2);
}

.send-btn {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  animation: sendGlow 3.6s ease-in-out infinite;
}

.send-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 28px rgba(197, 140, 255, 0.65);
}

/* ------------------------------- кнопки --------------------------------- */

.btn.primary {
  background: linear-gradient(135deg, #8b5cf6, #a855f7 60%, #d946ef);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.35);
}

.btn.primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.45);
}

.btn.ghost {
  background: rgba(178, 138, 255, 0.08);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(178, 138, 255, 0.16);
}

.icon-btn.accent {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.4);
}

/* ------------------------------- авторизация ---------------------------- */

.auth-screen {
  background:
    radial-gradient(900px 600px at 18% 0%, rgba(124, 58, 237, 0.3), transparent 60%),
    radial-gradient(700px 520px at 92% 18%, rgba(217, 70, 239, 0.18), transparent 55%),
    rgba(7, 3, 14, 0.55);
}

.auth-card {
  border: 1px solid rgba(178, 138, 255, 0.2);
  background: linear-gradient(180deg, rgba(40, 23, 70, 0.88), rgba(20, 11, 38, 0.92));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 58, 237, 0.18);
  animation: cardGlow 9s ease-in-out infinite;
}

.auth-logo {
  background: conic-gradient(from 0deg, #a855f7, #d946ef, #6366f1, #a855f7);
  box-shadow: 0 0 34px rgba(168, 85, 247, 0.55);
  animation: logoSpin 14s linear infinite;
}

.auth-tabs {
  border: 1px solid rgba(178, 138, 255, 0.12);
  background: rgba(12, 7, 24, 0.7);
}

.auth-tab.active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.field {
  border: 1px solid rgba(178, 138, 255, 0.16);
  background: rgba(10, 5, 20, 0.72);
  color: var(--text);
}

.field::placeholder {
  color: #7b66a6;
}

.field:focus {
  border-color: rgba(197, 140, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 0 20px rgba(139, 92, 246, 0.22);
}

/* ------------------------------- модалки -------------------------------- */

.modal-overlay {
  background: radial-gradient(60% 60% at 50% 40%, rgba(88, 28, 135, 0.3), rgba(3, 1, 8, 0.78));
  backdrop-filter: blur(10px);
}

.modal {
  border: 1px solid rgba(178, 138, 255, 0.2);
  background: linear-gradient(180deg, rgba(42, 24, 72, 0.97), rgba(20, 11, 38, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: modalIn 0.26s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}

.profile-row {
  border-top: 1px solid rgba(178, 138, 255, 0.1);
}

.profile-avatar {
  box-shadow: 0 0 0 2px rgba(197, 140, 255, 0.25), 0 0 34px rgba(139, 92, 246, 0.35);
}

/* ------------------------------- тост ---------------------------------- */

.toast {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 14px 34px rgba(76, 29, 149, 0.5);
}

.toast.error {
  background: linear-gradient(135deg, #9f1239, #be123c);
}

/* ------------------------------- звонок -------------------------------- */

.call-overlay {
  background: radial-gradient(120% 100% at 50% 0%, rgba(88, 28, 135, 0.5), rgba(5, 2, 12, 0.985) 62%);
  backdrop-filter: blur(4px);
}

.call-overlay.ringing .call-avatar {
  animation: callPulse 1.6s ease-out infinite;
}

.call-timer {
  text-shadow: 0 0 26px rgba(168, 85, 247, 0.6);
}

.call-btn {
  background: rgba(58, 36, 96, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.call-btn:hover {
  background: rgba(76, 48, 124, 0.9);
}

/* ------------------------------- эффекты -------------------------------- */

.btn,
.send-btn,
.icon-btn,
.call-btn,
.mini-btn,
.chat-item,
.auth-tab {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  pointer-events: none;
  animation: ripple 0.62s ease-out forwards;
}

.chat-head-status.typing {
  color: var(--accent);
  animation: typingPulse 1.4s ease-in-out infinite;
}

::-webkit-scrollbar-thumb {
  background: #4c2f7a;
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 10px;
}

* {
  scrollbar-color: #4c2f7a transparent;
}

/* ------------------------------- анимации ------------------------------- */

@keyframes blobDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3vw, -2vh, 0) scale(1.12);
  }
}

@keyframes raysDrift {
  from {
    transform: translateX(-4%) rotate(0deg);
    opacity: 0.75;
  }
  to {
    transform: translateX(4%) rotate(2deg);
    opacity: 1;
  }
}

@keyframes appShift {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.45);
  }
  50% {
    box-shadow: 0 0 18px rgba(197, 140, 255, 0.75);
  }
}

@keyframes sendGlow {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(197, 140, 255, 0.6);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardGlow {
  0%,
  100% {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 50px rgba(124, 58, 237, 0.14);
  }
  50% {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 80px rgba(168, 85, 247, 0.26);
  }
}

@keyframes logoSpin {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes spotPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes beamDrift {
  from {
    transform: translateX(-5%) rotate(17deg);
    opacity: 0.28;
  }
  to {
    transform: translateX(5%) rotate(19deg);
    opacity: 0.46;
  }
}

@keyframes beamDrift2 {
  from {
    transform: translateX(4%) rotate(-13deg);
    opacity: 0.26;
  }
  to {
    transform: translateX(-4%) rotate(-11deg);
    opacity: 0.42;
  }
}

@keyframes callPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.55), 0 0 30px rgba(168, 85, 247, 0.4);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(168, 85, 247, 0), 0 0 30px rgba(168, 85, 247, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(168, 85, 247, 0), 0 0 30px rgba(168, 85, 247, 0.4);
  }
}

@keyframes typingPulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ripple {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================================================
   Тёмная палитра в духе Discord + контурные иконки звонков
   ========================================================================== */

:root {
  --bg: #0b0a10;
  --panel: #15131c;
  --panel-2: #1d1a27;
  --hover: #272331;
  --active: #3a2f56;
  --text: #ece9f5;
  --muted: #9b94b0;
  --accent: #b9a7ff;
  --accent-strong: #6f5bd4;
  --bubble-in: #201c2b;
  --bubble-out: #4b3a85;
  --border: #241f2f;
}

body {
  background: #07060b;
}

.icon-btn svg,
.call-btn svg,
.call-fullscreen-btn svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.call-btn svg {
  width: 24px;
  height: 24px;
}

.call-fullscreen-btn svg {
  width: 18px;
  height: 18px;
}

.call-btn .icon-alt {
  display: none;
}

.call-btn.off .icon-main {
  display: none;
}

.call-btn.off .icon-alt {
  display: block;
}

.call-btn.end svg {
  transform: rotate(135deg);
}

.app {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(124, 92, 255, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(22, 20, 30, 0.92), rgba(12, 11, 16, 0.96) 45%, rgba(18, 16, 25, 0.94));
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6);
}

.sidebar {
  background: linear-gradient(180deg, rgba(28, 25, 38, 0.9), rgba(13, 12, 18, 0.94));
}

.messages {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(76, 58, 140, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(12, 11, 16, 0.92), rgba(9, 8, 12, 0.95));
}

.bubble {
  border-color: rgba(150, 130, 220, 0.08);
  background: linear-gradient(160deg, rgba(38, 34, 50, 0.96), rgba(28, 25, 38, 0.97));
}

.msg-row.mine .bubble {
  background: linear-gradient(135deg, #4a3980, #5b46a0 60%, #6a4fc4);
  box-shadow: 0 8px 22px rgba(40, 26, 90, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.send-btn {
  background: linear-gradient(135deg, #6f5bd4, #5b46a0);
  box-shadow: 0 0 14px rgba(111, 91, 212, 0.3);
}

.send-btn:hover {
  box-shadow: 0 0 22px rgba(140, 120, 230, 0.45);
}

.btn.primary {
  background: linear-gradient(135deg, #6f5bd4, #7c5cf0);
  box-shadow: 0 10px 22px rgba(60, 40, 120, 0.35);
}

.btn.primary:hover {
  box-shadow: 0 12px 26px rgba(90, 70, 170, 0.4);
}

.badge {
  background: linear-gradient(135deg, #7c5cf0, #5b46a0);
  box-shadow: 0 0 10px rgba(111, 91, 212, 0.4);
}

.chat-item:hover {
  background: linear-gradient(90deg, rgba(111, 91, 212, 0.14), rgba(111, 91, 212, 0.03));
}

.chat-item.active {
  background: linear-gradient(95deg, rgba(111, 91, 212, 0.34), rgba(111, 91, 212, 0.1));
  box-shadow: inset 0 0 0 1px rgba(150, 130, 220, 0.16), 0 8px 20px rgba(20, 12, 40, 0.4);
}

.search-result {
  background: rgba(150, 130, 220, 0.07);
  border-color: rgba(150, 130, 220, 0.1);
}

.chat-head {
  background: rgba(18, 16, 24, 0.8);
}

.composer {
  background: rgba(16, 14, 22, 0.86);
}

.composer textarea {
  background: rgba(12, 11, 16, 0.75);
}

.icon-btn.accent {
  background: linear-gradient(135deg, #6f5bd4, #5b46a0);
}

.avatar-clickable:hover {
  box-shadow: 0 0 0 2px rgba(150, 130, 220, 0.35), 0 0 14px rgba(111, 91, 212, 0.35);
}

.auth-screen {
  background:
    radial-gradient(900px 600px at 18% 0%, rgba(90, 70, 160, 0.22), transparent 60%),
    radial-gradient(700px 520px at 92% 18%, rgba(120, 70, 180, 0.12), transparent 55%),
    rgba(6, 5, 10, 0.6);
}

.auth-card {
  background: linear-gradient(180deg, rgba(28, 25, 38, 0.94), rgba(16, 14, 22, 0.96));
  border-color: rgba(150, 130, 220, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(90, 70, 170, 0.12);
}

.auth-logo {
  background: conic-gradient(from 0deg, #6f5bd4, #8b5cf6, #5b46a0, #6f5bd4);
}

.auth-tab.active {
  background: linear-gradient(135deg, #5b46a0, #6f5bd4);
}

.field {
  background: rgba(12, 11, 16, 0.8);
  border-color: rgba(150, 130, 220, 0.12);
}

.modal {
  background: linear-gradient(180deg, rgba(32, 28, 42, 0.98), rgba(18, 16, 24, 0.99));
  border-color: rgba(150, 130, 220, 0.16);
}

.toast {
  background: linear-gradient(135deg, #5b46a0, #6f5bd4);
}

.call-overlay {
  background: radial-gradient(120% 100% at 50% 0%, rgba(60, 40, 110, 0.4), rgba(5, 4, 10, 0.99) 62%);
}

.blob {
  opacity: 0.35;
  filter: blur(95px);
}

.beam {
  opacity: 0.18;
}

.rays {
  opacity: 0.5;
}

/* размер градиента для анимации переливания */
.app {
  background-size: 200% 200%;
}

/* лучи потише, чтобы тёмная палитра оставалась тёмной */
.rays {
  background:
    linear-gradient(
      115deg,
      transparent 34%,
      rgba(160, 130, 240, 0.1) 45%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(139, 92, 246, 0.1) 55%,
      transparent 66%
    ),
    linear-gradient(62deg, transparent 38%, rgba(170, 90, 220, 0.07) 50%, transparent 62%);
}

@keyframes beamDrift {
  from {
    transform: translateX(-5%) rotate(17deg);
    opacity: 0.12;
  }
  to {
    transform: translateX(5%) rotate(19deg);
    opacity: 0.2;
  }
}

@keyframes beamDrift2 {
  from {
    transform: translateX(4%) rotate(-13deg);
    opacity: 0.1;
  }
  to {
    transform: translateX(-4%) rotate(-11deg);
    opacity: 0.18;
  }
}

.send-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(1px);
}
