/* ============================================
   НЕЙРО-КОУЧ МАРК - Стили
   Прокачка энергии через практики и снятие блоков
   Apple OS 26.2 Style - Glass Morphism & Bubbles
   ============================================ */

/* Анимированные пузыри на фоне */
@keyframes ncBubbleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

@keyframes ncBubbleWobble {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(15px); }
    75% { transform: translateX(-15px); }
}

@keyframes ncLiquidShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Основной контейнер */
.neuro-coach {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    overflow: hidden;
    z-index: 100;
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.neuro-coach.active {
    display: flex;
    flex-direction: column;
    animation: ncWindowOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.neuro-coach.closing {
    animation: ncWindowClose 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ncWindowOpen {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ncWindowClose {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

/* Мягкое свечение фона */
.neuro-coach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
    animation: ncGlow 8s ease-in-out infinite alternate;
}

/* Плавающие пузыри */
.neuro-coach::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 15%);
    pointer-events: none;
    animation: ncGlow 12s ease-in-out infinite alternate-reverse;
}

@keyframes ncGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ============================================
   ШАПКА С КАЛЕНДАРЁМ-ДОРОЖКОЙ
   ============================================ */
.nc-header {
    position: relative;
    z-index: 2;
    padding: 16px 16px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.nc-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.nc-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.nc-back-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nc-back-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
}

.nc-back-btn:hover::before {
    opacity: 1;
}

.nc-back-btn:active {
    transform: scale(0.95);
}

.nc-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    flex: 1;
}

.nc-title span {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nc-settings-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Glass droplet effect */
.nc-settings-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25) 0%, transparent 60%);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nc-settings-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.nc-settings-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.nc-settings-btn:hover::after {
    width: 150%;
    height: 150%;
}

.nc-settings-btn:active {
    transform: scale(0.95);
}

/* Календарь-дорожка */
.nc-calendar-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nc-calendar-track::-webkit-scrollbar {
    display: none;
}

.nc-day-item {
    flex: 0 0 auto;
    width: 46px;
    height: 58px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Водяной блик */
.nc-day-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-radius: 14px 14px 0 0;
    pointer-events: none;
}

