/* ===========================
   SCREENS.CSS – All App Screen Styles
   Emora Mental Wellness App
   =========================== */

/* ─────────────────────────────────
   SHARED SCREEN BASE
───────────────────────────────── */
.screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.screen-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 14px;
    overflow-y: auto;
}

.screen-header {
    padding: 12px 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--clr-surface-2);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: rgba(108, 60, 225, 0.2);
    border-color: var(--clr-primary);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.screen-title {
    font-size: 1.05rem;
    font-weight: 700;
}

/* ─────────────────────────────────
   1. SPLASH SCREEN
───────────────────────────────── */
.screen-splash {
    background: var(--clr-bg);
    justify-content: center;
    align-items: center;
    gap: 0;
}

.splash-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/meditation_bg.png') center/cover no-repeat;
    opacity: 0.12;
}

.splash-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(108, 60, 225, 0.4) 0%, transparent 70%);
}

.splash-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: splitFadeIn 1s ease 0.3s both;
}

@keyframes splitFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.splash-logo-ring {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-ring::before,
.splash-logo-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(108, 60, 225, 0.3);
    animation: ripple 2.5s ease-out infinite;
}

.splash-logo-ring::before {
    width: 160px;
    height: 160px;
    animation-delay: 0s;
}

.splash-logo-ring::after {
    width: 200px;
    height: 200px;
    animation-delay: 0.8s;
}

.splash-logo {
    width: 110px;
    height: 110px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(108, 60, 225, 0.6);
}

.splash-name {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-tagline {
    font-size: 0.88rem;
    color: var(--clr-text-secondary);
    text-align: center;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.splash-loader {
    margin-top: 40px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.splash-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-primary);
    animation: bounce 1s ease-in-out infinite;
}

.splash-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: mix(var(--clr-primary), var(--clr-secondary));
}

.splash-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--clr-secondary);
}

/* ─────────────────────────────────
   2. ONBOARDING
───────────────────────────────── */
.screen-onboarding {
    background: var(--clr-bg);
}

.onboarding-slides {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

.onboarding-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    gap: 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.onboarding-illustration {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.onboarding-illustration::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.onboarding-title {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.onboarding-desc {
    font-size: 0.93rem;
    color: var(--clr-text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.onboarding-footer {
    padding: 20px 28px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.onboarding-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.onboarding-dot {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.onboarding-dot.active {
    width: 28px;
    background: var(--clr-gradient);
}

.onboarding-dot:not(.active) {
    width: 8px;
}

/* ─────────────────────────────────
   3. LOGIN / SIGN UP
───────────────────────────────── */
.screen-login {
    background: var(--clr-bg);
    justify-content: flex-start;
}

.login-hero {
    height: 180px;
    position: relative;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.25) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

.login-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 0 24px rgba(108, 60, 225, 0.5);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-hero-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-tabs {
    display: flex;
    margin: 0 20px;
    background: var(--clr-surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--clr-border);
    padding: 4px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    color: var(--clr-text-secondary);
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--clr-gradient);
    color: white;
    box-shadow: 0 2px 12px rgba(108, 60, 225, 0.4);
}

.auth-form {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--clr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    color: white;
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.2);
    background: var(--clr-surface-2);
}

.form-input::placeholder {
    color: var(--clr-text-muted);
}

.form-footer {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.divider-text {
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--clr-border);
}

.divider-text::before {
    right: 56%;
}

.divider-text::after {
    left: 56%;
}

/* ─────────────────────────────────
   4. HOME DASHBOARD
───────────────────────────────── */
.screen-home {
    background: var(--clr-bg);
}

.home-header {
    padding: 12px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-greeting {
    font-size: 0.8rem;
    color: var(--clr-text-secondary);
    font-weight: 500;
}

.home-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-top: 1px;
}

.home-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--clr-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(108, 60, 225, 0.4);
}

.home-wellness-card {
    margin: 14px 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.15), rgba(0, 194, 255, 0.1));
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.home-wellness-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.wellness-ring-container {
    position: relative;
    flex-shrink: 0;
}

.wellness-ring {
    width: 72px;
    height: 72px;
}

.wellness-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 800;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wellness-info {
    flex: 1;
}

.wellness-label {
    font-size: 0.75rem;
    color: var(--clr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.wellness-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 3px;
}

.wellness-subtitle {
    font-size: 0.8rem;
    color: var(--clr-text-secondary);
    margin-top: 4px;
}

.wellness-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 8px;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px;
}

.feature-card {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.12;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 60, 225, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 0.2;
    transform: scale(1.3);
}

.feature-card.assessment::before {
    background: var(--clr-primary);
}

.feature-card.meditation::before {
    background: #00C2FF;
}

.feature-card.breathing::before {
    background: #00E676;
}

.feature-card.mindfulness::before {
    background: #FFB300;
}

.feature-card.game::before {
    background: #FF6EC7;
}

.feature-card.profile::before {
    background: #8B5CF6;
}

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

.feature-name {
    font-size: 0.88rem;
    font-weight: 700;
}

.feature-desc {
    font-size: 0.72rem;
    color: var(--clr-text-secondary);
    line-height: 1.4;
}

.feature-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--clr-gradient);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-tip-card {
    margin: 0 20px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.08), rgba(0, 194, 255, 0.06));
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-lg);
}

