/* ============================================
   НЕЙРО-КОУЧ МАРК 2.0 - Стили
   Адаптивная система коучинга
   Apple OS Style - Glass Morphism
   ============================================ */

/* Наследуем базовые стили от версии 1.0 и добавляем новые */

/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР 2.0
   ============================================ */
.neuro-coach-2 {
    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-2.active {
    display: flex;
    flex-direction: column;
    animation: nc2WindowOpen 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.neuro-coach-2.closing {
    animation: nc2WindowClose 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

@keyframes nc2WindowClose {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.95) translateY(10px); }
}

/* Фоновые эффекты */
.neuro-coach-2::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: nc2Glow 8s ease-in-out infinite alternate;
}

@keyframes nc2Glow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ============================================
   ШАПКА 2.0
   ============================================ */
.nc2-header {
    position: relative;
    z-index: 2;
    padding: 8px 6px 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 100%);
}

.nc2-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.nc2-back-btn,
.nc2-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: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc2-back-btn:hover,
.nc2-settings-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.25);
}

.nc2-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    flex: 1;
}

.nc2-title span {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ИНДИКАТОР ШАГОВ (5-ШАГОВЫЙ АЛГОРИТМ)
   ============================================ */
.nc2-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nc2-step-indicator::-webkit-scrollbar {
    display: none;
}

.nc2-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 56px;
}

.nc2-step-item.pending {
    opacity: 0.4;
}

.nc2-step-item.active {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.nc2-step-item.completed {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.nc2-step-item.completed .nc2-step-icon {
    position: relative;
}

.nc2-step-item.completed .nc2-step-icon::after {
    content: '✓';
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 10px;
    background: #10b981;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc2-step-icon {
    font-size: 20px;
    position: relative;
}

.nc2-step-name {
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nc2-step-line {
    width: 8px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.nc2-step-item.completed + .nc2-step-line {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(255,255,255,0.1));
}

/* ============================================
   КАЛЕНДАРЬ С ПРАКТИКАМИ
   ============================================ */
.nc2-calendar-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nc2-calendar-track::-webkit-scrollbar {
    display: none;
}

.nc2-day-item {
    flex: 0 0 auto;
    width: 46px;
    height: 54px;
    border-radius: 20px;
    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;
}

.nc2-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;
}

.nc2-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);
}

.nc2-day-item.has-practice {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.nc2-day-item.has-practice.completed {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.1);
}

.nc2-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);
}

.nc2-day-name {
    font-size: 8px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
}

.nc2-day-num {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.nc2-day-practice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
    margin-top: 2px;
    animation: nc2PulseDot 2s ease-in-out infinite;
}

.nc2-day-practice-dot.done {
    background: #10b981;
    animation: none;
}

@keyframes nc2PulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================
   ШКАЛА ЭНЕРГИИ 2.0
   ============================================ */
.nc2-energy-bar {
    padding: 0 16px 12px;
}

