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

body {
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.container canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.fullscreen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) contrast(1.25) brightness(1.1);
    -webkit-filter: grayscale(0.6) contrast(1.2) brightness(1.05);
}

/* Original Sidebar styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 64px;
    height: 100vh;
background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%,
        rgba(0, 0, 0, 0.04) 100%
    );
    backdrop-filter: blur(10px) saturate(100%);
    z-index: 2500;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.015),
                inset -1px 0 1px rgba(0, 0, 0, 0.01),
                2px 0 12px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.sidebar:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.01) 25%,
        rgba(0, 0, 0, 0.04) 50%,
        rgba(0, 0, 0, 0.06) 100%
    );
    backdrop-filter: blur(15px) saturate(110%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 1px 0 1px rgba(255, 255, 255, 0.03),
                inset -1px 0 1px rgba(0, 0, 0, 0.015),
                3px 0 16px rgba(0, 0, 0, 0.06);
}

/* Clean flower image without particle effects */
.flower-image {
    position: relative;
    margin-top: 20px;
    width: 20px;
    height: 20px;
    z-index: 2501;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    overflow: visible;
}

.flower-particles-canvas {
    position: absolute;
    top: 20px; /* Match margin-top of flower-image */
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    z-index: 2502; /* Higher than flower-image */
    pointer-events: none; /* Allow clicks to pass through to the image */
}



@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
        filter: brightness(1) blur(0px) drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    }
    25% {
        transform: scale(1.05) rotate(15deg);
        opacity: 0.9;
        filter: brightness(1.1) blur(0.2px) drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    }
    50% {
        transform: scale(1.15) rotate(30deg);
        opacity: 1;
        filter: brightness(1.2) blur(0.3px) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    }
    75% {
        transform: scale(1.05) rotate(-10deg);
        opacity: 0.9;
        filter: brightness(1.1) blur(0.2px) drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
    }
}

.flower-image:hover {
    transform: scale(1.2) rotate(15deg);
    filter: brightness(1.2) drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

/* Original mail link styles */
.mail-link {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(40, 167, 69, 0.4);
    font-size: 23px;
    z-index: 2501;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 10px;
}

.mail-link:hover {
    color: rgba(40, 167, 69, 0.9);
    animation: none;
    transform: translateX(-50%) scale(1.1);
}

/* Premium Interface (replaces the old main-interface) */
.premium-interface {
    position: fixed;
    right: 0;
    top: 0;
    width: calc(100% - 64px);
    height: 100vh;
    transform: translateX(100%);
    background: rgba(10, 10, 10, 0.05); /* Slightly more visible, but still very transparent */
    backdrop-filter: blur(100px) saturate(150%); /* Balanced blur and saturation */
    display: flex;
    flex-direction: column;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-left: 1px solid rgba(255, 255, 255, 0.02); /* Subtle border */
    overflow-y: auto;
}

.premium-interface.active {
    transform: translateX(0);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

/* Premium Controls Container */
.premium-controls {
    position: fixed;
    top: 25px;
    right: 25px;
    display: flex;
    gap: 15px;
    z-index: 2001;
}

/* Chat Bubble Icon */
.chat-bubble-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px) saturate(150%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-bubble-icon i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.chat-bubble-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.chat-bubble-icon:hover i {
    color: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.chat-bubble-icon:active {
    transform: scale(1.0);
    transition: all 0.1s ease;
}

/* Premium close button */
.premium-close {
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.premium-close:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: scale(1.2) rotate(90deg);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.premium-close:active {
    transform: scale(1.0) rotate(90deg);
    transition: all 0.1s ease;
}

/* Premium content container */
.premium-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

/* Hero section with sophisticated fade treatment */
.hero-section {
    padding: 30px 80px; /* Slightly more padding */
    text-align: left;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%); /* Subtle gradient */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Thin, elegant border */
    position: relative;
    overflow: hidden;
}

.hero-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 1.55rem;
    font-weight: 600;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    font-family:
        "SF Pro Text",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        sans-serif;
}

/* Enhanced content grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 40px 20px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.content-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.005) 100%); /* Very subtle, highly transparent background */
    border: 1px solid transparent; /* Start with transparent border */
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 100%) 1; /* Linear grayscale fade for border */
    border-radius: 10px;
    padding: 24px;
    transition: all 0.4s ease-out; /* Slightly slower transition for smoothness */
    backdrop-filter: blur(30px) saturate(200%); /* Stronger blur and saturation */
    position: relative;
    overflow: hidden;
    cursor: default;
    z-index: 2;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 2px 4px rgba(0, 0, 0, 0.03),
        0 4px 8px rgba(0, 0, 0, 0.03),
        0 8px 16px rgba(0, 0, 0, 0.03),
        0 16px 32px rgba(0, 0, 0, 0.03); /* Even more subtle layered shadow */
}