.tip-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--clr-success);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tip-text {
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    margin-top: 4px;
    line-height: 1.5;
    font-style: italic;
}

/* ─────────────────────────────────
   5. ASSESSMENT INTRO
───────────────────────────────── */
.screen-assessment-intro {
    background: var(--clr-bg);
}

.assessment-hero {
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.2) 0%, transparent 100%);
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.assessment-icon {
    font-size: 3.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.assessment-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.assessment-hero-sub {
    font-size: 0.88rem;
    color: var(--clr-text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

.assessment-stats {
    display: flex;
    gap: 0;
    margin: 0 20px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 16px 10px;
    border-right: 1px solid var(--clr-border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.68rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

.info-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-card-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-card-text {
    font-size: 0.82rem;
    color: var(--clr-text-secondary);
    line-height: 1.5;
}

.info-card-text strong {
    color: white;
}

.disclaimer {
    margin: 0 20px;
    padding: 12px 14px;
    background: rgba(255, 76, 106, 0.08);
    border: 1px solid rgba(255, 76, 106, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: rgba(255, 76, 106, 0.9);
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

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

.assessment-start-footer {
    padding: 12px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ─────────────────────────────────
   6. GROUP BRIDGE / TRANSITION
───────────────────────────────── */
.screen-bridge {
    background: var(--clr-bg);
    align-items: center;
    justify-content: center;
}

.bridge-content {
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bridge-score-ring {
    position: relative;
    width: 140px;
    height: 140px;
}

.bridge-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bridge-score-num {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bridge-score-label {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
}

.bridge-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.bridge-desc {
    font-size: 0.9rem;
    color: var(--clr-text-secondary);
    line-height: 1.6;
}

.bridge-next-pill {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(108, 60, 225, 0.15);
    border: 1px solid rgba(108, 60, 225, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-primary-light);
}

/* ─────────────────────────────────
   7. QUESTION SCREEN
───────────────────────────────── */
.screen-question {
    background: var(--clr-bg);
}

.q-header {
    padding: 10px 20px;
    flex-shrink: 0;
}

.q-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--clr-text-muted);
    margin-bottom: 10px;
}

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

.q-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.q-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--clr-gradient);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: progressFill 0.4s ease;
}

.q-counter {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    text-align: right;
    margin-top: 6px;
    font-weight: 600;
}

.q-body {
    flex: 1;
    padding: 12px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.q-number {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.q-text {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    color: white;
}

.q-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.q-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.q-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--clr-gradient);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.q-option:hover {
    border-color: rgba(108, 60, 225, 0.5);
    transform: translateX(4px);
}

.q-option.selected {
    border-color: var(--clr-primary);
    background: rgba(108, 60, 225, 0.15);
    box-shadow: 0 0 0 1px rgba(108, 60, 225, 0.3);
}

.q-option.selected .q-opt-emoji {
    transform: scale(1.15);
}

.q-opt-emoji {
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.q-opt-info {
    flex: 1;
}

.q-opt-label {
    font-size: 0.92rem;
    font-weight: 600;
}

.q-opt-value {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    margin-top: 1px;
}

.q-opt-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.q-option.selected .q-opt-check {
    background: var(--clr-gradient);
    border-color: transparent;
}

.q-footer {
    padding: 10px 20px 14px;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.q-next-btn {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-full);
    background: var(--clr-gradient);
    border: none;
    color: white;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.4;
    pointer-events: none;
}

.q-next-btn.active {
    opacity: 1;
    pointer-events: all;
    box-shadow: 0 4px 16px rgba(108, 60, 225, 0.4);
}

.q-next-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 60, 225, 0.5);
}

/* ─────────────────────────────────
   8. CRISIS SCREEN
───────────────────────────────── */
.screen-crisis {
    background: linear-gradient(180deg, rgba(255, 23, 68, 0.12) 0%, var(--clr-bg) 50%);
}

.crisis-header {
    padding: 24px 24px 0;
    text-align: center;
}

.crisis-pulse-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 23, 68, 0.15);
    border: 2px solid rgba(255, 23, 68, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

.crisis-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #FF4C6A;
}

.crisis-subtitle {
    font-size: 0.9rem;
    color: var(--clr-text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

.crisis-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crisis-message {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 76, 106, 0.08);
    border: 1px solid rgba(255, 76, 106, 0.2);
    font-size: 0.88rem;
    color: var(--clr-text-secondary);
    line-height: 1.6;
    font-style: italic;
}

.crisis-message strong {
    color: white;
    font-style: normal;
}

.helpline-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.helpline-card:hover {
    border-color: rgba(0, 230, 118, 0.4);
    background: rgba(0, 230, 118, 0.05);
}

.helpline-icon {
    font-size: 2rem;
}

.helpline-info {
    flex: 1;
}

.helpline-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.helpline-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--clr-success);
    margin-top: 2px;
}

.helpline-hours {
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    margin-top: 2px;
}

.helpline-call-btn {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    background: rgba(0, 230, 118, 0.15);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--clr-success);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.crisis-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crisis-step {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.crisis-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 76, 106, 0.15);
    border: 1px solid rgba(255, 76, 106, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-danger);
    flex-shrink: 0;
}

.crisis-footer {
    padding: 12px 20px 16px;
}

/* ─────────────────────────────────
   9. RESULTS SCREEN
───────────────────────────────── */
.screen-result {
    background: var(--clr-bg);
}

.result-header {
    padding: 20px 20px 0;
    text-align: center;
}

.result-ring-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
}

.result-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.result-score-num {
    font-size: 2.4rem;
    font-weight: 900;
}

.result-score-max {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.result-level {
    font-size: 2rem;
    margin-bottom: 4px;
}

.result-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.result-desc {
    font-size: 0.88rem;
    color: var(--clr-text-secondary);
    margin-top: 8px;
    line-height: 1.6;
    padding: 0 16px;
}

.result-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-rec-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-rec-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-rec-text {
    font-size: 0.88rem;
    line-height: 1.6;
}

.result-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-steps-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.result-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    font-size: 0.83rem;
}

.result-step-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.result-footer {
    padding: 12px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-score-breakdown {
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    display: flex;
    gap: 0;
}

.score-part {
    flex: 1;
    text-align: center;
    border-right: 1px solid var(--clr-border);
}

.score-part:last-child {
    border-right: none;
}

.score-part-val {
    font-size: 1.2rem;
    font-weight: 800;
}

.score-part-lbl {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ─────────────────────────────────
   10. MEDITATION SCREEN
───────────────────────────────── */
.screen-meditation {
    background: var(--clr-bg);
}

.meditation-hero {
    position: relative;
    height: 200px;
    flex-shrink: 0;
    background: url('../assets/meditation_bg.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meditation-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 11, 26, 0.4) 0%, rgba(7, 11, 26, 0.9) 100%);
}

.meditation-hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.meditation-hero-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
}

.meditation-hero-text p {
    font-size: 0.85rem;
    color: var(--clr-text-secondary);
    margin-top: 4px;
}

.meditation-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.timer-durations {
    display: flex;
    gap: 8px;
}

.duration-btn {
    flex: 1;
    padding: 10px 6px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    color: white;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
}

.duration-btn.active {
    border-color: var(--clr-primary);
    background: rgba(108, 60, 225, 0.15);
    color: var(--clr-primary-light);
}

.meditation-timer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.timer-ring {
    position: relative;
    width: 150px;
    height: 150px;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.timer-num {
    font-size: 2rem;
    font-weight: 800;
}

.timer-label {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meditation-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.med-ctrl-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--clr-surface-2);
    border: 1.5px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.med-ctrl-btn:hover {
    border-color: var(--clr-primary);
    background: rgba(108, 60, 225, 0.2);
}

.med-ctrl-btn.primary {
    width: 68px;
    height: 68px;
    font-size: 1.6rem;
    background: var(--clr-gradient);
    border: none;
    box-shadow: 0 4px 20px rgba(108, 60, 225, 0.5);
}

.med-ctrl-btn.primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(108, 60, 225, 0.65);
}

.meditation-sessions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.session-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.session-card:hover {
    border-color: rgba(108, 60, 225, 0.4);
    background: rgba(108, 60, 225, 0.08);
}

.session-icon {
    font-size: 1.5rem;
}

.session-info {
    flex: 1;
}

.session-name {
    font-size: 0.88rem;
    font-weight: 600;
}

.session-detail {
    font-size: 0.72rem;
    color: var(--clr-text-muted);
    margin-top: 2px;
}

.session-duration {
    font-size: 0.75rem;
    color: var(--clr-primary-light);
    font-weight: 600;
}

/* ─────────────────────────────────
   11. BREATHING SCREEN
───────────────────────────────── */
.screen-breathing {
    background: radial-gradient(ellipse at center, rgba(0, 230, 118, 0.07) 0%, var(--clr-bg) 70%);
    align-items: center;
}

.breathing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 24px;
}

.breathing-instruction {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    min-height: 36px;
    color: rgba(0, 230, 118, 0.9);
    transition: all 0.5s ease;
}

.breathing-circle-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breathing-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.15) 0%, rgba(0, 194, 255, 0.08) 60%, transparent 100%);
    border: 2px solid rgba(0, 230, 118, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1s ease-in-out, border-color 0.5s ease;
    position: relative;
}

.breathing-circle::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.1);
    transition: all 1s ease-in-out;
}

