/* Active chat: highlight voice icon */
#chatBlock.active .voice-input .voice-icon {
  background: #a7e471;
  border: 1px solid #a7e471;
}

#chatBlock.active .voice-input .voice-icon svg,
#chatBlock.active .voice-input .voice-icon svg path,
#chatBlock.active .voice-input .voice-icon svg circle,
#chatBlock.active .voice-input .voice-icon svg rect,
#chatBlock.active .voice-input .voice-icon svg polygon {
  fill: #000;
}
/* Voice message button icon switching based on chat state */
#chatBlock.active #voiceMessage svg:nth-of-type(1) {
  display: inline;
}

#chatBlock.active #voiceMessage svg:nth-of-type(2) {
  display: none;
}

#chatBlock.active #voiceMessage:hover svg:nth-of-type(2) {
  display: inline;
}

/* On hover: hide the first SVG and set black background */
#chatBlock.active #voiceMessage:hover svg:nth-of-type(1) {
  display: none;
}

#chatBlock.active #voiceMessage:hover {
  background: #000000;
}
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
html {
    overflow-x: hidden;
    width: 100vw;
}
:root {
    --ucell-purple: #6B46C1;
    --ucell-light-purple: #A78BFA;
    --ucell-blue: #3B82F6;
    --ucell-pink: #EC4899;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --light-gray: #F3F4F6;
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1440px;
    }
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.5s ease;
}

p {
    color: var(--neutral-text, #42434C);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}
a {
    font-family: 'Inter', sans-serif;
}



/* Desktop width classes */
@media (min-width: 769px) {
    .d-w-25 {
        width: 25%;
    }
    .d-w-75 {
        width: 75%;
    }
}

/* Mobile width classes */
@media (max-width: 768px) {
    .m-w-25 {
        width: 25%;
    }
    .m-w-75 {
        width: 75%;
    }
    .m-w-100 {
        width: 100%;
    }
}

/* Margin */
/* --- Мобильные версии (по умолчанию) --- */
.mt-15 { margin-top: 15px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px!important; }
.mt-110 { margin-top: 60px; }  /* если хочешь уменьшить на мобилке */
.mt-170 { margin-top: 80px; }
.mb-16 { margin-bottom: 16px; }
.mb-50 { margin-bottom: 50px; }

/* --- Десктоп версии --- */
@media (min-width: 992px) {
  .mt-d-15 { margin-top: 15px; }
  .mt-d-30 { margin-top: 30px; }
  .mt-d-50 { margin-top: 50px; }
  .mt-d-110 { /*margin-top: 110px;*/ margin-top: 5vh; }
  .mb-d-110 { /*margin-top: 110px;*/ margin-bottom: 5vh; }
  .mt-d-170 { margin-top: 170px; }
  .mb-d-16 { margin-bottom: 16px; }
  .mb-d-50 { margin-bottom: 50px; }
}

.fw-400 {
    font-weight: 400;
}

.grey {
    background: var(--Gray-Blue-Gray-Blue-50, #F6F8FF);
}
.grey .ai-section {
    display: none;
}

.fs-14 {
    font-size: 14px;
}
.fs-18 {
    font-size: 18px;
}


/* Header Styles */
.header {
    padding: 16px 0;
}


.header-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.language-selector {
    color: #000;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.language-selector .btn {
    background-color: transparent!important;
    padding: 15px 0;
    color: #000;
}
.language-selector .btn:hover {
    background: transparent!important;
    color: #000!important;
}
.language-selector .dropdown-menu {
    border: 0px!important;
    width: fit-content;
    min-width: auto;
}
.dropdown-item.active, .dropdown-item:active {
    color: #000!important;
    background-color: #e5eafd!important;
}
.br-16 {
    border-radius: 16px!important;
}   
.btn {
    position: relative;
    padding: 15px 25px;
    font-style: normal;
    font-weight: 500;
    color: #000;
    background-color: #f8f9fa;
    border: 0px;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn:hover, .btn:active {
    color: #fff;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.10) 100%), radial-gradient(234.37% 1005.21% at 50.26% 100%, #000 0%, #000 27.88%, #00FFF6 44.23%, #6A9CFA 58.65%, #A28AFF 73.08%, #DFE5FC 87.02%, #DFE5FC 100%);

}

.btn svg.right {
    position: absolute;
    right: 20px;
}
.btn svg.left {
    position: absolute;
    left: 20px;
}


.btn i {
    font-size: 1rem;
}

.btn-light {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.20) 100%), radial-gradient(1031.98% 96.59% at -96.59% -91.35%, #DFE5FC 0%, #DFE5FC 27.88%, #00FFF6 44.23%, #6A9CFA 58.65%, #A28AFF 73.08%, #DFE5FC 87.02%, #DFE5FC 100%)!important;
}
.btn-light:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), #DFE5FC!important;
    color: #000;
}
.btn-light:hover {
    fill: #000000!important;
}
.grey .btn-light {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.10) 100%), radial-gradient(106.62% 457.29% at 50.26% 557.29%, #DFE5FC 0%, #DFE5FC 27.88%, #00FFF6 44.23%, #6A9CFA 58.65%, #A28AFF 73.08%, #DFE5FC 87.02%, #DFE5FC 100%)!important;
}
.grey .btn-light:hover {
    background: radial-gradient(2502.54% 234.23% at 50% 50%, #000 0%, #000 27.88%, #00FFF6 44.23%, #6A9CFA 58.65%, #A28AFF 73.08%, #000 87.02%, #000 100%)!important;
    color: #fff;
}
.grey .btn-light:hover svg path {
    fill: #fff!important;
}
.btn-dark {
    background: #000!important;
    color: #fff
}
.btn-dark-left-right,
.btn-dark-bottom-top {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  transition: opacity 0.3s;
  cursor: pointer;
}

.btn-dark-left-right::before,
.btn-dark-bottom-top::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 246, 0.7) 0%,
    rgba(106, 156, 250, 0.6) 40%,
    rgba(162, 138, 255, 0.5) 70%,
    rgba(162, 138, 255, 0) 100%
  );
  filter: blur(20px);
  opacity: 0;
  transition: none;
  pointer-events: none;
}