.nc-day-item.today {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: scale(1.1);
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.nc-day-item.completed {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
}

.nc-day-item.completed::after {
    content: '✓';
    position: absolute;
    bottom: 4px;
    font-size: 10px;
    color: #10b981;
}

.nc-day-item:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.nc-day-name {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.nc-day-num {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.nc-day-mood {
    font-size: 12px;
    margin-top: 2px;
}

/* ============================================
   ШКАЛА НАСТРОЕНИЯ / ЭНЕРГИИ
   ============================================ */
.nc-energy-bar {
    padding: 0 16px 16px;
    position: relative;
    z-index: 1;
}

.nc-energy-container {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nc-energy-container:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Collapsed state (default) */
.nc-energy-container.collapsed {
    padding: 6px 16px;
}

.nc-energy-container.collapsed .nc-energy-header,
.nc-energy-container.collapsed .nc-energy-moods {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
}

/* Expanded state */
.nc-energy-container .nc-energy-header,
.nc-energy-container .nc-energy-moods {
    max-height: 50px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-energy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nc-energy-label, .nc-energy-label-wrap {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
}

#ncEnergyLabel {
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    transition: color 0.5s ease;
}

.nc-energy-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.nc-energy-track {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease;
}

.nc-energy-container.collapsed .nc-energy-track {
    height: 6px;
}

.nc-energy-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #6b1a1a 0%,
        #c04040 16%,
        #d4a020 33%,
        #50b050 50%,
        #2090b0 65%,
        #6040e0 82%,
        #a855f7 100%
    );
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.nc-energy-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.nc-energy-moods {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-hawkins-labels span {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Energy expand indicator */
.nc-energy-container::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255,255,255,0.4);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.nc-energy-container.collapsed::after {
    transform: translateY(-50%) rotate(-90deg);
}

.nc-energy-container {
    position: relative;
}

/* Слайдер энергии */
.nc-energy-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    display: none;
}

.nc-energy-container:not(.collapsed) .nc-energy-slider {
    display: block;
}

.nc-energy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nc-energy-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    cursor: grab;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nc-energy-slider:active::-webkit-slider-thumb {
    cursor: grabbing;
    transform: scale(1.1);
}

.nc-energy-slider:active::-moz-range-thumb {
    cursor: grabbing;
    transform: scale(1.1);
}

/* Скрываем псевдоэлемент шарика когда слайдер активен */
.nc-energy-container:not(.collapsed) .nc-energy-fill::after {
    display: none;
}

/* ============================================
   ЧАТ С КОУЧЕМ
   ============================================ */
.nc-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-message {
    max-width: 85%;
    animation: ncMessageIn 0.3s ease-out;
}

@keyframes ncMessageIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.nc-message.coach {
    align-self: flex-start;
}

.nc-message.user {
    align-self: flex-end;
}

.nc-message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.nc-message.coach .nc-message-content {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.nc-message.user .nc-message-content {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.nc-message-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    padding: 0 8px;
}

.nc-message.user .nc-message-time {
    text-align: right;
}

/* Ежедневный чекин */
.nc-daily-checkin {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    animation: ncMessageIn 0.3s ease-out;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.nc-checkin-text {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 500;
}

.nc-checkin-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.nc-checkin-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.nc-checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.nc-checkin-btn.nc-checkin-low:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.nc-checkin-btn.nc-checkin-mid:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

.nc-checkin-btn.nc-checkin-high:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.nc-checkin-emoji {
    font-size: 28px;
}

.nc-checkin-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* Аватар коуча */
.nc-coach-avatar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.nc-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Индикатор печати */
.nc-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 18px;
    max-width: 80px;
    align-self: flex-start;
}

.nc-typing-dots {
    display: flex;
    gap: 4px;
}

.nc-typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: ncTypingDot 1.4s infinite;
}

.nc-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.nc-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ncTypingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ============================================
   КАРТОЧКА ПРАКТИКИ
   ============================================ */
.nc-practice-card {
    background: rgba(168, 85, 247, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    padding: 18px;
    margin: 8px 0;
    animation: ncPracticeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

/* Водяной блик на карточке */
.nc-practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

@keyframes ncPracticeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.nc-practice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nc-practice-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.nc-practice-meta {
    flex: 1;
}

.nc-practice-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.nc-practice-type {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nc-practice-type-badge {
    background: rgba(168, 85, 247, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.nc-practice-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 12px;
}

.nc-practice-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.nc-benefit-tag {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.nc-benefit-tag.improve {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.nc-practice-actions {
    display: flex;
    gap: 8px;
}

.nc-practice-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nc-practice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    border-radius: 14px 14px 0 0;
}

.nc-practice-btn.primary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.nc-practice-btn.secondary {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
}

.nc-practice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.nc-practice-btn.primary:hover {
    box-shadow: 
        0 8px 30px rgba(16, 185, 129, 0.35),
        0 0 50px rgba(16, 185, 129, 0.15);
}

.nc-practice-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Рефлексия после практики */
.nc-reflection-form {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    display: none;
}

.nc-reflection-form.active {
    display: block;
    animation: ncFadeIn 0.3s ease-out;
}

@keyframes ncFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nc-reflection-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
    display: block;
}

.nc-satisfaction-scale {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.nc-satisfaction-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nc-satisfaction-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nc-satisfaction-btn:hover {
    transform: scale(1.15);
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25);
}

.nc-satisfaction-btn:hover::before {
    opacity: 1;
}

.nc-satisfaction-btn.selected {
    transform: scale(1.2);
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.25);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.4),
        inset 0 0 15px rgba(168, 85, 247, 0.2);
}

.nc-reflection-textarea {
    width: 100%;
    min-height: 80px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    font-size: 14px;
    resize: none;
    margin-bottom: 12px;
}

.nc-reflection-textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.nc-reflection-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.75), rgba(99, 102, 241, 0.75));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nc-reflection-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    border-radius: 14px 14px 0 0;
}

.nc-reflection-submit:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(168, 85, 247, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.nc-reflection-submit:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   ВВОД СООБЩЕНИЯ
   ============================================ */
.nc-input-area {
    padding: 12px 16px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    position: relative;
    z-index: 2;
}

.nc-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.nc-quick-actions::-webkit-scrollbar {
    display: none;
}

.nc-quick-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Эффект водяного блика */
.nc-quick-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.nc-quick-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.nc-quick-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nc-quick-btn:active {
    transform: translateY(0) scale(0.98);
}

.nc-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.nc-input-wrapper {
    flex: 1;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 26px;
    padding: 4px;
    display: flex;
    align-items: flex-end;
    transition: all 0.3s ease;
    position: relative;
}

.nc-input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-radius: 26px 26px 0 0;
    pointer-events: none;
}

.nc-input-wrapper:focus-within {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.nc-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #fff;
    font-size: 15px;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
}

.nc-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.nc-input:focus {
    outline: none;
}

.nc-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(99, 102, 241, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* Эффект пузырька при нажатии */
.nc-send-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.nc-send-btn:hover {
    transform: scale(1.12);
    box-shadow: 
        0 0 30px rgba(168, 85, 247, 0.5),
        0 0 60px rgba(168, 85, 247, 0.2),
        inset 0 2px 10px rgba(255,255,255,0.2);
}

.nc-send-btn:hover::before {
    width: 100%;
    height: 100%;
}

.nc-send-btn:active {
    transform: scale(0.95);
}

.nc-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   РЕЖИМ ЗНАКОМСТВА (ONBOARDING)
   ============================================ */
.nc-onboarding {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    z-index: 10;
}

.nc-onboarding-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin-bottom: 24px;
    position: relative;
    color: white;
}

.nc-onboarding-avatar svg {
    width: 50px;
    height: 50px;
    stroke: white;
}

.nc-onboarding-avatar::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    z-index: -1;
    opacity: 0.5;
    animation: ncPulse 2s ease-in-out infinite;
}

@keyframes ncPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.nc-onboarding-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.nc-onboarding-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 300px;
    line-height: 1.5;
}