.breathing-circle::after {
    content: '';
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 230, 118, 0.05);
    transition: all 1s ease-in-out;
}

.breathing-circle.inhale {
    transform: scale(1.3);
    border-color: rgba(0, 230, 118, 0.6);
}

.breathing-circle.hold {
    transform: scale(1.3);
    border-color: rgba(0, 194, 255, 0.6);
}

.breathing-circle.exhale {
    transform: scale(1);
    border-color: rgba(108, 60, 225, 0.4);
}

.breathing-count {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--clr-success);
}

.breathing-technique {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    text-align: center;
    line-height: 1.6;
}

.breathing-cycle {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    font-size: 0.7rem;
    text-align: center;
}

.cycle-step.active {
    border-color: var(--clr-success);
    background: rgba(0, 230, 118, 0.08);
}

.cycle-step-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--clr-success);
}

.cycle-step-label {
    color: var(--clr-text-muted);
}

.breathing-start-btn {
    width: 100%;
    max-width: 280px;
}

/* ─────────────────────────────────
   12. MINDFULNESS SCREEN
───────────────────────────────── */
.screen-mindfulness {
    background: var(--clr-bg);
}

.mindfulness-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.affirmation-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(0, 194, 255, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.affirmation-quote {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.6;
    font-style: italic;
}

.affirmation-author {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

.affirmation-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.aff-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.aff-nav-btn:hover {
    background: rgba(108, 60, 225, 0.2);
    border-color: var(--clr-primary);
}

.journal-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.journal-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.journal-prompt {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
}

.journal-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--clr-border);
    color: white;
    font-family: var(--font);
    font-size: 0.88rem;
    resize: none;
    outline: none;
    min-height: 80px;
    transition: border-color var(--transition-fast);
    line-height: 1.5;
}

