/* ==========================================================================
   SamurAI Core UI & Clinical WOW Engine v2.6
   Architecture: Claude Opus 5.5 + SamurAI Lead Architect
   ========================================================================== */

/* ---------------- 1. ОДЕСЬКИЙ СВІТ (CIRCADIAN AMBIENT LIGHT) ---------------- */
@property --sky-a { syntax: '<color>'; inherits: true; initial-value: #070b16; }
@property --sky-b { syntax: '<color>'; inherits: true; initial-value: #0f1a2e; }
@property --sky-c { syntax: '<color>'; inherits: true; initial-value: #1b2a44; }

:root {
    --ink: #e8ecf3;
    --surface-glass: rgba(16, 20, 32, 0.85);
    transition: --sky-a 3s ease, --sky-b 3s ease, --sky-c 3s ease;
}

:root[data-phase="morning"] {
    --sky-a: #0D1C2E;
    --sky-b: #132840;
    --sky-c: #1A3654;
    --accent-sky: #38BDF8;
}

:root[data-phase="day"] {
    --sky-a: #0B1726;
    --sky-b: #10233A;
    --sky-c: #16304E;
    --accent-sky: #00E5FF;
}

:root[data-phase="evening"] {
    --sky-a: #1A1224;
    --sky-b: #2D1A38;
    --sky-c: #3E2442;
    --accent-sky: #F59E0B;
}

:root[data-phase="night"] {
    --sky-a: #070B14;
    --sky-b: #0B101D;
    --sky-c: #101626;
    --accent-sky: #818CF8;
}

/* ---------------- 2. РИТУАЛ ЕНСО ПРИ ВХОДІ (ZEN BREATHING RITUAL) ---------------- */
.enso-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111726 0%, #070A12 100%);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.enso-overlay.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enso-container {
    position: relative;
    width: min(70vmin, 320px);
    height: min(70vmin, 320px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.enso-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.35));
}

.enso-stroke {
    fill: none;
    stroke: url(#ensoCyanGrad);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: ensoDraw 3.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes ensoDraw {
    0% { stroke-dashoffset: 1000; opacity: 0.2; }
    20% { opacity: 1; }
    85% { stroke-dashoffset: 65; opacity: 1; }
    100% { stroke-dashoffset: 65; opacity: 1; }
}

.enso-center-logo {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
    opacity: 0;
    transform: scale(0.85);
    animation: ensoLogoFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes ensoLogoFadeIn {
    to { opacity: 1; transform: scale(1); }
}

.enso-title {
    margin-top: 24px;
    font-size: 15px;
    font-weight: 600;
    color: #E2E8F0;
    letter-spacing: 0.8px;
    text-align: center;
    opacity: 0;
    animation: ensoTextFadeIn 1s ease 1.8s forwards;
}

.enso-subtitle {
    margin-top: 6px;
    font-size: 12px;
    color: #94A3B8;
    text-align: center;
    opacity: 0;
    animation: ensoTextFadeIn 1s ease 2.1s forwards;
}

@keyframes ensoTextFadeIn {
    to { opacity: 1; }
}

.enso-skip-btn {
    margin-top: 28px;
    padding: 8px 20px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    color: #00E5FF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    animation: ensoTextFadeIn 0.8s ease 1.2s forwards;
}

.enso-skip-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: #00E5FF;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    transform: translateY(-1px);
}

/* ---------------- 3. РАНКОВИЙ КЛІНІЧНИЙ БРИФІНГ (3 КАРТКИ) ---------------- */
.clinical-briefing-wrap {
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(13, 20, 36, 0.88), rgba(20, 30, 52, 0.88));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.clinical-briefing-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.clinical-briefing-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: 0.4px;
}

.clinical-briefing-badge {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: #00E5FF;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.briefing-toggle-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.briefing-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.25);
}

.clinical-briefing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.brief-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    transition: all 0.2s;
}

.brief-card:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.brief-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brief-card-head.today { color: #38BDF8; }
.brief-card-head.overnight { color: #A78BFA; }
.brief-card-head.focus { color: #F59E0B; }

.brief-card-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    line-height: 1.55;
    color: #CBD5E1;
}

.brief-card-list li {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.brief-card-list li::before {
    content: "•";
    color: #64748B;
    font-weight: bold;
}

/* ---------------- 4. PRIVACY BLUR (КЛІНІЧНИЙ ЗАХИСТ ТАЄМНИЦІ) ---------------- */
[data-sensitive] {
    transition: filter 0.25s ease;
}

html.is-private [data-sensitive],
body.is-private [data-sensitive] {
    filter: blur(14px) !important;
    transition: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

.privacy-floating-alert {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #1E1B4B, #312E81);
    border: 1px solid #6366F1;
    color: #EEF2FF;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.4);
    z-index: 10000;
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: fadeInSlide 0.3s ease;
}

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

html.is-private .privacy-floating-alert,
body.is-private .privacy-floating-alert {
    display: flex;
}

/* ---------------- 5. SAMURAI FOUNDER MODAL (БЕЗ ШОЛОМА) ---------------- */
.samurai-founder-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalOverlayFade 0.25s ease-out;
}

@keyframes modalOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.samurai-founder-card {
    background: linear-gradient(145deg, #0B111E, #131B2C);
    border: 1.5px solid rgba(0, 229, 255, 0.45);
    border-radius: 24px;
    max-width: 540px;
    width: 100%;
    padding: 36px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 255, 0.2);
    position: relative;
    text-align: center;
    color: #F8FAFC;
}

.samurai-founder-card::before {
    content: "";
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00E5FF, transparent);
    box-shadow: 0 0 15px #00E5FF;
}

.founder-close-btn {
    position: absolute;
    top: 18px; right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94A3B8;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.founder-close-btn:hover {
    background: rgba(0, 229, 255, 0.2);
    color: #00E5FF;
    border-color: #00E5FF;
    transform: rotate(90deg);
}

.founder-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 18px;
    border-radius: 20px;
    padding: 4px;
    background: linear-gradient(135deg, #00E5FF, #38BDF8, #818CF8);
    box-shadow: 0 0 35px rgba(0, 229, 255, 0.45);
}

.founder-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: cover;
    background: #0B111E;
    display: block;
}

.founder-badge-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #00E5FF;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
}

.founder-name {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}

.founder-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #CBD5E1;
    margin: 0 0 20px;
}