.content-card:hover {
    transform: translateY(-6px); /* Slightly more lift on hover */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%); /* Slightly more visible on hover */
    border-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.05) 100%) 1; /* More pronounced border fade on hover */
    backdrop-filter: blur(35px) saturate(220%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 8px 16px rgba(0, 0, 0, 0.06),
        0 16px 32px rgba(0, 0, 0, 0.06); /* More pronounced shadow on hover */
}

/* Premium geometric icons */
.card-icon {
    width: 48px; /* Smaller icon size */
    height: 48px;
    margin-bottom: 16px; /* Reduced margin */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Slightly rounded corners, not fully circular */
    background: rgba(255, 255, 255, 0.03); /* More subtle background */
    border: 1px solid rgba(255, 255, 255, 0.08); /* More visible border */
    transition: all 0.2s ease-out; /* Faster transition */
    backdrop-filter: blur(15px); /* Stronger blur */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.02); /* Subtle shadow */
}

.content-card:hover .card-icon {
    background: rgba(255, 255, 255, 0.05); /* Slightly more visible on hover */
    border-color: rgba(255, 255, 255, 0.12); /* More visible border on hover */
    transform: scale(1.05); /* Subtle scale, no rotation */
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-icon i { /* Styling for Font Awesome icons */
    font-size: 22px; /* Match previous size */
    color: rgba(255, 255, 255, 0.8); /* Match previous color */
    transition: all 0.2s ease-out;
}

.content-card:hover .card-icon i {
    color: rgba(255, 255, 255, 0.95); /* Brighter on hover */
}


.card-title {
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 1.3rem; /* Slightly smaller */
    font-weight: 600;
    margin-bottom: 12px; /* Reduced margin */
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: none; /* Remove shadow */
}

.card-description {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px; /* Reduced margin */
    font-size: 14px;
    font-weight: 400;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.05); /* More transparent background */
    color: rgba(255, 255, 255, 0.75); /* Slightly brighter text color */
    padding: 5px 10px; /* Reduced padding */
    border-radius: 5px; /* Slightly more rounded */
    font-size: 0.75rem; /* Smaller font size */
    border: 1px solid rgba(255, 255, 255, 0.1); /* More visible border */
    font-weight: 500; /* Slightly bolder */
    transition: all 0.2s ease; /* Faster transition */
    letter-spacing: 0.01em; /* Tighter letter spacing */
    text-transform: none; /* Normal case */
}

.tag:hover {
    background: rgba(255, 255, 255, 0.08); /* Slightly more visible on hover */
    border-color: rgba(255, 255, 255, 0.15); /* More visible border on hover */
    color: rgba(255, 255, 255, 0.9); /* Brighter text on hover */
    transform: none; /* No transform on hover */
}

/* Knowledge Map Specific Styles */
.knowledge-map-card {
    grid-column: span 2;
    min-height: 500px;
    width: 100%;
}

.knowledge-map-container {
    margin: 24px 0;
    min-height: 300px;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(180, 180, 180, 0.03) 0%,
        rgba(180, 180, 180, 0.01) 100%
    );
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(170, 170, 170, 0.08);
    box-sizing: border-box;
    width: 100%;
}