.journal-textarea:focus {
    border-color: var(--clr-primary);
}

.journal-textarea::placeholder {
    color: var(--clr-text-muted);
}

.gratitude-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gratitude-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
}

.gratitude-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--clr-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.gratitude-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-family: var(--font);
    font-size: 0.88rem;
}

.gratitude-input::placeholder {
    color: var(--clr-text-muted);
}

/* ─────────────────────────────────
   13. CALM GAME SCREEN
───────────────────────────────── */
.screen-game {
    background: radial-gradient(ellipse at center, rgba(255, 110, 199, 0.08) 0%, var(--clr-bg) 70%);
}

.game-header-bar {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.game-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.game-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
}

.game-stat-lbl {
    font-size: 0.62rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.game-score-val {
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-canvas-wrap {
    flex: 1;
    margin: 0 12px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(7, 11, 26, 0.85);
    backdrop-filter: blur(12px);
}

.game-overlay-title {
    font-size: 1.6rem;
    font-weight: 800;
}

.game-overlay-sub {
    font-size: 0.9rem;
    color: var(--clr-text-secondary);
    text-align: center;
}

.game-footer {
    padding: 10px 20px 12px;
    flex-shrink: 0;
}

/* ─────────────────────────────────
   14. PROFILE SCREEN
───────────────────────────────── */
.screen-profile {
    background: var(--clr-bg);
}

.profile-hero {
    padding: 20px 20px 16px;
    background: linear-gradient(180deg, rgba(108, 60, 225, 0.15) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--clr-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 0 0 4px rgba(108, 60, 225, 0.25);
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 800;
}

.profile-email {
    font-size: 0.82rem;
    color: var(--clr-text-secondary);
}

.profile-stats-row {
    display: flex;
    gap: 0;
    margin: 0 20px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.p-stat {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid var(--clr-border);
}

.p-stat:last-child {
    border-right: none;
}

.p-stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--clr-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.p-stat-lbl {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.profile-menu {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-menu-item:hover {
    border-color: rgba(108, 60, 225, 0.4);
    background: rgba(108, 60, 225, 0.06);
}

.profile-menu-icon {
    font-size: 1.2rem;
}

.profile-menu-label {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-menu-arrow {
    color: var(--clr-text-muted);
    font-size: 1rem;
}

.profile-logout {
    margin: 8px 20px 16px;
    padding: 14px;
    border-radius: var(--radius-full);
    text-align: center;
    border: 1.5px solid rgba(255, 76, 106, 0.3);
    color: var(--clr-danger);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    background: rgba(255, 76, 106, 0.06);
    transition: all var(--transition-fast);
}

.profile-logout:hover {
    background: rgba(255, 76, 106, 0.12);
    border-color: var(--clr-danger);
}

/* ─────────────────────────────────
   BOTTOM NAV
───────────────────────────────── */
.bottom-nav {
    display: flex;
    padding: 8px 8px 4px;
    border-top: 1px solid var(--clr-border);
    background: rgba(7, 11, 26, 0.9);
    backdrop-filter: blur(20px);
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-label {
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--clr-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.nav-item.active .nav-label {
    color: var(--clr-primary-light);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 6px rgba(108, 60, 225, 0.8));
}

/* iPad overrides */
.device-frame.ipad .features-grid {
    grid-template-columns: 1fr 1fr 1fr;
}

.device-frame.ipad .screen-body {
    padding: 20px 28px 28px;
}

.device-frame.ipad .q-text {
    font-size: 1.3rem;
}

.device-frame.ipad .assessment-hero {
    padding: 36px 32px 24px;
}

.device-frame.ipad .q-options {
    gap: 12px;
}

.device-frame.ipad .home-name {
    font-size: 1.6rem;
}

/* ═══════════════════════════════════════
   BOTTOM NAVIGATION BAR
═══════════════════════════════════════ */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(7, 11, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding: 0 4px 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 10px 4px;
    border-radius: 14px;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.2s ease;
    min-width: 48px;
    flex: 1;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.nav-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.02em;
    transition: all 0.2s;
}

.nav-item.active .nav-label {
    background: linear-gradient(135deg, #6C3CE1, #00C2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 6px rgba(108, 60, 225, 0.8));
}

.nav-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C3CE1, #00C2FF);
    margin-top: 1px;
    opacity: 0;
    transition: opacity 0.2s;
}

.nav-item.active .nav-dot {
    opacity: 1;
}

/* Padding for screens with bottom nav */
.has-bottom-nav .screen-body,
.has-bottom-nav .mood-body,
.has-bottom-nav .insights-body,
.has-bottom-nav .chat-messages {
    padding-bottom: 90px;
}

/* ═══════════════════════════════════════
   MOOD TRACKER SCREEN
═══════════════════════════════════════ */
.screen-mood {
    background: var(--clr-bg);
}

.mood-body {
    gap: 12px;
}

.mood-streak {
    margin-left: auto;
    background: rgba(255, 87, 34, 0.15);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #FF9800;
}

.mood-today-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
}

.mood-log-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.12), rgba(0, 194, 255, 0.08));
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    font-weight: 600;
}

.mood-quick-select {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.mood-quick-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-quick-btn:hover {
    transform: scale(1.15);
}

.mood-stats-row {
    display: flex;
    gap: 10px;
}

.mood-stat {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
}

.mood-stat-val {
    font-size: 1.2rem;
    font-weight: 800;
}

.mood-stat-lbl {
    font-size: 0.65rem;
    color: var(--clr-text-muted);
    margin-top: 2px;
    letter-spacing: 0.04em;
}

/* Calendar */
.mood-calendar {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 14px;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface-2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-month-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.cal-daynames {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cal-dayname {
    text-align: center;
    font-size: 0.6rem;
    color: var(--clr-text-muted);
    padding: 4px 0;
    font-weight: 600;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.cal-day {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.18s;
    font-size: 0.65rem;
}

.cal-day:not(.empty):hover {
    background: rgba(108, 60, 225, 0.15);
    border-color: rgba(108, 60, 225, 0.3);
}

.cal-day.empty {
    cursor: default;
}

.cal-day.today {
    border-color: rgba(108, 60, 225, 0.5) !important;
}

.today-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #6C3CE1;
    position: absolute;
    top: 3px;
}

.cal-day-num {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.62rem;
}

.cal-day-emoji {
    font-size: 0.7rem;
    line-height: 1;
}

.mood-legend {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--clr-text-muted);
}

/* ═══════════════════════════════════════
   INSIGHTS SCREEN
═══════════════════════════════════════ */
.screen-insights {
    background: var(--clr-bg);
}

.insights-body {
    gap: 14px;
}

.insights-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.insights-rings-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 10px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
}

.insights-ring-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.ring-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -54%);
    font-size: 0.78rem;
    font-weight: 800;
}

.ring-label {
    font-size: 0.6rem;
    color: var(--clr-text-muted);
    font-weight: 600;
}

.insights-form-badge {
    text-align: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: center;
}

.form-2A {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00E676;
}

.form-2B {
    background: rgba(255, 214, 0, 0.12);
    border: 1px solid rgba(255, 214, 0, 0.3);
    color: #FFD600;
}

.form-2C {
    background: rgba(255, 87, 34, 0.12);
    border: 1px solid rgba(255, 87, 34, 0.3);
    color: #FF5722;
}

.insights-chart-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.insights-chart-card canvas {
    max-width: 100%;
}

.chart-empty-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    text-align: center;
    padding: 20px;
    background: rgba(7, 11, 26, 0.6);
    backdrop-filter: blur(4px);
}

.history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.history-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-form-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.history-date {
    font-size: 0.82rem;
    font-weight: 600;
}

.history-form {
    font-size: 0.68rem;
    color: var(--clr-text-muted);
    margin-top: 1px;
}

.history-score-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.score-chip {
    padding: 3px 7px;
    background: var(--clr-surface-2);
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    padding: 28px 20px;
    color: var(--clr-text-muted);
    font-size: 0.84rem;
    background: var(--clr-surface);
    border: 1px dashed var(--clr-border);
    border-radius: var(--radius-lg);
    line-height: 1.8;
}

.insights-infographic {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.15), rgba(0, 194, 255, 0.08));
    border: 1px solid rgba(108, 60, 225, 0.25);
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.insights-infographic::before {
    content: '💡';
    position: absolute;
    font-size: 6rem;
    opacity: 0.04;
    right: -10px;
    top: -10px;
    line-height: 1;
}

.infographic-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #00C2FF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.infographic-fact {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--clr-text-secondary);
    transition: opacity 0.35s ease;
    min-height: 60px;
}

