/* =============================================
   PERSONAL COCKPIT — Phase 2
   Psychologically-driven personal assistant module
   Enhanced Emotional Pulse + Micro-Coaching System
   ============================================= */

/* ─── BASE LAYOUT ─── */

.personal-cockpit {
    padding: 2.5rem 0 2rem;
    position: relative;
    background: linear-gradient(180deg,
        #0a1515 0%,
        #0d1f1f 20%,
        #0f2626 50%,
        #0d1f1f 80%,
        #0a1515 100%
    );
    min-height: 100vh;
}

.personal-cockpit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(127, 255, 0, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 217, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.personal-cockpit .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cockpit-row {
    margin-bottom: 1.8rem;
}

/* ─── CARDS ─── */

.cockpit-card {
    background: rgba(15, 47, 47, 0.45);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 20px;
    padding: 1.8rem;
    transition: all 0.35s ease;
    backdrop-filter: blur(16px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.cockpit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 255, 0, 0.12), transparent);
    pointer-events: none;
}

.cockpit-card:hover {
    border-color: rgba(127, 255, 0, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(127, 255, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.cockpit-card h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1.1rem;
    letter-spacing: 0.01em;
}

/* ─── ROW 1: PULSE ASSISTANT (full width) ─── */

.cockpit-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Mood Card */
.mood-card {
    text-align: center;
}

.mood-greeting h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.mood-question {
    color: #8892a6;
    font-size: 0.95rem;
    margin: 0 0 1.2rem;
}

.mood-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.mood-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: #c8d0de;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.mood-btn:hover {
    background: rgba(180, 255, 57, 0.1);
    border-color: rgba(180, 255, 57, 0.3);
    color: #b4ff39;
    transform: translateY(-2px);
}

.mood-btn.selected {
    background: rgba(180, 255, 57, 0.15);
    border-color: rgba(180, 255, 57, 0.4);
    color: #b4ff39;
    box-shadow: 0 0 12px rgba(180, 255, 57, 0.15);
}

.mood-emoji {
    font-size: 1.2rem;
}

.mood-label {
    font-size: 0.82rem;
    white-space: nowrap;
}

/* Mood response (after selection) */
.mood-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.8rem;
    font-size: 1.1rem;
    color: #b4ff39;
}

.mood-change-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #8892a6;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mood-change-btn:hover {
    color: #b4ff39;
    border-color: rgba(180, 255, 57, 0.3);
}

/* Coaching styles removed — replaced by insight bar + inline insights */

/* ─── INSIGHT BAR (Layer 1) ─── */