/* Loading Spinner */
.knowledge-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.7);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Domain Grid */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.domain-item {
    background: linear-gradient(
        135deg,
        rgba(200, 200, 200, 0.08) 0%,
        rgba(200, 200, 200, 0.03) 100%
    );
    border: 1px solid rgba(190, 190, 190, 0.1);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.domain-item:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.domain-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.domain-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.domain-stars {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
}

.domain-level {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.domain-projects {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

/* Patterns Grid */
.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.pattern-item {
    background: linear-gradient(
        135deg,
        rgba(220, 220, 220, 0.06) 0%,
        rgba(220, 220, 220, 0.02) 100%
    );
    border: 1px solid rgba(200, 200, 200, 0.12);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pattern-item:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.pattern-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pattern-rarity {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.pattern-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 8px;
}

.pattern-impact {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
}

.impact-score {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.project-item {
    background: linear-gradient(
        135deg,
        rgba(210, 210, 210, 0.05) 0%,
        rgba(210, 210, 210, 0.02) 100%
    );
    border: 1px solid rgba(190, 190, 190, 0.1);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.project-item:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}



.project-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.project-category {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
}

.project-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.project-status {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.6);
}

.project-status.in-progress {
    background: rgba(255, 193, 7, 0.6);
}

.project-status.concept {
    background: rgba(108, 117, 125, 0.6);
}

/* Knowledge Controls */
.knowledge-controls {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

/* Mind Map Styles */
.knowledge-mindmap {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.mindmap-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(128, 128, 128, 0.02) 0%,
        rgba(128, 128, 128, 0.005) 100%
    );
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(128, 128, 128, 0.06);
    overflow: hidden;
}

.mindmap-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

.mindmap-node {
    position: absolute;
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.2), rgba(30, 30, 30, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    backdrop-filter: blur(12px) saturate(120%);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%) scale(1);
}

.mindmap-node:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.mindmap-node.central {
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.3), rgba(50, 50, 50, 0.3));
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 14px 20px;
    z-index: 30;
}

.mindmap-node.domain {
    background: linear-gradient(135deg, rgba(60, 90, 110, 0.25), rgba(40, 70, 90, 0.25));
    border-color: rgba(100, 150, 200, 0.2);
}

.mindmap-node.project {
    background: linear-gradient(135deg, rgba(110, 90, 60, 0.25), rgba(90, 70, 40, 0.25));
    border-color: rgba(200, 150, 100, 0.2);
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
}

.mindmap-node.pattern {
    background: linear-gradient(135deg, rgba(90, 60, 110, 0.25), rgba(70, 40, 90, 0.25));
    border-color: rgba(150, 100, 200, 0.2);
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 15px; /* More pill-shaped */
}

.mindmap-node-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
    font-size: 12px;
}

.mindmap-node.central .mindmap-node-title {
    font-size: 15px;
}

.mindmap-node-subtitle {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.mindmap-connection {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    height: 1px;
    z-index: 1;
    opacity: 0.8;
    transform-origin: 0 0;
}

.mindmap-node:hover ~ .mindmap-connection,
.mindmap-connection.active {
    background: rgba(255, 255, 255, 0.4);
    height: 2px;
    opacity: 1;
}

/* Responsive mind map */
@media (max-width: 768px) {
    .mindmap-container {
        height: 400px;
        padding: 15px;
    }
    
    .mindmap-node {
        padding: 8px 12px;
        min-width: 100px;
        font-size: 11px;
    }
    
    .mindmap-node.central {
        padding: 12px 18px;
        font-size: 14px;
        min-width: 140px;
    }
    
    .mindmap-node.project {
        font-size: 10px;
        padding: 6px 8px;
        min-width: 80px;
    }
}

.knowledge-tab {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
}

.knowledge-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.knowledge-tab.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.knowledge-refresh {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-family: inherit;
    margin-left: auto;
}

.knowledge-refresh:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.patterns-title, .projects-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .knowledge-map-card {
        grid-column: span 1;
        width: 100%;
    }
    
    .domain-grid,
    .patterns-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .knowledge-controls {
        flex-wrap: wrap;
    }
    
    .knowledge-refresh {
        margin-left: 0;
        margin-top: 8px;
    }
}

/* Typing Indicator (LLM Thinking Bubbles) - Clean Simple Version */
.typing-indicator {
    opacity: 1 !important;
    transform: translateY(0) !important;
    margin: 8px 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: none;
    border: none;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(160, 160, 160, 0.6); /* Greyscale color */
    animation: typing-pulse 1.4s infinite ease-in-out;
    box-shadow: none;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-pulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    30% {
        transform: scale(1.3);
        opacity: 1;
    }
}