/* === Слева направо === */
.btn-dark-left-right::before {
  top: 50%;
  left: -50%;
  transform: translateY(-50%);
}

.btn-dark-left-right:hover::before {
  animation: circle-left-right 0.8s ease-out;
}

@keyframes circle-left-right {
  0% {
    left: -50%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

/* === Снизу вверх === */
.btn-dark-bottom-top::before {
  left: 50%;
  top: 150%;
  transform: translateX(-50%);
}

.btn-dark-bottom-top:hover::before {
  animation: circle-bottom-top 0.8s ease-out;
}

@keyframes circle-bottom-top {
  0% {
    top: 150%;
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    top: -50%;
    opacity: 0;
  }
}



#user {
    display: flex;
    align-items: center;
    gap: 12px;
}
#user:hover {

}

/* Section Styles */
.hero-section,
.chat-section,
.phone-section,
.verification-section,
.success-section {
    min-height: 50vh;
    display: flex;
    align-items: start;
    justify-content: center;
    position: relative;
    padding-top: 100px;
}
.hero-section .bg {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    text-align: center;
}
.hero-section .bg svg,
.hero-section .bg img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: top;
}




.blob-container {
    position: relative;
    width: 130vmin;
    height: 130vmin;
    border-radius: 100%;
    overflow: hidden;
    border-radius: 921.373px;
    background: linear-gradient(179deg, rgb(154 77 255 / 63%) 40% 6.25%, rgba(0, 13, 255, 0.00) 74.04%);
    margin: 0 auto;
    margin-top: -10vh;
}

/* Для больших экранов (ширина >= 1800px) */
@media (min-width: 1800px) {
    .blob-container {
        width: 100vmin;
        height: 100vmin;
        min-width: 909px;
        min-height: 909px;
    }
}

.blob1,
.blob2,
.blob3,
.blob4 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.9;
}

.blob1 {
    border-radius: 543.09px;
    background: rgb(0 255 246 / 42%);
    mix-blend-mode: screen;
    width: 520.506px;
    height: 543.09px;
    transform: rotate(-9.875deg);
    flex-shrink: 0;
    top: 5%;
    left: 5%;
    /*animation: float1 14s ease-in-out infinite;*/
}

.blob2 {
    width: 520.506px;
    height: 543.09px;
    transform: rotate(-9.875deg);
    background: rgba(255, 0, 4, 0.30);
    top: -15%;
    right: -30%;
    /*animation: float2 16s ease-in-out infinite;*/
}

.blob3 {
    width: 520.506px;
    height: 543.09px;
    transform: rotate(-9.875deg);
    border-radius: 354.948px;
    background: rgba(255, 0, 4, 0.30);
    mix-blend-mode: overlay;
    bottom: -5%;
    right: -5%;
    /*animation: float3 18s ease-in-out infinite;*/
}

.blob4 {
    width: 340.188px;
    height: 354.948px;
    transform: rotate(-9.875deg);
    border-radius: 354.948px;
    background: #C665FF;
    mix-blend-mode: overlay;
    bottom: 10%;
    right: 5%;
    /*animation: float3 18s ease-in-out infinite;*/
}


/* Анимации медленного вращения для blob элементов */
@keyframes rotate-blob2 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-blob3 {
    0% {
        transform: rotate(-9.875deg);
    }
    100% {
        transform: rotate(350.125deg);
    }
}

@keyframes rotate-blob4 {
    0% {
        transform: rotate(-9.875deg);
    }
    100% {
        transform: rotate(350.125deg);
    }
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    14% {
        transform: translate(-20%, 15%) scale(1.1);
    }
    28% {
        transform: translate(15%, -20%) scale(0.9);
    }
    42% {
        transform: translate(-15%, -25%) scale(1.05);
    }
    56% {
        transform: translate(25%, 10%) scale(0.95);
    }
    70% {
        transform: translate(-20%, 25%) scale(1.08);
    }
    84% {
        transform: translate(15%, -15%) scale(0.92);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    16% {
        transform: translate(25%, -15%) scale(1.15);
    }
    32% {
        transform: translate(-25%, 20%) scale(0.88);
    }
    48% {
        transform: translate(20%, 25%) scale(1.12);
    }
    64% {
        transform: translate(-30%, -10%) scale(0.92);
    }
    80% {
        transform: translate(15%, -25%) scale(1.06);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    12% {
        transform: translate(-30%, -20%) scale(1.18);
    }
    24% {
        transform: translate(25%, 15%) scale(0.85);
    }
    36% {
        transform: translate(-20%, 30%) scale(1.1);
    }
    48% {
        transform: translate(35%, -25%) scale(0.9);
    }
    60% {
        transform: translate(-15%, -15%) scale(1.12);
    }
    72% {
        transform: translate(20%, 20%) scale(0.88);
    }
    84% {
        transform: translate(-25%, 10%) scale(1.15);
    }
}

.blob-container-chat {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: rgba(0, 255, 246, 10.04);
    background: linear-gradient(134deg, rgba(0, 255, 246, 1) 0%, rgba(255, 0, 4, 0.48) 64%);
}

.blob1-chat {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.9;
}

.blob1-chat {
    width: 353.272px;
    height: 368.6px;
    transform: rotate(-9.875deg);
    flex-shrink: 0;
    border-radius: 368.6px;
    background: #c665ff73;
    mix-blend-mode: overlay;
    top: 40%;
    left: 25%;
    animation: float1 14s ease-in-out infinite;
    z-index: 2;
}

.blob2-chat {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(154 77 255 / 69%) 0%, rgba(255, 255, 255, 0.48) 85%);
    transform-origin: center center;
    z-index: 1;
    position: absolute;
}

.blob3-chat {
    position: absolute;
    top: 5%;
    left: -10%;
    width: 540.525px;
    height: 563.978px;
    transform: rotate(-9.875deg);
    flex-shrink: 0;
    border-radius: 563.978px;
    background: rgba(0, 255, 246, 0.64);
    mix-blend-mode: screen;
    filter: blur(60px);
    overflow: hidden;
    animation: rotate-blob3 30s linear infinite;
    transform-origin: center center;
    z-index: 3;
}

.blob4-chat {
    width: 353.272px;
    height: 368.6px;
    transform: rotate(-9.875deg);
    flex-shrink: 0;
    border-radius: 368.6px;
    border: 1px solid #000;
    background: #C665FF;
    mix-blend-mode: overlay;
    bottom: 5%;
    left: 5%;
    animation: rotate-blob4 35s linear infinite;
    transform-origin: center center;
    filter: blur(60px);
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(15%, 0) scale(1.05);
    }
    50% {
        transform: translate(-15%, 0) scale(0.98);
    }
    75% {
        transform: translate(10%, 0) scale(1.02);
    }
}