.nc2-energy-container {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nc2-energy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nc2-energy-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nc2-energy-value {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nc2-energy-trend {
    font-size: 12px;
    transition: color 0.3s;
}

.nc2-energy-trend.rising { color: #10b981; }
.nc2-energy-trend.stable { color: #f59e0b; }
.nc2-energy-trend.falling { color: #ef4444; }

.nc2-energy-track {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.nc2-energy-fill {
    height: 100%;
    background: linear-gradient(90deg, #f1c40f, #2ecc71);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
    position: relative;
}

.nc2-energy-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

/* ============================================
   ЧАТ 2.0
   ============================================ */
.nc2-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc2-message {
    max-width: 85%;
    animation: nc2MessageIn 0.3s ease-out;
}

.nc2-message.no-animate {
    animation: none;
}

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

.nc2-message.coach {
    align-self: flex-start;
}

.nc2-message.user {
    align-self: flex-end;
}

.nc2-message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.nc2-message.coach .nc2-message-content {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.nc2-message.user .nc2-message-content {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.nc2-message-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    padding: 0 8px;
}

.nc2-message.user .nc2-message-time {
    text-align: right;
}

.nc2-coach-avatar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.nc2-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;
}

/* Индикатор печати */
.nc2-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;
}

.nc2-typing-dots {
    display: flex;
    gap: 4px;
}

.nc2-typing-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: nc2TypingDot 1.4s infinite;
}

.nc2-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.nc2-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes nc2TypingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Ежедневный чекин */
.nc2-daily-checkin {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    animation: nc2MessageIn 0.3s ease-out;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.nc2-checkin-text {
    font-size: 16px;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 500;
}

.nc2-checkin-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.nc2-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;
}

.nc2-checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.nc2-checkin-btn.nc2-checkin-low:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.nc2-checkin-btn.nc2-checkin-mid:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

.nc2-checkin-btn.nc2-checkin-high:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.nc2-checkin-emoji {
    font-size: 28px;
}

.nc2-checkin-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* ============================================
   БЫСТРЫЕ ДЕЙСТВИЯ 2.0
   ============================================ */
.nc2-input-area {
    padding: 10px 5px 5px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    position: relative;
    z-index: 2;
}

.nc2-quick-actions {
    display: flex;
    gap: 8px;
    /* margin-bottom: 12px; */
    overflow-x: auto;
    padding: 10px 0px;
    scrollbar-width: none;
}

.nc2-quick-actions::-webkit-scrollbar {
    display: none;
}

.nc2-quick-btn {
    flex: 0 0 auto;
    padding: 6px 12px;
    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;
}

.nc2-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);
}

.nc2-quick-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Ввод сообщения */
.nc2-input-container {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

/* Меню команд (+) */
.nc2-actions-menu {
    position: relative;
    flex-shrink: 0;
}

.nc2-actions-toggle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc2-actions-toggle:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #fff;
    transform: rotate(45deg);
}

.nc2-actions-toggle.active {
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    color: #fff;
    transform: rotate(45deg);
}

.nc2-actions-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    min-width: 220px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.nc2-actions-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nc2-actions-dropdown .nc2-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nc2-actions-dropdown .nc2-quick-btn {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

/* Кнопка продолжить путь при паузе */
.nc2-resume-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2)) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #22c55e !important;
}

.nc2-resume-btn:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.3)) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
}

.nc2-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;
}

.nc2-input-wrapper:focus-within {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}

.nc2-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: #fff;
    font-size: 15px;
    resize: none;
    max-height: 120px;
    line-height: 1.4;
}

.nc2-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.nc2-input:focus {
    outline: none;
}

.nc2-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;
}

.nc2-send-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.nc2-send-btn:active {
    transform: scale(0.95);
}

/* ============================================
   ЭКРАН ПРИВЕТСТВИЯ
   ============================================ */
.nc2-welcome {
    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;
}

.nc2-welcome-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;
    animation: nc2AvatarPulse 3s ease-in-out infinite;
}

@keyframes nc2AvatarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(168, 85, 247, 0); }
}

.nc2-welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.nc2-welcome-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 300px;
}

.nc2-welcome-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    width: 100%;
    max-width: 300px;
}

.nc2-welcome-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nc2-welcome-feature-icon {
    font-size: 24px;
}

.nc2-welcome-feature-text {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-align: left;
}

.nc2-start-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nc2-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ПРАКТИКИ
   ============================================ */
.nc2-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nc2-modal.active {
    opacity: 1;
    visibility: visible;
}

.nc2-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nc2-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nc2-modal.active .nc2-modal-content {
    transform: scale(1) translateY(0);
}

.nc2-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.nc2-modal-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;
}

.nc2-modal-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}

.nc2-modal-title span {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.nc2-modal-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: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.nc2-modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.nc2-modal-body {
    color: #fff;
}

.nc2-modal-task {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.nc2-modal-task h4 {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nc2-modal-task p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.nc2-modal-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nc2-modal-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.nc2-modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.nc2-modal-completed {
    text-align: center;
    padding: 20px;
    color: #10b981;
    font-size: 16px;
    font-weight: 600;
}

.nc2-modal-info {
    text-align: center;
    padding: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ============================================
   УВЕДОМЛЕНИЯ
   ============================================ */
.nc2-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
    pointer-events: none;
}

.nc2-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
}

.nc2-notification.active {
    transform: translateX(0);
    opacity: 1;
}

.nc2-notification-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.nc2-notification-content {
    flex: 1;
    min-width: 0;
}

.nc2-notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.nc2-notification-message {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nc2-notification-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.nc2-notification-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ============================================
   МЕНЮ НАСТРОЕК
   ============================================ */
.nc2-settings-menu {
    position: absolute;
    top: 60px;
    right: 16px;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.nc2-settings-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nc2-settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.nc2-settings-item:hover {
    background: rgba(168, 85, 247, 0.15);
}

.nc2-settings-item.danger {
    color: #ef4444;
}

.nc2-settings-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.nc2-settings-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nc2-settings-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 0;
}

/* ============================================
   ГЛАВНЫЙ ИНТЕРФЕЙС
   ============================================ */
.nc2-main-interface {
    display: none;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 400px) {
    .nc2-step-indicator {
        padding: 8px 4px;
    }
    
    .nc2-step-item {
        padding: 6px 5px;
        min-width: 35px;
    }
    
    .nc2-step-icon {
        font-size: 16px;
    }
    
    .nc2-step-name {
        font-size: 6px;
    }
    
    .nc2-checkin-btn {
        padding: 12px 14px;
        min-width: 70px;
    }
    
    .nc2-checkin-emoji {
        font-size: 24px;
    }
}

/* ============================================
   ПРЕДЛОЖЕНИЕ ПРАКТИКИ ОТ ИИ
   ============================================ */
.nc2-practice-suggestion {
    display: flex;
    gap: 12px;
    padding: 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.1));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    animation: nc2FadeIn 0.4s ease;
}

.nc2-practice-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.nc2-practice-content {
    flex: 1;
}

.nc2-practice-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 6px;
    font-size: 14px;
}