.infographic-dots {
    margin-top: 10px;
    display: flex;
    gap: 4px;
}

/* ═══════════════════════════════════════
   AI CHAT SCREEN
═══════════════════════════════════════ */
.screen-chat {
    background: var(--clr-bg);
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 12px 16px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 11, 26, 0.8);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    z-index: 10;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.4), rgba(0, 194, 255, 0.3));
    border: 1.5px solid rgba(108, 60, 225, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-header-info {
    flex: 1;
}

.chat-name {
    font-size: 0.92rem;
    font-weight: 700;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--clr-text-muted);
    margin-top: 1px;
}

.chat-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00E676;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

.chat-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    border-radius: 8px;
    color: var(--clr-text-muted);
    transition: background 0.2s;
}

.chat-clear-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
}

.chat-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: fadeUp 0.3s ease both;
}

.chat-bubble-row.user {
    flex-direction: row-reverse;
}

.chat-bubble-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 80%;
}

.chat-ai-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.4), rgba(0, 194, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-bubble {
    padding: 11px 14px;
    border-radius: 18px;
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 80%;
    word-break: break-word;
}

.chat-bubble.ai {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-bottom-left-radius: 6px;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #6C3CE1, #3B82F6);
    border-bottom-right-radius: 6px;
    margin-left: auto;
}

.chat-time {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    margin-top: 4px;
}

.chat-bubble.user .chat-time {
    color: rgba(255, 255, 255, 0.5);
}

/* Typing indicator */
.chat-bubble.typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 14px 18px;
}