.typing-flower {
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

/* Teletype/Old Computer Style for LLM responses */
.message.received .message-content {
    background: rgba(128, 128, 128, 0.003); /* Greyscale transparent background */
    border: 1px solid rgba(128, 128, 128, 0.02); /* Greyscale border */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; /* macOS font */
    color: rgba(180, 180, 180, 0.85); /* Greyscale text color */
    text-shadow: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.message.received .message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px; /* Thinner scan line */
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(128, 128, 128, 0.04) 50%, /* Greyscale scan line */
        transparent 100%
    );
    animation: scan-line 2s linear infinite;
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Typewriter cursor effect */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: rgba(160, 160, 160, 0.7); /* Greyscale cursor */
    animation: cursor-blink 1s infinite;
    margin-left: 2px;
    vertical-align: text-top;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal-style prompt for welcome message only */
.message.received.welcome .message-content::after {
    content: '> ';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(140, 140, 140, 0.6); /* Greyscale prompt */
    font-weight: bold;
    pointer-events: none;
    line-height: 1;
}

.message.received.welcome .message-content p:first-child {
    margin-left: 16px;
}

/* Chat Card Styling (similar to Knowledge Map Card) */
.chat-card {
    grid-column: span 2; /* Make chat card span 2 columns for more space */
    min-height: 400px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space between elements */
}

.chat-interface {
    width: 100%; /* Take full width of the card */
    background: rgba(96, 96, 96, 0.08); /* More visible greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.12); /* More prominent greyscale border */
    border-radius: 10px; /* Match card border-radius */
    padding: 20px; /* Consistent padding */
    backdrop-filter: blur(20px) saturate(70%); /* Increased blur, more reduced saturation */
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(128, 128, 128, 0.06), 0 2px 8px rgba(0, 0, 0, 0.08); /* More visible greyscale shadows */
    transition: all 0.3s ease;
}

.chat-interface.chat-active {
    padding: 20px; /* Keep consistent padding */
    background: rgba(96, 96, 96, 0.12); /* More visible greyscale when active */
    border-color: rgba(128, 128, 128, 0.15);
}

.chat-input {
    width: 100%;
    padding: 12px 18px; /* Consistent padding */
    background: rgba(64, 64, 64, 0.35); /* More visible greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.18); /* More prominent greyscale border */
    border-radius: 8px; /* Consistent border-radius */
    color: rgba(200, 200, 200, 0.95); /* Brighter greyscale text */
    font-size: 0.9rem;
    margin-bottom: 16px; /* Consistent margin */
    transition: all 0.3s ease; /* Faster transition */
    font-family: inherit;
    backdrop-filter: blur(15px) saturate(40%); /* Increased blur, more reduced saturation */
}

.chat-input:focus {
    outline: none;
    border-color: rgba(128, 128, 128, 0.3); /* More visible greyscale focus border */
    background: rgba(64, 64, 64, 0.45); /* Darker greyscale on focus */
    box-shadow:
        0 0 0 3px rgba(128, 128, 128, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.1); /* More visible greyscale shadows */
    transform: none; /* No scale on focus */
}

.chat-input::placeholder {
    color: rgba(160, 160, 160, 0.5); /* Greyscale placeholder color */
}

.chat-button {
    background: rgba(112, 112, 112, 0.12); /* More visible greyscale background */
    color: rgba(200, 200, 200, 0.9); /* Brighter greyscale text */
    border: 1px solid rgba(128, 128, 128, 0.18); /* More prominent greyscale border */
    padding: 12px 24px; /* Consistent padding */
    border-radius: 8px; /* Consistent border-radius */
    cursor: pointer;
    transition: all 0.3s ease; /* Faster transition */
    font-weight: 500;
    font-size: 0.9rem;
    font-family: inherit;
    backdrop-filter: blur(15px) saturate(50%); /* Increased blur, more reduced saturation */
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(128, 128, 128, 0.08); /* More visible greyscale shadows */
    position: relative;
    overflow: hidden;
    min-width: 100px; /* Adjusted min-width */
    white-space: nowrap;
}

.chat-button:hover {
    background: rgba(112, 112, 112, 0.18); /* More visible greyscale on hover */
    transform: translateY(-2px); /* Subtle lift */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(128, 128, 128, 0.12);
    border-color: rgba(128, 128, 128, 0.25); /* More visible greyscale border on hover */
    color: rgba(220, 220, 220, 0.95); /* Brighter greyscale text on hover */
}


/* Chat Messages Container */
.chat-messages-container {
    width: 100%; /* Take full width of the card */
    margin-top: 20px; /* Consistent margin */
    background: rgba(96, 96, 96, 0.08); /* More visible greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.12); /* More prominent greyscale border */
    border-radius: 8px; /* Consistent border-radius */
    max-height: 300px; /* Adjusted max-height for a sleeker look */
    overflow-y: auto;
    backdrop-filter: blur(20px) saturate(60%); /* Increased blur, more reduced saturation */
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(128, 128, 128, 0.08), 0 2px 8px rgba(0, 0, 0, 0.08); /* More visible greyscale shadows */
}

.chat-messages-inner {
    padding: 20px; /* Adjusted padding for consistency */
    display: flex;
    flex-direction: column;
    gap: 16px; /* Adjusted gap for consistency */
}

/* Message styles */
.message {
    position: relative;
    width: fit-content;
    max-width: 90%;
    min-width: 120px;
    border-radius: 8px; /* Consistent border-radius */
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.4s ease-out forwards;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    margin: 4px 0;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sent message (user) - Sleeker style */
.message.sent {
    margin-left: auto;
    border-radius: 8px; /* Consistent border-radius */
    align-self: flex-end;
}

.message.sent .message-content {
    background: rgba(128, 128, 128, 0.02); /* Greyscale transparent background */
    border: 1px solid rgba(128, 128, 128, 0.08); /* Greyscale border */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; /* macOS font */
    color: rgba(200, 200, 200, 0.9); /* Greyscale text */
    text-shadow: none; /* Remove text shadow */
    border-radius: 8px; /* Consistent border-radius */
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(128, 128, 128, 0.03); /* Greyscale shadows */
}

/* Received message (bot) - Sleeker style */
.message.received {
    margin-right: auto;
    border-radius: 8px; /* Consistent border-radius */
    align-self: flex-start;
}

.message.received .message-content {
    background: rgba(128, 128, 128, 0.005); /* Ultra-subtle greyscale transparent background */
    border-radius: 8px; /* Consistent border-radius */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(128, 128, 128, 0.01); /* Greyscale shadows */
}

/* Message content container */
.message-content {
    padding: 12px 16px; /* Consistent padding */
    border-radius: inherit;
    backdrop-filter: blur(15px) saturate(60%); /* Increased blur, reduced saturation */
    border: 1px solid rgba(128, 128, 128, 0.05); /* Greyscale border */
    font-size: 14px; /* Consistent font size */
    line-height: 1.5;
    letter-spacing: 0; /* Reset letter spacing */
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    max-width: 100%;
    color: rgba(180, 180, 180, 0.85); /* Greyscale text color */
    text-align: left;
}

.message-content p {
    margin: 10px 0;
    line-height: 1.6;
    text-align: left;
}

.message-content p:first-child {
    margin-top: 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

/* Enhanced Markdown Support */
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
    color: rgba(255, 255, 255, 0.95);
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.message-content h1 { font-size: 1.5rem; }
.message-content h2 { font-size: 1.3rem; }
.message-content h3 { font-size: 1.2rem; }
.message-content h4 { font-size: 1.1rem; }
.message-content h5 { font-size: 1rem; }
.message-content h6 { font-size: 0.9rem; }

.message-content blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 16px;
    margin: 12px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}

.message-content code {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 12px 0;
    overflow-x: auto;
    white-space: pre;
}

.message-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.85em;
    line-height: 1.5;
}

.message-content ul,
.message-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.message-content li {
    margin: 6px 0;
    line-height: 1.5;
}

.message-content a {
    color: rgba(200, 220, 255, 0.9);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.message-content a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.message-content th,
.message-content td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    text-align: left;
}

.message-content th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.message-content td {
    background: rgba(255, 255, 255, 0.02);
}

/* Mermaid diagram styling */
.message-content .mermaid {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow-x: auto;
}

.message-content .mermaid svg {
    max-width: 100%;
    height: auto;
}

/* Code block with language label */
.message-content .code-block {
    position: relative;
    margin: 12px 0;
}

.message-content .code-label {
    position: absolute;
    top: -1px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 0 0 4px 4px;
    font-size: 0.75em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Chat Controls */
.chat-controls {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
}

.chat-clear-button {
    background: rgba(128, 128, 128, 0.03); /* Greyscale background */
    color: rgba(160, 160, 160, 0.7); /* Greyscale text */
    border: 1px solid rgba(128, 128, 128, 0.08); /* Greyscale border */
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-clear-button:hover {
    background: rgba(128, 128, 128, 0.06); /* Greyscale hover background */
    border-color: rgba(128, 128, 128, 0.12); /* Greyscale hover border */
    color: rgba(180, 180, 180, 0.9); /* Brighter greyscale text on hover */
    transform: translateY(-1px);
}

/* Chat Input Area (Bottom) */
.chat-input-area {
    width: 100%; /* Take full width of the card */
    margin-top: 16px; /* Consistent margin */
    background: rgba(96, 96, 96, 0.08); /* More visible greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.12); /* More prominent greyscale border */
    border-radius: 8px; /* Consistent border-radius */
    padding: 16px; /* Consistent padding */
    backdrop-filter: blur(20px) saturate(60%); /* Increased blur, more reduced saturation */
    position: relative;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(128, 128, 128, 0.08), 0 2px 8px rgba(0, 0, 0, 0.08); /* More visible greyscale shadows */
}

.chat-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.chat-input-bottom {
    flex: 1;
    padding: 12px 18px;
    background: rgba(64, 64, 64, 0.4); /* More visible greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.22); /* More prominent greyscale border */
    border-radius: 10px;
    color: rgba(200, 200, 200, 0.95); /* Brighter greyscale text */
    font-size: 0.9rem;
    height: 42px; /* Explicit height for alignment */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: inherit;
    backdrop-filter: blur(15px) saturate(40%); /* Increased blur, more reduced saturation */
}

.chat-input-bottom:focus {
    outline: none;
    border-color: rgba(128, 128, 128, 0.35); /* More visible greyscale focus border */
    background: rgba(64, 64, 64, 0.5); /* Darker greyscale on focus */
    box-shadow:
        0 0 0 3px rgba(128, 128, 128, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.12); /* More visible greyscale shadows */
    transform: scale(1.01);
}

.chat-input-bottom::placeholder {
    color: rgba(160, 160, 160, 0.6); /* Greyscale placeholder */
}

.chat-button-bottom {
    background: linear-gradient(
        135deg,
        rgba(128, 128, 128, 0.12) 0%,
        rgba(128, 128, 128, 0.08) 50%,
        rgba(128, 128, 128, 0.10) 100%
    ); /* Greyscale gradient */
    color: rgba(200, 200, 200, 0.9); /* Greyscale text */
    border: 1px solid rgba(128, 128, 128, 0.18); /* Greyscale border */
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: normal; /* Ensure consistent line height */
    height: 42px; /* Explicit height for alignment */
    font-family: inherit;
    backdrop-filter: blur(20px) saturate(60%); /* Increased blur, reduced saturation */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(128, 128, 128, 0.08); /* Greyscale shadows */
    white-space: nowrap;
}

.chat-button-bottom:hover {
    background: linear-gradient(
        135deg,
        rgba(128, 128, 128, 0.18) 0%,
        rgba(128, 128, 128, 0.12) 50%,
        rgba(128, 128, 128, 0.15) 100%
    ); /* Greyscale hover gradient */
    color: rgba(220, 220, 220, 0.95); /* Brighter greyscale text on hover */
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(128, 128, 128, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08); /* Greyscale shadows */
    border-color: rgba(128, 128, 128, 0.25); /* Greyscale hover border */
}



/* Responsive grid layout */
@media (min-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        padding: 40px 80px;
    }
    
    .knowledge-map-card {
        grid-column: span 2;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 40px 40px;
    }
    
    .knowledge-map-card {
        grid-column: span 2;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .knowledge-map-card {
        grid-column: span 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .premium-interface {
        width: calc(100% - 40px);
    }
    
    .sidebar {
        width: 40px;
    }
    
    .premium-close {
        top: 18px;
        right: 18px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .flower-image {
        width: 16px;
        height: 16px;
        margin-top: 40px;
    }
    
    .mail-link {
        font-size: 19px;
    }
    
    .hero-section {
        padding: 20px 30px;
    }

    .hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .content-grid {
        padding: 50px 30px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .content-card {
        padding: 28px;
    }

    .chat-section {
        padding: 50px 30px 100px; /* Adjusted padding */
    }

    .chat-title {
        font-size: 1.8rem;
    }

    .chat-interface {
        padding: 20px; /* Consistent padding */
    }
    
    .chat-interface.chat-active {
        padding: 20px; /* Consistent padding */
    }
    
    .chat-input-area {
        margin: 15px auto 0;
        padding: 16px;
    }
    
    .chat-input-container {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .chat-button-bottom {
        padding: 14px 24px;
        align-self: center;
        min-width: 120px;
    }
    
    .chat-controls {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .chat-controls span {
        margin-left: 0 !important;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
}

/* Floating Chat Interface */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-height: 600px;
    background: rgba(48, 48, 48, 0.92); /* More visible greyscale background */
    backdrop-filter: blur(25px) saturate(60%); /* Increased blur, more reduced saturation */
    border: 1px solid rgba(128, 128, 128, 0.22); /* More prominent greyscale border */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Slightly stronger shadow */
    z-index: 3000;
    transform: translateY(100%) scale(0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.floating-chat.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.floating-chat.minimized {
    max-height: 60px;
    overflow: hidden;
}

.floating-chat.minimized .floating-chat-content {
    display: none;
}

/* Floating Chat Header */
.floating-chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.15); /* More prominent greyscale border */
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(96, 96, 96, 0.08); /* More visible greyscale background */
    backdrop-filter: blur(15px) saturate(50%); /* Increased blur, more reduced saturation */
}

.chat-header-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(220, 220, 220, 0.95); /* Greyscale text */
    font-family: inherit;
}

.chat-header-info p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: rgba(160, 160, 160, 0.7); /* Greyscale text */
}

.chat-header-controls {
    display: flex;
    gap: 8px;
}

.chat-minimize,
.chat-maximize,
.chat-close {
    width: 28px;
    height: 28px;
    background: rgba(128, 128, 128, 0.08); /* Greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.15); /* Greyscale border */
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(180, 180, 180, 0.8); /* Greyscale text */
    font-size: 12px;
}

.chat-minimize:hover,
.chat-maximize:hover,
.chat-close:hover {
    background: rgba(128, 128, 128, 0.12); /* Greyscale hover background */
    border-color: rgba(128, 128, 128, 0.25); /* Greyscale hover border */
    color: rgba(220, 220, 220, 0.95); /* Brighter greyscale text on hover */
    transform: scale(1.1);
}

/* Floating Chat Content */
.floating-chat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Chat Start Interface */
.chat-start-interface {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-welcome {
    text-align: center;
    margin-bottom: auto;
    padding: 20px 0;
}

.chat-welcome-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(128, 128, 128, 0.08); /* Greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.15); /* Greyscale border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px) saturate(60%); /* Increased blur, reduced saturation */
}

.chat-welcome-icon i {
    font-size: 24px;
    color: rgba(180, 180, 180, 0.9); /* Greyscale text */
}

.chat-welcome h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: rgba(220, 220, 220, 0.95); /* Greyscale text */
    font-family: inherit;
}

.chat-welcome p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(170, 170, 170, 0.8); /* Greyscale text */
}

.chat-start-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.chat-input-start {
    width: 100%;
    padding: 12px 16px;
    background: rgba(64, 64, 64, 0.45); /* More visible greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.22); /* More prominent greyscale border */
    border-radius: 10px;
    color: rgba(200, 200, 200, 0.95); /* Brighter greyscale text */
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(12px) saturate(40%); /* Increased blur, more reduced saturation */
    box-sizing: border-box;
}

.chat-input-start:focus {
    outline: none;
    border-color: rgba(128, 128, 128, 0.35); /* More visible greyscale focus border */
    background: rgba(64, 64, 64, 0.55); /* Darker greyscale on focus */
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.12); /* More visible greyscale shadow */
}

.chat-input-start::placeholder {
    color: rgba(160, 160, 160, 0.6); /* Greyscale placeholder */
}

.chat-button-start {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.15) 0%, rgba(128, 128, 128, 0.08) 100%); /* Greyscale gradient */
    color: rgba(200, 200, 200, 0.9); /* Greyscale text */
    border: 1px solid rgba(128, 128, 128, 0.18); /* Greyscale border */
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    font-family: inherit;
    backdrop-filter: blur(20px) saturate(60%); /* Increased blur, reduced saturation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer shadow */
}

.chat-button-start:hover {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.22) 0%, rgba(128, 128, 128, 0.12) 100%); /* Greyscale hover gradient */
    color: rgba(220, 220, 220, 0.95); /* Brighter greyscale text on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* Softer hover shadow */
    border-color: rgba(128, 128, 128, 0.25); /* Greyscale hover border */
}