.nc2-practice-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.nc2-practice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nc2-practice-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.nc2-practice-accept {
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    color: #fff;
}

.nc2-practice-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.nc2-practice-skip {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nc2-practice-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes nc2FadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nc2Shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.nc2-shimmer {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: nc2Shimmer 2s infinite;
}

/* ============================================
   МОДАЛКА ПРАКТИК ДНЯ
   ============================================ */
.nc2-practice-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nc2-practice-card.completed {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.nc2-practice-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.nc2-practice-card-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 12px;
}

.nc2-practice-card-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.nc2-practice-card-info span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.nc2-practice-done {
    margin-left: auto;
    color: #22c55e;
    font-size: 20px;
    font-weight: bold;
}

.nc2-practice-card-task {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.nc2-no-practices {
    text-align: center;
    padding: 30px 20px;
}

.nc2-no-practices-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.6;
}

.nc2-no-practices p {
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.nc2-hint {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* День с практикой в календаре */
.nc2-day-item.has-practice {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
}

.nc2-day-item.has-practice.completed {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

.nc2-day-practice-dot {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
}

.nc2-day-practice-dot.done {
    background: #22c55e;
}

/* ============================================
   ФОРМА ОЦЕНКИ ПРАКТИКИ
   ============================================ */

.nc2-completion-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: nc2-fade-in 0.3s ease;
}

@keyframes nc2-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nc2-form-section {
    margin-bottom: 16px;
}

.nc2-form-section label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.nc2-optional {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Звёздочки рейтинга */
.nc2-star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px 0;
}

.nc2-star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

.nc2-star:hover {
    transform: scale(1.2);
}

.nc2-star.active {
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Поле рефлексии */
.nc2-completion-form 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: vertical;
    font-family: inherit;
}

.nc2-completion-form textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.1);
}

.nc2-completion-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Кнопки формы */
.nc2-form-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.nc2-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nc2-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nc2-modal-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Отображение оценки в завершённой практике */
.nc2-practice-feedback {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nc2-feedback-stars {
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.nc2-feedback-reflection {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   ВЕЧЕРНИЙ ЧЕКИН (рефлексия)
   ============================================ */
.nc2-evening-checkin {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin: 12px 16px;
}

.nc2-evening-header {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.nc2-evening-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.nc2-evening-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nc2-evening-mood {
    margin-bottom: 4px;
}

.nc2-evening-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.nc2-evening-mood-btns {
    display: flex;
    gap: 8px;
}

.nc2-mood-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nc2-mood-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.nc2-mood-btn.active {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.6);
    transform: scale(1.1);
}

.nc2-evening-field label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.nc2-evening-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 12px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.nc2-evening-field textarea:focus {
    border-color: rgba(139, 92, 246, 0.5);
}

.nc2-evening-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.nc2-evening-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 4px;
}

.nc2-evening-submit:hover {
    opacity: 0.9;
}

.nc2-evening-submit:active {
    transform: scale(0.98);
}

.nc2-evening-skip {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.nc2-evening-skip:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ТОСТ ДОСТИЖЕНИЙ
   ============================================ */
.nc2-achievement-toast {
    position: absolute;
    top: 60px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 200;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.nc2-achievement-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.nc2-achievement-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.nc2-achievement-info {
    flex: 1;
    min-width: 0;
}

.nc2-achievement-title {
    font-size: 14px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 2px;
}

.nc2-achievement-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}