/* Анимация движения из стороны в сторону */
.animate-circle {
    animation: moveHorizontal 3s ease-in-out infinite;
    transform-origin: center;
}

@keyframes moveHorizontal {
    0%, 100% {
        transform: translateX(-30px);
    }
    50% {
        transform: translateX(30px);
    }
}

/* Альтернативные варианты анимации */

/* Более быстрая анимация */
.animate-fast {
    animation: moveHorizontal 1.5s ease-in-out infinite;
}

/* Плавная анимация с большей амплитудой */
.animate-wide {
    animation: moveWide 4s ease-in-out infinite;
}

@keyframes moveWide {
    0%, 100% {
        transform: translateX(-50px);
    }
    50% {
        transform: translateX(50px);
    }
}

/* Анимация с паузами */
.animate-pause {
    animation: moveWithPause 4s ease-in-out infinite;
}

@keyframes moveWithPause {
    0%, 20%, 80%, 100% {
        transform: translateX(-30px);
    }
    40%, 60% {
        transform: translateX(30px);
    }
}
/* === базовые анимации === */
@keyframes spin360 { to { transform: rotate(360deg); } }

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

@keyframes floatX {
  0% { transform: translateX(0); }
  50% { transform: translateX(14px); }
  100% { transform: translateX(0); }
}

@keyframes pulse {
  0%   { transform: scale(1);        opacity: .85; }
  50%  { transform: scale(1.04);     opacity: 1; }
  100% { transform: scale(1);        opacity: .85; }
}

@keyframes ringDash { to { stroke-dashoffset: -1400; } }

@media (prefers-reduced-motion: reduce) {
  .hero-blob * { animation: none !important; }
}

/* --- 1) вращаем конусные градиенты внутри <foreignObject> --- */
/* верхний эллипс с конусным градиентом */
.hero-blob [filter="url(#filter0_f_518_2034)"] foreignObject > div,
/* нижний эллипс с конусным градиентом */
.hero-blob [filter="url(#filter1_f_518_2034)"] foreignObject > div {
  /* чтобы вращение работало одинаково во всех браузерах */
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: spin360 30s linear infinite;
}

/* --- 2) лёгкое «плавание» эллипсов (цветных пятен) --- */
/* большой красный/фиолетовый блик */
.hero-blob [filter="url(#filter3_f_518_2034)"] g:nth-of-type(1) ellipse {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: floatY 10s ease-in-out infinite;
}

/* сине-бирюзовый блик */
.hero-blob [filter="url(#filter3_f_518_2034)"] g:nth-of-type(2) ellipse {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: floatX 11.5s ease-in-out infinite;
}

/* фиолетовый «ядро» */
.hero-blob [filter="url(#filter3_f_518_2034)"] g:nth-of-type(3) ellipse {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: floatY 8.5s ease-in-out infinite;
}

/* --- 3) «дыхание» центрального свечения --- */
.hero-blob [filter="url(#filter4_f_518_2034)"] > circle {
  transform-box: fill-box;
  transform-origin: 520px 205.335px; /* соответствует центру круга */
  animation: pulse 9s ease-in-out infinite;
}

/* --- 4) бегущие штрихи по внешнему кольцу (stroke) --- */
.hero-blob [filter="url(#filter6_f_518_2034)"] > circle {
  /* делаем пунктир и запускаем движение */
  stroke-dasharray: 120 22;
  stroke-linecap: round;
  animation: ringDash 24s linear infinite;
}

/* --- 5) очень лёгкое «дыхание» всей композиции (опционально) --- */
.hero-blob {
  filter: saturate(1.05);
  /* можно добавить общее едва заметное дыхание:
     animation: pulse 18s ease-in-out infinite; */
}

.ai-section {
    height: 60vh;
    position: relative;
    opacity: 0;
    transform: translateY(-50px);
    animation: slideDownFadeIn 0.8s ease-out forwards;
}

@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Section Titles */
.section-title {
    color: #000;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 24px;
    margin-top: 60px;
}

/* Main Content (Legacy) */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100vh
}


.ai-button-container {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
}

.ai-button {
    width: 428px;
    height: 428px;
    border-radius: 50%;
    background: transparent;
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
    overflow: hidden;
}



.ai-button:active {
    transform: scale(0.95);
}