.chat-bubble.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: typingBounce 1s ease-in-out infinite;
}

.chat-bubble.typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-bubble.typing span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0)
    }

    30% {
        transform: translateY(-6px)
    }
}

.chat-action-btn {
    align-self: flex-start;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.3), rgba(0, 194, 255, 0.2));
    border: 1px solid rgba(108, 60, 225, 0.5);
    border-radius: 16px;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-action-btn:hover {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.5), rgba(0, 194, 255, 0.35));
}

.chat-input-area {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 12px 12px;
    background: rgba(7, 11, 26, 0.9);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    z-index: 10;
}

.chat-suggestions {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.chat-suggestions::-webkit-scrollbar {
    display: none;
}

.chat-suggest-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font);
}

.chat-suggest-btn:hover {
    background: rgba(108, 60, 225, 0.15);
    border-color: rgba(108, 60, 225, 0.4);
}

.chat-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-textarea {
    flex: 1;
    padding: 10px 14px;
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border);
    border-radius: 20px;
    color: white;
    font-family: var(--font);
    font-size: 0.86rem;
    outline: none;
    resize: none;
    max-height: 80px;
    transition: border-color 0.2s;
    line-height: 1.4;
}

.chat-textarea:focus {
    border-color: var(--clr-primary);
}

.chat-textarea::placeholder {
    color: var(--clr-text-muted);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C3CE1, #00C2FF);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(108, 60, 225, 0.5);
}