/* Chat Messages Area */
.chat-messages-area {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    min-height: 200px;
    max-height: 350px;
}

.chat-messages-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Floating Chat Active Input */
.chat-active-input {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.chat-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.chat-input-active {
    flex: 1;
    padding: 10px 14px;
    background: rgba(64, 64, 64, 0.45); /* More visible greyscale background */
    border: 1px solid rgba(128, 128, 128, 0.22); /* More prominent greyscale border */
    border-radius: 8px;
    color: rgba(200, 200, 200, 0.95); /* Brighter greyscale text */
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(12px) saturate(40%); /* Increased blur, more reduced saturation */
}

.chat-input-active:focus {
    outline: none;
    border-color: rgba(128, 128, 128, 0.35); /* More visible greyscale focus border */
    background: rgba(64, 64, 64, 0.55); /* Darker greyscale on focus */
    box-shadow: 0 0 0 2px rgba(128, 128, 128, 0.12); /* More visible greyscale shadow */
}

.chat-input-active::placeholder {
    color: rgba(160, 160, 160, 0.6); /* Greyscale placeholder */
}

.chat-button-active {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.15) 0%, rgba(128, 128, 128, 0.08) 100%); /* Greyscale gradient */
    color: rgba(200, 200, 200, 0.9); /* Greyscale text */
    border: 1px solid rgba(128, 128, 128, 0.18); /* Greyscale border */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px) saturate(60%); /* Increased blur, reduced saturation */
}