/* Ripple Effect */
.ripple-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ripple-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0.5px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.5;
}

.ripple-1 {
    width: 248px;
    height: 248px;
    border: 2px solid #000;
    opacity: 1!important;
    transition: width .3s ease, height .3s ease, border .3s ease;
}
.ripple-2 {
    width: 336px;
    height: 336px;
    transition: width .3s ease, height .3s ease;
}
.ai-button:hover .ripple-1 {
    border: 4px solid #aee77c;
    opacity: 1!important;
    width: calc(248px * 1.05); /* +5% */
    height: calc(248px * 1.05);
}
.ai-button:hover .ripple-2 {
    width: calc(336px * 1.05); /* +5% */
    height: calc(336px * 1.05);
}



/* Microphone Icon */
.microphone-icon {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.microphone-icon i {
    font-weight: 900;
}

/* Button Text */
.button-text {
    color: #000;
    text-align: center;
    font-size: 25.6px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 200px
}

.button-text span:first-child {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(0);
}

.button-text span:last-child {
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(30px);
}

/* Hover effects for button text */
.ai-button:hover .button-text span:first-child {
    opacity: 0;
    transform: translateX(-30px);
}

.ai-button:hover .button-text span:last-child {
    opacity: 1;
    transform: translateX(0);
}



/* Content Section */
.content-section {
    max-width: 600px;
    margin: 0 auto;
}

/* Phone Form */
.phone-form {
    margin-top: 40px;
}

.form-title {
    color: #000;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    margin-bottom: 50px;
    margin-top: 110px
}

.phone-form-container {
    max-width: 350px;
    margin: 0 auto;
}

.form-group {
    width: 100%;
    /*max-width: 400px;*/
}

.form-group.active {
    background: #A7E471;
    border: 1px solid #A7E471!important;
    border-radius: 8px;
}
.form-group.noactive {
    background: #68AFFF;
    border: 1px solid #68AFFF!important;
    border-radius: 8px;
}
.form-group.active .phone-input:focus {
    border: 1px solid #A7E471!important;
}  
.form-group.noactive .phone-input:focus, .form-group .phone-input {
    border: 1px solid #68AFFF!important;
}
.form-group.active .phone-input {
    text-align: center;
}
.form-group label {
    text-align: center;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

/*.phone-input.active {
    border: 1px solid var(--Correct, #A7E471)!important;
}*/


.btn-send-sms {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    background: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 40px;
}

.btn-send-sms:hover {
    background: linear-gradient(90deg, #000000, #00fff6, #9a4dff);
    animation: moveGradient 3s linear infinite;
}
@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }

.btn-send-sms svg {
    width: 16px;
    height: 16px;
}

.terms-text {
    color: #9D9DB5;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.terms-link {
    color: #3B82F6;
    text-decoration: underline;
    cursor: pointer;
}

.terms-link:hover {
    color: #2563EB;
}

.main-title {
    color: #000;
    text-align: center;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 25px;
    margin-top: 85px;
}


/* Footer */
.footer {
    padding: 0;
    margin-top: 100px;
}

.footer-text {
    color: var(--Neutral, #9D9DB5);
    text-align: center;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.form-control {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 18px;
    transition: border-color 0.2s ease;
}
.form-control.error {
    color: #dc3545 !important;  /* красный цвет */
}
input.form-control.phone-input.error::placeholder {
    color: #dc3545 !important;  /* красный цвет */
    opacity: 1 !important;      /* чтобы не был полупрозрачным */
  }
  
  /* Для совместимости со всеми браузерами */
  input.form-control.phone-input.error::-webkit-input-placeholder {
    color: #dc3545 !important;
  }
  input.form-control.phone-input.error::-moz-placeholder {
    color: #dc3545 !important;
    opacity: 1;
  }
  input.form-control.phone-input.error:-ms-input-placeholder {
    color: #dc3545 !important;
  }
  input.form-control.phone-input.error::-ms-input-placeholder {
    color: #dc3545 !important;
  }
  
.form-control:focus {
    border: 2px solid #E5E7EB!important;
    border-color: var(--ucell-purple)!important;
    box-shadow: 0!important;
    box-shadow: none !important;
}

.btn-primary {
    background-color: var(--ucell-purple);
    border-color: var(--ucell-purple);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #5B21B6;
    border-color: #5B21B6;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section, .chat-section, .phone-section, .verification-section, .success-section {
        padding-top: 60px;
    }
    .logo {
        width: 60px;
    }
    .logo img {
        width: 100%;
    }
    .btn {
        padding: 12px 16px!important;
        gap: 5px!important
    }
    .language-selector button {
        padding: 0px!important;
    }
    .language-selector {
        padding: 0;
        order: 3;
    }
    .blob-container {
        position: absolute;
        top: -10%;
        bottom: 0px;
        height: 110%;
        width: 200%;
        border-top-right-radius: 0px;
        border-top-left-radius: 0px;
        left: 50%;
        transform: translate(-50%, 0%);
        margin-top: 0px !important;
        border-radius: 100%;
        background: linear-gradient(0deg, rgba(154, 77, 255, 0.59) 50%, rgba(0, 13, 255, 0.00) 85%) !important;
    }
    .blob1 {
        width: 350.34px;
        height: 365.541px;
        transform: rotate(-9.875deg);
        flex-shrink: 0;
        border-radius: 365.541px;
        background: rgba(255, 0, 4, 0.30);
        mix-blend-mode: screen;
    }
    .blob2 {
        width: 350.34px;
        height: 365.541px;
        transform: rotate(-9.875deg);
        flex-shrink: 0;
        border-radius: 365.541px;
        background: rgba(0, 255, 246, 0.64);
        mix-blend-mode: screen;
        top: 29%;
        right: 8%;
    }
    .blob3 {
        width: 228.972px;
        height: 238.907px;
        transform: rotate(-9.875deg);
        flex-shrink: 0;
        background: #c665ff17;
        mix-blend-mode: overlay;
        bottom: 34%;
        left: 30%;
    }
    .blob4 {
        
    }
    .blob4 {
        display: none!important;
    }
    .fixed-top {
        position: relative!important;
    }
    
    .header-controls {
        gap: 1rem;
    }
    
    .btn-auth {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .ai-button {
        width: 285px;
        height: 285px;
    }
    .ripple-1 {
        width: 173px!important;
        height: 173px!important;
        border: 2px solid #aee77c;
    }
    .ripple-2 {
        width: 233px!important;
        height: 233px!important;
        background: rgba(255, 255, 255, 0.10)!important;
    }
    .ripple-3 {
        width: 285px!important;
        height: 285px!important;
        background: rgba(255, 255, 255, 0.05)!important;
        border: 0.333px solid rgba(0, 0, 0, 0.30)!important;
    }
    
    .microphone-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .button-text {
        font-size: 1rem;
    }
    
    .main-title {
        font-size: 2rem;
        margin-top: 0px!important;
        margin-bottom: 0px!important;
    }
    
    .main-description {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .header-controls {
        gap: 0.5rem;
    }
    
    
    
    .microphone-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .button-text {
        font-size: 0.9rem;
    }
    
    .main-title {
        font-size: 36px;
    }
    
    .content-section {
        padding: 0 1rem;
        margin-top: 40px;
    }
}


.content-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}


/* Focus states for accessibility */
.ai-button:focus {
    outline: 3px solid var(--ucell-purple);
    outline-offset: 4px;
}

/* Focus styles are now handled above in the main .btn-auth styles */


@media(max-width: 700px) {
    .m-none {
        display: none!important;
    }
    .m-view {
        display: block!important;
    }
    .gradient-circle {
        height: auto !important;
        top: 0px;
        left: 0px;
        transform: none;
        width: 100%;
    }
    .orb {
        min-height: 400px;
    }
    .grey .gradient-circle {
        display: none!important;
    }
    .hero-section, .chat-section, .phone-section, .verification-section, .success-section {
        padding-top: 0px;
        align-items: start!important;
        justify-content: start!important;
    }
    .section-title {
        margin-bottom: 15px!important;
        font-size: 36px!important;
        margin-top: 20px;
    }
}

/* Verification Form Styles */
.verification-form {
    margin: 0 auto;
    max-width: 350px;
    margin-top: 40px;
    animation: slideInFromRight 0.5s ease-out;
}

.verification-form-container {
    position: relative;
}

.verification-wrapper {
    position: relative;
    display: inline-block;
}

.otp-hidden-field {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 60px;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    font-size: 40px;
    text-align: center;
    letter-spacing: 20px;
    padding-left: 20px;
    border: none;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    outline: none;
}

.verification-inputs {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.verification-input {
    width: 48px;
    height: 60px;
    border: 1px solid var(--Neutral, #9D9DB5);
    border-radius: 8px;
    background: #FFF;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    color: #000;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.verification-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    user-select: none;
    cursor: text;
}

.verification-input.active {
    border: 1px solid var(--Correct, #A7E471) !important;
}
.verification-input.active.error {
    border: 1px solid red!important;
}

.verification-input:focus {
    outline: none;
    border: 1px solid var(--UI-Accent, #671D99);
    transform: scale(1.05);
}

.verification-input.filled {
    border-color: #10B981;
    background: #F0FDF4;
}

.resend-text {
    display: block;
    color: #9D9DB5;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.resend-text.resend {
    color: var(--UI-Accent, #671D99)!important;
    cursor: pointer;
    text-decoration: none;
}

.resend-text.resend:hover {
    color: #2563EB;
}


.btn-change-number {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    background: #F6F8FF;
    color: #42434C;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-change-number:hover {
    background: #E5E7EB;
    color: #1F2937;
}

.btn-change-number svg {
    width: 16px;
    height: 16px;
}

/* Animation for verification inputs */
@keyframes inputPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.verification-input.pulse {
    animation: inputPulse 0.3s ease-in-out;
}

/* Animation for verification form sliding from right */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Success Block Styles */
.success-block {
    max-width: 400px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.success-icon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #faf3ff;
    border-radius: 100%;
}

.success-icon-inner {
    width: 110px;
    height: 110px;
    background: var(--UI-Accent, #671D99);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transform: scale(0);
    animation: popIn 2s ease forwards;
}
@keyframes popIn {
    from {
      transform: scale(0);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

/* Анимация прорисовки линии */
.success-icon-inner path {
    stroke-dasharray: 20;   /* длина пути (подбирается опытным путём) */
    stroke-dashoffset: 20;  /* скрыт полностью */
    animation: drawCheck 1s ease forwards;
    animation-delay: 0.9s;  /* чуть позже появления контейнера */
  }
  
  @keyframes drawCheck {
    to {
      stroke-dashoffset: 0; /* полностью прорисован */
    }
  }

.success-icon-inner::before {
    /*content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(103, 29, 153, 0.3);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;*/
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Block Styles */
.chat-block {
    margin: 50px auto 0;
    max-width: 600px;
    min-height: 60vh;
    animation: slideDownFromTop 0.8s ease-out;
    background-blend-mode: screen;
    overflow: hidden;
    padding: 0 37px 37px 37px;
    position: relative;
    border-radius: 40px;
}
/*.chat-block:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 37px;
    width: 100%;
    background: linear-gradient(180deg, rgba(113,112,233,1) 0%, rgba(253,187,45,0) 62%);
    z-index: 3;
}*/
.chat-block svg.bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
}
/*.chat-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgb(126, 101, 236), #a944b3a1, #3872fd85, #41c7c0f2);
    background-size: 600% 100%;
    animation: gradient 10s linear infinite;
    animation-direction: alternate;
    z-index: -1;
}*/


.chat-block p, .chat-block {
    color: #fff!important;
    font-size: 20px;
    margin-bottom: 0px;
}

.welcome-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    height: 100%;
    gap: 20px;
    z-index: 10;
}

.welcome-block h2 {
    color: #fff;
    font-size: 43.636px;
    font-style: italic;
    font-weight: 500;
    line-height: 50px;
    letter-spacing: -0.371px;
    text-align: center;
    margin: 0;
}
.welcome-block button {
    display: flex;
    padding: 20px 28px 21px 32px;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.typing-cursor {
    color: #fff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.chat-container {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    height: 50vh;
    min-height: 200px;
    padding-right: 10px;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    z-index: 100;
}

/* Первое сообщение должно быть снизу, не центрируем */
.chat-container:has(.chat-message.first:only-child) {
    justify-content: flex-end;
    align-items: flex-start;
}

/* Альтернативный подход для браузеров без поддержки :has() */
.chat-container.only-first-message {
    justify-content: flex-end;
    align-items: flex-start;
}

.chat-container.only-first-message .chat-message.first {
    text-align: left;
}
/*.chat-block:after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari/Chrome */
    /*background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.6) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
    z-index: 10;
    opacity: 0.8;
}*/


/* Notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification {
    animation: slideInRight 0.3s ease;
}

/* Console Styles */
#console {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-y: auto;
    z-index: 1000;
    border-top: 1px solid #333;
    display: none; /* Скрыто по умолчанию */
}

#console.show {
    display: block;
}

.console-entry {
    padding: 4px 8px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.console-time {
    color: #888;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.console-message {
    flex: 1;
    word-break: break-all;
}

.console-info {
    color: #4CAF50;
}

.console-success {
    color: #8BC34A;
    background: rgba(139, 195, 74, 0.1);
}

.console-error {
    color: #F44336;
    background: rgba(244, 67, 54, 0.1);
}

.console-warning {
    color: #FF9800;
    background: rgba(255, 152, 0, 0.1);
}

/* Console toggle button */
.console-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    font-size: 16px;
}

.console-toggle:hover {
    background: #555;
}

.chat-container::-webkit-scrollbar {
  width: 8px;
}

.chat-container::-webkit-scrollbar-track {
  background: transparent;
}
  
.chat-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;

  /* ↓ делаем короче бегунок */
  margin: 40px 0; /* сверху и снизу отступ */
}
  
.chat-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 1);
}
/*.chat-block .first {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-block .first p {
    font-size: 43px!important;
    font-style: italic!important;
    line-height: 51px!important;
}*/

.chat-message {
    margin-bottom: 32px;
    animation: slideInMessage 0.5s ease-out;
    flex-shrink: 0;
}

.chat-message:last-child {
    margin-bottom: 0!important;
}


/* Эффект печатания текста */
.chat-message.typing p {
    position: relative;
    overflow: hidden;
}

.chat-message.typing p::after {
    content: '|';
    color: #671D99;
    animation: blink-cursor 1s infinite;
    margin-left: 2px;
}

/* Скрываем курсор, если сообщение завершено */
.chat-message.typing p.typing-complete::after {
    display: none !important;
}

/* Альтернативный вариант - скрываем курсор для всех завершенных сообщений */
.chat-message p.typing-complete::after {
    display: none !important;
}



/* Альтернативный подход для многострочного текста */
.chat-message.typing p.typing-effect {
    opacity: 0;
    animation: fadeInTyping 3s ease-in-out forwards;
}

@keyframes fadeInTyping {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInMessage {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-intro p {
    text-align: left;
    font-style: italic;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.20);
    padding: 16px 20px;
    white-space: pre-wrap;
    line-height: 1.5;
}
.ai-intro img {
    width: 52px;
    height: 52px;
    margin-right: 16px;
}

.user-message {
    display: inline-block;
    text-align: right!important;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.24);
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    margin-left: auto;
}

.ai-message {
    display: flex;
    justify-content: flex-end;
}

.user-bubble {
    color: white;
}
.user-bubble p {
    text-align: right!important;
}

.ai-bubble {
    color: #FFF;
    text-align: center;
    font-family: Poppins;
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    line-height: 120%; /* 24px */
    letter-spacing: -0.252px;
    display: flex;
}

/* Лоадер "думаю" в чате */
.thinking-bubble {
    padding: 16px 20px !important;
    min-height: 50px;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.thinking-bubble .loader-dots {
    position: relative !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.thinking-bubble .loader-dots .dot {
    width: 8px;
    height: 8px;
    background: #A7E471;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.thinking-bubble .loader-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.thinking-bubble .loader-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-bubble .loader-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

.chat-action {
    text-align: center;
    margin-bottom: 32px;
}

.btn-action {
    background: rgba(0, 0, 0, 0.24);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #4B5563;
    transform: translateY(-2px);
}

.plan-link {
    display: block;
    color: #fff;
    margin-top: 32px;
    font-style: normal;
    font-weight: 500;
}

.plan-link:hover {
    color: #fff;
    text-decoration: underline;
}

.voice-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 0;
    z-index: 3;
    position: relative;
}

/* Скрываем voice-input на мобильных устройствах */
@media (max-width: 768px) {
    .voice-input {
        display: none;
    }
}

/* Переключение между голосовым и текстовым вводом */
.voice-input.hidden {
    display: none !important;
}

.message-input-form.visible {
    display: flex !important;
}

/* Message Input Form Styles */
.message-input-form {
    display: none;
    margin: 32px 0 0;
    position: relative;
    z-index: 4;
    align-items: center;
    gap: 12px;
}

.message-input-form.visible {
    display: flex !important;
}

.message-input-container {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    gap: 8px;
    max-width: 100%;
    flex: 1;
    overflow: hidden;
    border: 1px solid var(--Neutral, #9D9DB5);
}

.message-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 16px;
    background: transparent;
    color: #333;
    min-width: 0;
}

.message-input::placeholder {
    color: #999;
}

.btn-send {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-voice {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

/* Пульсация при записи для кнопки voiceMessage */
.btn-voice.recording,
#voiceMessage.btn-voice.recording {
    animation: pulseRecording 1.2s ease-in-out infinite;
}

.btn-send svg, .btn-voice svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
}

.btn-send svg {
    transform: rotate(-90deg);
}

.btn-send {
    background: #E7ECFE;
    color: #000;
}

.btn-send:hover {
    background: #d0d0d0;
}

.btn-voice { background: #A7E471; color: #000; }

.btn-voice:hover {
    background: #95d15f;
}

/* По умолчанию скрываем все SVG в btn-voice */
.btn-voice svg {
    display: none;
    transition: all 0.2s ease;
}

/* Когда btn-voice.active - показываем первый микрофон */
.btn-voice.active svg:first-of-type {
    display: block;
}

/* При hover на btn-voice.active - показываем второй SVG (крестик) */
.btn-voice.active:hover svg:first-of-type {
    display: none;
}

.btn-voice.active:hover svg:nth-of-type(2) {
    display: block;
}

.btn-voice.active:hover svg:nth-of-type(2) path {
    fill: white;
}

/* Когда btn-voice.loading - скрываем все SVG, loader-dots показывается отдельным правилом */
.btn-voice.loading svg {
    display: none !important;
}

/* Когда форма в состоянии listening - показываем микрофон */
.message-input-form.active .btn-voice svg:first-of-type {
    display: block;
}

/* При hover на кнопку в активной форме - показываем крестик */
.message-input-form.active .btn-voice:hover svg:first-of-type {
    display: none;
}

.message-input-form.active .btn-voice:hover svg:nth-of-type(2) {
    display: block;
}
.chat-icon {
    cursor: pointer;
    border: 1px solid #000;
    border-radius: 100%;
}
.voice-icon {
    width: 52px;
    height: 52px;
    background: #000;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #000;
    position: relative;
    transition: transform 0.3s ease;
}

/* Пульсация при записи */
.voice-icon.recording {
    animation: pulseRecording 1.2s ease-in-out infinite;
}

@keyframes pulseRecording {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 12px rgba(167, 228, 113, 0);
    }
}

/* Стили для volume-0 до volume-10 - мерцание зависит от уровня громкости */
.voice-icon.volume-0 {
    animation: pulseVolume0 1.2s ease-in-out infinite;
}

/* Отключаем анимацию volume-0 для microphone-unavailable */
.voice-icon.microphone-unavailable.volume-0 {
    animation: none;
}

.voice-icon.volume-1 {
    animation: pulseVolume1 1.2s ease-in-out infinite;
}

.voice-icon.volume-2 {
    animation: pulseVolume2 1.2s ease-in-out infinite;
}

.voice-icon.volume-3 {
    animation: pulseVolume3 1.2s ease-in-out infinite;
}

.voice-icon.volume-4 {
    animation: pulseVolume4 1.2s ease-in-out infinite;
}

.voice-icon.volume-5 {
    animation: pulseVolume5 1.2s ease-in-out infinite;
}

.voice-icon.volume-6 {
    animation: pulseVolume6 1.2s ease-in-out infinite;
}

.voice-icon.volume-7 {
    animation: pulseVolume7 1.2s ease-in-out infinite;
}

.voice-icon.volume-8 {
    animation: pulseVolume8 1.2s ease-in-out infinite;
}

.voice-icon.volume-9 {
    animation: pulseVolume9 1.2s ease-in-out infinite;
}

.voice-icon.volume-10 {
    animation: pulseVolume10 1.2s ease-in-out infinite;
}

@keyframes pulseVolume0 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 2px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume1 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 4px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume2 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 0 6px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume3 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume4 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.06);
        box-shadow: 0 0 0 10px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume5 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.07);
        box-shadow: 0 0 0 12px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume6 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 14px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume7 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.09);
        box-shadow: 0 0 0 16px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume8 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.10);
        box-shadow: 0 0 0 18px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume9 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.11);
        box-shadow: 0 0 0 20px rgba(167, 228, 113, 0);
    }
}

@keyframes pulseVolume10 {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(167, 228, 113, 0.7);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 22px rgba(167, 228, 113, 0);
    }
}

/* Таймер записи */
.recording-timer {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #FF4444;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
    animation: timerPulse 1s infinite ease-in-out;
}

@keyframes timerPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(0.98);
    }
}