.cockpit-insight-bar {
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(127, 255, 0, 0.12);
    border-radius: 14px;
    padding: 0.75rem 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: cockpit-fadeIn 0.4s ease;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.insight-bar-text {
    flex: 1;
    color: #c8d0de;
    font-size: 0.88rem;
    line-height: 1.45;
}

.insight-bar-action {
    background: rgba(180, 255, 57, 0.1);
    border: 1px solid rgba(180, 255, 57, 0.25);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    color: #b4ff39;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.insight-bar-action:hover {
    background: rgba(180, 255, 57, 0.2);
    border-color: rgba(180, 255, 57, 0.4);
}

.insight-bar-dismiss {
    background: none;
    border: none;
    color: #6b7588;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    line-height: 1;
    transition: color 0.2s;
    font-family: inherit;
}

.insight-bar-dismiss:hover {
    color: #c8d0de;
}

/* ─── INLINE CARD INSIGHTS (Layer 2) ─── */

.card-insight {
    margin-top: 0.8rem;
    padding: 0.65rem 0.9rem;
    border-left: 2px solid rgba(127, 255, 0, 0.25);
    background: rgba(127, 255, 0, 0.03);
    border-radius: 0 10px 10px 0;
    animation: cockpit-fadeIn 0.4s ease;
}

.card-insight:empty {
    display: none;
}

.card-insight-text {
    color: #8892a6;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

.card-insight-action {
    display: inline-block;
    margin-top: 0.4rem;
    color: #b4ff39;
    font-size: 0.78rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.2s;
}

.card-insight-action:hover {
    opacity: 0.8;
}

/* ─── RECOMMENDATION CARD (TRYB B) ─── */

.recommendation-card {
    background: rgba(15, 47, 47, 0.35);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 14px;
    padding: 1.2rem;
    animation: cockpit-fadeIn 0.4s ease;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.rec-category-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.rec-counter {
    font-size: 0.7rem;
    color: #6b7588;
}

.rec-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.6rem;
    line-height: 1.4;
}

.rec-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.rec-meta-item {
    font-size: 0.8rem;
    color: #8b95a8;
}

.rec-reason {
    font-size: 0.82rem;
    color: #94a3b8;
    font-style: italic;
    margin: 0 0 1rem;
    padding-left: 0.6rem;
    border-left: 2px solid rgba(74, 222, 128, 0.3);
    line-height: 1.5;
}

.rec-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.rec-exhausted {
    text-align: center;
    padding: 1.5rem 1rem;
}

.rec-exhausted p {
    color: #8b95a8;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

/* ─── ROW 2: ANTICIPATION ─── */

.anticipation-card {
    position: relative;
}

.anticipation-event {
    animation: cockpit-fadeIn 0.4s ease;
}

.anticipation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.anticipation-header h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.countdown-badge.planned {
    background: rgba(127, 255, 0, 0.08);
    color: #7fff00;
    border: 1px solid rgba(127, 255, 0, 0.18);
    box-shadow: 0 0 8px rgba(127, 255, 0, 0.08);
}

.countdown-badge.soon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.countdown-badge.imminent {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.2);
    animation: cockpit-pulse 2s infinite;
}

/* Progress bar */
.anticipation-progress {
    margin-bottom: 0.8rem;
}

.progress-bar {
    height: 6px;
    background: rgba(127, 255, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7fff00, #b4ff39);
    border-radius: 3px;
    transition: width 1s ease-out;
    min-width: 2px;
    box-shadow: 0 0 8px rgba(127, 255, 0, 0.3);
}

.progress-label {
    color: #8892a6;
    font-size: 0.75rem;
}

/* Social proof badge */
.social-proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 217, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 8px;
    color: #00d9ff;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

/* Checklist */
.checklist-title {
    color: #c8d0de;
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    color: #c8d0de;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.2s;
}

.checklist-item.done {
    color: #6b7588;
    text-decoration: line-through;
}

.checklist-item input[type="checkbox"] {
    accent-color: #b4ff39;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-add-task {
    background: none;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #6b7588;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-add-task:hover {
    color: #b4ff39;
    border-color: rgba(180, 255, 57, 0.3);
}

/* Personal why */
.personal-why {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(180, 255, 57, 0.04);
    border-left: 3px solid rgba(180, 255, 57, 0.3);
    border-radius: 0 8px 8px 0;
    color: #c8d0de;
    font-size: 0.85rem;
}

/* Empty calendar state */
.empty-state-reframe {
    text-align: center;
    padding: 2rem 1rem;
}

.empty-message {
    color: #8892a6;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.empty-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── ROW 3: MOMENTUM + STATS ─── */

.cockpit-momentum-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

/* ─── ROW 4: SOCIAL + DECISIONS (Phase 3) ─── */

.cockpit-phase3-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
}

/* ─── ROW 5: GROWTH MIRROR (Phase 3) ─── */

.cockpit-growth-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Momentum stats */
.momentum-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.goal-progress {
    padding: 0.6rem 0;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.goal-title {
    color: #c8d0de;
    font-size: 0.85rem;
}

.goal-numbers {
    color: #b4ff39;
    font-size: 0.85rem;
    font-weight: 600;
}

.goal-fill {
    background: linear-gradient(90deg, #00d9ff, #00a0cc);
}

/* ─── Goal Setter Inline ─── */

.goal-setter-inline {
    animation: cockpit-fadeIn 0.3s ease;
}

.goal-setter-label {
    color: #8b95a8;
    font-size: 0.82rem;
    margin: 0 0 0.8rem;
    text-align: center;
}

.goal-setter-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.goal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.goal-row:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.goal-row-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.goal-row-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.goal-row-label {
    color: #c8d0de;
    font-size: 0.8rem;
    white-space: nowrap;
}

.goal-row-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.goal-adjuster {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.goal-adj-btn {
    background: none;
    border: none;
    color: #8b95a8;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
    line-height: 1;
}

.goal-adj-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.goal-adj-btn:active {
    background: rgba(74, 222, 128, 0.2);
}

.goal-adj-value {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 1.8rem;
    text-align: center;
    padding: 0.25rem 0;
}

.goal-confirm-btn {
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ade80;
    font-size: 0.85rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.goal-confirm-btn:hover {
    background: rgba(74, 222, 128, 0.25);
    border-color: #4ade80;
}

.goal-custom-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-family: inherit;
    padding: 0.2rem 0;
    width: 100%;
    min-width: 0;
    outline: none;
    transition: border-color 0.2s;
}

.goal-custom-input::placeholder {
    color: #5a6478;
}

.goal-custom-input:focus {
    border-bottom-color: #4ade80;
}

.goal-row-confirmed {
    color: #4ade80;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.2rem 0;
    animation: cockpit-fadeIn 0.3s ease;
}

.goal-set-success {
    text-align: center;
    padding: 1rem 0;
    animation: cockpit-fadeIn 0.3s ease;
}

.goal-set-success span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.goal-set-success p {
    color: #4ade80;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* ─── Goal Card Inline (active goals) ─── */

.goal-card-inline {
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    animation: cockpit-fadeIn 0.3s ease;
    transition: all 0.25s ease;
}

.goal-card-inline:hover {
    border-color: rgba(127, 255, 0, 0.12);
    background: rgba(15, 47, 47, 0.55);
}

.goal-card-inline.goal-done {
    border-color: rgba(74, 222, 128, 0.25);
}

.goal-card-inline.goal-mid {
    border-color: rgba(0, 217, 255, 0.2);
}

.goal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.goal-card-title {
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 500;
}

.goal-card-pct {
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 600;
}

.goal-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
}

.goal-card-numbers {
    color: #6b7588;
    font-size: 0.75rem;
}

.goal-card-btns {
    display: flex;
    gap: 0.3rem;
}

.goal-btn-done,
.goal-btn-drop {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.goal-btn-done:hover,
.goal-btn-drop:hover {
    opacity: 1;
}

.goal-add-more {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    background: none;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #6b7588;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.goal-add-more:hover {
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

/* Streak */
.streak-display {
    text-align: center;
    padding: 1rem 0;
}

.streak-fire {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.streak-text {
    color: #7fff00;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    text-shadow: 0 0 12px rgba(127, 255, 0, 0.3);
}

.streak-best {
    color: #6b7588;
    font-size: 0.75rem;
    margin: 0;
}

/* Monthly trend */
.trend-message {
    color: #c8d0de;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
    padding: 0.8rem 1rem;
    background: rgba(15, 47, 47, 0.5);
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(127, 255, 0, 0.05);
}

/* ─── SOCIAL ENERGY METER ─── */

.social-energy-meter {
    margin-top: 1rem;
}

.energy-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.energy-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.2s ease-out;
}

.energy-fill.energy-low {
    background: linear-gradient(90deg, #ff6b6b, #ff8c42);
}

.energy-fill.energy-medium {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.energy-fill.energy-high {
    background: linear-gradient(90deg, #b4ff39, #00d9ff);
}

.energy-label {
    color: #8892a6;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

/* ─── BUTTONS ─── */

.btn-cockpit-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #7fff00, #5cb800);
    color: #0a1a0a;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(127, 255, 0, 0.25);
}

.btn-cockpit-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 255, 0, 0.35);
    background: linear-gradient(135deg, #8bff22, #6de800);
}

.btn-cockpit-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: rgba(15, 47, 47, 0.6);
    color: #c8d0de;
    border: 1px solid rgba(127, 255, 0, 0.12);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(8px);
}

.btn-cockpit-secondary:hover {
    background: rgba(127, 255, 0, 0.08);
    border-color: rgba(127, 255, 0, 0.25);
    color: #b4ff39;
    transform: translateY(-1px);
}

.btn-cockpit-ghost {
    background: none;
    border: none;
    color: #6b7588;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
}

.btn-cockpit-ghost:hover {
    color: #b4ff39;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
}

/* ─── REFLECTION INPUT ─── */

.reflection-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reflection-input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e0e6ef;
    padding: 0.7rem;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.2s;
}

.reflection-input-group textarea:focus {
    outline: none;
    border-color: rgba(180, 255, 57, 0.4);
}

.reflection-input-group .btn-cockpit-primary {
    align-self: flex-end;
}

/* ─── GOAL SETTER ─── */

.goal-setter p {
    color: #c8d0de;
    font-size: 0.9rem;
    margin: 0 0 0.8rem;
}

.goal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.goal-preset {
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #c8d0de;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.goal-preset:hover {
    background: rgba(180, 255, 57, 0.1);
    border-color: rgba(180, 255, 57, 0.3);
    color: #b4ff39;
    transform: translateY(-1px);
}

/* ─── ANIMATIONS ─── */

@keyframes cockpit-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cockpit-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 107, 107, 0);
    }
}

.cockpit-card {
    animation: cockpit-fadeIn 0.4s ease both;
}

.cockpit-top > :nth-child(1) { animation-delay: 0s; }
.cockpit-top > :nth-child(2) { animation-delay: 0.1s; }
.cockpit-anticipation { animation-delay: 0.2s; }
.cockpit-momentum-stats > :nth-child(1) { animation-delay: 0.3s; }
.cockpit-momentum-stats > :nth-child(2) { animation-delay: 0.4s; }
.cockpit-phase3-row > :nth-child(1) { animation-delay: 0.5s; }
.cockpit-phase3-row > :nth-child(2) { animation-delay: 0.6s; }
.cockpit-growth-row { animation-delay: 0.7s; }

/* ─── RESPONSIVE ─── */

@media (max-width: 768px) {
    .cockpit-top {
        grid-template-columns: 1fr;
    }

    .cockpit-momentum-stats {
        grid-template-columns: 1fr;
    }

    .cockpit-phase3-row {
        grid-template-columns: 1fr;
    }

    .mood-options {
        gap: 0.4rem;
    }

    .mood-btn {
        padding: 0.45rem 0.7rem;
        font-size: 0.8rem;
    }

    .anticipation-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .coaching-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .coaching-actions .btn-cockpit-primary,
    .coaching-actions .btn-cockpit-ghost {
        text-align: center;
        justify-content: center;
    }

    .empty-actions {
        flex-direction: column;
    }

    .goal-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .personal-cockpit {
        padding: 1rem 0;
    }

    .cockpit-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .mood-greeting h2 {
        font-size: 1.2rem;
    }

    .mood-btn {
        padding: 0.4rem 0.6rem;
    }

    .mood-emoji {
        font-size: 1rem;
    }

    .coaching-text {
        font-size: 0.92rem;
    }
}

/* =============================================
   PHASE 2 ADDITIONS
   Coaching Carousel, Mood Trend, Feedback, Preferences
   ============================================= */

/* Coaching carousel styles removed — replaced by insight system */

/* ─── MOOD TREND (Phase 2) ─── */

.mood-trend-container {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mood-trend-chart {
    margin-bottom: 0.5rem;
}

.trend-label {
    color: #8892a6;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.energy-sparkline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sparkline-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sparkline-label {
    font-size: 0.85rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

.sparkline-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.sparkline-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
    min-width: 2px;
}

.energy-fill-spark {
    background: linear-gradient(90deg, #ffc107, #b4ff39);
}

.social-fill-spark {
    background: linear-gradient(90deg, #00d9ff, #0099cc);
}

.sparkline-value {
    color: #8892a6;
    font-size: 0.72rem;
    font-weight: 600;
    width: 1.5rem;
    text-align: right;
    flex-shrink: 0;
}

.mood-pattern-insight {
    padding: 0.5rem 0.7rem;
    margin-top: 0.5rem;
    background: rgba(180, 255, 57, 0.04);
    border-left: 3px solid rgba(180, 255, 57, 0.25);
    border-radius: 0 6px 6px 0;
    color: #c8d0de;
    font-size: 0.8rem;
    line-height: 1.4;
}

.trend-checkins {
    display: block;
    text-align: center;
    color: #6b7588;
    font-size: 0.72rem;
    margin-top: 0.5rem;
}

/* ─── MOOD CHECK-IN STREAK ─── */

.mood-checkin-streak {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 12px;
    color: #ff9800;
    font-size: 0.75rem;
    font-weight: 600;
    animation: cockpit-fadeIn 0.4s ease;
}

.mood-energy-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
}

.mood-energy-trend.rising {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.08);
}

.mood-energy-trend.falling {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
}

.mood-energy-trend.stable {
    color: #8892a6;
    background: rgba(136, 146, 166, 0.08);
}

.mood-streak-badge {
    margin-top: 0.6rem;
    padding: 0.4rem 0.7rem;
    background: rgba(0, 217, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.12);
    border-radius: 8px;
    color: #00d9ff;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-block;
}

/* ─── MOOD NOTE (Micro-Journaling) ─── */

#mood-note-section {
    margin-top: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

#mood-note-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #c8d0de;
    padding: 0.5rem 0.7rem;
    font-size: 0.82rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

#mood-note-input:focus {
    outline: none;
    border-color: rgba(180, 255, 57, 0.35);
}

#mood-note-input::placeholder {
    color: #555d6e;
}

/* ─── SOCIAL BATTERY SLIDER ─── */

.social-battery-group {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.social-battery-group label {
    color: #8892a6;
    font-size: 0.78rem;
    white-space: nowrap;
}

#social-battery-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

#social-battery-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b4ff39;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(180, 255, 57, 0.3);
    transition: transform 0.15s ease;
}

#social-battery-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#social-battery-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b4ff39;
    border: none;
    cursor: pointer;
}

#social-battery-label {
    color: #c8d0de;
    font-size: 0.78rem;
    font-weight: 500;
    min-width: 5rem;
    text-align: right;
}

/* ─── MOOD SAVED FLASH ─── */

@keyframes moodSavedFlash {
    0% { box-shadow: 0 0 0 0 rgba(180, 255, 57, 0.4); }
    50% { box-shadow: 0 0 20px 4px rgba(180, 255, 57, 0.15); }
    100% { box-shadow: 0 0 0 0 rgba(180, 255, 57, 0); }
}

.mood-saved-flash {
    animation: moodSavedFlash 0.8s ease !important;
}

/* ─── PREFERENCES PANEL ─── */

.preferences-panel {
    padding: 0.5rem 0;
}

.preferences-panel h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.pref-group {
    margin-bottom: 0.8rem;
}

.pref-group label {
    display: block;
    color: #8892a6;
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.pref-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pref-option {
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #c8d0de;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.pref-option:hover {
    background: rgba(180, 255, 57, 0.08);
    border-color: rgba(180, 255, 57, 0.25);
}

.pref-option.selected {
    background: rgba(180, 255, 57, 0.15);
    border-color: rgba(180, 255, 57, 0.4);
    color: #b4ff39;
    box-shadow: 0 0 10px rgba(180, 255, 57, 0.1);
}

/* ─── PHASE 2 RESPONSIVE ─── */

@media (max-width: 768px) {
    .carousel-nav {
        gap: 0.5rem;
    }

    .coaching-feedback-btns {
        margin-left: 0;
        margin-top: 0.3rem;
    }

    .coaching-meta {
        justify-content: center;
    }

    .pref-options {
        flex-direction: column;
    }

    .social-battery-group {
        flex-direction: column;
        align-items: stretch;
    }

    #social-battery-label {
        text-align: left;
    }

    .mood-current {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-btn {
        width: 26px;
        height: 26px;
        font-size: 0.95rem;
    }

    .mood-trend-container {
        padding: 0.6rem;
    }

    .mood-checkin-streak,
    .mood-energy-trend {
        font-size: 0.7rem;
    }
}

/* ============================================== */
/* PHASE 3: SOCIAL BELONGING STYLES              */
/* ============================================== */

.social-health-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-health-ring {
    flex-shrink: 0;
}

.health-ring-svg {
    width: 80px;
    height: 80px;
}

.social-health-stats {
    flex: 1;
}

.health-message {
    font-size: 0.85rem;
    color: #c5c9e0;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.health-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.health-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

.health-badge.active { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.health-badge.cooling { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.health-badge.fading { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.health-badge.dormant { background: rgba(107, 114, 128, 0.1); color: #9ca3af; }

/* Connection Suggestions */

.connection-suggestions {
    margin: 1rem 0;
}

.suggestions-title {
    font-size: 0.85rem;
    color: #e2e5f0;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.suggestion-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-card:last-child {
    border-bottom: none;
}

.suggestion-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a8a4a, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-size: 0.85rem;
    color: #e2e5f0;
    font-weight: 500;
}

.suggestion-reason {
    font-size: 0.72rem;
    color: #6b7588;
}

.suggestion-actions {
    display: flex;
    gap: 0.3rem;
}

/* Connections List */

.connections-list {
    max-height: 300px;
    overflow-y: auto;
}

.connection-card {
    padding: 0.6rem;
    margin-bottom: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid #374151;
    transition: border-color 0.2s;
}

.connection-card.active { border-left-color: #10b981; }
.connection-card.cooling { border-left-color: #f59e0b; }
.connection-card.fading { border-left-color: #ef4444; }
.connection-card.dormant { border-left-color: #6b7280; }

.connection-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.connection-health-icon { font-size: 0.8rem; }

.connection-name {
    font-size: 0.85rem;
    color: #e2e5f0;
    font-weight: 500;
    flex: 1;
}

.connection-type {
    font-size: 0.7rem;
    color: #6b7588;
}

.connection-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.72rem;
    color: #6b7588;
    margin-bottom: 0.3rem;
}

.connection-actions {
    display: flex;
    justify-content: flex-end;
}

.social-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    justify-content: center;
}

.empty-connections {
    text-align: center;
    padding: 1rem 0;
    color: #6b7588;
}

.loading-text {
    text-align: center;
    color: #6b7588;
    padding: 1rem 0;
    font-size: 0.85rem;
}

/* ============================================== */
/* PHASE 3: DECISION NUDGE STYLES                */
/* ============================================== */

.decision-empty {
    text-align: center;
    padding: 0.5rem 0;
}

.decision-empty-text {
    font-size: 0.85rem;
    color: #e2e5f0;
    margin-bottom: 0.3rem;
}

.decision-empty-subtext {
    font-size: 0.75rem;
    color: #6b7588;
}

.recent-decisions {
    margin-bottom: 0.8rem;
}

.decision-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.decision-entry:last-child { border-bottom: none; }

.decision-type-icon { font-size: 1rem; flex-shrink: 0; }

.decision-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.decision-chosen {
    font-size: 0.82rem;
    color: #e2e5f0;
    font-weight: 500;
}

.decision-reason {
    font-size: 0.7rem;
    color: #6b7588;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.decision-sat {
    font-size: 0.65rem;
    flex-shrink: 0;
}

.decision-sat .no-rating {
    color: #4b5563;
    font-style: italic;
    font-size: 0.65rem;
}

.decision-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Decision Form */

.decision-form {
    padding: 0.3rem 0;
}

.form-title {
    font-size: 0.9rem;
    color: #e2e5f0;
    margin-bottom: 0.6rem;
}

.decision-form .form-group {
    margin-bottom: 0.5rem;
}

.decision-form label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

.decision-form select,
.decision-form input[type="text"],
.decision-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e2e5f0;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    font-family: inherit;
}

.decision-form select:focus,
.decision-form input:focus,
.decision-form textarea:focus {
    outline: none;
    border-color: rgba(127, 255, 0, 0.3);
}

.decision-form .form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

/* Decision Insights */

.decision-insights {
    padding: 0.3rem 0;
}

.decision-insights h4 {
    font-size: 0.9rem;
    color: #e2e5f0;
    margin-bottom: 0.6rem;
}

.insight-count {
    font-size: 0.75rem;
    color: #6b7588;
    margin-bottom: 0.5rem;
}

.insight-empty {
    font-size: 0.8rem;
    color: #6b7588;
    text-align: center;
    padding: 0.5rem 0;
}

.insight-text {
    font-size: 0.82rem;
    color: #c5c9e0;
    padding: 0.4rem 0.6rem;
    background: rgba(127, 255, 0, 0.05);
    border-radius: 6px;
    margin-bottom: 0.4rem;
    border-left: 3px solid rgba(127, 255, 0, 0.3);
}

.insight-section {
    margin-top: 0.6rem;
}

.insight-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.3rem;
}

.insight-decision {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin: 0.15rem 0.2rem;
}

.insight-decision.good {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

/* ============================================== */
/* PHASE 3: GROWTH MIRROR STYLES                 */
/* ============================================== */

.growth-snapshot {
    padding: 0.2rem 0;
}

.growth-highlight {
    font-size: 0.9rem;
    color: #e2e5f0;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    margin-bottom: 0.8rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.growth-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.growth-stat {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.growth-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e2e5f0;
    line-height: 1.2;
}

.growth-stat-label {
    display: block;
    font-size: 0.65rem;
    color: #6b7588;
    margin-top: 0.2rem;
}

.growth-mood-avg {
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 0.4rem;
}

.growth-goals-summary {
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
}

.growth-empty {
    text-align: center;
    padding: 1rem 0;
    color: #6b7588;
    font-size: 0.85rem;
}

/* Button xs (extra small) */

.btn-cockpit-ghost.btn-xs {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
}

/* ============================================== */
/* PHASE 3: RESPONSIVE                            */
/* ============================================== */

@media (max-width: 768px) {
    .social-health-overview {
        flex-direction: column;
        text-align: center;
    }

    .growth-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .suggestion-card {
        flex-wrap: wrap;
    }

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

    .decision-reason {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .health-badges {
        justify-content: center;
    }

    .social-actions,
    .decision-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .growth-stat-value {
        font-size: 1.2rem;
    }
}

/* ==========================================
   PHASE 4: NOTIFICATION BELL
   ========================================== */

.cockpit-bell-row {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 0.2rem;
}

.cockpit-notification-bell {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 0.3rem;
    transition: transform 0.2s;
}

.cockpit-notification-bell:hover {
    transform: scale(1.15);
}

.cockpit-notification-bell.has-notifications {
    animation: bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: rgba(12, 32, 32, 0.97);
    border: 1px solid rgba(127, 255, 0, 0.12);
    border-radius: 16px;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.notif-header h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notif-item:hover {
    background: rgba(127, 255, 0, 0.05);
}

.notif-item.unread {
    background: rgba(127, 255, 0, 0.04);
    border-left: 3px solid #7fff00;
}

.notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
}

.notif-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.notif-time {
    font-size: 0.68rem;
    color: #6b7588;
}

.notif-dismiss {
    background: none;
    border: none;
    color: #6b7588;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.notif-item:hover .notif-dismiss {
    opacity: 1;
}

.notif-empty {
    text-align: center;
    color: #6b7588;
    font-size: 0.85rem;
    padding: 1rem 0;
}

/* ==========================================
   PHASE 4: ACHIEVEMENTS — Redesigned
   ========================================== */

.ach-redesigned {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

/* Top row: counter + progress bar + pct */
.ach-top-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ach-counter {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.ach-counter strong {
    color: #f59e0b;
    font-size: 1rem;
}

.ach-progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    overflow: hidden;
}

.ach-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.ach-pct {
    font-size: 0.75rem;
    color: #6b7588;
    white-space: nowrap;
}

/* Mini icon grid */
.ach-mini-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ach-mini {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    padding: 0;
    position: relative;
}

.ach-mini:hover {
    transform: scale(1.15);
    z-index: 2;
}

.ach-mini.unlocked {
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.ach-mini.unlocked:hover {
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.ach-mini.locked {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    opacity: 0.5;
}

.ach-mini.locked:hover {
    opacity: 0.8;
}

.ach-mini.unseen {
    box-shadow: 0 0 0 2px #10b981, 0 0 12px rgba(16, 185, 129, 0.35);
    animation: achPulse 2s ease-in-out infinite;
}

@keyframes achPulse {
    0%, 100% { box-shadow: 0 0 0 2px #10b981, 0 0 8px rgba(16, 185, 129, 0.25); }
    50% { box-shadow: 0 0 0 2px #10b981, 0 0 16px rgba(16, 185, 129, 0.5); }
}

.ach-mini-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* Tooltip — appears below grid on click */
.ach-tooltip {
    margin-top: 0.2rem;
}

.ach-tooltip-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem;
    border-radius: 10px;
    position: relative;
    animation: achFadeIn 0.2s ease;
}

@keyframes achFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ach-tooltip-inner.tip-unlocked {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.ach-tooltip-inner.tip-locked {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ach-tooltip-close {
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #6b7588;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    line-height: 1;
}

.ach-tooltip-close:hover {
    color: #e2e8f0;
}

.ach-tooltip-icon {
    font-size: 2rem;
}

.ach-tooltip-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.ach-tooltip-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.3;
}

.ach-tooltip-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.ach-tooltip-progress .ach-progress-bar {
    flex: 1;
}

.ach-tooltip-prog-text {
    font-size: 0.7rem;
    color: #6b7588;
    white-space: nowrap;
}

.ach-tooltip-status {
    font-size: 0.72rem;
    color: #10b981;
    margin-top: 0.1rem;
}

/* Achievement Gallery Modal */
.ach-category {
    margin-bottom: 1.2rem;
}

.ach-cat-title {
    font-size: 0.9rem;
    color: #b4ff39;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ach-cat-count {
    font-size: 0.72rem;
    color: #6b7588;
    font-weight: 400;
}

.ach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
}

.ach-badge {
    padding: 0.8rem 0.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.ach-badge.unlocked {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ach-badge.locked {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.6;
}

.ach-badge.new-badge {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
}

.ach-badge:hover {
    transform: translateY(-2px);
}

.ach-icon {
    font-size: 1.8rem;
}

.ach-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
}

.ach-desc {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.ach-progress-mini {
    width: 100%;
    margin-top: 0.3rem;
}

.ach-progress-mini .progress-bar {
    height: 3px;
    margin-bottom: 2px;
}

.ach-prog-text {
    font-size: 0.62rem;
    color: #6b7588;
}

/* ==========================================
   PHASE 4: ONBOARDING OVERLAY
   ========================================== */

.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.onboarding-card {
    background: linear-gradient(135deg, rgba(12, 32, 32, 0.98), rgba(20, 50, 50, 0.95));
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 20px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.onboarding-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.onboarding-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7fff00, #00d9ff);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.onboarding-step-label {
    font-size: 0.7rem;
    color: #6b7588;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.onboarding-icon {
    font-size: 3rem;
    margin: 1.2rem 0 0.5rem;
}

.onboarding-title {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.onboarding-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.onboarding-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

/* ==========================================
   PHASE 4: COCKPIT MODAL
   ========================================== */

.cockpit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 26, 26, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cockpit-modal-container {
    background: rgba(12, 32, 32, 0.98);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 16px;
    max-width: 600px;
    width: 92%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.cockpit-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1;
    padding: 0.3rem;
}

.cockpit-modal-close:hover {
    color: #e2e8f0;
}

.cockpit-modal-body {
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1rem;
}

/* ==========================================
   PHASE 4: MOOD ANALYTICS MODAL
   ========================================== */

.mood-analytics-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.ma-stat {
    text-align: center;
    padding: 0.6rem;
    background: rgba(127, 255, 0, 0.04);
    border-radius: 8px;
}

.ma-stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #7fff00;
}

.ma-stat-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.mood-distribution {
    margin-bottom: 1.2rem;
}

.mood-distribution h4 {
    font-size: 0.85rem;
    color: #b4ff39;
    margin-bottom: 0.5rem;
}

.mood-dist-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.mood-dist-label {
    font-size: 0.78rem;
    color: #e2e8f0;
    min-width: 100px;
}

.mood-dist-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.mood-dist-fill {
    height: 100%;
    background: linear-gradient(90deg, #7fff00, #00d9ff);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.mood-dist-count {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 30px;
    text-align: right;
}

.dow-patterns {
    margin-bottom: 1.2rem;
}

.dow-patterns h4 {
    font-size: 0.85rem;
    color: #b4ff39;
    margin-bottom: 0.5rem;
}

.dow-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    gap: 0.3rem;
    padding: 0.5rem 0;
}

.dow-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
}

.dow-name {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.dow-bar-container {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.dow-bar {
    width: 100%;
    background: linear-gradient(to top, #7fff00, #00d9ff);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}

.dow-energy {
    font-size: 0.68rem;
    color: #b4ff39;
    font-weight: 600;
}

.mood-insights {
    margin-bottom: 1rem;
}

.mood-insights h4 {
    font-size: 0.85rem;
    color: #b4ff39;
    margin-bottom: 0.5rem;
}

/* ==========================================
   PHASE 4: GOALS LIFECYCLE MODAL
   ========================================== */

.goals-section-title {
    font-size: 0.85rem;
    color: #b4ff39;
    margin: 0.8rem 0 0.4rem;
}

.goal-card-full {
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 0.6rem;
}

.goal-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.goal-card-icon {
    font-size: 1.4rem;
}

.goal-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goal-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.goal-card-type {
    font-size: 0.68rem;
    color: #6b7588;
}

.goal-card-status {
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.goal-status-active {
    background: rgba(127, 255, 0, 0.12);
    color: #7fff00;
}

.goal-status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.goal-status-abandoned {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.goal-card-progress {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.2rem;
}

.goal-card-why,
.goal-card-reflection {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.4rem 0 0;
    font-style: italic;
    line-height: 1.4;
}

.goal-card-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.goal-completed-success {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #10b981;
}

.cockpit-textarea {
    width: 100%;
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 8px;
    color: #e0e6ef;
    padding: 0.6rem;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    margin: 0.5rem 0;
}

.cockpit-textarea:focus {
    outline: none;
    border-color: rgba(127, 255, 0, 0.3);
}

/* ==========================================
   PHASE 4: GROWTH COMPARISON MODAL
   ========================================== */

.growth-summary-text {
    text-align: center;
    font-size: 0.9rem;
    color: #b4ff39;
    margin-bottom: 1rem;
}

.growth-compare-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.growth-compare-row {
    display: grid;
    grid-template-columns: 30px 1fr 40px 30px 40px 50px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.gc-icon {
    font-size: 1rem;
    text-align: center;
}

.gc-label {
    font-size: 0.82rem;
    color: #e2e8f0;
}

.gc-prev {
    text-align: center;
    font-size: 0.78rem;
    color: #6b7588;
}

.gc-arrow {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.gc-curr {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
}

.gc-delta {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
}

.delta-up {
    color: #10b981;
}

.delta-down {
    color: #ef4444;
}

.delta-stable {
    color: #6b7588;
}

/* ==========================================
   PHASE 4: BUTTON EXTRAS
   ========================================== */

.btn-cockpit-ghost.btn-xs,
.btn-cockpit-primary.btn-xs,
.btn-cockpit-secondary.btn-xs {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
}

/* ==========================================
   PHASE 4: RESPONSIVE ADJUSTMENTS
   ========================================== */

@media (max-width: 768px) {
    .notification-panel {
        width: 290px;
        right: -50px;
    }

    .ach-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .mood-analytics-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .growth-compare-row {
        grid-template-columns: 25px 1fr 35px 25px 35px 40px;
        font-size: 0.78rem;
    }

    .onboarding-card {
        padding: 1.5rem;
    }

    .cockpit-modal-container {
        width: 96%;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .achievements-stats {
        gap: 0.6rem;
    }

    .ach-stat-value {
        font-size: 1.2rem;
    }

    .dow-grid {
        height: 80px;
    }

    .growth-compare-row {
        grid-template-columns: 22px 1fr 30px 22px 30px 38px;
        gap: 0.3rem;
        padding: 0.4rem;
    }
}

/* ═══════════════════════════════════════════════════
   PHASE 5: INTELLIGENCE
   ═══════════════════════════════════════════════════ */

/* --- Smart Insights --- */

.insights-empty {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem;
}
.insights-list { display: flex; flex-direction: column; gap: 0.4rem; }

.insight-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 0.5rem;
    align-items: start;
    padding: 0.5rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: border-color 0.2s;
}
.insight-item.pinned { border-left-color: #f59e0b; }
.insight-icon { font-size: 1.2rem; text-align: center; }
.insight-title { font-size: 0.85rem; color: #e2e8f0; font-weight: 600; margin: 0; }
.insight-desc { font-size: 0.8rem; color: #a1a1aa; margin: 0.15rem 0 0; line-height: 1.3; }
.insight-meta { margin-top: 0.2rem; }
.insight-confidence { font-size: 0.65rem; padding: 0.1rem 0.3rem; border-radius: 3px; }
.insight-confidence.high { background: rgba(34,197,94,0.15); color: #4ade80; }
.insight-confidence.medium { background: rgba(245,158,11,0.15); color: #fbbf24; }
.insight-confidence.low { background: rgba(239,68,68,0.15); color: #f87171; }
.insight-actions { display: flex; gap: 0.2rem; }
.insight-actions .btn-xs {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.1rem 0.2rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.insight-actions .btn-xs:hover { opacity: 1; }

/* --- Interactive Charts --- */

.chart-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.chart-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.chart-tab:hover { background: rgba(127, 255, 0, 0.08); color: #fff; }
.chart-tab.active {
    background: rgba(127, 255, 0, 0.12);
    border-color: rgba(127, 255, 0, 0.3);
    color: #b4ff39;
}

.chart-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-container p { color: #888; font-size: 0.85rem; }
.chart-empty { color: #666; font-style: italic; }

.cockpit-chart {
    width: 100%;
    max-width: 500px;
}
.radar-chart { max-width: 300px; }

/* Heatmap */
.energy-heatmap { overflow-x: auto; }
.heatmap-table {
    border-collapse: collapse;
    width: 100%;
}
.heatmap-table th, .heatmap-table td {
    padding: 2px;
    font-size: 0.55rem;
    color: #888;
}
.heatmap-day { text-align: right; padding-right: 6px; white-space: nowrap; }
.heatmap-cell {
    width: 14px; height: 14px;
    border-radius: 2px;
}

/* Habit bar chart */
.habit-chart { width: 100%; }
.habit-bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 40px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
}
.habit-bar-label {
    font-size: 0.8rem;
    color: #ccc;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.habit-bar-track {
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
}
.habit-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease-out;
}
.habit-bar-pct { font-size: 0.75rem; color: #aaa; }

/* --- Phase 5 row layout --- */

.cockpit-phase5-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.cockpit-phase5-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* --- Form helpers --- */

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.cockpit-form .form-group { margin-bottom: 0.6rem; }
.cockpit-form label {
    display: block;
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.cockpit-form input[type="text"],
.cockpit-form input[type="number"],
.cockpit-form textarea,
.cockpit-form select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e2e8f0;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.cockpit-form input:focus,
.cockpit-form textarea:focus,
.cockpit-form select:focus {
    outline: none;
    border-color: rgba(127, 255, 0, 0.3);
    box-shadow: 0 0 0 2px rgba(127, 255, 0, 0.08);
}
.cockpit-form textarea { resize: vertical; font-family: inherit; }
.cockpit-form input[type="color"] {
    width: 40px; height: 32px;
    padding: 2px;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    cursor: pointer;
}

.btn-cockpit-ghost.btn-xs {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
}

/* Phase 5 responsive */
@media (max-width: 768px) {
    .cockpit-phase5-row,
    .cockpit-phase5-bottom-row {
        grid-template-columns: 1fr;
    }

    .habit-bar-row {
        grid-template-columns: 70px 1fr 30px;
    }

    .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   PULSE ASSISTANT — Chat Interface
   ═══════════════════════════════════════════════════════════════ */

.assistant-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: 480px;
    overflow: hidden;
    background: rgba(12, 40, 40, 0.55);
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.08);
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.1), rgba(0, 217, 255, 0.06));
    border-radius: 50%;
    border: 1px solid rgba(127, 255, 0, 0.15);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(127, 255, 0, 0.08);
}

.assistant-title {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.assistant-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.assistant-status-badge {
    font-size: 0.7rem;
    color: #6b7588;
}

.assistant-settings-btn {
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 10px;
    color: #8892a6;
    font-size: 0.95rem;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    transition: all 0.25s;
}
.assistant-settings-btn:hover {
    background: rgba(127, 255, 0, 0.06);
    color: #7fff00;
    border-color: rgba(127, 255, 0, 0.2);
}

/* Chat area */
.assistant-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
}

.assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Message bubbles */
.assistant-bubble {
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 92%;
    animation: bubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.assistant-bubble.bot {
    background: rgba(180,255,57,0.06);
    border: 1px solid rgba(180,255,57,0.12);
    border-bottom-left-radius: 4px;
    color: #e0e6ef;
    align-self: flex-start;
}

.assistant-bubble.user {
    background: rgba(127, 255, 0, 0.06);
    border: 1px solid rgba(127, 255, 0, 0.12);
    border-bottom-right-radius: 4px;
    color: #c8d0de;
    align-self: flex-end;
    text-align: right;
}

.assistant-bubble.summary {
    background: rgba(127, 255, 0, 0.06);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    color: #c8ffa0;
    align-self: flex-start;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Typing indicator */
.assistant-typing {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.8rem;
    align-self: flex-start;
}
.assistant-typing .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(127, 255, 0, 0.5);
    animation: typingDot 1.2s infinite ease-in-out;
}
.assistant-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.assistant-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Quick response buttons */
.assistant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.3rem;
}

.assistant-option-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.85rem;
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(127, 255, 0, 0.1);
    border-radius: 20px;
    color: #c8d0de;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.assistant-option-btn:hover {
    background: rgba(127, 255, 0, 0.08);
    border-color: rgba(127, 255, 0, 0.25);
    color: #7fff00;
    transform: translateY(-1px);
}
.assistant-option-btn.selected {
    background: rgba(127, 255, 0, 0.12);
    border-color: rgba(127, 255, 0, 0.3);
    color: #7fff00;
    box-shadow: 0 0 10px rgba(127, 255, 0, 0.1);
}

/* Free text input */
.assistant-input-area {
    margin-top: 0.4rem;
}

.assistant-input-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.assistant-input-row input {
    flex: 1;
    padding: 0.55rem 1rem;
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 20px;
    color: #c8d0de;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.25s;
}
.assistant-input-row input:focus {
    border-color: rgba(127, 255, 0, 0.25);
    box-shadow: 0 0 8px rgba(127, 255, 0, 0.06);
}
.assistant-input-row input::placeholder {
    color: #555d6e;
}

.assistant-send-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 255, 0, 0.08);
    border: 1px solid rgba(127, 255, 0, 0.15);
    border-radius: 50%;
    color: #7fff00;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    flex-shrink: 0;
}
.assistant-send-btn:hover {
    background: rgba(127, 255, 0, 0.15);
    box-shadow: 0 0 10px rgba(127, 255, 0, 0.15);
    transform: scale(1.05);
}

/* Input divider */
.assistant-or-divider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.3rem 0;
    font-size: 0.72rem;
    color: #555d6e;
}
.assistant-or-divider::before,
.assistant-or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* Footer with streak/trend — replaced by status bar */
.assistant-status-bar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding-top: 0.5rem;
    margin-top: 0.3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.72rem;
    color: #8892a6;
    flex-wrap: wrap;
}
.assistant-status-bar .status-item {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}
.assistant-status-bar .status-sep {
    color: rgba(255,255,255,0.12);
    margin: 0 0.15rem;
}
.status-trend-rising { color: #4caf50 !important; }
.status-trend-falling { color: #ff6b6b !important; }
.status-trend-stable { color: #8892a6 !important; }

/* Chat date separators */
.chat-date-separator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.6rem 0 0.3rem;
    font-size: 0.7rem;
    color: #555d6e;
}
.chat-date-separator::before,
.chat-date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.06);
}
.chat-date-separator span {
    white-space: nowrap;
}

/* Settings modal overlay */
.assistant-settings-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.assistant-settings-panel {
    background: #1a1f2e;
    border: 1px solid rgba(180,255,57,0.15);
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    color: #e0e6ef;
}
.assistant-settings-panel h3 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.1rem;
}
.assistant-settings-group {
    margin-bottom: 1rem;
}
.assistant-settings-group label {
    display: block;
    font-size: 0.82rem;
    color: #8892a6;
    margin-bottom: 0.4rem;
}
.assistant-personality-options {
    display: flex;
    gap: 0.5rem;
}
.personality-btn {
    flex: 1;
    padding: 0.6rem 0.4rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #c8d0de;
    cursor: pointer;
    text-align: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.personality-btn:hover {
    background: rgba(180,255,57,0.06);
}
.personality-btn.active {
    background: rgba(180,255,57,0.1);
    border-color: rgba(180,255,57,0.3);
    color: #b4ff39;
}
.personality-btn .p-icon {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}
.personality-btn .p-name {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}
.personality-btn .p-desc {
    display: block;
    font-size: 0.68rem;
    color: #6b7588;
    line-height: 1.2;
}
.assistant-settings-input {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #c8d0de;
    font-size: 0.85rem;
    outline: none;
}
.assistant-settings-input:focus {
    border-color: rgba(180,255,57,0.3);
}
.assistant-settings-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* CTA and action buttons inside chat */
.assistant-cta-btn {
    background: linear-gradient(135deg, rgba(180,255,57,0.15), rgba(180,255,57,0.08)) !important;
    border-color: rgba(180,255,57,0.35) !important;
    color: #b4ff39 !important;
    font-weight: 600;
    padding: 0.55rem 1.2rem !important;
    font-size: 0.88rem !important;
    animation: pulseGlow 2.5s ease-in-out infinite;
}
.assistant-cta-btn:hover {
    background: linear-gradient(135deg, rgba(180,255,57,0.25), rgba(180,255,57,0.12)) !important;
    box-shadow: 0 4px 16px rgba(180,255,57,0.2);
    transform: translateY(-2px) !important;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 rgba(180,255,57,0); }
    50% { box-shadow: 0 0 12px rgba(180,255,57,0.12); }
}

.assistant-rechat-btn {
    border-color: rgba(180,255,57,0.2) !important;
    color: #b4ff39 !important;
}

/* Summary bubble */
.assistant-bubble-summary {
    background: rgba(180,255,57,0.08) !important;
    border-color: rgba(180,255,57,0.2) !important;
    color: #c8ffa0 !important;
    font-size: 0.85rem;
}

/* Mood noted indicator */
.assistant-mood-noted {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(180,255,57,0.5);
    padding: 2px 0;
    transition: opacity 1s ease;
}

/* ─── ADVANCED ASSISTANT: Emotion & Feedback ─── */

/* Emotion indicator inside bot bubble */
.assistant-emotion-indicator {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 0.65rem;
    opacity: 0.7;
    pointer-events: none;
}

.assistant-bubble.bot {
    position: relative;
}

/* Feedback row (thumbs up/down) */
.assistant-feedback-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    justify-content: flex-end;
}

.assistant-feedback-btn {
    background: transparent;
    border: 1px solid rgba(180,255,57,0.15);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    color: inherit;
}

.assistant-feedback-btn:hover {
    opacity: 1;
    background: rgba(180,255,57,0.08);
    border-color: rgba(180,255,57,0.3);
}

.assistant-feedback-btn:disabled {
    cursor: default;
    opacity: 0.2 !important;
}

/* Memory indicator */
.assistant-memory-indicator {
    text-align: left;
    font-size: 0.65rem;
    color: rgba(147,130,255,0.5);
    padding: 1px 0 2px 12px;
    transition: opacity 2s ease;
}

/* Strategy badge (subtle) */
.assistant-strategy-badge {
    display: inline-block;
    font-size: 0.6rem;
    color: rgba(180,255,57,0.3);
    margin-top: 2px;
    padding-left: 4px;
}

/* Message text wrapper */
.assistant-msg-text {
    line-height: 1.45;
}

/* Chat scrollbar */
.assistant-chat::-webkit-scrollbar {
    width: 3px;
}
.assistant-chat::-webkit-scrollbar-track {
    background: transparent;
}
.assistant-chat::-webkit-scrollbar-thumb {
    background: rgba(180,255,57,0.15);
    border-radius: 3px;
}
.assistant-chat::-webkit-scrollbar-thumb:hover {
    background: rgba(180,255,57,0.3);
}

/* ==========================================
   PHASE 6: MOOD ANALYTICS DASHBOARD
   ========================================== */

.cockpit-analytics-row {
    grid-template-columns: 1fr;
}

.analytics-full-card {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.8rem 0.8rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.06);
}

.analytics-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.01em;
}

.analytics-period-selector {
    display: flex;
    gap: 4px;
    background: rgba(15, 47, 47, 0.5);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid rgba(127, 255, 0, 0.06);
}

.analytics-period-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
}

.analytics-period-btn:hover {
    color: rgba(255,255,255,0.7);
    background: rgba(127, 255, 0, 0.05);
}

.analytics-period-btn.active {
    color: #7fff00;
    background: rgba(127, 255, 0, 0.1);
    font-weight: 600;
    box-shadow: 0 0 8px rgba(127, 255, 0, 0.1);
}

/* Stats bar */
.analytics-stats-bar {
    display: flex;
    gap: 1px;
    background: rgba(127, 255, 0, 0.03);
    border-bottom: 1px solid rgba(127, 255, 0, 0.06);
}

.analytics-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 0.5rem;
    background: rgba(12, 35, 35, 0.5);
}

.analytics-stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e0e6ef;
    line-height: 1.2;
}

.analytics-stat-val small {
    font-size: 0.65em;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}

.analytics-stat-lbl {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Chart grid — 2-row layout: chart+donut on top, calendar+patterns on bottom */
.analytics-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto auto;
    gap: 1px;
    background: rgba(127, 255, 0, 0.03);
    padding: 0;
}

.analytics-cell {
    background: rgba(12, 35, 35, 0.5);
    padding: 1rem 1.2rem;
}

.analytics-cell-chart {
    grid-column: 1;
    grid-row: 1;
    min-height: 200px;
}

.analytics-cell-donut {
    grid-column: 2;
    grid-row: 1;
}

.analytics-cell-calendar {
    grid-column: 1;
    grid-row: 2;
}

.analytics-cell-patterns {
    grid-column: 2;
    grid-row: 2;
}

.analytics-cell h4 {
    margin: 0 0 0.8rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

.analytics-chart-body {
    position: relative;
}

.analytics-loading,
.analytics-empty {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem 1rem;
}

/* SVG charts */
.analytics-svg {
    width: 100%;
    height: auto;
    display: block;
}

.analytics-dot {
    transition: r 0.15s;
    cursor: pointer;
}

.analytics-dot:hover {
    r: 6;
}

/* Donut distribution */
.analytics-donut {
    max-width: 140px;
    margin: 0 auto 0.6rem;
}

.analytics-donut path {
    transition: opacity 0.2s;
    cursor: pointer;
}

.analytics-donut path:hover {
    opacity: 1 !important;
    filter: brightness(1.2);
}

.analytics-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.analytics-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
}

.analytics-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.analytics-legend-emoji {
    font-size: 0.9rem;
}

.analytics-legend-label {
    flex: 1;
}

.analytics-legend-pct {
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    font-family: monospace;
}

/* Heatmap calendar — proper weekly grid */
.analytics-heatmap-grid {
    width: 100%;
}

.heatmap-table-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 3px;
}

.heatmap-header-row {
    margin-bottom: 6px;
}

.heatmap-header-cell {
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 0;
}

.heatmap-day-cell {
    aspect-ratio: 1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    background: rgba(255,255,255,0.04);
}

.heatmap-day-empty {
    background: transparent !important;
    cursor: default;
}

.heatmap-day-cell:not(.heatmap-day-empty):hover {
    transform: scale(1.15);
    z-index: 2;
    box-shadow: 0 0 10px rgba(180,255,57,0.25);
}

.heatmap-day-num {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    font-family: monospace;
}

.heatmap-day-active .heatmap-day-num {
    color: rgba(0,0,0,0.65);
    font-weight: 700;
}

.heatmap-day-event::after {
    content: '📅';
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.5rem;
}

.heatmap-color-legend {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.heatmap-legend-chip {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: rgba(0,0,0,0.7);
    font-weight: 600;
    cursor: help;
}

/* Patterns section */
.analytics-patterns-section {
    margin-bottom: 1rem;
}

.analytics-patterns-section h5 {
    margin: 0 0 0.6rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

/* Day-of-week bars (vertical) */
.analytics-dow-bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 100px;
    padding: 0;
}

.analytics-dow-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.analytics-dow-label {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
    font-weight: 600;
    order: 3;
}

.analytics-dow-bar-bg {
    flex: 1;
    width: 100%;
    max-width: 32px;
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: flex-end;
    order: 1;
}

.analytics-dow-bar {
    width: 100%;
    border-radius: 4px;
    transition: height 0.4s ease;
    min-height: 3px;
}

.analytics-dow-val {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    font-family: monospace;
    font-weight: 500;
    order: 2;
}

/* Time-of-day rows */
.analytics-tod-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.analytics-tod-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytics-tod-icon {
    font-size: 1rem;
    width: 22px;
    text-align: center;
}

.analytics-tod-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    width: 80px;
}

.analytics-tod-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.analytics-tod-bar {
    height: 100%;
    background: linear-gradient(90deg, #b4ff39, #60a5fa);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.analytics-tod-val {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    font-family: monospace;
    width: 32px;
    text-align: right;
}

/* Insights */
.analytics-insights-list {
    margin-top: 0.5rem;
}

.analytics-insight-item {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    padding: 6px 10px;
    background: rgba(180,255,57,0.04);
    border-radius: 6px;
    border-left: 2px solid rgba(180,255,57,0.2);
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Responsive - analytics dashboard */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .analytics-cell-chart,
    .analytics-cell-donut,
    .analytics-cell-calendar,
    .analytics-cell-patterns {
        grid-column: 1;
        grid-row: auto;
    }
    .analytics-header {
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start;
    }
    .analytics-stats-bar {
        flex-wrap: wrap;
    }
    .analytics-stat {
        min-width: calc(33% - 1px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .assistant-card {
        min-height: 220px;
    }
    .assistant-option-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }
    .assistant-bubble {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    .assistant-personality-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .assistant-header {
        gap: 0.5rem;
    }
    .assistant-avatar {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .assistant-name {
        font-size: 0.85rem;
    }
}