.nc-onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 320px;
}

.nc-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nc-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.nc-feature-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateX(4px);
}

.nc-feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.nc-feature-text {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.nc-start-btn {
    padding: 18px 52px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.7), rgba(99, 102, 241, 0.7));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Водяной эффект на кнопке */
.nc-start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.nc-start-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0.8;
}

.nc-start-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(168, 85, 247, 0.4),
        0 0 80px rgba(168, 85, 247, 0.15),
        inset 0 2px 15px rgba(255,255,255,0.15);
}

.nc-start-btn:hover::before {
    left: 100%;
}

.nc-start-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* ============================================
   МОДАЛКА ЕЖЕДНЕВНОГО ЗАДАНИЯ
   ============================================ */
.nc-daily-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.nc-daily-modal.active {
    display: flex;
    animation: ncFadeIn 0.3s ease-out;
}

.nc-daily-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
}

.nc-daily-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.nc-daily-header {
    text-align: center;
    margin-bottom: 20px;
}

.nc-daily-greeting {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.nc-daily-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.nc-daily-tasks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc-daily-task {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.nc-daily-task:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.nc-daily-task.completed {
    opacity: 0.6;
}

.nc-task-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.nc-daily-task.completed .nc-task-check {
    background: #10b981;
    border-color: #10b981;
}

.nc-task-info {
    flex: 1;
}

.nc-task-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
}

.nc-task-time {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   БЛОКИ И ОГРАНИЧЕНИЯ
   ============================================ */
.nc-block-indicator {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(234, 88, 12, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nc-block-icon {
    font-size: 24px;
}

.nc-block-text {
    flex: 1;
}

.nc-block-title {
    font-size: 14px;
    font-weight: 600;
    color: #f87171;
    margin-bottom: 2px;
}

.nc-block-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.nc-block-action {
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #f87171;
    font-size: 12px;
    cursor: pointer;
}

/* ============================================
   ДОСТИЖЕНИЯ И НАГРАДЫ
   ============================================ */
.nc-achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #fbbf24;
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nc-achievement-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.nc-achievement-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: ncBounce 0.6s ease-out;
}

@keyframes ncBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.nc-achievement-title {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 8px;
}

.nc-achievement-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

/* ============================================
   МЕНЮ НАСТРОЕК
   ============================================ */
.nc-settings-menu {
    position: absolute;
    top: 60px;
    right: 16px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 8px;
    min-width: 200px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.nc-settings-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Glass droplet effect on menu */
.nc-settings-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.nc-settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.nc-settings-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nc-settings-item:hover {
    background: rgba(168, 85, 247, 0.15);
    color: #fff;
}

.nc-settings-item:hover::before {
    opacity: 1;
}

.nc-settings-item:active {
    transform: scale(0.98);
}

.nc-settings-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nc-settings-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 6px 0;
}

.nc-settings-item.danger {
    color: rgba(239, 68, 68, 0.9);
}

.nc-settings-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 400px) {
    .nc-day-item {
        width: 40px;
        height: 52px;
    }
    
    .nc-practice-card {
        padding: 14px;
    }
    
    .nc-quick-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Скрытие скроллбаров но сохранение функциональности */
.nc-chat-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.nc-chat-area::-webkit-scrollbar {
    width: 4px;
}

.nc-chat-area::-webkit-scrollbar-track {
    background: transparent;
}

.nc-chat-area::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* ============================================
   УНИВЕРСАЛЬНЫЙ ЭФФЕКТ RIPPLE (КАПЛЯ)
   ============================================ */
.nc-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
    transform: scale(0);
    animation: ncRippleEffect 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ncRippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Glass button base style */
.nc-glass-btn {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-glass-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
    border-radius: inherit;
    pointer-events: none;
}

.nc-glass-btn:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(168, 85, 247, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.nc-glass-btn:active {
    transform: translateY(0) scale(0.98);
}