.chat-button-active:hover {
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.22) 0%, rgba(128, 128, 128, 0.12) 100%); /* Greyscale hover gradient */
    color: rgba(220, 220, 220, 0.95); /* Brighter greyscale text on hover */
    transform: scale(1.05);
    border-color: rgba(128, 128, 128, 0.25); /* Greyscale hover border */
}

.chat-controls {
    display: flex;
    justify-content: center;
}

.chat-clear-button {
    background: rgba(128, 128, 128, 0.03); /* Greyscale background */
    color: rgba(160, 160, 160, 0.7); /* Greyscale text */
    border: 1px solid rgba(128, 128, 128, 0.08); /* Greyscale border */
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-clear-button:hover {
    background: rgba(128, 128, 128, 0.06); /* Greyscale hover background */
    border-color: rgba(128, 128, 128, 0.12); /* Greyscale hover border */
    color: rgba(180, 180, 180, 0.9); /* Brighter greyscale text on hover */
}

/* Responsive Design for Floating Chat */
@media (max-width: 768px) {
    .floating-chat {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 20px;
        max-height: 70vh;
    }
    
    .chat-start-interface {
        height: auto;
        min-height: 300px;
        padding: 20px;
    }
    
    .premium-controls {
        top: 18px;
        right: 18px;
        gap: 12px;
    }
    
    .chat-bubble-icon,
    .premium-close {
        width: 32px;
        height: 32px;
    }
    
    .chat-bubble-icon i {
        font-size: 14px;
    }
    
    .premium-close {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .content-card {
        padding: 25px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon::after {
        font-size: 28px;
    }

    .chat-interface {
        padding: 30px;
    }
    
    .chat-interface.chat-active {
        padding: 25px 30px 15px;
    }
    
    .chat-input-area {
        padding: 12px;
    }
    
    .chat-input-container {
        gap: 10px;
    }
    
    .chat-input-bottom {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .chat-button-bottom {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
