:root {
    /* Apple-Biophilic Essence: 2026 Digital Organic System */
    --bloom-warm: #fff9e6;
    --bloom-green: rgba(76, 175, 80, 0.12);
    --bloom-blue: rgba(33, 150, 243, 0.08);

    --primary-leaf: #2d5a27;
    --primary-autumn: #d97706;
    /* Autumn Amber for active state */
    --primary-glow: rgba(45, 90, 39, 0.1);
    --primary-gradient: linear-gradient(135deg, #2d5a27 0%, #4caf50 100%);

    --bg-base: #fbfcfb;
    --text-main: #1d1d1f;
    --text-muted: #6e6e73;
    --text-light: #aeaeb2;

    /* Liquid Glass 3.0: High Refraction */
    --glass-surface: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(40px) saturate(200%) brightness(1.05);

    /* Organic Geometry */
    --leaf-radius: 40% 60% 40% 60% / 60% 40% 60% 40%;
    --radius-heavy: 38px;
    --radius-pill: 100px;

    /* Atmosphere Shadows */
    --shadow-subtle: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --shadow-focus: 0 0 0 4px rgba(45, 90, 39, 0.12);

    --growth-scale: 0;
    /* JS Driven: 0 to 1 */
    --transition-organic: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Atmospheric Atmospheric Layers */
.atmosphere-base {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, #ffffff 0%, #f4f7f4 100%);
    z-index: -3;
}

.bloom-container {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    filter: blur(120px);
    opacity: 0.8;
}

.bloom {
    position: absolute;
    border-radius: 50%;
    animation: sunlight-drift 20s infinite ease-in-out;
}

@keyframes sunlight-drift {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.6;
    }

    33% {
        transform: scale(1.1) translate(20px, -20px);
        opacity: 0.8;
    }

    66% {
        transform: scale(0.95) translate(-10px, 30px);
        opacity: 0.5;
    }
}

.sunlight-primary {
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    background: var(--bloom-warm);
    opacity: 0.6;
    animation-delay: 0s;
}

.garden-refraction {
    bottom: -10%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: var(--bloom-green);
    animation-delay: -5s;
}

.sky-tint {
    top: 20%;
    left: 10%;
    width: 30vw;
    height: 30vw;
    background: var(--bloom-blue);
    animation-delay: -12s;
}

/* App Layout */
/* App Layout: Airy & Expansive */
.app-container {
    display: flex;
    max-width: 1800px;
    margin: 100px auto;
    /* More vertical breath */
    gap: 120px;
    /* True vista spacing */
    padding: 0 100px;
    position: relative;
    z-index: 10;
}

/* Sidebar: Architectural Glass */
/* Sidebar: Architectural Glass */
.sidebar {
    width: 360px;
    /* Spaced out geometry */
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-heavy);
    /* Tightened for efficiency while keeping internal air */
    padding: 32px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-subtle);
    height: calc(100vh - 160px);
    position: sticky;
    top: 40px;
    overflow: hidden;
    /* Container clips, Nav scrolls */
}

/* Scrollable area for history */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    margin-right: -20px;
    /* Hide scrollbar visual if desired, or keep standard */
    padding-right: 20px;
}

.sidebar-header .logo {
    font-size: 2.8rem;
    letter-spacing: -1.2px;
    color: var(--primary-leaf);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Explicit left alignment */
    gap: 16px;
    padding-left: 4px;
    /* Subtle optical balance ("center left") */
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-leaf);
    transition: var(--transition-organic);
}

/* Animate logo on hover */
.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

/* Logo remains green even during research per user preference */
.active-research .logo-icon {
    color: var(--primary-leaf);
}

/* Logo remains green even during research per user preference */


.nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin: 0 0 16px 12px;
}

.history-item {
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-organic);
    cursor: pointer;
    margin-bottom: 8px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-item.editing {
    gap: 6px;
}

.seed-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    /* Enforce size */
    flex-shrink: 0;
    /* Prevent squashing */
    color: var(--primary-leaf);
    opacity: 0.8;
    /* Increased opacity for visibility */
}

.history-item:hover .seed-icon {
    opacity: 1;
    transform: scale(1.1);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-leaf);
    border-color: var(--glass-border);
    transform: translateX(4px);
}

.history-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    /* text-overflow support */
}

.history-item.editing .history-item-content {
    gap: 6px;
}

.rename-input {
    width: 100%;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-organic);
    margin-left: -2px;
    /* Pull slightly closer to leaf icon */
}

.rename-input:focus {
    background: white;
    border-color: var(--primary-leaf);
    box-shadow: var(--shadow-focus);
}

.history-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.history-actions {
    display: none;
    gap: 8px;
    align-items: center;
}

.history-item:hover .history-actions {
    display: flex;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    color: var(--primary-leaf);
    background: rgba(45, 90, 39, 0.1);
}