/* Индикатор уровня звука микрофона */
.audio-level-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    gap: 2px;
    align-items: flex-end;
    height: 20px;
    z-index: 10;
}

.audio-level-bar {
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.1s ease;
}

.audio-level-bar:nth-child(1) { height: 8px; }
.audio-level-bar:nth-child(2) { height: 12px; }
.audio-level-bar:nth-child(3) { height: 16px; }
.audio-level-bar:nth-child(4) { height: 12px; }
.audio-level-bar:nth-child(5) { height: 8px; }

.audio-level-bar.active {
    background: #A7E471;
    box-shadow: 0 0 4px rgba(167, 228, 113, 0.5);
}

/* Когда идет запись, скрываем SVG иконку */
.voice-input.active .voice-icon svg {
    opacity: 0.3;
}

/* Прелоадер с точками */
.voice-icon .loader-dots,
.btn-voice .loader-dots {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.voice-input.loading .voice-icon svg {
    display: none;
}

.voice-input.loading .voice-icon .loader-dots,
.voice-input.loading .btn-voice .loader-dots {
    display: flex;
}

/* Показываем loader-dots когда btn-voice.loading */
.btn-voice.loading .loader-dots {
    display: flex !important;
}

/* Меняем фон кнопки при loading */
.btn-voice.loading {
    background: #000 !important;
}

/* Цвет точек loader при loading */
.btn-voice.loading .loader-dots .dot {
    background: #A7E471;
}

/* Фон кнопки при active */
.btn-voice.active {
    background: #A7E471;
}

.btn-voice.active:hover {
    background: #000;
}
.voice-input.active .voice-icon {
    background: #A7E471!important;
    border: 1px solid #A7E471!important;
}
.voice-input.active .voice-icon svg path {
    fill: #000!important;
}
.voice-icon .loader-dots .dot,
.btn-voice .loader-dots .dot {
    width: 6px;
    height: 6px;
    background: #A7E471;
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.voice-icon .loader-dots .dot:nth-child(1),
.btn-voice .loader-dots .dot:nth-child(1) {
    animation-delay: 0s;
}

.voice-icon .loader-dots .dot:nth-child(2),
.btn-voice .loader-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.voice-icon .loader-dots .dot:nth-child(3),
.btn-voice .loader-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Стили для voice-icon.microphone-unavailable - как у btn-voice */
.voice-icon.microphone-unavailable {
    background: #A7E471;
    border: 1px solid #A7E471;
}

.voice-icon.microphone-unavailable:hover {
    background: #95d15f;
    border: 1px solid #95d15f;
}

/* Скрываем все SVG по умолчанию в microphone-unavailable */
.voice-icon.microphone-unavailable svg {
    display: none;
    transition: all 0.2s ease;
}

/* Показываем первый SVG (микрофон) в microphone-unavailable */
.voice-icon.microphone-unavailable svg:first-of-type {
    display: block;
}

/* При hover на microphone-unavailable - показываем крестик вместо микрофона */
.voice-icon.microphone-unavailable:hover svg:first-of-type {
    display: none;
}

.voice-icon.microphone-unavailable:hover svg:nth-of-type(2) {
    display: block;
}

.voice-icon.microphone-unavailable:hover svg:nth-of-type(2) path {
    fill: white;
}

/* SVG элементы в microphone-unavailable должны быть черными */
.voice-icon.microphone-unavailable svg path,
.voice-icon.microphone-unavailable svg circle,
.voice-icon.microphone-unavailable svg rect,
.voice-icon.microphone-unavailable svg polygon {
    fill: #000;
}

.chat-icon:hover, .voice-icon:hover {
    border: 1px solid #A7E471;
    border-radius: 100%;
}

/* Исключаем microphone-unavailable из общего hover стиля */
.voice-icon.microphone-unavailable:hover {
    border: 1px solid #95d15f;
}




.max-width-700 {
    max-width: 700px;
}
.max-width-272 {
    max-width: 272px;
}

/* Mobile responsive for chat */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100vw;
    }
    .hero-section .bg {
        top: -77px;
    }
    .hero-section .bg svg {
        width: auto!important;
        height: auto!important;
    }
    .message-input-form {
        display: flex!important;
        border-radius: 999px;
        padding: 6px;
        background: #fff;
        border: 2px solid #fff;
        gap: 4px
    }
    .btn-send svg {
        transform: rotate(-0deg)!important;
    }
    .btn-voice {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    .message-input-container {
        border: 0px!important;
        padding: 0!important;
    }
    .message-input-form.active {
        border: 2px solid #A7E471;
    }
    .message-input-form.active .btn-voice {
        background: #A7E471;
    }
    .message-input-form.loading .btn-voice svg{
        display: none!important;
    }
    .message-input-form.loading .btn-voice {
        background: #000!important;
    }
    .message-input-form.loading .btn-voice .loader-dots {
        display: flex!important;
    }
    .voice-input { display: none!important; }
    .chat-block {
        max-width: 100%;
        margin-top: 0px;
        border-radius: 24px!important;
    }
    .footer {
        margin-top: 40px;
    }
    .chat-block svg.bg {
        height: 100%;
    }
    .ai-intro img {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }
    .phone-form-container,
    .verification-form {
        max-width: 100%!important;
    }
    .chat-container {
        padding-right: 0px;
        height: 70vh;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-behavior: smooth;
    }
    
    .message-bubble {
        max-width: 100%;
        padding: 0px;
    }
    .ai-section {
        align-items: end;
        justify-content: center;
        display: flex
    }
    .voice-icon {
        width: 50px;
        height: 50px;
    }


    .verification-inputs {
        gap: 12px;
    }
    
    .verification-input {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .verification-form-container {
        gap: 25px;
    }
    .phone-form {
        margin: 0px;
    }
    .chat-block {
        padding: 10px !important;
    }
    .chat-message {
        margin-bottom: 20px!important;
    }
    .welcome-block h2 {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 576px) {
    .verification-inputs {
        gap: 8px;
    }
    
    .verification-input {
        width: 45px;
        height: 52px;
        font-size: 18px;
    }
    
    .welcome-block h2 {
        font-size: 22px;
        line-height: 30px;
    }
}

/* Стили для Markdown форматирования в сообщениях */
.message-bubble ul {
    margin: 8px 0;
    list-style: none;
    padding: 0px;
}

.message-bubble li {
    margin: 4px 0;
    line-height: 1.4;
}

.message-bubble strong {
    font-weight: 600;
    color: #FFF;
}

.message-bubble em {
    font-style: italic;
    color: var(--text-light);
}