.founder-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: left;
    margin-bottom: 24px;
}

.founder-spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 11.5px;
}

.founder-spec-label {
    color: #64748B;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.founder-spec-val {
    color: #E2E8F0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.founder-action-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(56, 189, 248, 0.3));
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.founder-action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.3), rgba(56, 189, 248, 0.45));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}


/* ==========================================================================
   CLINICAL PSYCHIATRIC ASSISTANT & MULTI-AI CONSILIUM (ICD-11 & DSM-5)
   ========================================================================== */

.psych-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    height: calc(100vh - 120px);
    min-height: 680px;
}

@media (max-width: 1024px) {
    .psych-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.psych-sidebar {
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.psych-sidebar-header {
    margin-bottom: 12px;
}

.psych-form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 7px 10px;
    color: #F8FAFC;
    font-size: 12px;
    outline: none;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.psych-form-control:focus {
    border-color: #00E5FF;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.psych-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 6px 0 10px;
}

.psych-filter-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.psych-filter-tag:hover {
    color: #FFF;
    border-color: rgba(0, 229, 255, 0.4);
}

.psych-filter-tag.active {
    background: rgba(0, 229, 255, 0.18);
    border-color: #00E5FF;
    color: #00E5FF;
}

.psych-dialogs-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.psych-dialogs-scroll::-webkit-scrollbar {
    width: 4px;
}

.psych-dialogs-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.2);
    border-radius: 4px;
}

.psych-case-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 9px 11px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.psych-case-item:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-1px);
}

.psych-case-item.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00E5FF;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.psych-micro-tag {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 4px;
    display: inline-block;
}

.psych-del-btn {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.psych-del-btn:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Chat Area */
.psych-workstation {
    background: rgba(13, 20, 36, 0.85);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.psych-workstation-header {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.psych-stream-area {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.psych-stream-area::-webkit-scrollbar {
    width: 6px;
}

.psych-stream-area::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.25);
    border-radius: 6px;
}

/* Therapist Speech Bubble */
.psych-therapist-bubble {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 10px;
    margin-left: 15%;
}

.psych-therapist-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 14px 4px 14px 14px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    max-width: 85%;
}

.psych-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(245, 158, 11, 0.5);
    flex-shrink: 0;
}

/* Consilium Card */
.psych-consilium-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(11, 19, 34, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 229, 255, 0.04);
    position: relative;
    margin-right: 5%;
}

.psych-consilium-card::before {
    content: "";
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00E5FF, transparent);
}

.psych-hypo-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
}

.psych-hypo-pill.prob-high {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
}

.psych-hypo-pill.prob-med {
    border-color: rgba(234, 179, 8, 0.4);
    background: rgba(234, 179, 8, 0.06);
}

.psych-red-flags-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    color: #FCA5A5;
    margin: 8px 0;
}

.psych-green-flag-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: #6EE7B7;
    margin: 6px 0;
}

/* Experts Tabs inside Card */
.psych-experts-tabs-wrap {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.psych-tabs-header {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    overflow-x: auto;
}

.psych-tab-btn {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #94A3B8;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.psych-tab-btn:hover {
    color: #FFF;
    background: rgba(255, 255, 255, 0.04);
}

.psych-tab-btn.active {
    color: #00E5FF;
    border-bottom-color: #00E5FF;
    background: rgba(0, 229, 255, 0.08);
}

.psych-tabs-content {
    padding: 14px 16px;
}

/* Materials Grid */
.psych-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.psych-mat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    padding: 9px 11px;
}

.psych-mat-btn {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.psych-mat-btn:hover {
    background: #38BDF8;
    color: #000;
}

/* Quick Answer Chip */
.psych-chip-btn {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #E2E8F0;
    border-radius: 14px;
    font-size: 11px;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.psych-chip-btn:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: #06B6D4;
    color: #FFF;
    transform: translateY(-1px);
}

/* Starter Buttons */
.psych-starter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #E2E8F0;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.psych-starter-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00E5FF;
    color: #FFF;
}

.psych-welcome-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(0, 229, 255, 0.25);
    border-radius: 14px;
    padding: 24px;
    margin: 20px auto;
    max-width: 680px;
}

.psych-loading-box {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    animation: psychPulse 1.8s infinite;
}

@keyframes psychPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.008); }
}

.psych-pulsing-icon {
    font-size: 24px;
    animation: psychSpin 2s infinite ease-in-out;
}

@keyframes psychSpin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(6deg); }
}

/* Input Bar */
.psych-input-wrap {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.psych-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 10px 14px;
    color: #F8FAFC;
    font-size: 13px;
    line-height: 1.45;
    resize: none;
    outline: none;
    height: 72px;
    transition: all 0.2s;
}

.psych-textarea:focus {
    border-color: #00E5FF;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}