.btn-signout {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.btn-signout:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.btn-signout svg {
    width: 18px;
    height: 18px;
}

.action-icon {
    width: 14px;
    height: 14px;
}

.user-badge.solo {
    margin-top: auto;
    padding: 12px;
    background: rgba(45, 90, 39, 0.04);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-leaf);
    border-radius: var(--leaf-radius);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Main Content: High-Tech Lab Space */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 64px;
    /* Consistent airy gap */
}

.main-header {
    text-align: center;
    margin-bottom: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    padding: 6px 16px;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-leaf);
    margin-bottom: 32px;
}

.main-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.main-header h1 span {
    display: block;
    color: var(--primary-leaf);
    opacity: 0.8;
}

.main-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 24px auto 0;
    max-width: 580px;
}

/* The Command Center: Natural Geometry */
.card {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-heavy);
    padding: 80px;
    /* Massive increase in padding for airiness */
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-organic);
    scroll-margin-top: 40px;
}

.card-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.input-container {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 24px;
    width: 20px;
    color: var(--text-light);
}

input {
    width: 100%;
    padding: 24px 24px 24px 64px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: var(--transition-organic);
}

input:focus {
    outline: none;
    background: white;
    border-color: var(--primary-leaf);
    box-shadow: var(--shadow-focus);
}

.btn-launch {
    background: var(--primary-leaf);
    color: white;
    border: none;
    padding: 24px 60px;
    border-radius: var(--leaf-radius);
    transition: var(--transition-organic);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-focus);
}

.active-research .btn-launch {
    background: var(--primary-autumn);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

.active-research .btn-launch:hover {
    box-shadow: 0 15px 30px -10px rgba(217, 119, 6, 0.4);
}

.btn-launch:hover {
    transform: scale(1.04) rotate(1deg);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px -10px var(--primary-glow);
}

/* Pipeline UI: Growing Growth */
.pipeline {
    display: flex;
    justify-content: space-between;
    padding: 40px 20px;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition-organic);
    opacity: 0.3;
}

.step.active {
    opacity: 1;
}

.step-blob {
    width: 14px;
    height: 14px;
    background: var(--text-light);
    border-radius: var(--leaf-radius);
    transition: var(--transition-organic);
}

.step.active .step-blob {
    background: var(--primary-leaf);
    transform: scale(1.5) rotate(45deg);
    box-shadow: 0 0 25px var(--primary-leaf);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Tree of Knowledge: Garden Growth */
.garden-container {
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 40px 0;
    perspective: 1000px;
}

.garden {
    position: relative;
    width: 60px;
    height: 100%;
    transform-origin: bottom center;
    transition: var(--transition-organic);
}

.trunk {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: calc(100% * var(--growth-scale));
    background: var(--primary-leaf);
    border-radius: 4px;
    transform: translateX(-50%);
    transition: var(--transition-organic);
}

.active-research .trunk {
    background: var(--primary-leaf);
}

.branch {
    position: absolute;
    width: 4px;
    background: inherit;
    border-radius: 4px;
    opacity: 0;
    transform-origin: bottom center;
    transition: var(--transition-organic);
}

.active-research .branch {
    background: var(--primary-leaf);
}

.branch-1 {
    height: 40px;
    bottom: 30%;
    left: 50%;
    transform: rotate(-45deg) scale(calc(var(--growth-scale) * 1.5));
    opacity: calc(var(--growth-scale) * 2 - 0.5);
}

.branch-2 {
    height: 35px;
    bottom: 50%;
    left: 50%;
    transform: rotate(45deg) scale(calc(var(--growth-scale) * 1.5));
    opacity: calc(var(--growth-scale) * 2 - 1);
}

.foliage {
    position: absolute;
    top: calc(100% - (100% * var(--growth-scale)));
    left: 50%;
    width: calc(40px * var(--growth-scale));
    height: calc(30px * var(--growth-scale));
    background: var(--primary-leaf);
    border-radius: var(--leaf-radius);
    transform: translateX(-50%) rotate(calc(var(--growth-scale) * 360deg));
    filter: blur(2px);
    opacity: calc(var(--growth-scale) * 0.8);
    transition: var(--transition-organic);
}

.active-research .foliage {
    background: var(--primary-leaf);
}

/* Analytics & Status */
#status-msg {
    text-align: center;
    font-weight: 500;
    color: var(--primary-leaf);
    font-size: 1.1rem;
    margin-top: 20px;
}

@keyframes breathing {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.analyzing {
    animation: breathing 3s infinite ease-in-out;
}

.glass-pulse {
    animation: glassGlow 2s infinite ease-in-out;
}

@keyframes glassGlow {

    0%,
    100% {
        background: var(--glass-surface);
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    }

    50% {
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 8px 32px 0 rgba(45, 90, 39, 0.15);
    }
}

#pipeline-section {
    scroll-margin-top: 40px;
}

/* Progress Bar: Organic Glow */
.progress-bar-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(45, 90, 39, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-leaf), #4caf50);
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-leaf);
    text-align: right;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

/* Visualization Map */
.visualization-view {
    margin-bottom: 60px;
}

.viz-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 24px;
}

.data-node-bubble {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 20px 32px;
    border-radius: var(--radius-pill);
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-leaf);
    box-shadow: var(--shadow-subtle);
    animation: bubble-float 4s infinite ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes bubble-float {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-15px);
        opacity: 0.8;
    }
}

@keyframes bubble-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.5) translate(0, 20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translate(var(--drift-x, 0), var(--drift-y, 0));
    }
}

.live-node {
    margin: 8px;
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.report-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.report-body h1 {
    font-family: 'Sora', sans-serif;
    color: var(--primary-leaf);
    margin: 48px 0 24px;
    font-size: 2.2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 12px;
}

.report-body h2 {
    font-family: 'Sora', sans-serif;
    color: var(--primary-leaf);
    margin: 40px 0 20px;
    font-size: 1.7rem;
}

.report-body h3 {
    font-family: 'Sora', sans-serif;
    color: var(--primary-leaf);
    margin: 32px 0 16px;
    font-size: 1.3rem;
    font-weight: 700;
}

.report-body p {
    margin-bottom: 24px;
}

.report-body ul,
.report-body ol {
    margin: 20px 0 32px 24px;
}

.report-body li {
    margin-bottom: 12px;
}

.report-body strong {
    color: var(--primary-leaf);
    font-weight: 600;
}

.report-body hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 48px 0;
}

.data-node {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition-organic);
    box-shadow: var(--shadow-subtle);
}

.data-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-leaf);
    border: 1px solid var(--primary-leaf);
    padding: 8px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-organic);
}

.btn-secondary:hover {
    background: var(--primary-leaf);
    color: white;
}

@keyframes pulse-highlight {
    0% {
        background: transparent;
    }

    50% {
        background: var(--primary-glow);
    }

    100% {
        background: transparent;
    }
}

.pulse-highlight {
    animation: pulse-highlight 2s ease-in-out;
    border-radius: 8px;
}

.report-visual {
    margin: 40px 0;
    border-radius: var(--radius-heavy);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
}

.report-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.visual-caption {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid var(--glass-border);
}

.report-link {
    color: var(--primary-leaf);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition-organic);
}

.report-link:hover {
    border-bottom-color: var(--primary-leaf);
    opacity: 0.8;
}

sup {
    font-size: 0.75em;
    color: var(--primary-leaf);
    font-weight: 700;
    margin-left: 2px;
    cursor: default;
}

/* Responsive */
@media (max-width: 1100px) {
    .app-container {
        flex-direction: column;
        padding: 40px 24px;
        margin: 0;
    }

    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    h1 {
        font-size: 2.8rem;
    }
}

/* --- Subscription & Account UI --- */

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

.sub-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    background: var(--text-light);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--card-bg);
}

.sub-badge.sprout {
    background: #4caf50;
    color: white;
}

.sub-badge.bloom {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
}

.sub-badge.forest {
    background: linear-gradient(135deg, #1b5e20, #2d5a27);
    color: white;
}

/* Modal Status Badges */
.status-badge.sprout {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.status-badge.bloom {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.status-badge.forest {
    background: rgba(27, 94, 32, 0.1);
    color: #1b5e20;
}

.btn-sidebar-icon {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sidebar-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: rotate(45deg);
}

.btn-sidebar-icon svg {
    width: 20px;
    height: 20px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 15, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-card {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

.sub-status-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-info label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-info h3 {
    margin: 4px 0;
    font-size: 1.25rem;
}

.status-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
}

.status-badge.pro {
    background: #ffd700;
    color: #333;
}

.status-badge.free {
    background: rgba(255, 255, 255, 0.1);
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.feature-list ul {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li svg {
    width: 16px;
    height: 16px;
    color: var(--accent-bloom);
}

.credits-box {
    margin-bottom: 2rem;
    text-align: center;
}

.credit-counter {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Sora', sans-serif;
    color: var(--text-main);
}

.credit-counter span {
    color: var(--accent-bloom);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =============================================
   PREMIUM FEATURES: Chat with Findings
   ============================================= */

.chat-panel {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-heavy);
    padding: 24px;
    margin-top: 24px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chat-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.badge.bloom-feature {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.chat-messages {
    max-height: 280px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-bottom: 16px;
}

.chat-placeholder {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    font-style: italic;
}

.chat-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 85%;
    line-height: 1.5;
}

.chat-message.user {
    background: var(--primary-gradient);
    color: white;
    margin-left: auto;
    text-align: right;
}

.chat-message.assistant {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.chat-input-container {
    display: flex;
    gap: 12px;
}

.chat-input-container input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: var(--transition-organic);
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-leaf);
    box-shadow: var(--shadow-focus);
}

.btn-chat-send {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-organic);
}

.btn-chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 90, 39, 0.3);
}

.btn-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================================
   PREMIUM FEATURES: Priority Processing
   ============================================= */

.priority-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse-priority 2s infinite;
}

@keyframes pulse-priority {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}